Skip to content

Commit

Permalink
feat(vmmigration): update the API
Browse files Browse the repository at this point in the history
#### vmmigration:v1alpha1

The following keys were added:
- schemas.BootDiskDefaults.properties.encryption.$ref
- schemas.BootDiskDefaults.properties.encryption.description
- schemas.ComputeEngineTargetDefaults.properties.encryption.$ref
- schemas.ComputeEngineTargetDefaults.properties.encryption.description
- schemas.ComputeEngineTargetDetails.properties.encryption.$ref
- schemas.ComputeEngineTargetDetails.properties.encryption.description
- schemas.DisksMigrationVmTargetDefaults.properties.encryption.$ref
- schemas.DisksMigrationVmTargetDefaults.properties.encryption.description
- schemas.Encryption.description
- schemas.Encryption.id
- schemas.Encryption.properties.kmsKey.description
- schemas.Encryption.properties.kmsKey.type
- schemas.Encryption.type
- schemas.PersistentDiskDefaults.properties.encryption.$ref
- schemas.PersistentDiskDefaults.properties.encryption.description
- schemas.Source.properties.encryption.$ref
- schemas.Source.properties.encryption.description

The following keys were changed:
- schemas.MigrationError.properties.code.enum
- schemas.MigrationError.properties.code.enumDescriptions

#### vmmigration:v1

The following keys were added:
- schemas.BootDiskDefaults.properties.encryption.$ref
- schemas.BootDiskDefaults.properties.encryption.description
- schemas.ComputeEngineTargetDefaults.properties.encryption.$ref
- schemas.ComputeEngineTargetDefaults.properties.encryption.description
- schemas.ComputeEngineTargetDetails.properties.encryption.$ref
- schemas.ComputeEngineTargetDetails.properties.encryption.description
- schemas.DisksMigrationVmTargetDefaults.properties.encryption.$ref
- schemas.DisksMigrationVmTargetDefaults.properties.encryption.description
- schemas.Encryption.description
- schemas.Encryption.id
- schemas.Encryption.properties.kmsKey.description
- schemas.Encryption.properties.kmsKey.type
- schemas.Encryption.type
- schemas.PersistentDiskDefaults.properties.encryption.$ref
- schemas.PersistentDiskDefaults.properties.encryption.description
- schemas.Source.properties.encryption.$ref
- schemas.Source.properties.encryption.description

The following keys were changed:
- schemas.MigrationError.properties.code.enum
- schemas.MigrationError.properties.code.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent 472bb5b commit 79663be
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 10 deletions.
43 changes: 38 additions & 5 deletions discovery/vmmigration-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@
}
}
},
"revision": "20231012",
"revision": "20231109",
"rootUrl": "https://vmmigration.googleapis.com/",
"schemas": {
"AccessKeyCredentials": {
Expand Down Expand Up @@ -2618,6 +2618,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the boot disk."
},
"image": {
"$ref": "DiskImageDefaults",
"description": "The image to use when creating the disk."
Expand Down Expand Up @@ -2872,6 +2876,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. Immutable. The encryption to apply to the VM disks."
},
"hostname": {
"description": "The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -2998,6 +3006,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the VM disks."
},
"hostname": {
"description": "The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -3444,6 +3456,10 @@
"$ref": "ComputeScheduling",
"description": "Optional. Compute instance scheduling information (if empty default is used)."
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the VM."
},
"hostname": {
"description": "Optional. The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -3517,6 +3533,17 @@
"properties": {},
"type": "object"
},
"Encryption": {
"description": "Encryption message describes the details of the applied encryption.",
"id": "Encryption",
"properties": {
"kmsKey": {
"description": "Required. The name of the encryption key that is stored in Google Cloud KMS.",
"type": "string"
}
},
"type": "object"
},
"FetchInventoryResponse": {
"description": "Response message for fetchInventory.",
"id": "FetchInventoryResponse",
Expand Down Expand Up @@ -4139,8 +4166,7 @@
"CLONE_ERROR",
"CUTOVER_ERROR",
"UTILIZATION_REPORT_ERROR",
"APPLIANCE_UPGRADE_ERROR",
"IMAGE_IMPORT_ERROR"
"APPLIANCE_UPGRADE_ERROR"
],
"enumDescriptions": [
"Default value. This value is not used.",
Expand All @@ -4152,8 +4178,7 @@
"Migrate to Virtual Machines encountered an error in clone operation.",
"Migrate to Virtual Machines encountered an error in cutover operation.",
"Migrate to Virtual Machines encountered an error during utilization report creation.",
"Migrate to Virtual Machines encountered an error during appliance upgrade.",
"Migrate to Virtual Machines encountered an error in image import operation."
"Migrate to Virtual Machines encountered an error during appliance upgrade."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -4417,6 +4442,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the disk."
},
"sourceDiskNumber": {
"description": "Required. The ordinal number of the source VM disk.",
"format": "int32",
Expand Down Expand Up @@ -4647,6 +4676,10 @@
"description": "User-provided description of the source.",
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. Immutable. The encryption details of the source data stored by the service."
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down
43 changes: 38 additions & 5 deletions discovery/vmmigration-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@
}
}
},
"revision": "20231012",
"revision": "20231109",
"rootUrl": "https://vmmigration.googleapis.com/",
"schemas": {
"AccessKeyCredentials": {
Expand Down Expand Up @@ -2618,6 +2618,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the boot disk."
},
"image": {
"$ref": "DiskImageDefaults",
"description": "The image to use when creating the disk."
Expand Down Expand Up @@ -2884,6 +2888,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. Immutable. The encryption to apply to the VM disks."
},
"hostname": {
"description": "The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -3010,6 +3018,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the VM disks."
},
"hostname": {
"description": "The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -3479,6 +3491,10 @@
"$ref": "ComputeScheduling",
"description": "Optional. Compute instance scheduling information (if empty default is used)."
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the VM."
},
"hostname": {
"description": "Optional. The hostname to assign to the VM.",
"type": "string"
Expand Down Expand Up @@ -3552,6 +3568,17 @@
"properties": {},
"type": "object"
},
"Encryption": {
"description": "Encryption message describes the details of the applied encryption.",
"id": "Encryption",
"properties": {
"kmsKey": {
"description": "Required. The name of the encryption key that is stored in Google Cloud KMS.",
"type": "string"
}
},
"type": "object"
},
"FetchInventoryResponse": {
"description": "Response message for fetchInventory.",
"id": "FetchInventoryResponse",
Expand Down Expand Up @@ -4184,8 +4211,7 @@
"CLONE_ERROR",
"CUTOVER_ERROR",
"UTILIZATION_REPORT_ERROR",
"APPLIANCE_UPGRADE_ERROR",
"IMAGE_IMPORT_ERROR"
"APPLIANCE_UPGRADE_ERROR"
],
"enumDescriptions": [
"Default value. This value is not used.",
Expand All @@ -4197,8 +4223,7 @@
"Migrate to Virtual Machines encountered an error in clone operation.",
"Migrate to Virtual Machines encountered an error in cutover operation.",
"Migrate to Virtual Machines encountered an error during utilization report creation.",
"Migrate to Virtual Machines encountered an error during appliance upgrade.",
"Migrate to Virtual Machines encountered an error in image import operation."
"Migrate to Virtual Machines encountered an error during appliance upgrade."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -4462,6 +4487,10 @@
],
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. The encryption to apply to the disk."
},
"sourceDiskNumber": {
"description": "Required. The ordinal number of the source VM disk.",
"format": "int32",
Expand Down Expand Up @@ -4698,6 +4727,10 @@
"description": "User-provided description of the source.",
"type": "string"
},
"encryption": {
"$ref": "Encryption",
"description": "Optional. Immutable. The encryption details of the source data stored by the service."
},
"error": {
"$ref": "Status",
"deprecated": true,
Expand Down
33 changes: 33 additions & 0 deletions src/apis/vmmigration/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ export namespace vmmigration_v1 {
* Optional. The type of disk provisioning to use for the VM.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the boot disk.
*/
encryption?: Schema$Encryption;
/**
* The image to use when creating the disk.
*/
Expand Down Expand Up @@ -694,6 +698,10 @@ export namespace vmmigration_v1 {
* The disk type to use in the VM.
*/
diskType?: string | null;
/**
* Optional. Immutable. The encryption to apply to the VM disks.
*/
encryption?: Schema$Encryption;
/**
* The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -771,6 +779,10 @@ export namespace vmmigration_v1 {
* The disk type to use in the VM.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the VM disks.
*/
encryption?: Schema$Encryption;
/**
* The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -1072,6 +1084,10 @@ export namespace vmmigration_v1 {
* Optional. Compute instance scheduling information (if empty default is used).
*/
computeScheduling?: Schema$ComputeScheduling;
/**
* Optional. The encryption to apply to the VM.
*/
encryption?: Schema$Encryption;
/**
* Optional. The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -1126,6 +1142,15 @@ export namespace vmmigration_v1 {
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$Empty {}
/**
* Encryption message describes the details of the applied encryption.
*/
export interface Schema$Encryption {
/**
* Required. The name of the encryption key that is stored in Google Cloud KMS.
*/
kmsKey?: string | null;
}
/**
* Response message for fetchInventory.
*/
Expand Down Expand Up @@ -1719,6 +1744,10 @@ export namespace vmmigration_v1 {
* The disk type to use.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the disk.
*/
encryption?: Schema$Encryption;
/**
* Required. The ordinal number of the source VM disk.
*/
Expand Down Expand Up @@ -1878,6 +1907,10 @@ export namespace vmmigration_v1 {
* User-provided description of the source.
*/
description?: string | null;
/**
* Optional. Immutable. The encryption details of the source data stored by the service.
*/
encryption?: Schema$Encryption;
/**
* The labels of the source.
*/
Expand Down
33 changes: 33 additions & 0 deletions src/apis/vmmigration/v1alpha1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ export namespace vmmigration_v1alpha1 {
* Optional. The type of disk provisioning to use for the VM.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the boot disk.
*/
encryption?: Schema$Encryption;
/**
* The image to use when creating the disk.
*/
Expand Down Expand Up @@ -702,6 +706,10 @@ export namespace vmmigration_v1alpha1 {
* The disk type to use in the VM.
*/
diskType?: string | null;
/**
* Optional. Immutable. The encryption to apply to the VM disks.
*/
encryption?: Schema$Encryption;
/**
* The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -779,6 +787,10 @@ export namespace vmmigration_v1alpha1 {
* The disk type to use in the VM.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the VM disks.
*/
encryption?: Schema$Encryption;
/**
* The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -1093,6 +1105,10 @@ export namespace vmmigration_v1alpha1 {
* Optional. Compute instance scheduling information (if empty default is used).
*/
computeScheduling?: Schema$ComputeScheduling;
/**
* Optional. The encryption to apply to the VM.
*/
encryption?: Schema$Encryption;
/**
* Optional. The hostname to assign to the VM.
*/
Expand Down Expand Up @@ -1147,6 +1163,15 @@ export namespace vmmigration_v1alpha1 {
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$Empty {}
/**
* Encryption message describes the details of the applied encryption.
*/
export interface Schema$Encryption {
/**
* Required. The name of the encryption key that is stored in Google Cloud KMS.
*/
kmsKey?: string | null;
}
/**
* Response message for fetchInventory.
*/
Expand Down Expand Up @@ -1748,6 +1773,10 @@ export namespace vmmigration_v1alpha1 {
* The disk type to use.
*/
diskType?: string | null;
/**
* Optional. The encryption to apply to the disk.
*/
encryption?: Schema$Encryption;
/**
* Required. The ordinal number of the source VM disk.
*/
Expand Down Expand Up @@ -1911,6 +1940,10 @@ export namespace vmmigration_v1alpha1 {
* User-provided description of the source.
*/
description?: string | null;
/**
* Optional. Immutable. The encryption details of the source data stored by the service.
*/
encryption?: Schema$Encryption;
/**
* Output only. Provides details on the state of the Source in case of an error.
*/
Expand Down

0 comments on commit 79663be

Please sign in to comment.