From 53fdd26c30045b17960918d88acb032d645b5309 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 8 Nov 2022 07:07:47 +0000 Subject: [PATCH] feat(vmmigration): update the api #### vmmigration:v1alpha1 The following keys were added: - schemas.AwsSecurityGroup (Total Keys: 4) - schemas.AwsSourceDetails (Total Keys: 17) - schemas.AwsSourceVmDetails (Total Keys: 5) - schemas.AwsVmDetails (Total Keys: 23) - schemas.AwsVmsDetails (Total Keys: 4) - schemas.FetchInventoryResponse.properties.awsVms.$ref (Total Keys: 1) - schemas.MigratingVm.properties.awsSourceVmDetails (Total Keys: 2) - schemas.Source.properties.aws.$ref (Total Keys: 1) --- ...n_v1alpha1.projects.locations.sources.html | 129 ++++++++++ ...ojects.locations.sources.migratingVms.html | 16 ++ .../documents/vmmigration.v1alpha1.json | 243 +++++++++++++++++- 3 files changed, 387 insertions(+), 1 deletion(-) diff --git a/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.html b/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.html index cef09b3c23c..30b05333902 100644 --- a/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.html +++ b/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.html @@ -132,6 +132,31 @@

Method Details

The object takes the form of: { # Source message describes a specific vm migration Source resource. It contains the source environment information. + "aws": { # AwsSourceDetails message describes a specific source details for the AWS source type. # AWS type source details. + "accessKeyId": "A String", # AWS access key ID. + "awsRegion": "A String", # Immutable. The AWS region that the source VMs will be migrated from. + "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. + "code": 42, # The status code, which should be an enum value of google.rpc.Code. + "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. + { + "a_key": "", # Properties of the object. Contains field @type with type URL. + }, + ], + "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + }, + "inventorySecurityGroupNames": [ # AWS security group names to limit the scope of the source inventory. + "A String", + ], + "inventoryTags": { # AWS resource tags to limit the scope of the source inventory. + "a_key": "A String", + }, + "migrationResourcesUserTags": { # User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`. + "a_key": "A String", + }, + "publicIp": "A String", # Output only. The source's public IP. All communication initiated by this source will originate from this IP. + "secretAccessKey": "A String", # Input only. AWS secret access key. + "state": "A String", # Output only. State of the source as determined by the health check. + }, "createTime": "A String", # Output only. The create time timestamp. "description": "A String", # User-provided description of the source. "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. @@ -241,6 +266,35 @@

Method Details

An object of the form: { # Response message for fetchInventory. + "awsVms": { # AWSVmsDetails describes VMs in AWS. # The description of the VMs in a Source of type AWS. + "details": [ # The details of the AWS VMs. + { # AwsVmDetails describes a VM in AWS. + "bootOption": "A String", # The VM Boot Option. + "committedStorageMb": "A String", # The total size of the storage allocated to the VM in MB. + "cpuCount": 42, # The number of cpus the VM has. + "diskCount": 42, # The number of disks the VM has. + "displayName": "A String", # The display name of the VM. Note that this value is not necessarily unique. + "instanceType": "A String", # The instance type of the VM. + "memoryMb": 42, # The memory size of the VM in MB. + "osDescription": "A String", # The VM's OS. + "powerState": "A String", # Output only. The power state of the VM at the moment list was taken. + "securityGroups": [ # The security groups the VM belongs to. + { # AwsSecurityGroup describes a security group of an AWS VM. + "id": "A String", # The AWS security group id. + "name": "A String", # The AWS security group name. + }, + ], + "sourceDescription": "A String", # The descriptive name of the AWS's source this VM is connected to. + "sourceId": "A String", # The id of the AWS's source this VM is connected to. + "tags": { # The tags of the VM. + "a_key": "A String", + }, + "vmId": "A String", # The VM ID in AWS. + "vpcId": "A String", # The VPC ID the VM belongs to. + "zone": "A String", # The AWS zone of the VM. + }, + ], + }, "nextPageToken": "A String", # Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. "updateTime": "A String", # Output only. The timestamp when the source was last queried (if the result is from the cache). "vmwareVms": { # VmwareVmsDetails describes VMs in vCenter. # The description of the VMs in a Source of type Vmware. @@ -294,6 +348,31 @@

Method Details

An object of the form: { # Source message describes a specific vm migration Source resource. It contains the source environment information. + "aws": { # AwsSourceDetails message describes a specific source details for the AWS source type. # AWS type source details. + "accessKeyId": "A String", # AWS access key ID. + "awsRegion": "A String", # Immutable. The AWS region that the source VMs will be migrated from. + "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. + "code": 42, # The status code, which should be an enum value of google.rpc.Code. + "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. + { + "a_key": "", # Properties of the object. Contains field @type with type URL. + }, + ], + "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + }, + "inventorySecurityGroupNames": [ # AWS security group names to limit the scope of the source inventory. + "A String", + ], + "inventoryTags": { # AWS resource tags to limit the scope of the source inventory. + "a_key": "A String", + }, + "migrationResourcesUserTags": { # User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`. + "a_key": "A String", + }, + "publicIp": "A String", # Output only. The source's public IP. All communication initiated by this source will originate from this IP. + "secretAccessKey": "A String", # Input only. AWS secret access key. + "state": "A String", # Output only. State of the source as determined by the health check. + }, "createTime": "A String", # Output only. The create time timestamp. "description": "A String", # User-provided description of the source. "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. @@ -341,6 +420,31 @@

Method Details

"nextPageToken": "A String", # Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. "sources": [ # Output only. The list of sources response. { # Source message describes a specific vm migration Source resource. It contains the source environment information. + "aws": { # AwsSourceDetails message describes a specific source details for the AWS source type. # AWS type source details. + "accessKeyId": "A String", # AWS access key ID. + "awsRegion": "A String", # Immutable. The AWS region that the source VMs will be migrated from. + "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. + "code": 42, # The status code, which should be an enum value of google.rpc.Code. + "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. + { + "a_key": "", # Properties of the object. Contains field @type with type URL. + }, + ], + "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + }, + "inventorySecurityGroupNames": [ # AWS security group names to limit the scope of the source inventory. + "A String", + ], + "inventoryTags": { # AWS resource tags to limit the scope of the source inventory. + "a_key": "A String", + }, + "migrationResourcesUserTags": { # User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`. + "a_key": "A String", + }, + "publicIp": "A String", # Output only. The source's public IP. All communication initiated by this source will originate from this IP. + "secretAccessKey": "A String", # Input only. AWS secret access key. + "state": "A String", # Output only. State of the source as determined by the health check. + }, "createTime": "A String", # Output only. The create time timestamp. "description": "A String", # User-provided description of the source. "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. @@ -395,6 +499,31 @@

Method Details

The object takes the form of: { # Source message describes a specific vm migration Source resource. It contains the source environment information. + "aws": { # AwsSourceDetails message describes a specific source details for the AWS source type. # AWS type source details. + "accessKeyId": "A String", # AWS access key ID. + "awsRegion": "A String", # Immutable. The AWS region that the source VMs will be migrated from. + "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. + "code": 42, # The status code, which should be an enum value of google.rpc.Code. + "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. + { + "a_key": "", # Properties of the object. Contains field @type with type URL. + }, + ], + "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + }, + "inventorySecurityGroupNames": [ # AWS security group names to limit the scope of the source inventory. + "A String", + ], + "inventoryTags": { # AWS resource tags to limit the scope of the source inventory. + "a_key": "A String", + }, + "migrationResourcesUserTags": { # User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`. + "a_key": "A String", + }, + "publicIp": "A String", # Output only. The source's public IP. All communication initiated by this source will originate from this IP. + "secretAccessKey": "A String", # Input only. AWS secret access key. + "state": "A String", # Output only. State of the source as determined by the health check. + }, "createTime": "A String", # Output only. The create time timestamp. "description": "A String", # User-provided description of the source. "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Provides details on the state of the Source in case of an error. diff --git a/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.migratingVms.html b/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.migratingVms.html index c98f1f1f89e..ce1daeb27a0 100644 --- a/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.migratingVms.html +++ b/docs/dyn/vmmigration_v1alpha1.projects.locations.sources.migratingVms.html @@ -138,6 +138,10 @@

Method Details

The object takes the form of: { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state. + "awsSourceVmDetails": { # Represent the source AWS VM details. # Output only. Details of the VM from an AWS source. + "committedStorageBytes": "A String", # The total size of the disks being migrated in bytes. + "firmware": "A String", # The firmware type of the source VM. + }, "computeEngineTargetDefaults": { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine. "additionalLicenses": [ # Additional licenses to assign to the VM. "A String", @@ -937,6 +941,10 @@

Method Details

An object of the form: { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state. + "awsSourceVmDetails": { # Represent the source AWS VM details. # Output only. Details of the VM from an AWS source. + "committedStorageBytes": "A String", # The total size of the disks being migrated in bytes. + "firmware": "A String", # The firmware type of the source VM. + }, "computeEngineTargetDefaults": { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine. "additionalLicenses": [ # Additional licenses to assign to the VM. "A String", @@ -1636,6 +1644,10 @@

Method Details

{ # Response message for 'ListMigratingVms' request. "migratingVms": [ # Output only. The list of Migrating VMs response. { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state. + "awsSourceVmDetails": { # Represent the source AWS VM details. # Output only. Details of the VM from an AWS source. + "committedStorageBytes": "A String", # The total size of the disks being migrated in bytes. + "firmware": "A String", # The firmware type of the source VM. + }, "computeEngineTargetDefaults": { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine. "additionalLicenses": [ # Additional licenses to assign to the VM. "A String", @@ -2339,6 +2351,10 @@

Method Details

The object takes the form of: { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state. + "awsSourceVmDetails": { # Represent the source AWS VM details. # Output only. Details of the VM from an AWS source. + "committedStorageBytes": "A String", # The total size of the disks being migrated in bytes. + "firmware": "A String", # The firmware type of the source VM. + }, "computeEngineTargetDefaults": { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine. "additionalLicenses": [ # Additional licenses to assign to the VM. "A String", diff --git a/googleapiclient/discovery_cache/documents/vmmigration.v1alpha1.json b/googleapiclient/discovery_cache/documents/vmmigration.v1alpha1.json index 0c348912ae5..9e46eb2c090 100644 --- a/googleapiclient/discovery_cache/documents/vmmigration.v1alpha1.json +++ b/googleapiclient/discovery_cache/documents/vmmigration.v1alpha1.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20221017", + "revision": "20221027", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AdaptingOSStep": { @@ -2057,6 +2057,234 @@ }, "type": "object" }, + "AwsSecurityGroup": { + "description": "AwsSecurityGroup describes a security group of an AWS VM.", + "id": "AwsSecurityGroup", + "properties": { + "id": { + "description": "The AWS security group id.", + "type": "string" + }, + "name": { + "description": "The AWS security group name.", + "type": "string" + } + }, + "type": "object" + }, + "AwsSourceDetails": { + "description": "AwsSourceDetails message describes a specific source details for the AWS source type.", + "id": "AwsSourceDetails", + "properties": { + "accessKeyId": { + "description": "AWS access key ID.", + "type": "string" + }, + "awsRegion": { + "description": "Immutable. The AWS region that the source VMs will be migrated from.", + "type": "string" + }, + "error": { + "$ref": "Status", + "description": "Output only. Provides details on the state of the Source in case of an error.", + "readOnly": true + }, + "inventorySecurityGroupNames": { + "description": "AWS security group names to limit the scope of the source inventory.", + "items": { + "type": "string" + }, + "type": "array" + }, + "inventoryTags": { + "additionalProperties": { + "type": "string" + }, + "description": "AWS resource tags to limit the scope of the source inventory.", + "type": "object" + }, + "migrationResourcesUserTags": { + "additionalProperties": { + "type": "string" + }, + "description": "User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`.", + "type": "object" + }, + "publicIp": { + "description": "Output only. The source's public IP. All communication initiated by this source will originate from this IP.", + "readOnly": true, + "type": "string" + }, + "secretAccessKey": { + "description": "Input only. AWS secret access key.", + "type": "string" + }, + "state": { + "description": "Output only. State of the source as determined by the health check.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "FAILED", + "ACTIVE" + ], + "enumDescriptions": [ + "The state is unknown. This is used for API compatibility only and is not used by the system.", + "The state was not sampled by the health checks yet.", + "The source is available but might not be usable yet due to invalid credentials or another reason. The error message will contain further details.", + "The source exists and its credentials were verified." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AwsSourceVmDetails": { + "description": "Represent the source AWS VM details.", + "id": "AwsSourceVmDetails", + "properties": { + "committedStorageBytes": { + "description": "The total size of the disks being migrated in bytes.", + "format": "int64", + "type": "string" + }, + "firmware": { + "description": "The firmware type of the source VM.", + "enum": [ + "FIRMWARE_UNSPECIFIED", + "EFI", + "BIOS" + ], + "enumDescriptions": [ + "The firmware is unknown.", + "The firmware is EFI.", + "The firmware is BIOS." + ], + "type": "string" + } + }, + "type": "object" + }, + "AwsVmDetails": { + "description": "AwsVmDetails describes a VM in AWS.", + "id": "AwsVmDetails", + "properties": { + "bootOption": { + "description": "The VM Boot Option.", + "enum": [ + "BOOT_OPTION_UNSPECIFIED", + "EFI", + "BIOS" + ], + "enumDescriptions": [ + "The boot option is unknown.", + "The boot option is UEFI.", + "The boot option is LEGACY-BIOS." + ], + "type": "string" + }, + "committedStorageMb": { + "description": "The total size of the storage allocated to the VM in MB.", + "format": "int64", + "type": "string" + }, + "cpuCount": { + "description": "The number of cpus the VM has.", + "format": "int32", + "type": "integer" + }, + "diskCount": { + "description": "The number of disks the VM has.", + "format": "int32", + "type": "integer" + }, + "displayName": { + "description": "The display name of the VM. Note that this value is not necessarily unique.", + "type": "string" + }, + "instanceType": { + "description": "The instance type of the VM.", + "type": "string" + }, + "memoryMb": { + "description": "The memory size of the VM in MB.", + "format": "int32", + "type": "integer" + }, + "osDescription": { + "description": "The VM's OS.", + "type": "string" + }, + "powerState": { + "description": "Output only. The power state of the VM at the moment list was taken.", + "enum": [ + "POWER_STATE_UNSPECIFIED", + "ON", + "OFF", + "SUSPENDED", + "PENDING" + ], + "enumDescriptions": [ + "Power state is not specified.", + "The VM is turned on.", + "The VM is turned off.", + "The VM is suspended. This is similar to hibernation or sleep mode.", + "The VM is starting." + ], + "readOnly": true, + "type": "string" + }, + "securityGroups": { + "description": "The security groups the VM belongs to.", + "items": { + "$ref": "AwsSecurityGroup" + }, + "type": "array" + }, + "sourceDescription": { + "description": "The descriptive name of the AWS's source this VM is connected to.", + "type": "string" + }, + "sourceId": { + "description": "The id of the AWS's source this VM is connected to.", + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The tags of the VM.", + "type": "object" + }, + "vmId": { + "description": "The VM ID in AWS.", + "type": "string" + }, + "vpcId": { + "description": "The VPC ID the VM belongs to.", + "type": "string" + }, + "zone": { + "description": "The AWS zone of the VM.", + "type": "string" + } + }, + "type": "object" + }, + "AwsVmsDetails": { + "description": "AWSVmsDetails describes VMs in AWS.", + "id": "AwsVmsDetails", + "properties": { + "details": { + "description": "The details of the AWS VMs.", + "items": { + "$ref": "AwsVmDetails" + }, + "type": "array" + } + }, + "type": "object" + }, "CancelCloneJobRequest": { "description": "Request message for 'CancelCloneJob' request.", "id": "CancelCloneJobRequest", @@ -2758,6 +2986,10 @@ "description": "Response message for fetchInventory.", "id": "FetchInventoryResponse", "properties": { + "awsVms": { + "$ref": "AwsVmsDetails", + "description": "The description of the VMs in a Source of type AWS." + }, "nextPageToken": { "description": "Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "readOnly": true, @@ -3182,6 +3414,11 @@ "description": "MigratingVm describes the VM that will be migrated from a Source environment and its replication state.", "id": "MigratingVm", "properties": { + "awsSourceVmDetails": { + "$ref": "AwsSourceVmDetails", + "description": "Output only. Details of the VM from an AWS source.", + "readOnly": true + }, "computeEngineTargetDefaults": { "$ref": "ComputeEngineTargetDefaults", "description": "Details of the target VM in Compute Engine." @@ -3676,6 +3913,10 @@ "description": "Source message describes a specific vm migration Source resource. It contains the source environment information.", "id": "Source", "properties": { + "aws": { + "$ref": "AwsSourceDetails", + "description": "AWS type source details." + }, "createTime": { "description": "Output only. The create time timestamp.", "format": "google-datetime",