From 0ceba92e265333ef6433d6926bf398ad2e3553c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Feb 2022 02:05:03 +0000 Subject: [PATCH] docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#26) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 --- ..._metadata.google.cloud.vmmigration.v1.json | 2031 +++++++++++++++++ .../v1/vm_migration.add_group_migration.js | 9 +- .../v1/vm_migration.cancel_clone_job.js | 9 +- .../v1/vm_migration.cancel_cutover_job.js | 9 +- .../v1/vm_migration.create_clone_job.js | 9 +- .../v1/vm_migration.create_cutover_job.js | 9 +- ...m_migration.create_datacenter_connector.js | 9 +- .../generated/v1/vm_migration.create_group.js | 9 +- .../v1/vm_migration.create_migrating_vm.js | 9 +- .../v1/vm_migration.create_source.js | 9 +- .../v1/vm_migration.create_target_project.js | 9 +- .../vm_migration.create_utilization_report.js | 9 +- ...m_migration.delete_datacenter_connector.js | 9 +- .../generated/v1/vm_migration.delete_group.js | 9 +- .../v1/vm_migration.delete_migrating_vm.js | 9 +- .../v1/vm_migration.delete_source.js | 9 +- .../v1/vm_migration.delete_target_project.js | 9 +- .../vm_migration.delete_utilization_report.js | 9 +- .../v1/vm_migration.fetch_inventory.js | 9 +- .../v1/vm_migration.finalize_migration.js | 9 +- .../v1/vm_migration.get_clone_job.js | 9 +- .../v1/vm_migration.get_cutover_job.js | 9 +- .../vm_migration.get_datacenter_connector.js | 9 +- .../generated/v1/vm_migration.get_group.js | 9 +- .../v1/vm_migration.get_migrating_vm.js | 9 +- .../generated/v1/vm_migration.get_source.js | 9 +- .../v1/vm_migration.get_target_project.js | 9 +- .../v1/vm_migration.get_utilization_report.js | 9 +- .../v1/vm_migration.list_clone_jobs.js | 9 +- .../v1/vm_migration.list_cutover_jobs.js | 9 +- ...vm_migration.list_datacenter_connectors.js | 9 +- .../generated/v1/vm_migration.list_groups.js | 9 +- .../v1/vm_migration.list_migrating_vms.js | 9 +- .../generated/v1/vm_migration.list_sources.js | 9 +- .../v1/vm_migration.list_target_projects.js | 9 +- .../vm_migration.list_utilization_reports.js | 9 +- .../v1/vm_migration.pause_migration.js | 9 +- .../v1/vm_migration.remove_group_migration.js | 9 +- .../v1/vm_migration.resume_migration.js | 9 +- .../v1/vm_migration.start_migration.js | 9 +- .../generated/v1/vm_migration.update_group.js | 9 +- .../v1/vm_migration.update_migrating_vm.js | 9 +- .../v1/vm_migration.update_source.js | 9 +- .../v1/vm_migration.update_target_project.js | 9 +- .../src/v1/vm_migration_client.ts | 5 +- .../test/gapic_vm_migration_v1.ts | 166 +- 46 files changed, 2498 insertions(+), 91 deletions(-) create mode 100644 packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json diff --git a/packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json b/packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata.google.cloud.vmmigration.v1.json new file mode 100644 index 00000000000..b506ccc5bba --- /dev/null +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.add_group_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.add_group_migration.js index a841a54166a..9f5e89df1dc 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.add_group_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_clone_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_clone_job.js index 598b4a06897..50fcf529dd3 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_clone_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_cutover_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_cutover_job.js index ba878c6625c..1f5abc198fd 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.cancel_cutover_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_clone_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_clone_job.js index 7905dcf8725..1566de59ff2 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_clone_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_cutover_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_cutover_job.js index f27ec4e45a3..0b8544a97e0 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_cutover_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_datacenter_connector.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_datacenter_connector.js index d31290c9158..567ce16ef8e 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_datacenter_connector.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_group.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_group.js index eb093e5286b..0d046089f95 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_group.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_migrating_vm.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_migrating_vm.js index 7ff270ba03c..581ef241937 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_migrating_vm.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_source.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_source.js index 566ab6eb0f4..73bee3357ae 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_source.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_target_project.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_target_project.js index f2322153805..4ef80db1308 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_target_project.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_utilization_report.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_utilization_report.js index 2030e90f42f..6557d5d5619 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.create_utilization_report.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_datacenter_connector.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_datacenter_connector.js index 839be4ffbea..cca35a46dc2 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_datacenter_connector.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_group.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_group.js index 6eda1858333..9a87e2f42ac 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_group.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_migrating_vm.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_migrating_vm.js index 01c23bcb66a..14b2a7c33b6 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_migrating_vm.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_source.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_source.js index 0d160bbd717..a974032a3cc 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_source.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_target_project.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_target_project.js index 15929cc5c65..9d0a4e6534e 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_target_project.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_utilization_report.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_utilization_report.js index df777f227ff..4590f2e3c8f 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.delete_utilization_report.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.fetch_inventory.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.fetch_inventory.js index 7b6a05e33c3..64298adb499 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.fetch_inventory.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.finalize_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.finalize_migration.js index ff2a0bc7658..235e40b536f 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.finalize_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_clone_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_clone_job.js index 205e52d01f0..e84209ad766 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_clone_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_cutover_job.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_cutover_job.js index 44a6669d23e..3725ce8fb87 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_cutover_job.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_datacenter_connector.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_datacenter_connector.js index ff317b70278..25c443303d4 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_datacenter_connector.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_group.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_group.js index 8516eef27b5..53a174c1bc6 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_group.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_migrating_vm.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_migrating_vm.js index 3f65e09cd7d..4bd02d12df7 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_migrating_vm.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_source.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_source.js index 893582a611b..d77182980c8 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_source.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_target_project.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_target_project.js index d8feea077d7..1ef443dcc47 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_target_project.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_utilization_report.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_utilization_report.js index 2fc2e1a59d3..a996c454b6a 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.get_utilization_report.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_clone_jobs.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_clone_jobs.js index e0fd6df4180..a3d79617d89 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_clone_jobs.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_cutover_jobs.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_cutover_jobs.js index 3e5e36e51d3..1735e9365be 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_cutover_jobs.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_datacenter_connectors.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_datacenter_connectors.js index 1ef139386dd..b74253e23cd 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_datacenter_connectors.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_groups.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_groups.js index b924eb03c12..29770cd69d7 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_groups.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_migrating_vms.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_migrating_vms.js index b3b3f4b6b24..bf12feca936 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_migrating_vms.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_sources.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_sources.js index 7815867f3f8..c256c375bb7 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_sources.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_target_projects.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_target_projects.js index 527e3d25075..74d63ad343c 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_target_projects.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_utilization_reports.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_utilization_reports.js index 7be4f85c465..a4d757cfd92 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.list_utilization_reports.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.pause_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.pause_migration.js index a0bf7ebbdf6..064be00f2be 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.pause_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.remove_group_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.remove_group_migration.js index b1fd345871f..4c13308e065 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.remove_group_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.resume_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.resume_migration.js index 5348c040bad..8a79c8d65c2 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.resume_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.start_migration.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.start_migration.js index f407b7ad262..cb39d223936 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.start_migration.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_group.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_group.js index d1f14cb5476..1e1fa59ef78 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_group.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_migrating_vm.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_migrating_vm.js index f249bfc883f..22f2af10eb5 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_migrating_vm.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_source.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_source.js index 0018209e875..c6d6e60b5b6 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_source.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_target_project.js b/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_target_project.js index f1941eb8f9b..0a00d5a16f0 100644 --- a/packages/google-cloud-vmmigration/samples/generated/v1/vm_migration.update_target_project.js +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/src/v1/vm_migration_client.ts b/packages/google-cloud-vmmigration/src/v1/vm_migration_client.ts index 6907acfea82..3abb53ee829 100644 --- a/packages/google-cloud-vmmigration/src/v1/vm_migration_client.ts +++ b/packages/google-cloud-vmmigration/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/packages/google-cloud-vmmigration/test/gapic_vm_migration_v1.ts b/packages/google-cloud-vmmigration/test/gapic_vm_migration_v1.ts index 492a29403b3..8f3d2741c3c 100644 --- a/packages/google-cloud-vmmigration/test/gapic_vm_migration_v1.ts +++ b/packages/google-cloud-vmmigration/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', () => {