Skip to content

Commit e38cfa8

Browse files
amanda-tarafajskeet
authored andcommitted
feat: Generate Google.Apis.VMMigrationService.v1alpha1 version 1.69.0.3793
1 parent a1be4c3 commit e38cfa8

File tree

3 files changed

+187
-4
lines changed

3 files changed

+187
-4
lines changed

‎DiscoveryJson/vmmigration.v1alpha1.json

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,34 @@
12511251
"https://www.googleapis.com/auth/cloud-platform"
12521252
]
12531253
},
1254+
"extendMigration": {
1255+
"description": "Extend the migrating VM time to live.",
1256+
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}:extendMigration",
1257+
"httpMethod": "POST",
1258+
"id": "vmmigration.projects.locations.sources.migratingVms.extendMigration",
1259+
"parameterOrder": [
1260+
"migratingVm"
1261+
],
1262+
"parameters": {
1263+
"migratingVm": {
1264+
"description": "Required. The name of the MigratingVm.",
1265+
"location": "path",
1266+
"pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$",
1267+
"required": true,
1268+
"type": "string"
1269+
}
1270+
},
1271+
"path": "v1alpha1/{+migratingVm}:extendMigration",
1272+
"request": {
1273+
"$ref": "ExtendMigrationRequest"
1274+
},
1275+
"response": {
1276+
"$ref": "Operation"
1277+
},
1278+
"scopes": [
1279+
"https://www.googleapis.com/auth/cloud-platform"
1280+
]
1281+
},
12541282
"finalizeMigration": {
12551283
"description": "Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.",
12561284
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}:finalizeMigration",
@@ -2226,7 +2254,7 @@
22262254
}
22272255
}
22282256
},
2229-
"revision": "20250321",
2257+
"revision": "20250521",
22302258
"rootUrl": "https://vmmigration.googleapis.com/",
22312259
"schemas": {
22322260
"AccessKeyCredentials": {
@@ -4018,6 +4046,36 @@
40184046
},
40194047
"type": "object"
40204048
},
4049+
"Expiration": {
4050+
"description": "Expiration holds information about the expiration of a MigratingVm.",
4051+
"id": "Expiration",
4052+
"properties": {
4053+
"expireTime": {
4054+
"description": "Output only. Timestamp of when this resource is considered expired.",
4055+
"format": "google-datetime",
4056+
"readOnly": true,
4057+
"type": "string"
4058+
},
4059+
"extendable": {
4060+
"description": "Output only. Describes whether the expiration can be extended.",
4061+
"readOnly": true,
4062+
"type": "boolean"
4063+
},
4064+
"extensionCount": {
4065+
"description": "Output only. The number of times expiration was extended.",
4066+
"format": "int32",
4067+
"readOnly": true,
4068+
"type": "integer"
4069+
}
4070+
},
4071+
"type": "object"
4072+
},
4073+
"ExtendMigrationRequest": {
4074+
"description": "Request message for 'ExtendMigrationRequest' request.",
4075+
"id": "ExtendMigrationRequest",
4076+
"properties": {},
4077+
"type": "object"
4078+
},
40214079
"FetchInventoryResponse": {
40224080
"description": "Response message for fetchInventory.",
40234081
"id": "FetchInventoryResponse",
@@ -4884,6 +4942,11 @@
48844942
"description": "Output only. Provides details on the state of the Migrating VM in case of an error in replication.",
48854943
"readOnly": true
48864944
},
4945+
"expiration": {
4946+
"$ref": "Expiration",
4947+
"description": "Output only. Provides details about the expiration state of the migrating VM.",
4948+
"readOnly": true
4949+
},
48874950
"group": {
48884951
"description": "Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.",
48894952
"readOnly": true,
@@ -4949,7 +5012,9 @@
49495012
"PAUSED",
49505013
"FINALIZING",
49515014
"FINALIZED",
4952-
"ERROR"
5015+
"ERROR",
5016+
"EXPIRED",
5017+
"FINALIZED_EXPIRED"
49535018
],
49545019
"enumDescriptions": [
49555020
"The state was not sampled by the health checks yet.",
@@ -4963,7 +5028,9 @@
49635028
"The replication was paused by the user and no cycles are scheduled to run.",
49645029
"The migrating VM is being finalized and migration resources are being removed.",
49655030
"The replication process is done. The migrating VM is finalized and no longer consumes billable resources.",
4966-
"The replication process encountered an unrecoverable error and was aborted."
5031+
"The replication process encountered an unrecoverable error and was aborted.",
5032+
"The migrating VM has passed its expiration date. It might be possible to bring it back to \"Active\" state by updating the TTL field. For more information, see the documentation.",
5033+
"The migrating VM's has been finalized and migration resources have been removed."
49675034
],
49685035
"readOnly": true,
49695036
"type": "string"

‎Src/Generated/Google.Apis.VMMigrationService.v1alpha1/Google.Apis.VMMigrationService.v1alpha1.cs

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,6 +2978,59 @@ protected override void InitParameters()
29782978
}
29792979
}
29802980

2981+
/// <summary>Extend the migrating VM time to live.</summary>
2982+
/// <param name="body">The body of the request.</param>
2983+
/// <param name="migratingVm">Required. The name of the MigratingVm.</param>
2984+
public virtual ExtendMigrationRequest ExtendMigration(Google.Apis.VMMigrationService.v1alpha1.Data.ExtendMigrationRequest body, string migratingVm)
2985+
{
2986+
return new ExtendMigrationRequest(this.service, body, migratingVm);
2987+
}
2988+
2989+
/// <summary>Extend the migrating VM time to live.</summary>
2990+
public class ExtendMigrationRequest : VMMigrationServiceBaseServiceRequest<Google.Apis.VMMigrationService.v1alpha1.Data.Operation>
2991+
{
2992+
/// <summary>Constructs a new ExtendMigration request.</summary>
2993+
public ExtendMigrationRequest(Google.Apis.Services.IClientService service, Google.Apis.VMMigrationService.v1alpha1.Data.ExtendMigrationRequest body, string migratingVm) : base(service)
2994+
{
2995+
MigratingVm = migratingVm;
2996+
Body = body;
2997+
InitParameters();
2998+
}
2999+
3000+
/// <summary>Required. The name of the MigratingVm.</summary>
3001+
[Google.Apis.Util.RequestParameterAttribute("migratingVm", Google.Apis.Util.RequestParameterType.Path)]
3002+
public virtual string MigratingVm { get; private set; }
3003+
3004+
/// <summary>Gets or sets the body of this request.</summary>
3005+
Google.Apis.VMMigrationService.v1alpha1.Data.ExtendMigrationRequest Body { get; set; }
3006+
3007+
/// <summary>Returns the body of the request.</summary>
3008+
protected override object GetBody() => Body;
3009+
3010+
/// <summary>Gets the method name.</summary>
3011+
public override string MethodName => "extendMigration";
3012+
3013+
/// <summary>Gets the HTTP method.</summary>
3014+
public override string HttpMethod => "POST";
3015+
3016+
/// <summary>Gets the REST path.</summary>
3017+
public override string RestPath => "v1alpha1/{+migratingVm}:extendMigration";
3018+
3019+
/// <summary>Initializes ExtendMigration parameter list.</summary>
3020+
protected override void InitParameters()
3021+
{
3022+
base.InitParameters();
3023+
RequestParameters.Add("migratingVm", new Google.Apis.Discovery.Parameter
3024+
{
3025+
Name = "migratingVm",
3026+
IsRequired = true,
3027+
ParameterType = "path",
3028+
DefaultValue = null,
3029+
Pattern = @"^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$",
3030+
});
3031+
}
3032+
}
3033+
29813034
/// <summary>
29823035
/// Marks a migration as completed, deleting migration resources that are no longer being used. Only
29833036
/// applicable after cutover is done.
@@ -6876,6 +6929,65 @@ public class Encryption : Google.Apis.Requests.IDirectResponseSchema
68766929
public virtual string ETag { get; set; }
68776930
}
68786931

6932+
/// <summary>Expiration holds information about the expiration of a MigratingVm.</summary>
6933+
public class Expiration : Google.Apis.Requests.IDirectResponseSchema
6934+
{
6935+
private string _expireTimeRaw;
6936+
6937+
private object _expireTime;
6938+
6939+
/// <summary>Output only. Timestamp of when this resource is considered expired.</summary>
6940+
[Newtonsoft.Json.JsonPropertyAttribute("expireTime")]
6941+
public virtual string ExpireTimeRaw
6942+
{
6943+
get => _expireTimeRaw;
6944+
set
6945+
{
6946+
_expireTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
6947+
_expireTimeRaw = value;
6948+
}
6949+
}
6950+
6951+
/// <summary><seealso cref="object"/> representation of <see cref="ExpireTimeRaw"/>.</summary>
6952+
[Newtonsoft.Json.JsonIgnoreAttribute]
6953+
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ExpireTimeDateTimeOffset instead.")]
6954+
public virtual object ExpireTime
6955+
{
6956+
get => _expireTime;
6957+
set
6958+
{
6959+
_expireTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
6960+
_expireTime = value;
6961+
}
6962+
}
6963+
6964+
/// <summary><seealso cref="System.DateTimeOffset"/> representation of <see cref="ExpireTimeRaw"/>.</summary>
6965+
[Newtonsoft.Json.JsonIgnoreAttribute]
6966+
public virtual System.DateTimeOffset? ExpireTimeDateTimeOffset
6967+
{
6968+
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ExpireTimeRaw);
6969+
set => ExpireTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
6970+
}
6971+
6972+
/// <summary>Output only. Describes whether the expiration can be extended.</summary>
6973+
[Newtonsoft.Json.JsonPropertyAttribute("extendable")]
6974+
public virtual System.Nullable<bool> Extendable { get; set; }
6975+
6976+
/// <summary>Output only. The number of times expiration was extended.</summary>
6977+
[Newtonsoft.Json.JsonPropertyAttribute("extensionCount")]
6978+
public virtual System.Nullable<int> ExtensionCount { get; set; }
6979+
6980+
/// <summary>The ETag of the item.</summary>
6981+
public virtual string ETag { get; set; }
6982+
}
6983+
6984+
/// <summary>Request message for 'ExtendMigrationRequest' request.</summary>
6985+
public class ExtendMigrationRequest : Google.Apis.Requests.IDirectResponseSchema
6986+
{
6987+
/// <summary>The ETag of the item.</summary>
6988+
public virtual string ETag { get; set; }
6989+
}
6990+
68796991
/// <summary>Response message for fetchInventory.</summary>
68806992
public class FetchInventoryResponse : Google.Apis.Requests.IDirectResponseSchema
68816993
{
@@ -7919,6 +8031,10 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
79198031
[Newtonsoft.Json.JsonPropertyAttribute("error")]
79208032
public virtual Status Error { get; set; }
79218033

8034+
/// <summary>Output only. Provides details about the expiration state of the migrating VM.</summary>
8035+
[Newtonsoft.Json.JsonPropertyAttribute("expiration")]
8036+
public virtual Expiration Expiration { get; set; }
8037+
79228038
/// <summary>
79238039
/// Output only. The group this migrating vm is included in, if any. The group is represented by the full path
79248040
/// of the appropriate Group resource.

‎Src/Generated/Google.Apis.VMMigrationService.v1alpha1/Google.Apis.VMMigrationService.v1alpha1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- nupkg information -->
44
<PropertyGroup>
55
<Title>Google.Apis.VMMigrationService.v1alpha1 Client Library</Title>
6-
<Version>1.69.0.3732</Version>
6+
<Version>1.69.0.3793</Version>
77
<Authors>Google LLC</Authors>
88
<Copyright>Copyright 2025 Google LLC</Copyright>
99
<PackageTags>Google</PackageTags>

0 commit comments

Comments
 (0)
close