diff --git a/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json b/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json new file mode 100644 index 0000000..b506ccc --- /dev/null +++ b/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json @@ -0,0 +1,2031 @@ +{ + "clientLibrary": { + "name": "nodejs-vmmigration", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.vmmigration.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListSources_async", + "title": "VmMigration listSources Sample", + "origin": "API_DEFINITION", + "description": " Lists Sources in a given project and location.", + "canonical": true, + "file": "vm_migration.list_sources.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSources", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListSources", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListSourcesResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListSources", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetSource_async", + "title": "VmMigration getSource Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single Source.", + "canonical": true, + "file": "vm_migration.get_source.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetSource", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.Source", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateSource_async", + "title": "VmMigration createSource Sample", + "origin": "API_DEFINITION", + "description": " Creates a new Source in a given project and location.", + "canonical": true, + "file": "vm_migration.create_source.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateSource", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source_id", + "type": "TYPE_STRING" + }, + { + "name": "source", + "type": ".google.cloud.vmmigration.v1.Source" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateSource_async", + "title": "VmMigration updateSource Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single Source.", + "canonical": true, + "file": "vm_migration.update_source.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateSource", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "source", + "type": ".google.cloud.vmmigration.v1.Source" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteSource_async", + "title": "VmMigration deleteSource Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single Source.", + "canonical": true, + "file": "vm_migration.delete_source.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteSource", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_FetchInventory_async", + "title": "VmMigration fetchInventory Sample", + "origin": "API_DEFINITION", + "description": " List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.", + "canonical": true, + "file": "vm_migration.fetch_inventory.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchInventory", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchInventory", + "async": true, + "parameters": [ + { + "name": "source", + "type": "TYPE_STRING" + }, + { + "name": "force_refresh", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.vmmigration.v1.FetchInventoryResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "FetchInventory", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchInventory", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListUtilizationReports_async", + "title": "VmMigration listUtilizationReports Sample", + "origin": "API_DEFINITION", + "description": " Lists Utilization Reports of the given Source.", + "canonical": true, + "file": "vm_migration.list_utilization_reports.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUtilizationReports", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.vmmigration.v1.UtilizationReportView" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListUtilizationReportsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListUtilizationReports", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetUtilizationReport_async", + "title": "VmMigration getUtilizationReport Sample", + "origin": "API_DEFINITION", + "description": " Gets a single Utilization Report.", + "canonical": true, + "file": "vm_migration.get_utilization_report.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.vmmigration.v1.UtilizationReportView" + } + ], + "resultType": ".google.cloud.vmmigration.v1.UtilizationReport", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateUtilizationReport_async", + "title": "VmMigration createUtilizationReport Sample", + "origin": "API_DEFINITION", + "description": " Creates a new UtilizationReport.", + "canonical": true, + "file": "vm_migration.create_utilization_report.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "utilization_report", + "type": ".google.cloud.vmmigration.v1.UtilizationReport" + }, + { + "name": "utilization_report_id", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteUtilizationReport_async", + "title": "VmMigration deleteUtilizationReport Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single Utilization Report.", + "canonical": true, + "file": "vm_migration.delete_utilization_report.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListDatacenterConnectors_async", + "title": "VmMigration listDatacenterConnectors Sample", + "origin": "API_DEFINITION", + "description": " Lists DatacenterConnectors in a given Source.", + "canonical": true, + "file": "vm_migration.list_datacenter_connectors.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDatacenterConnectors", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListDatacenterConnectors", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetDatacenterConnector_async", + "title": "VmMigration getDatacenterConnector Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single DatacenterConnector.", + "canonical": true, + "file": "vm_migration.get_datacenter_connector.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.DatacenterConnector", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateDatacenterConnector_async", + "title": "VmMigration createDatacenterConnector Sample", + "origin": "API_DEFINITION", + "description": " Creates a new DatacenterConnector in a given Source.", + "canonical": true, + "file": "vm_migration.create_datacenter_connector.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "datacenter_connector_id", + "type": "TYPE_STRING" + }, + { + "name": "datacenter_connector", + "type": ".google.cloud.vmmigration.v1.DatacenterConnector" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteDatacenterConnector_async", + "title": "VmMigration deleteDatacenterConnector Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single DatacenterConnector.", + "canonical": true, + "file": "vm_migration.delete_datacenter_connector.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateMigratingVm_async", + "title": "VmMigration createMigratingVm Sample", + "origin": "API_DEFINITION", + "description": " Creates a new MigratingVm in a given Source.", + "canonical": true, + "file": "vm_migration.create_migrating_vm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "migrating_vm_id", + "type": "TYPE_STRING" + }, + { + "name": "migrating_vm", + "type": ".google.cloud.vmmigration.v1.MigratingVm" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListMigratingVms_async", + "title": "VmMigration listMigratingVms Sample", + "origin": "API_DEFINITION", + "description": " Lists MigratingVms in a given Source.", + "canonical": true, + "file": "vm_migration.list_migrating_vms.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMigratingVms", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListMigratingVms", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListMigratingVmsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListMigratingVms", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListMigratingVms", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetMigratingVm_async", + "title": "VmMigration getMigratingVm Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single MigratingVm.", + "canonical": true, + "file": "vm_migration.get_migrating_vm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetMigratingVm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.MigratingVm", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateMigratingVm_async", + "title": "VmMigration updateMigratingVm Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single MigratingVm.", + "canonical": true, + "file": "vm_migration.update_migrating_vm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "migrating_vm", + "type": ".google.cloud.vmmigration.v1.MigratingVm" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "UpdateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteMigratingVm_async", + "title": "VmMigration deleteMigratingVm Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single MigratingVm.", + "canonical": true, + "file": "vm_migration.delete_migrating_vm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_StartMigration_async", + "title": "VmMigration startMigration Sample", + "origin": "API_DEFINITION", + "description": " Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.", + "canonical": true, + "file": "vm_migration.start_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StartMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.StartMigration", + "async": true, + "parameters": [ + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "StartMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.StartMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ResumeMigration_async", + "title": "VmMigration resumeMigration Sample", + "origin": "API_DEFINITION", + "description": " Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.", + "canonical": true, + "file": "vm_migration.resume_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ResumeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ResumeMigration", + "async": true, + "parameters": [ + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ResumeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ResumeMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_PauseMigration_async", + "title": "VmMigration pauseMigration Sample", + "origin": "API_DEFINITION", + "description": " Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.", + "canonical": true, + "file": "vm_migration.pause_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PauseMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.PauseMigration", + "async": true, + "parameters": [ + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "PauseMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.PauseMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_FinalizeMigration_async", + "title": "VmMigration finalizeMigration Sample", + "origin": "API_DEFINITION", + "description": " Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.", + "canonical": true, + "file": "vm_migration.finalize_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FinalizeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FinalizeMigration", + "async": true, + "parameters": [ + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "FinalizeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FinalizeMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateCloneJob_async", + "title": "VmMigration createCloneJob Sample", + "origin": "API_DEFINITION", + "description": " Initiates a Clone of a specific migrating VM.", + "canonical": true, + "file": "vm_migration.create_clone_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCloneJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "clone_job_id", + "type": "TYPE_STRING" + }, + { + "name": "clone_job", + "type": ".google.cloud.vmmigration.v1.CloneJob" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CancelCloneJob_async", + "title": "VmMigration cancelCloneJob Sample", + "origin": "API_DEFINITION", + "description": " Initiates the cancellation of a running clone job.", + "canonical": true, + "file": "vm_migration.cancel_clone_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCloneJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CancelCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListCloneJobs_async", + "title": "VmMigration listCloneJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists CloneJobs of a given migrating VM.", + "canonical": true, + "file": "vm_migration.list_clone_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCloneJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCloneJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListCloneJobsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListCloneJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCloneJobs", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetCloneJob_async", + "title": "VmMigration getCloneJob Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single CloneJob.", + "canonical": true, + "file": "vm_migration.get_clone_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCloneJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.CloneJob", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateCutoverJob_async", + "title": "VmMigration createCutoverJob Sample", + "origin": "API_DEFINITION", + "description": " Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.", + "canonical": true, + "file": "vm_migration.create_cutover_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "cutover_job_id", + "type": "TYPE_STRING" + }, + { + "name": "cutover_job", + "type": ".google.cloud.vmmigration.v1.CutoverJob" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CancelCutoverJob_async", + "title": "VmMigration cancelCutoverJob Sample", + "origin": "API_DEFINITION", + "description": " Initiates the cancellation of a running cutover job.", + "canonical": true, + "file": "vm_migration.cancel_cutover_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CancelCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListCutoverJobs_async", + "title": "VmMigration listCutoverJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists CutoverJobs of a given migrating VM.", + "canonical": true, + "file": "vm_migration.list_cutover_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCutoverJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListCutoverJobsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListCutoverJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetCutoverJob_async", + "title": "VmMigration getCutoverJob Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single CutoverJob.", + "canonical": true, + "file": "vm_migration.get_cutover_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCutoverJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.CutoverJob", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListGroups_async", + "title": "VmMigration listGroups Sample", + "origin": "API_DEFINITION", + "description": " Lists Groups in a given project and location.", + "canonical": true, + "file": "vm_migration.list_groups.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGroups", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListGroups", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListGroupsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListGroups", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListGroups", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetGroup_async", + "title": "VmMigration getGroup Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single Group.", + "canonical": true, + "file": "vm_migration.get_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetGroup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.Group", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateGroup_async", + "title": "VmMigration createGroup Sample", + "origin": "API_DEFINITION", + "description": " Creates a new Group in a given project and location.", + "canonical": true, + "file": "vm_migration.create_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateGroup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "group_id", + "type": "TYPE_STRING" + }, + { + "name": "group", + "type": ".google.cloud.vmmigration.v1.Group" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateGroup_async", + "title": "VmMigration updateGroup Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single Group.", + "canonical": true, + "file": "vm_migration.update_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateGroup", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "group", + "type": ".google.cloud.vmmigration.v1.Group" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteGroup_async", + "title": "VmMigration deleteGroup Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single Group.", + "canonical": true, + "file": "vm_migration.delete_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteGroup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_AddGroupMigration_async", + "title": "VmMigration addGroupMigration Sample", + "origin": "API_DEFINITION", + "description": " Adds a MigratingVm to a Group.", + "canonical": true, + "file": "vm_migration.add_group_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AddGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.AddGroupMigration", + "async": true, + "parameters": [ + { + "name": "group", + "type": "TYPE_STRING" + }, + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "AddGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.AddGroupMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_RemoveGroupMigration_async", + "title": "VmMigration removeGroupMigration Sample", + "origin": "API_DEFINITION", + "description": " Removes a MigratingVm from a Group.", + "canonical": true, + "file": "vm_migration.remove_group_migration.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RemoveGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration", + "async": true, + "parameters": [ + { + "name": "group", + "type": "TYPE_STRING" + }, + { + "name": "migrating_vm", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "RemoveGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListTargetProjects_async", + "title": "VmMigration listTargetProjects Sample", + "origin": "API_DEFINITION", + "description": " Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", + "canonical": true, + "file": "vm_migration.list_target_projects.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListTargetProjects", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListTargetProjects", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.ListTargetProjectsResponse", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "ListTargetProjects", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListTargetProjects", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetTargetProject_async", + "title": "VmMigration getTargetProject Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", + "canonical": true, + "file": "vm_migration.get_target_project.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetTargetProject", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.vmmigration.v1.TargetProject", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "GetTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateTargetProject_async", + "title": "VmMigration createTargetProject Sample", + "origin": "API_DEFINITION", + "description": " Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", + "canonical": true, + "file": "vm_migration.create_target_project.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateTargetProject", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "target_project_id", + "type": "TYPE_STRING" + }, + { + "name": "target_project", + "type": ".google.cloud.vmmigration.v1.TargetProject" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "CreateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateTargetProject_async", + "title": "VmMigration updateTargetProject Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", + "canonical": true, + "file": "vm_migration.update_target_project.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "target_project", + "type": ".google.cloud.vmmigration.v1.TargetProject" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "UpdateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteTargetProject_async", + "title": "VmMigration deleteTargetProject Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", + "canonical": true, + "file": "vm_migration.delete_target_project.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "VmMigrationClient", + "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" + }, + "method": { + "shortName": "DeleteTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + } + } + ] +} diff --git a/samples/generated/v1/vm_migration.add_group_migration.js b/samples/generated/v1/vm_migration.add_group_migration.js index a841a54..9f5e89d 100644 --- a/samples/generated/v1/vm_migration.add_group_migration.js +++ b/samples/generated/v1/vm_migration.add_group_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.cancel_clone_job.js b/samples/generated/v1/vm_migration.cancel_clone_job.js index 598b4a0..50fcf52 100644 --- a/samples/generated/v1/vm_migration.cancel_clone_job.js +++ b/samples/generated/v1/vm_migration.cancel_clone_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.cancel_cutover_job.js b/samples/generated/v1/vm_migration.cancel_cutover_job.js index ba878c6..1f5abc1 100644 --- a/samples/generated/v1/vm_migration.cancel_cutover_job.js +++ b/samples/generated/v1/vm_migration.cancel_cutover_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_clone_job.js b/samples/generated/v1/vm_migration.create_clone_job.js index 7905dcf..1566de5 100644 --- a/samples/generated/v1/vm_migration.create_clone_job.js +++ b/samples/generated/v1/vm_migration.create_clone_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_cutover_job.js b/samples/generated/v1/vm_migration.create_cutover_job.js index f27ec4e..0b8544a 100644 --- a/samples/generated/v1/vm_migration.create_cutover_job.js +++ b/samples/generated/v1/vm_migration.create_cutover_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_datacenter_connector.js b/samples/generated/v1/vm_migration.create_datacenter_connector.js index d31290c..567ce16 100644 --- a/samples/generated/v1/vm_migration.create_datacenter_connector.js +++ b/samples/generated/v1/vm_migration.create_datacenter_connector.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_group.js b/samples/generated/v1/vm_migration.create_group.js index eb093e5..0d04608 100644 --- a/samples/generated/v1/vm_migration.create_group.js +++ b/samples/generated/v1/vm_migration.create_group.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_migrating_vm.js b/samples/generated/v1/vm_migration.create_migrating_vm.js index 7ff270b..581ef24 100644 --- a/samples/generated/v1/vm_migration.create_migrating_vm.js +++ b/samples/generated/v1/vm_migration.create_migrating_vm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_source.js b/samples/generated/v1/vm_migration.create_source.js index 566ab6e..73bee33 100644 --- a/samples/generated/v1/vm_migration.create_source.js +++ b/samples/generated/v1/vm_migration.create_source.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_target_project.js b/samples/generated/v1/vm_migration.create_target_project.js index f232215..4ef80db 100644 --- a/samples/generated/v1/vm_migration.create_target_project.js +++ b/samples/generated/v1/vm_migration.create_target_project.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.create_utilization_report.js b/samples/generated/v1/vm_migration.create_utilization_report.js index 2030e90..6557d5d 100644 --- a/samples/generated/v1/vm_migration.create_utilization_report.js +++ b/samples/generated/v1/vm_migration.create_utilization_report.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_datacenter_connector.js b/samples/generated/v1/vm_migration.delete_datacenter_connector.js index 839be4f..cca35a4 100644 --- a/samples/generated/v1/vm_migration.delete_datacenter_connector.js +++ b/samples/generated/v1/vm_migration.delete_datacenter_connector.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_group.js b/samples/generated/v1/vm_migration.delete_group.js index 6eda185..9a87e2f 100644 --- a/samples/generated/v1/vm_migration.delete_group.js +++ b/samples/generated/v1/vm_migration.delete_group.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_migrating_vm.js b/samples/generated/v1/vm_migration.delete_migrating_vm.js index 01c23bc..14b2a7c 100644 --- a/samples/generated/v1/vm_migration.delete_migrating_vm.js +++ b/samples/generated/v1/vm_migration.delete_migrating_vm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_source.js b/samples/generated/v1/vm_migration.delete_source.js index 0d160bb..a974032 100644 --- a/samples/generated/v1/vm_migration.delete_source.js +++ b/samples/generated/v1/vm_migration.delete_source.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_target_project.js b/samples/generated/v1/vm_migration.delete_target_project.js index 15929cc..9d0a4e6 100644 --- a/samples/generated/v1/vm_migration.delete_target_project.js +++ b/samples/generated/v1/vm_migration.delete_target_project.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.delete_utilization_report.js b/samples/generated/v1/vm_migration.delete_utilization_report.js index df777f2..4590f2e 100644 --- a/samples/generated/v1/vm_migration.delete_utilization_report.js +++ b/samples/generated/v1/vm_migration.delete_utilization_report.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.fetch_inventory.js b/samples/generated/v1/vm_migration.fetch_inventory.js index 7b6a05e..64298ad 100644 --- a/samples/generated/v1/vm_migration.fetch_inventory.js +++ b/samples/generated/v1/vm_migration.fetch_inventory.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.finalize_migration.js b/samples/generated/v1/vm_migration.finalize_migration.js index ff2a0bc..235e40b 100644 --- a/samples/generated/v1/vm_migration.finalize_migration.js +++ b/samples/generated/v1/vm_migration.finalize_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_clone_job.js b/samples/generated/v1/vm_migration.get_clone_job.js index 205e52d..e84209a 100644 --- a/samples/generated/v1/vm_migration.get_clone_job.js +++ b/samples/generated/v1/vm_migration.get_clone_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_cutover_job.js b/samples/generated/v1/vm_migration.get_cutover_job.js index 44a6669..3725ce8 100644 --- a/samples/generated/v1/vm_migration.get_cutover_job.js +++ b/samples/generated/v1/vm_migration.get_cutover_job.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_datacenter_connector.js b/samples/generated/v1/vm_migration.get_datacenter_connector.js index ff317b7..25c4433 100644 --- a/samples/generated/v1/vm_migration.get_datacenter_connector.js +++ b/samples/generated/v1/vm_migration.get_datacenter_connector.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_group.js b/samples/generated/v1/vm_migration.get_group.js index 8516eef..53a174c 100644 --- a/samples/generated/v1/vm_migration.get_group.js +++ b/samples/generated/v1/vm_migration.get_group.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_migrating_vm.js b/samples/generated/v1/vm_migration.get_migrating_vm.js index 3f65e09..4bd02d1 100644 --- a/samples/generated/v1/vm_migration.get_migrating_vm.js +++ b/samples/generated/v1/vm_migration.get_migrating_vm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_source.js b/samples/generated/v1/vm_migration.get_source.js index 893582a..d771829 100644 --- a/samples/generated/v1/vm_migration.get_source.js +++ b/samples/generated/v1/vm_migration.get_source.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_target_project.js b/samples/generated/v1/vm_migration.get_target_project.js index d8feea0..1ef443d 100644 --- a/samples/generated/v1/vm_migration.get_target_project.js +++ b/samples/generated/v1/vm_migration.get_target_project.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.get_utilization_report.js b/samples/generated/v1/vm_migration.get_utilization_report.js index 2fc2e1a..a996c45 100644 --- a/samples/generated/v1/vm_migration.get_utilization_report.js +++ b/samples/generated/v1/vm_migration.get_utilization_report.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_clone_jobs.js b/samples/generated/v1/vm_migration.list_clone_jobs.js index e0fd6df..a3d7961 100644 --- a/samples/generated/v1/vm_migration.list_clone_jobs.js +++ b/samples/generated/v1/vm_migration.list_clone_jobs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_cutover_jobs.js b/samples/generated/v1/vm_migration.list_cutover_jobs.js index 3e5e36e..1735e93 100644 --- a/samples/generated/v1/vm_migration.list_cutover_jobs.js +++ b/samples/generated/v1/vm_migration.list_cutover_jobs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_datacenter_connectors.js b/samples/generated/v1/vm_migration.list_datacenter_connectors.js index 1ef1393..b74253e 100644 --- a/samples/generated/v1/vm_migration.list_datacenter_connectors.js +++ b/samples/generated/v1/vm_migration.list_datacenter_connectors.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_groups.js b/samples/generated/v1/vm_migration.list_groups.js index b924eb0..29770cd 100644 --- a/samples/generated/v1/vm_migration.list_groups.js +++ b/samples/generated/v1/vm_migration.list_groups.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_migrating_vms.js b/samples/generated/v1/vm_migration.list_migrating_vms.js index b3b3f4b..bf12fec 100644 --- a/samples/generated/v1/vm_migration.list_migrating_vms.js +++ b/samples/generated/v1/vm_migration.list_migrating_vms.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_sources.js b/samples/generated/v1/vm_migration.list_sources.js index 7815867..c256c37 100644 --- a/samples/generated/v1/vm_migration.list_sources.js +++ b/samples/generated/v1/vm_migration.list_sources.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_target_projects.js b/samples/generated/v1/vm_migration.list_target_projects.js index 527e3d2..74d63ad 100644 --- a/samples/generated/v1/vm_migration.list_target_projects.js +++ b/samples/generated/v1/vm_migration.list_target_projects.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.list_utilization_reports.js b/samples/generated/v1/vm_migration.list_utilization_reports.js index 7be4f85..a4d757c 100644 --- a/samples/generated/v1/vm_migration.list_utilization_reports.js +++ b/samples/generated/v1/vm_migration.list_utilization_reports.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.pause_migration.js b/samples/generated/v1/vm_migration.pause_migration.js index a0bf7eb..064be00 100644 --- a/samples/generated/v1/vm_migration.pause_migration.js +++ b/samples/generated/v1/vm_migration.pause_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.remove_group_migration.js b/samples/generated/v1/vm_migration.remove_group_migration.js index b1fd345..4c13308 100644 --- a/samples/generated/v1/vm_migration.remove_group_migration.js +++ b/samples/generated/v1/vm_migration.remove_group_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.resume_migration.js b/samples/generated/v1/vm_migration.resume_migration.js index 5348c04..8a79c8d 100644 --- a/samples/generated/v1/vm_migration.resume_migration.js +++ b/samples/generated/v1/vm_migration.resume_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.start_migration.js b/samples/generated/v1/vm_migration.start_migration.js index f407b7a..cb39d22 100644 --- a/samples/generated/v1/vm_migration.start_migration.js +++ b/samples/generated/v1/vm_migration.start_migration.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.update_group.js b/samples/generated/v1/vm_migration.update_group.js index d1f14cb..1e1fa59 100644 --- a/samples/generated/v1/vm_migration.update_group.js +++ b/samples/generated/v1/vm_migration.update_group.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.update_migrating_vm.js b/samples/generated/v1/vm_migration.update_migrating_vm.js index f249bfc..22f2af1 100644 --- a/samples/generated/v1/vm_migration.update_migrating_vm.js +++ b/samples/generated/v1/vm_migration.update_migrating_vm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.update_source.js b/samples/generated/v1/vm_migration.update_source.js index 0018209..c6d6e60 100644 --- a/samples/generated/v1/vm_migration.update_source.js +++ b/samples/generated/v1/vm_migration.update_source.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/samples/generated/v1/vm_migration.update_target_project.js b/samples/generated/v1/vm_migration.update_target_project.js index f1941eb..0a00d5a 100644 --- a/samples/generated/v1/vm_migration.update_target_project.js +++ b/samples/generated/v1/vm_migration.update_target_project.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/src/v1/vm_migration_client.ts b/src/v1/vm_migration_client.ts index 6907acf..3abb53e 100644 --- a/src/v1/vm_migration_client.ts +++ b/src/v1/vm_migration_client.ts @@ -7880,9 +7880,8 @@ export class VmMigrationClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.vmMigrationStub!.then(stub => { + if (this.vmMigrationStub && !this._terminated) { + return this.vmMigrationStub.then(stub => { this._terminated = true; stub.close(); this.operationsClient.close(); diff --git a/test/gapic_vm_migration_v1.ts b/test/gapic_vm_migration_v1.ts index 492a294..8f3d274 100644 --- a/test/gapic_vm_migration_v1.ts +++ b/test/gapic_vm_migration_v1.ts @@ -183,12 +183,27 @@ describe('v1.VmMigrationClient', () => { assert(client.vmMigrationStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new vmmigrationModule.v1.VmMigrationClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.vmMigrationStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vmMigrationStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -331,6 +346,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getSource with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetSourceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getSource(request), expectedError); + }); }); describe('fetchInventory', () => { @@ -442,6 +473,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes fetchInventory with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.FetchInventoryRequest() + ); + request.source = ''; + const expectedHeaderRequestParams = 'source='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.fetchInventory(request), expectedError); + }); }); describe('getUtilizationReport', () => { @@ -554,6 +601,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getUtilizationReport with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetUtilizationReportRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getUtilizationReport(request), expectedError); + }); }); describe('getDatacenterConnector', () => { @@ -669,6 +732,25 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDatacenterConnector with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getDatacenterConnector(request), + expectedError + ); + }); }); describe('getMigratingVm', () => { @@ -780,6 +862,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getMigratingVm with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetMigratingVmRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getMigratingVm(request), expectedError); + }); }); describe('getCloneJob', () => { @@ -891,6 +989,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getCloneJob with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetCloneJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCloneJob(request), expectedError); + }); }); describe('getCutoverJob', () => { @@ -1002,6 +1116,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getCutoverJob with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetCutoverJobRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCutoverJob(request), expectedError); + }); }); describe('getGroup', () => { @@ -1110,6 +1240,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getGroup with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetGroupRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getGroup(request), expectedError); + }); }); describe('getTargetProject', () => { @@ -1221,6 +1367,22 @@ describe('v1.VmMigrationClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getTargetProject with closed client', async () => { + const client = new vmmigrationModule.v1.VmMigrationClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.vmmigration.v1.GetTargetProjectRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getTargetProject(request), expectedError); + }); }); describe('createSource', () => {