From 79663bea5fa5c94a40f21f595d33d7de1e4381bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Mon, 27 Nov 2023 01:32:53 +0000 Subject: [PATCH] feat(vmmigration): update the API #### 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 --- discovery/vmmigration-v1.json | 43 +++++++++++++++++++++++++---- discovery/vmmigration-v1alpha1.json | 43 +++++++++++++++++++++++++---- src/apis/vmmigration/v1.ts | 33 ++++++++++++++++++++++ src/apis/vmmigration/v1alpha1.ts | 33 ++++++++++++++++++++++ 4 files changed, 142 insertions(+), 10 deletions(-) diff --git a/discovery/vmmigration-v1.json b/discovery/vmmigration-v1.json index fc788973c5..0b551b3cfb 100644 --- a/discovery/vmmigration-v1.json +++ b/discovery/vmmigration-v1.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20231012", + "revision": "20231109", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -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." @@ -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" @@ -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" @@ -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" @@ -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", @@ -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.", @@ -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" @@ -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", @@ -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" diff --git a/discovery/vmmigration-v1alpha1.json b/discovery/vmmigration-v1alpha1.json index f1681aab57..5569abd90b 100644 --- a/discovery/vmmigration-v1alpha1.json +++ b/discovery/vmmigration-v1alpha1.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20231012", + "revision": "20231109", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -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." @@ -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" @@ -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" @@ -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" @@ -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", @@ -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.", @@ -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" @@ -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", @@ -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, diff --git a/src/apis/vmmigration/v1.ts b/src/apis/vmmigration/v1.ts index 7b7588b2e6..32de52eb48 100644 --- a/src/apis/vmmigration/v1.ts +++ b/src/apis/vmmigration/v1.ts @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ diff --git a/src/apis/vmmigration/v1alpha1.ts b/src/apis/vmmigration/v1alpha1.ts index d49affb509..81dc6c0625 100644 --- a/src/apis/vmmigration/v1alpha1.ts +++ b/src/apis/vmmigration/v1alpha1.ts @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */ @@ -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. */