@googleapis/vmmigration 13.0.1 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1alpha1.ts CHANGED
@@ -310,7 +310,7 @@ export namespace vmmigration_v1alpha1 {
310
310
  */
311
311
  committedStorageMb?: string | null;
312
312
  /**
313
- * The number of cpus the VM has.
313
+ * The number of CPU cores the VM has.
314
314
  */
315
315
  cpuCount?: number | null;
316
316
  /**
@@ -353,6 +353,10 @@ export namespace vmmigration_v1alpha1 {
353
353
  * The tags of the VM.
354
354
  */
355
355
  tags?: {[key: string]: string} | null;
356
+ /**
357
+ * The number of vCPUs the VM has. It is calculated as the number of CPU cores * threads per CPU the VM has.
358
+ */
359
+ vcpuCount?: number | null;
356
360
  /**
357
361
  * The virtualization type.
358
362
  */
@@ -722,6 +726,10 @@ export namespace vmmigration_v1alpha1 {
722
726
  * Compute instance scheduling information (if empty default is used).
723
727
  */
724
728
  computeScheduling?: Schema$ComputeScheduling;
729
+ /**
730
+ * Optional. Additional replica zones of the target regional disks. If this list is not empty a regional disk will be created. The first supported zone would be the one stated in the zone field. The rest are taken from this list. Please refer to the [regional disk creation API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources) for further details about regional vs zonal disks. If not specified, a zonal disk will be created in the same zone the VM is created.
731
+ */
732
+ diskReplicaZones?: string[] | null;
725
733
  /**
726
734
  * The disk type to use in the VM.
727
735
  */
@@ -815,6 +823,10 @@ export namespace vmmigration_v1alpha1 {
815
823
  * Compute instance scheduling information (if empty default is used).
816
824
  */
817
825
  computeScheduling?: Schema$ComputeScheduling;
826
+ /**
827
+ * Optional. Additional replica zones of the target regional disks. If this list is not empty a regional disk will be created. The first supported zone would be the one stated in the zone field. The rest are taken from this list. Please refer to the [regional disk creation API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources) for further details about regional vs zonal disks. If not specified, a zonal disk will be created in the same zone the VM is created.
828
+ */
829
+ diskReplicaZones?: string[] | null;
818
830
  /**
819
831
  * The disk type to use in the VM.
820
832
  */
@@ -1273,6 +1285,27 @@ export namespace vmmigration_v1alpha1 {
1273
1285
  */
1274
1286
  kmsKey?: string | null;
1275
1287
  }
1288
+ /**
1289
+ * Expiration holds information about the expiration of a MigratingVm.
1290
+ */
1291
+ export interface Schema$Expiration {
1292
+ /**
1293
+ * Output only. Timestamp of when this resource is considered expired.
1294
+ */
1295
+ expireTime?: string | null;
1296
+ /**
1297
+ * Output only. Describes whether the expiration can be extended.
1298
+ */
1299
+ extendable?: boolean | null;
1300
+ /**
1301
+ * Output only. The number of times expiration was extended.
1302
+ */
1303
+ extensionCount?: number | null;
1304
+ }
1305
+ /**
1306
+ * Request message for 'ExtendMigrationRequest' request.
1307
+ */
1308
+ export interface Schema$ExtendMigrationRequest {}
1276
1309
  /**
1277
1310
  * Response message for fetchInventory.
1278
1311
  */
@@ -1761,7 +1794,7 @@ export namespace vmmigration_v1alpha1 {
1761
1794
  */
1762
1795
  description?: string | null;
1763
1796
  /**
1764
- * Immutable. The encryption to apply to the machine image.
1797
+ * Immutable. The encryption to apply to the machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key.
1765
1798
  */
1766
1799
  encryption?: Schema$Encryption;
1767
1800
  /**
@@ -1777,7 +1810,7 @@ export namespace vmmigration_v1alpha1 {
1777
1810
  */
1778
1811
  machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
1779
1812
  /**
1780
- * Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses are ignored for machine image import.
1813
+ * Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.
1781
1814
  */
1782
1815
  networkInterfaces?: Schema$NetworkInterface[];
1783
1816
  /**
@@ -1857,6 +1890,10 @@ export namespace vmmigration_v1alpha1 {
1857
1890
  * Output only. Provides details on the state of the Migrating VM in case of an error in replication.
1858
1891
  */
1859
1892
  error?: Schema$Status;
1893
+ /**
1894
+ * Output only. Provides details about the expiration state of the migrating VM.
1895
+ */
1896
+ expiration?: Schema$Expiration;
1860
1897
  /**
1861
1898
  * Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
1862
1899
  */
@@ -2854,6 +2891,56 @@ export namespace vmmigration_v1alpha1 {
2854
2891
 
2855
2892
  /**
2856
2893
  * Gets information about a location.
2894
+ * @example
2895
+ * ```js
2896
+ * // Before running the sample:
2897
+ * // - Enable the API at:
2898
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2899
+ * // - Login into gcloud by running:
2900
+ * // ```sh
2901
+ * // $ gcloud auth application-default login
2902
+ * // ```
2903
+ * // - Install the npm module by running:
2904
+ * // ```sh
2905
+ * // $ npm install googleapis
2906
+ * // ```
2907
+ *
2908
+ * const {google} = require('googleapis');
2909
+ * const vmmigration = google.vmmigration('v1alpha1');
2910
+ *
2911
+ * async function main() {
2912
+ * const auth = new google.auth.GoogleAuth({
2913
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2914
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2915
+ * });
2916
+ *
2917
+ * // Acquire an auth client, and bind it to all future calls
2918
+ * const authClient = await auth.getClient();
2919
+ * google.options({auth: authClient});
2920
+ *
2921
+ * // Do the magic
2922
+ * const res = await vmmigration.projects.locations.get({
2923
+ * // Resource name for the location.
2924
+ * name: 'projects/my-project/locations/my-location',
2925
+ * });
2926
+ * console.log(res.data);
2927
+ *
2928
+ * // Example response
2929
+ * // {
2930
+ * // "displayName": "my_displayName",
2931
+ * // "labels": {},
2932
+ * // "locationId": "my_locationId",
2933
+ * // "metadata": {},
2934
+ * // "name": "my_name"
2935
+ * // }
2936
+ * }
2937
+ *
2938
+ * main().catch(e => {
2939
+ * console.error(e);
2940
+ * throw e;
2941
+ * });
2942
+ *
2943
+ * ```
2857
2944
  *
2858
2945
  * @param params - Parameters for request
2859
2946
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2942,6 +3029,61 @@ export namespace vmmigration_v1alpha1 {
2942
3029
 
2943
3030
  /**
2944
3031
  * Lists information about the supported locations for this service.
3032
+ * @example
3033
+ * ```js
3034
+ * // Before running the sample:
3035
+ * // - Enable the API at:
3036
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3037
+ * // - Login into gcloud by running:
3038
+ * // ```sh
3039
+ * // $ gcloud auth application-default login
3040
+ * // ```
3041
+ * // - Install the npm module by running:
3042
+ * // ```sh
3043
+ * // $ npm install googleapis
3044
+ * // ```
3045
+ *
3046
+ * const {google} = require('googleapis');
3047
+ * const vmmigration = google.vmmigration('v1alpha1');
3048
+ *
3049
+ * async function main() {
3050
+ * const auth = new google.auth.GoogleAuth({
3051
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3052
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3053
+ * });
3054
+ *
3055
+ * // Acquire an auth client, and bind it to all future calls
3056
+ * const authClient = await auth.getClient();
3057
+ * google.options({auth: authClient});
3058
+ *
3059
+ * // Do the magic
3060
+ * const res = await vmmigration.projects.locations.list({
3061
+ * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3062
+ * extraLocationTypes: 'placeholder-value',
3063
+ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
3064
+ * filter: 'placeholder-value',
3065
+ * // The resource that owns the locations collection, if applicable.
3066
+ * name: 'projects/my-project',
3067
+ * // The maximum number of results to return. If not set, the service selects a default.
3068
+ * pageSize: 'placeholder-value',
3069
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
3070
+ * pageToken: 'placeholder-value',
3071
+ * });
3072
+ * console.log(res.data);
3073
+ *
3074
+ * // Example response
3075
+ * // {
3076
+ * // "locations": [],
3077
+ * // "nextPageToken": "my_nextPageToken"
3078
+ * // }
3079
+ * }
3080
+ *
3081
+ * main().catch(e => {
3082
+ * console.error(e);
3083
+ * throw e;
3084
+ * });
3085
+ *
3086
+ * ```
2945
3087
  *
2946
3088
  * @param params - Parameters for request
2947
3089
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3073,6 +3215,64 @@ export namespace vmmigration_v1alpha1 {
3073
3215
 
3074
3216
  /**
3075
3217
  * Adds a MigratingVm to a Group.
3218
+ * @example
3219
+ * ```js
3220
+ * // Before running the sample:
3221
+ * // - Enable the API at:
3222
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3223
+ * // - Login into gcloud by running:
3224
+ * // ```sh
3225
+ * // $ gcloud auth application-default login
3226
+ * // ```
3227
+ * // - Install the npm module by running:
3228
+ * // ```sh
3229
+ * // $ npm install googleapis
3230
+ * // ```
3231
+ *
3232
+ * const {google} = require('googleapis');
3233
+ * const vmmigration = google.vmmigration('v1alpha1');
3234
+ *
3235
+ * async function main() {
3236
+ * const auth = new google.auth.GoogleAuth({
3237
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3238
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3239
+ * });
3240
+ *
3241
+ * // Acquire an auth client, and bind it to all future calls
3242
+ * const authClient = await auth.getClient();
3243
+ * google.options({auth: authClient});
3244
+ *
3245
+ * // Do the magic
3246
+ * const res = await vmmigration.projects.locations.groups.addGroupMigration({
3247
+ * // Required. The full path name of the Group to add to.
3248
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
3249
+ *
3250
+ * // Request body metadata
3251
+ * requestBody: {
3252
+ * // request body parameters
3253
+ * // {
3254
+ * // "migratingVm": "my_migratingVm"
3255
+ * // }
3256
+ * },
3257
+ * });
3258
+ * console.log(res.data);
3259
+ *
3260
+ * // Example response
3261
+ * // {
3262
+ * // "done": false,
3263
+ * // "error": {},
3264
+ * // "metadata": {},
3265
+ * // "name": "my_name",
3266
+ * // "response": {}
3267
+ * // }
3268
+ * }
3269
+ *
3270
+ * main().catch(e => {
3271
+ * console.error(e);
3272
+ * throw e;
3273
+ * });
3274
+ *
3275
+ * ```
3076
3276
  *
3077
3277
  * @param params - Parameters for request
3078
3278
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3165,6 +3365,73 @@ export namespace vmmigration_v1alpha1 {
3165
3365
 
3166
3366
  /**
3167
3367
  * Creates a new Group in a given project and location.
3368
+ * @example
3369
+ * ```js
3370
+ * // Before running the sample:
3371
+ * // - Enable the API at:
3372
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3373
+ * // - Login into gcloud by running:
3374
+ * // ```sh
3375
+ * // $ gcloud auth application-default login
3376
+ * // ```
3377
+ * // - Install the npm module by running:
3378
+ * // ```sh
3379
+ * // $ npm install googleapis
3380
+ * // ```
3381
+ *
3382
+ * const {google} = require('googleapis');
3383
+ * const vmmigration = google.vmmigration('v1alpha1');
3384
+ *
3385
+ * async function main() {
3386
+ * const auth = new google.auth.GoogleAuth({
3387
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3388
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3389
+ * });
3390
+ *
3391
+ * // Acquire an auth client, and bind it to all future calls
3392
+ * const authClient = await auth.getClient();
3393
+ * google.options({auth: authClient});
3394
+ *
3395
+ * // Do the magic
3396
+ * const res = await vmmigration.projects.locations.groups.create({
3397
+ * // Required. The group identifier.
3398
+ * groupId: 'placeholder-value',
3399
+ * // Required. The Group's parent.
3400
+ * parent: 'projects/my-project/locations/my-location',
3401
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3402
+ * requestId: 'placeholder-value',
3403
+ *
3404
+ * // Request body metadata
3405
+ * requestBody: {
3406
+ * // request body parameters
3407
+ * // {
3408
+ * // "createTime": "my_createTime",
3409
+ * // "description": "my_description",
3410
+ * // "displayName": "my_displayName",
3411
+ * // "migrationTargetType": "my_migrationTargetType",
3412
+ * // "name": "my_name",
3413
+ * // "updateTime": "my_updateTime"
3414
+ * // }
3415
+ * },
3416
+ * });
3417
+ * console.log(res.data);
3418
+ *
3419
+ * // Example response
3420
+ * // {
3421
+ * // "done": false,
3422
+ * // "error": {},
3423
+ * // "metadata": {},
3424
+ * // "name": "my_name",
3425
+ * // "response": {}
3426
+ * // }
3427
+ * }
3428
+ *
3429
+ * main().catch(e => {
3430
+ * console.error(e);
3431
+ * throw e;
3432
+ * });
3433
+ *
3434
+ * ```
3168
3435
  *
3169
3436
  * @param params - Parameters for request
3170
3437
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3256,6 +3523,58 @@ export namespace vmmigration_v1alpha1 {
3256
3523
 
3257
3524
  /**
3258
3525
  * Deletes a single Group.
3526
+ * @example
3527
+ * ```js
3528
+ * // Before running the sample:
3529
+ * // - Enable the API at:
3530
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3531
+ * // - Login into gcloud by running:
3532
+ * // ```sh
3533
+ * // $ gcloud auth application-default login
3534
+ * // ```
3535
+ * // - Install the npm module by running:
3536
+ * // ```sh
3537
+ * // $ npm install googleapis
3538
+ * // ```
3539
+ *
3540
+ * const {google} = require('googleapis');
3541
+ * const vmmigration = google.vmmigration('v1alpha1');
3542
+ *
3543
+ * async function main() {
3544
+ * const auth = new google.auth.GoogleAuth({
3545
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3546
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3547
+ * });
3548
+ *
3549
+ * // Acquire an auth client, and bind it to all future calls
3550
+ * const authClient = await auth.getClient();
3551
+ * google.options({auth: authClient});
3552
+ *
3553
+ * // Do the magic
3554
+ * const res = await vmmigration.projects.locations.groups.delete({
3555
+ * // Required. The Group name.
3556
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3557
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3558
+ * requestId: 'placeholder-value',
3559
+ * });
3560
+ * console.log(res.data);
3561
+ *
3562
+ * // Example response
3563
+ * // {
3564
+ * // "done": false,
3565
+ * // "error": {},
3566
+ * // "metadata": {},
3567
+ * // "name": "my_name",
3568
+ * // "response": {}
3569
+ * // }
3570
+ * }
3571
+ *
3572
+ * main().catch(e => {
3573
+ * console.error(e);
3574
+ * throw e;
3575
+ * });
3576
+ *
3577
+ * ```
3259
3578
  *
3260
3579
  * @param params - Parameters for request
3261
3580
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3344,6 +3663,57 @@ export namespace vmmigration_v1alpha1 {
3344
3663
 
3345
3664
  /**
3346
3665
  * Gets details of a single Group.
3666
+ * @example
3667
+ * ```js
3668
+ * // Before running the sample:
3669
+ * // - Enable the API at:
3670
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3671
+ * // - Login into gcloud by running:
3672
+ * // ```sh
3673
+ * // $ gcloud auth application-default login
3674
+ * // ```
3675
+ * // - Install the npm module by running:
3676
+ * // ```sh
3677
+ * // $ npm install googleapis
3678
+ * // ```
3679
+ *
3680
+ * const {google} = require('googleapis');
3681
+ * const vmmigration = google.vmmigration('v1alpha1');
3682
+ *
3683
+ * async function main() {
3684
+ * const auth = new google.auth.GoogleAuth({
3685
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3686
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3687
+ * });
3688
+ *
3689
+ * // Acquire an auth client, and bind it to all future calls
3690
+ * const authClient = await auth.getClient();
3691
+ * google.options({auth: authClient});
3692
+ *
3693
+ * // Do the magic
3694
+ * const res = await vmmigration.projects.locations.groups.get({
3695
+ * // Required. The group name.
3696
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3697
+ * });
3698
+ * console.log(res.data);
3699
+ *
3700
+ * // Example response
3701
+ * // {
3702
+ * // "createTime": "my_createTime",
3703
+ * // "description": "my_description",
3704
+ * // "displayName": "my_displayName",
3705
+ * // "migrationTargetType": "my_migrationTargetType",
3706
+ * // "name": "my_name",
3707
+ * // "updateTime": "my_updateTime"
3708
+ * // }
3709
+ * }
3710
+ *
3711
+ * main().catch(e => {
3712
+ * console.error(e);
3713
+ * throw e;
3714
+ * });
3715
+ *
3716
+ * ```
3347
3717
  *
3348
3718
  * @param params - Parameters for request
3349
3719
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3432,6 +3802,62 @@ export namespace vmmigration_v1alpha1 {
3432
3802
 
3433
3803
  /**
3434
3804
  * Lists Groups in a given project and location.
3805
+ * @example
3806
+ * ```js
3807
+ * // Before running the sample:
3808
+ * // - Enable the API at:
3809
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3810
+ * // - Login into gcloud by running:
3811
+ * // ```sh
3812
+ * // $ gcloud auth application-default login
3813
+ * // ```
3814
+ * // - Install the npm module by running:
3815
+ * // ```sh
3816
+ * // $ npm install googleapis
3817
+ * // ```
3818
+ *
3819
+ * const {google} = require('googleapis');
3820
+ * const vmmigration = google.vmmigration('v1alpha1');
3821
+ *
3822
+ * async function main() {
3823
+ * const auth = new google.auth.GoogleAuth({
3824
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3825
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3826
+ * });
3827
+ *
3828
+ * // Acquire an auth client, and bind it to all future calls
3829
+ * const authClient = await auth.getClient();
3830
+ * google.options({auth: authClient});
3831
+ *
3832
+ * // Do the magic
3833
+ * const res = await vmmigration.projects.locations.groups.list({
3834
+ * // Optional. The filter request.
3835
+ * filter: 'placeholder-value',
3836
+ * // Optional. the order by fields for the result.
3837
+ * orderBy: 'placeholder-value',
3838
+ * // Optional. The maximum number of groups to return. The service may return fewer than this value. If unspecified, at most 500 groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
3839
+ * pageSize: 'placeholder-value',
3840
+ * // Required. A page token, received from a previous `ListGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListGroups` must match the call that provided the page token.
3841
+ * pageToken: 'placeholder-value',
3842
+ * // Required. The parent, which owns this collection of groups.
3843
+ * parent: 'projects/my-project/locations/my-location',
3844
+ * });
3845
+ * console.log(res.data);
3846
+ *
3847
+ * // Example response
3848
+ * // {
3849
+ * // "groups": [],
3850
+ * // "nextPageToken": "my_nextPageToken",
3851
+ * // "unreachable": []
3852
+ * // }
3853
+ * }
3854
+ *
3855
+ * main().catch(e => {
3856
+ * console.error(e);
3857
+ * throw e;
3858
+ * });
3859
+ *
3860
+ * ```
3435
3861
  *
3436
3862
  * @param params - Parameters for request
3437
3863
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3523,6 +3949,73 @@ export namespace vmmigration_v1alpha1 {
3523
3949
 
3524
3950
  /**
3525
3951
  * Updates the parameters of a single Group.
3952
+ * @example
3953
+ * ```js
3954
+ * // Before running the sample:
3955
+ * // - Enable the API at:
3956
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3957
+ * // - Login into gcloud by running:
3958
+ * // ```sh
3959
+ * // $ gcloud auth application-default login
3960
+ * // ```
3961
+ * // - Install the npm module by running:
3962
+ * // ```sh
3963
+ * // $ npm install googleapis
3964
+ * // ```
3965
+ *
3966
+ * const {google} = require('googleapis');
3967
+ * const vmmigration = google.vmmigration('v1alpha1');
3968
+ *
3969
+ * async function main() {
3970
+ * const auth = new google.auth.GoogleAuth({
3971
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3972
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3973
+ * });
3974
+ *
3975
+ * // Acquire an auth client, and bind it to all future calls
3976
+ * const authClient = await auth.getClient();
3977
+ * google.options({auth: authClient});
3978
+ *
3979
+ * // Do the magic
3980
+ * const res = await vmmigration.projects.locations.groups.patch({
3981
+ * // Output only. The Group name.
3982
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3983
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3984
+ * requestId: 'placeholder-value',
3985
+ * // Field mask is used to specify the fields to be overwritten in the Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
3986
+ * updateMask: 'placeholder-value',
3987
+ *
3988
+ * // Request body metadata
3989
+ * requestBody: {
3990
+ * // request body parameters
3991
+ * // {
3992
+ * // "createTime": "my_createTime",
3993
+ * // "description": "my_description",
3994
+ * // "displayName": "my_displayName",
3995
+ * // "migrationTargetType": "my_migrationTargetType",
3996
+ * // "name": "my_name",
3997
+ * // "updateTime": "my_updateTime"
3998
+ * // }
3999
+ * },
4000
+ * });
4001
+ * console.log(res.data);
4002
+ *
4003
+ * // Example response
4004
+ * // {
4005
+ * // "done": false,
4006
+ * // "error": {},
4007
+ * // "metadata": {},
4008
+ * // "name": "my_name",
4009
+ * // "response": {}
4010
+ * // }
4011
+ * }
4012
+ *
4013
+ * main().catch(e => {
4014
+ * console.error(e);
4015
+ * throw e;
4016
+ * });
4017
+ *
4018
+ * ```
3526
4019
  *
3527
4020
  * @param params - Parameters for request
3528
4021
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3611,6 +4104,64 @@ export namespace vmmigration_v1alpha1 {
3611
4104
 
3612
4105
  /**
3613
4106
  * Removes a MigratingVm from a Group.
4107
+ * @example
4108
+ * ```js
4109
+ * // Before running the sample:
4110
+ * // - Enable the API at:
4111
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4112
+ * // - Login into gcloud by running:
4113
+ * // ```sh
4114
+ * // $ gcloud auth application-default login
4115
+ * // ```
4116
+ * // - Install the npm module by running:
4117
+ * // ```sh
4118
+ * // $ npm install googleapis
4119
+ * // ```
4120
+ *
4121
+ * const {google} = require('googleapis');
4122
+ * const vmmigration = google.vmmigration('v1alpha1');
4123
+ *
4124
+ * async function main() {
4125
+ * const auth = new google.auth.GoogleAuth({
4126
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4127
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4128
+ * });
4129
+ *
4130
+ * // Acquire an auth client, and bind it to all future calls
4131
+ * const authClient = await auth.getClient();
4132
+ * google.options({auth: authClient});
4133
+ *
4134
+ * // Do the magic
4135
+ * const res = await vmmigration.projects.locations.groups.removeGroupMigration({
4136
+ * // Required. The name of the Group.
4137
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
4138
+ *
4139
+ * // Request body metadata
4140
+ * requestBody: {
4141
+ * // request body parameters
4142
+ * // {
4143
+ * // "migratingVm": "my_migratingVm"
4144
+ * // }
4145
+ * },
4146
+ * });
4147
+ * console.log(res.data);
4148
+ *
4149
+ * // Example response
4150
+ * // {
4151
+ * // "done": false,
4152
+ * // "error": {},
4153
+ * // "metadata": {},
4154
+ * // "name": "my_name",
4155
+ * // "response": {}
4156
+ * // }
4157
+ * }
4158
+ *
4159
+ * main().catch(e => {
4160
+ * console.error(e);
4161
+ * throw e;
4162
+ * });
4163
+ *
4164
+ * ```
3614
4165
  *
3615
4166
  * @param params - Parameters for request
3616
4167
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3823,6 +4374,74 @@ export namespace vmmigration_v1alpha1 {
3823
4374
 
3824
4375
  /**
3825
4376
  * Creates a new ImageImport in a given project.
4377
+ * @example
4378
+ * ```js
4379
+ * // Before running the sample:
4380
+ * // - Enable the API at:
4381
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4382
+ * // - Login into gcloud by running:
4383
+ * // ```sh
4384
+ * // $ gcloud auth application-default login
4385
+ * // ```
4386
+ * // - Install the npm module by running:
4387
+ * // ```sh
4388
+ * // $ npm install googleapis
4389
+ * // ```
4390
+ *
4391
+ * const {google} = require('googleapis');
4392
+ * const vmmigration = google.vmmigration('v1alpha1');
4393
+ *
4394
+ * async function main() {
4395
+ * const auth = new google.auth.GoogleAuth({
4396
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4397
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4398
+ * });
4399
+ *
4400
+ * // Acquire an auth client, and bind it to all future calls
4401
+ * const authClient = await auth.getClient();
4402
+ * google.options({auth: authClient});
4403
+ *
4404
+ * // Do the magic
4405
+ * const res = await vmmigration.projects.locations.imageImports.create({
4406
+ * // Required. The image import identifier. This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.
4407
+ * imageImportId: 'placeholder-value',
4408
+ * // Required. The ImageImport's parent.
4409
+ * parent: 'projects/my-project/locations/my-location',
4410
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
4411
+ * requestId: 'placeholder-value',
4412
+ *
4413
+ * // Request body metadata
4414
+ * requestBody: {
4415
+ * // request body parameters
4416
+ * // {
4417
+ * // "cloudStorageUri": "my_cloudStorageUri",
4418
+ * // "createTime": "my_createTime",
4419
+ * // "diskImageTargetDefaults": {},
4420
+ * // "encryption": {},
4421
+ * // "machineImageTargetDefaults": {},
4422
+ * // "name": "my_name",
4423
+ * // "recentImageImportJobs": []
4424
+ * // }
4425
+ * },
4426
+ * });
4427
+ * console.log(res.data);
4428
+ *
4429
+ * // Example response
4430
+ * // {
4431
+ * // "done": false,
4432
+ * // "error": {},
4433
+ * // "metadata": {},
4434
+ * // "name": "my_name",
4435
+ * // "response": {}
4436
+ * // }
4437
+ * }
4438
+ *
4439
+ * main().catch(e => {
4440
+ * console.error(e);
4441
+ * throw e;
4442
+ * });
4443
+ *
4444
+ * ```
3826
4445
  *
3827
4446
  * @param params - Parameters for request
3828
4447
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3914,6 +4533,58 @@ export namespace vmmigration_v1alpha1 {
3914
4533
 
3915
4534
  /**
3916
4535
  * Deletes a single ImageImport.
4536
+ * @example
4537
+ * ```js
4538
+ * // Before running the sample:
4539
+ * // - Enable the API at:
4540
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4541
+ * // - Login into gcloud by running:
4542
+ * // ```sh
4543
+ * // $ gcloud auth application-default login
4544
+ * // ```
4545
+ * // - Install the npm module by running:
4546
+ * // ```sh
4547
+ * // $ npm install googleapis
4548
+ * // ```
4549
+ *
4550
+ * const {google} = require('googleapis');
4551
+ * const vmmigration = google.vmmigration('v1alpha1');
4552
+ *
4553
+ * async function main() {
4554
+ * const auth = new google.auth.GoogleAuth({
4555
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4556
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4557
+ * });
4558
+ *
4559
+ * // Acquire an auth client, and bind it to all future calls
4560
+ * const authClient = await auth.getClient();
4561
+ * google.options({auth: authClient});
4562
+ *
4563
+ * // Do the magic
4564
+ * const res = await vmmigration.projects.locations.imageImports.delete({
4565
+ * // Required. The ImageImport name.
4566
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
4567
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
4568
+ * requestId: 'placeholder-value',
4569
+ * });
4570
+ * console.log(res.data);
4571
+ *
4572
+ * // Example response
4573
+ * // {
4574
+ * // "done": false,
4575
+ * // "error": {},
4576
+ * // "metadata": {},
4577
+ * // "name": "my_name",
4578
+ * // "response": {}
4579
+ * // }
4580
+ * }
4581
+ *
4582
+ * main().catch(e => {
4583
+ * console.error(e);
4584
+ * throw e;
4585
+ * });
4586
+ *
4587
+ * ```
3917
4588
  *
3918
4589
  * @param params - Parameters for request
3919
4590
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4002,6 +4673,58 @@ export namespace vmmigration_v1alpha1 {
4002
4673
 
4003
4674
  /**
4004
4675
  * Gets details of a single ImageImport.
4676
+ * @example
4677
+ * ```js
4678
+ * // Before running the sample:
4679
+ * // - Enable the API at:
4680
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4681
+ * // - Login into gcloud by running:
4682
+ * // ```sh
4683
+ * // $ gcloud auth application-default login
4684
+ * // ```
4685
+ * // - Install the npm module by running:
4686
+ * // ```sh
4687
+ * // $ npm install googleapis
4688
+ * // ```
4689
+ *
4690
+ * const {google} = require('googleapis');
4691
+ * const vmmigration = google.vmmigration('v1alpha1');
4692
+ *
4693
+ * async function main() {
4694
+ * const auth = new google.auth.GoogleAuth({
4695
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4696
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4697
+ * });
4698
+ *
4699
+ * // Acquire an auth client, and bind it to all future calls
4700
+ * const authClient = await auth.getClient();
4701
+ * google.options({auth: authClient});
4702
+ *
4703
+ * // Do the magic
4704
+ * const res = await vmmigration.projects.locations.imageImports.get({
4705
+ * // Required. The ImageImport name.
4706
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
4707
+ * });
4708
+ * console.log(res.data);
4709
+ *
4710
+ * // Example response
4711
+ * // {
4712
+ * // "cloudStorageUri": "my_cloudStorageUri",
4713
+ * // "createTime": "my_createTime",
4714
+ * // "diskImageTargetDefaults": {},
4715
+ * // "encryption": {},
4716
+ * // "machineImageTargetDefaults": {},
4717
+ * // "name": "my_name",
4718
+ * // "recentImageImportJobs": []
4719
+ * // }
4720
+ * }
4721
+ *
4722
+ * main().catch(e => {
4723
+ * console.error(e);
4724
+ * throw e;
4725
+ * });
4726
+ *
4727
+ * ```
4005
4728
  *
4006
4729
  * @param params - Parameters for request
4007
4730
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4090,6 +4813,62 @@ export namespace vmmigration_v1alpha1 {
4090
4813
 
4091
4814
  /**
4092
4815
  * Lists ImageImports in a given project.
4816
+ * @example
4817
+ * ```js
4818
+ * // Before running the sample:
4819
+ * // - Enable the API at:
4820
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4821
+ * // - Login into gcloud by running:
4822
+ * // ```sh
4823
+ * // $ gcloud auth application-default login
4824
+ * // ```
4825
+ * // - Install the npm module by running:
4826
+ * // ```sh
4827
+ * // $ npm install googleapis
4828
+ * // ```
4829
+ *
4830
+ * const {google} = require('googleapis');
4831
+ * const vmmigration = google.vmmigration('v1alpha1');
4832
+ *
4833
+ * async function main() {
4834
+ * const auth = new google.auth.GoogleAuth({
4835
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4836
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4837
+ * });
4838
+ *
4839
+ * // Acquire an auth client, and bind it to all future calls
4840
+ * const authClient = await auth.getClient();
4841
+ * google.options({auth: authClient});
4842
+ *
4843
+ * // Do the magic
4844
+ * const res = await vmmigration.projects.locations.imageImports.list({
4845
+ * // Optional. The filter request (according to AIP-160).
4846
+ * filter: 'placeholder-value',
4847
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
4848
+ * orderBy: 'placeholder-value',
4849
+ * // Optional. The maximum number of targets to return. The service may return fewer than this value. If unspecified, at most 500 targets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
4850
+ * pageSize: 'placeholder-value',
4851
+ * // Optional. A page token, received from a previous `ListImageImports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListImageImports` must match the call that provided the page token.
4852
+ * pageToken: 'placeholder-value',
4853
+ * // Required. The parent, which owns this collection of targets.
4854
+ * parent: 'projects/my-project/locations/my-location',
4855
+ * });
4856
+ * console.log(res.data);
4857
+ *
4858
+ * // Example response
4859
+ * // {
4860
+ * // "imageImports": [],
4861
+ * // "nextPageToken": "my_nextPageToken",
4862
+ * // "unreachable": []
4863
+ * // }
4864
+ * }
4865
+ *
4866
+ * main().catch(e => {
4867
+ * console.error(e);
4868
+ * throw e;
4869
+ * });
4870
+ *
4871
+ * ```
4093
4872
  *
4094
4873
  * @param params - Parameters for request
4095
4874
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4252,6 +5031,63 @@ export namespace vmmigration_v1alpha1 {
4252
5031
 
4253
5032
  /**
4254
5033
  * Initiates the cancellation of a running clone job.
5034
+ * @example
5035
+ * ```js
5036
+ * // Before running the sample:
5037
+ * // - Enable the API at:
5038
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5039
+ * // - Login into gcloud by running:
5040
+ * // ```sh
5041
+ * // $ gcloud auth application-default login
5042
+ * // ```
5043
+ * // - Install the npm module by running:
5044
+ * // ```sh
5045
+ * // $ npm install googleapis
5046
+ * // ```
5047
+ *
5048
+ * const {google} = require('googleapis');
5049
+ * const vmmigration = google.vmmigration('v1alpha1');
5050
+ *
5051
+ * async function main() {
5052
+ * const auth = new google.auth.GoogleAuth({
5053
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5054
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5055
+ * });
5056
+ *
5057
+ * // Acquire an auth client, and bind it to all future calls
5058
+ * const authClient = await auth.getClient();
5059
+ * google.options({auth: authClient});
5060
+ *
5061
+ * // Do the magic
5062
+ * const res =
5063
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.cancel({
5064
+ * // Required. The image import job id.
5065
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
5066
+ *
5067
+ * // Request body metadata
5068
+ * requestBody: {
5069
+ * // request body parameters
5070
+ * // {}
5071
+ * },
5072
+ * });
5073
+ * console.log(res.data);
5074
+ *
5075
+ * // Example response
5076
+ * // {
5077
+ * // "done": false,
5078
+ * // "error": {},
5079
+ * // "metadata": {},
5080
+ * // "name": "my_name",
5081
+ * // "response": {}
5082
+ * // }
5083
+ * }
5084
+ *
5085
+ * main().catch(e => {
5086
+ * console.error(e);
5087
+ * throw e;
5088
+ * });
5089
+ *
5090
+ * ```
4255
5091
  *
4256
5092
  * @param params - Parameters for request
4257
5093
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4344,6 +5180,63 @@ export namespace vmmigration_v1alpha1 {
4344
5180
 
4345
5181
  /**
4346
5182
  * Gets details of a single ImageImportJob.
5183
+ * @example
5184
+ * ```js
5185
+ * // Before running the sample:
5186
+ * // - Enable the API at:
5187
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5188
+ * // - Login into gcloud by running:
5189
+ * // ```sh
5190
+ * // $ gcloud auth application-default login
5191
+ * // ```
5192
+ * // - Install the npm module by running:
5193
+ * // ```sh
5194
+ * // $ npm install googleapis
5195
+ * // ```
5196
+ *
5197
+ * const {google} = require('googleapis');
5198
+ * const vmmigration = google.vmmigration('v1alpha1');
5199
+ *
5200
+ * async function main() {
5201
+ * const auth = new google.auth.GoogleAuth({
5202
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5203
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5204
+ * });
5205
+ *
5206
+ * // Acquire an auth client, and bind it to all future calls
5207
+ * const authClient = await auth.getClient();
5208
+ * google.options({auth: authClient});
5209
+ *
5210
+ * // Do the magic
5211
+ * const res =
5212
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.get({
5213
+ * // Required. The ImageImportJob name.
5214
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
5215
+ * });
5216
+ * console.log(res.data);
5217
+ *
5218
+ * // Example response
5219
+ * // {
5220
+ * // "cloudStorageUri": "my_cloudStorageUri",
5221
+ * // "createTime": "my_createTime",
5222
+ * // "createdResources": [],
5223
+ * // "diskImageTargetDetails": {},
5224
+ * // "endTime": "my_endTime",
5225
+ * // "errors": [],
5226
+ * // "machineImageTargetDetails": {},
5227
+ * // "name": "my_name",
5228
+ * // "state": "my_state",
5229
+ * // "steps": [],
5230
+ * // "warnings": []
5231
+ * // }
5232
+ * }
5233
+ *
5234
+ * main().catch(e => {
5235
+ * console.error(e);
5236
+ * throw e;
5237
+ * });
5238
+ *
5239
+ * ```
4347
5240
  *
4348
5241
  * @param params - Parameters for request
4349
5242
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4433,6 +5326,64 @@ export namespace vmmigration_v1alpha1 {
4433
5326
 
4434
5327
  /**
4435
5328
  * Lists ImageImportJobs in a given project.
5329
+ * @example
5330
+ * ```js
5331
+ * // Before running the sample:
5332
+ * // - Enable the API at:
5333
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5334
+ * // - Login into gcloud by running:
5335
+ * // ```sh
5336
+ * // $ gcloud auth application-default login
5337
+ * // ```
5338
+ * // - Install the npm module by running:
5339
+ * // ```sh
5340
+ * // $ npm install googleapis
5341
+ * // ```
5342
+ *
5343
+ * const {google} = require('googleapis');
5344
+ * const vmmigration = google.vmmigration('v1alpha1');
5345
+ *
5346
+ * async function main() {
5347
+ * const auth = new google.auth.GoogleAuth({
5348
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5349
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5350
+ * });
5351
+ *
5352
+ * // Acquire an auth client, and bind it to all future calls
5353
+ * const authClient = await auth.getClient();
5354
+ * google.options({auth: authClient});
5355
+ *
5356
+ * // Do the magic
5357
+ * const res =
5358
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.list({
5359
+ * // Optional. The filter request (according to AIP-160).
5360
+ * filter: 'placeholder-value',
5361
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
5362
+ * orderBy: 'placeholder-value',
5363
+ * // Optional. The maximum number of targets to return. The service may return fewer than this value. If unspecified, at most 500 targets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
5364
+ * pageSize: 'placeholder-value',
5365
+ * // Optional. A page token, received from a previous `ListImageImportJobs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListImageImportJobs` must match the call that provided the page token.
5366
+ * pageToken: 'placeholder-value',
5367
+ * // Required. The parent, which owns this collection of targets.
5368
+ * parent:
5369
+ * 'projects/my-project/locations/my-location/imageImports/my-imageImport',
5370
+ * });
5371
+ * console.log(res.data);
5372
+ *
5373
+ * // Example response
5374
+ * // {
5375
+ * // "imageImportJobs": [],
5376
+ * // "nextPageToken": "my_nextPageToken",
5377
+ * // "unreachable": []
5378
+ * // }
5379
+ * }
5380
+ *
5381
+ * main().catch(e => {
5382
+ * console.error(e);
5383
+ * throw e;
5384
+ * });
5385
+ *
5386
+ * ```
4436
5387
  *
4437
5388
  * @param params - Parameters for request
4438
5389
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4579,6 +5530,56 @@ export namespace vmmigration_v1alpha1 {
4579
5530
 
4580
5531
  /**
4581
5532
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
5533
+ * @example
5534
+ * ```js
5535
+ * // Before running the sample:
5536
+ * // - Enable the API at:
5537
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5538
+ * // - Login into gcloud by running:
5539
+ * // ```sh
5540
+ * // $ gcloud auth application-default login
5541
+ * // ```
5542
+ * // - Install the npm module by running:
5543
+ * // ```sh
5544
+ * // $ npm install googleapis
5545
+ * // ```
5546
+ *
5547
+ * const {google} = require('googleapis');
5548
+ * const vmmigration = google.vmmigration('v1alpha1');
5549
+ *
5550
+ * async function main() {
5551
+ * const auth = new google.auth.GoogleAuth({
5552
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5553
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5554
+ * });
5555
+ *
5556
+ * // Acquire an auth client, and bind it to all future calls
5557
+ * const authClient = await auth.getClient();
5558
+ * google.options({auth: authClient});
5559
+ *
5560
+ * // Do the magic
5561
+ * const res = await vmmigration.projects.locations.operations.cancel({
5562
+ * // The name of the operation resource to be cancelled.
5563
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
5564
+ *
5565
+ * // Request body metadata
5566
+ * requestBody: {
5567
+ * // request body parameters
5568
+ * // {}
5569
+ * },
5570
+ * });
5571
+ * console.log(res.data);
5572
+ *
5573
+ * // Example response
5574
+ * // {}
5575
+ * }
5576
+ *
5577
+ * main().catch(e => {
5578
+ * console.error(e);
5579
+ * throw e;
5580
+ * });
5581
+ *
5582
+ * ```
4582
5583
  *
4583
5584
  * @param params - Parameters for request
4584
5585
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4670,6 +5671,50 @@ export namespace vmmigration_v1alpha1 {
4670
5671
 
4671
5672
  /**
4672
5673
  * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
5674
+ * @example
5675
+ * ```js
5676
+ * // Before running the sample:
5677
+ * // - Enable the API at:
5678
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5679
+ * // - Login into gcloud by running:
5680
+ * // ```sh
5681
+ * // $ gcloud auth application-default login
5682
+ * // ```
5683
+ * // - Install the npm module by running:
5684
+ * // ```sh
5685
+ * // $ npm install googleapis
5686
+ * // ```
5687
+ *
5688
+ * const {google} = require('googleapis');
5689
+ * const vmmigration = google.vmmigration('v1alpha1');
5690
+ *
5691
+ * async function main() {
5692
+ * const auth = new google.auth.GoogleAuth({
5693
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5694
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5695
+ * });
5696
+ *
5697
+ * // Acquire an auth client, and bind it to all future calls
5698
+ * const authClient = await auth.getClient();
5699
+ * google.options({auth: authClient});
5700
+ *
5701
+ * // Do the magic
5702
+ * const res = await vmmigration.projects.locations.operations.delete({
5703
+ * // The name of the operation resource to be deleted.
5704
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
5705
+ * });
5706
+ * console.log(res.data);
5707
+ *
5708
+ * // Example response
5709
+ * // {}
5710
+ * }
5711
+ *
5712
+ * main().catch(e => {
5713
+ * console.error(e);
5714
+ * throw e;
5715
+ * });
5716
+ *
5717
+ * ```
4673
5718
  *
4674
5719
  * @param params - Parameters for request
4675
5720
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4758,6 +5803,56 @@ export namespace vmmigration_v1alpha1 {
4758
5803
 
4759
5804
  /**
4760
5805
  * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
5806
+ * @example
5807
+ * ```js
5808
+ * // Before running the sample:
5809
+ * // - Enable the API at:
5810
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5811
+ * // - Login into gcloud by running:
5812
+ * // ```sh
5813
+ * // $ gcloud auth application-default login
5814
+ * // ```
5815
+ * // - Install the npm module by running:
5816
+ * // ```sh
5817
+ * // $ npm install googleapis
5818
+ * // ```
5819
+ *
5820
+ * const {google} = require('googleapis');
5821
+ * const vmmigration = google.vmmigration('v1alpha1');
5822
+ *
5823
+ * async function main() {
5824
+ * const auth = new google.auth.GoogleAuth({
5825
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5826
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5827
+ * });
5828
+ *
5829
+ * // Acquire an auth client, and bind it to all future calls
5830
+ * const authClient = await auth.getClient();
5831
+ * google.options({auth: authClient});
5832
+ *
5833
+ * // Do the magic
5834
+ * const res = await vmmigration.projects.locations.operations.get({
5835
+ * // The name of the operation resource.
5836
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
5837
+ * });
5838
+ * console.log(res.data);
5839
+ *
5840
+ * // Example response
5841
+ * // {
5842
+ * // "done": false,
5843
+ * // "error": {},
5844
+ * // "metadata": {},
5845
+ * // "name": "my_name",
5846
+ * // "response": {}
5847
+ * // }
5848
+ * }
5849
+ *
5850
+ * main().catch(e => {
5851
+ * console.error(e);
5852
+ * throw e;
5853
+ * });
5854
+ *
5855
+ * ```
4761
5856
  *
4762
5857
  * @param params - Parameters for request
4763
5858
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4846,6 +5941,59 @@ export namespace vmmigration_v1alpha1 {
4846
5941
 
4847
5942
  /**
4848
5943
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
5944
+ * @example
5945
+ * ```js
5946
+ * // Before running the sample:
5947
+ * // - Enable the API at:
5948
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5949
+ * // - Login into gcloud by running:
5950
+ * // ```sh
5951
+ * // $ gcloud auth application-default login
5952
+ * // ```
5953
+ * // - Install the npm module by running:
5954
+ * // ```sh
5955
+ * // $ npm install googleapis
5956
+ * // ```
5957
+ *
5958
+ * const {google} = require('googleapis');
5959
+ * const vmmigration = google.vmmigration('v1alpha1');
5960
+ *
5961
+ * async function main() {
5962
+ * const auth = new google.auth.GoogleAuth({
5963
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5964
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5965
+ * });
5966
+ *
5967
+ * // Acquire an auth client, and bind it to all future calls
5968
+ * const authClient = await auth.getClient();
5969
+ * google.options({auth: authClient});
5970
+ *
5971
+ * // Do the magic
5972
+ * const res = await vmmigration.projects.locations.operations.list({
5973
+ * // The standard list filter.
5974
+ * filter: 'placeholder-value',
5975
+ * // The name of the operation's parent resource.
5976
+ * name: 'projects/my-project/locations/my-location',
5977
+ * // The standard list page size.
5978
+ * pageSize: 'placeholder-value',
5979
+ * // The standard list page token.
5980
+ * pageToken: 'placeholder-value',
5981
+ * });
5982
+ * console.log(res.data);
5983
+ *
5984
+ * // Example response
5985
+ * // {
5986
+ * // "nextPageToken": "my_nextPageToken",
5987
+ * // "operations": []
5988
+ * // }
5989
+ * }
5990
+ *
5991
+ * main().catch(e => {
5992
+ * console.error(e);
5993
+ * throw e;
5994
+ * });
5995
+ *
5996
+ * ```
4849
5997
  *
4850
5998
  * @param params - Parameters for request
4851
5999
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5006,6 +6154,77 @@ export namespace vmmigration_v1alpha1 {
5006
6154
 
5007
6155
  /**
5008
6156
  * Creates a new Source in a given project and location.
6157
+ * @example
6158
+ * ```js
6159
+ * // Before running the sample:
6160
+ * // - Enable the API at:
6161
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6162
+ * // - Login into gcloud by running:
6163
+ * // ```sh
6164
+ * // $ gcloud auth application-default login
6165
+ * // ```
6166
+ * // - Install the npm module by running:
6167
+ * // ```sh
6168
+ * // $ npm install googleapis
6169
+ * // ```
6170
+ *
6171
+ * const {google} = require('googleapis');
6172
+ * const vmmigration = google.vmmigration('v1alpha1');
6173
+ *
6174
+ * async function main() {
6175
+ * const auth = new google.auth.GoogleAuth({
6176
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6177
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6178
+ * });
6179
+ *
6180
+ * // Acquire an auth client, and bind it to all future calls
6181
+ * const authClient = await auth.getClient();
6182
+ * google.options({auth: authClient});
6183
+ *
6184
+ * // Do the magic
6185
+ * const res = await vmmigration.projects.locations.sources.create({
6186
+ * // Required. The Source's parent.
6187
+ * parent: 'projects/my-project/locations/my-location',
6188
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
6189
+ * requestId: 'placeholder-value',
6190
+ * // Required. The source identifier.
6191
+ * sourceId: 'placeholder-value',
6192
+ *
6193
+ * // Request body metadata
6194
+ * requestBody: {
6195
+ * // request body parameters
6196
+ * // {
6197
+ * // "aws": {},
6198
+ * // "azure": {},
6199
+ * // "createTime": "my_createTime",
6200
+ * // "description": "my_description",
6201
+ * // "encryption": {},
6202
+ * // "error": {},
6203
+ * // "labels": {},
6204
+ * // "name": "my_name",
6205
+ * // "updateTime": "my_updateTime",
6206
+ * // "vmware": {}
6207
+ * // }
6208
+ * },
6209
+ * });
6210
+ * console.log(res.data);
6211
+ *
6212
+ * // Example response
6213
+ * // {
6214
+ * // "done": false,
6215
+ * // "error": {},
6216
+ * // "metadata": {},
6217
+ * // "name": "my_name",
6218
+ * // "response": {}
6219
+ * // }
6220
+ * }
6221
+ *
6222
+ * main().catch(e => {
6223
+ * console.error(e);
6224
+ * throw e;
6225
+ * });
6226
+ *
6227
+ * ```
5009
6228
  *
5010
6229
  * @param params - Parameters for request
5011
6230
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5097,6 +6316,58 @@ export namespace vmmigration_v1alpha1 {
5097
6316
 
5098
6317
  /**
5099
6318
  * Deletes a single Source.
6319
+ * @example
6320
+ * ```js
6321
+ * // Before running the sample:
6322
+ * // - Enable the API at:
6323
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6324
+ * // - Login into gcloud by running:
6325
+ * // ```sh
6326
+ * // $ gcloud auth application-default login
6327
+ * // ```
6328
+ * // - Install the npm module by running:
6329
+ * // ```sh
6330
+ * // $ npm install googleapis
6331
+ * // ```
6332
+ *
6333
+ * const {google} = require('googleapis');
6334
+ * const vmmigration = google.vmmigration('v1alpha1');
6335
+ *
6336
+ * async function main() {
6337
+ * const auth = new google.auth.GoogleAuth({
6338
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6339
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6340
+ * });
6341
+ *
6342
+ * // Acquire an auth client, and bind it to all future calls
6343
+ * const authClient = await auth.getClient();
6344
+ * google.options({auth: authClient});
6345
+ *
6346
+ * // Do the magic
6347
+ * const res = await vmmigration.projects.locations.sources.delete({
6348
+ * // Required. The Source name.
6349
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
6350
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
6351
+ * requestId: 'placeholder-value',
6352
+ * });
6353
+ * console.log(res.data);
6354
+ *
6355
+ * // Example response
6356
+ * // {
6357
+ * // "done": false,
6358
+ * // "error": {},
6359
+ * // "metadata": {},
6360
+ * // "name": "my_name",
6361
+ * // "response": {}
6362
+ * // }
6363
+ * }
6364
+ *
6365
+ * main().catch(e => {
6366
+ * console.error(e);
6367
+ * throw e;
6368
+ * });
6369
+ *
6370
+ * ```
5100
6371
  *
5101
6372
  * @param params - Parameters for request
5102
6373
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5185,6 +6456,62 @@ export namespace vmmigration_v1alpha1 {
5185
6456
 
5186
6457
  /**
5187
6458
  * 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.
6459
+ * @example
6460
+ * ```js
6461
+ * // Before running the sample:
6462
+ * // - Enable the API at:
6463
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6464
+ * // - Login into gcloud by running:
6465
+ * // ```sh
6466
+ * // $ gcloud auth application-default login
6467
+ * // ```
6468
+ * // - Install the npm module by running:
6469
+ * // ```sh
6470
+ * // $ npm install googleapis
6471
+ * // ```
6472
+ *
6473
+ * const {google} = require('googleapis');
6474
+ * const vmmigration = google.vmmigration('v1alpha1');
6475
+ *
6476
+ * async function main() {
6477
+ * const auth = new google.auth.GoogleAuth({
6478
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6479
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6480
+ * });
6481
+ *
6482
+ * // Acquire an auth client, and bind it to all future calls
6483
+ * const authClient = await auth.getClient();
6484
+ * google.options({auth: authClient});
6485
+ *
6486
+ * // Do the magic
6487
+ * const res = await vmmigration.projects.locations.sources.fetchInventory({
6488
+ * // If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.
6489
+ * forceRefresh: 'placeholder-value',
6490
+ * // The maximum number of VMs to return. The service may return fewer than this value. For AWS source: If unspecified, at most 500 VMs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. For VMWare source: If unspecified, all VMs will be returned. There is no limit for maximum value.
6491
+ * pageSize: 'placeholder-value',
6492
+ * // A page token, received from a previous `FetchInventory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchInventory` must match the call that provided the page token.
6493
+ * pageToken: 'placeholder-value',
6494
+ * // Required. The name of the Source.
6495
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
6496
+ * });
6497
+ * console.log(res.data);
6498
+ *
6499
+ * // Example response
6500
+ * // {
6501
+ * // "awsVms": {},
6502
+ * // "azureVms": {},
6503
+ * // "nextPageToken": "my_nextPageToken",
6504
+ * // "updateTime": "my_updateTime",
6505
+ * // "vmwareVms": {}
6506
+ * // }
6507
+ * }
6508
+ *
6509
+ * main().catch(e => {
6510
+ * console.error(e);
6511
+ * throw e;
6512
+ * });
6513
+ *
6514
+ * ```
5188
6515
  *
5189
6516
  * @param params - Parameters for request
5190
6517
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5281,6 +6608,61 @@ export namespace vmmigration_v1alpha1 {
5281
6608
 
5282
6609
  /**
5283
6610
  * Gets details of a single Source.
6611
+ * @example
6612
+ * ```js
6613
+ * // Before running the sample:
6614
+ * // - Enable the API at:
6615
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6616
+ * // - Login into gcloud by running:
6617
+ * // ```sh
6618
+ * // $ gcloud auth application-default login
6619
+ * // ```
6620
+ * // - Install the npm module by running:
6621
+ * // ```sh
6622
+ * // $ npm install googleapis
6623
+ * // ```
6624
+ *
6625
+ * const {google} = require('googleapis');
6626
+ * const vmmigration = google.vmmigration('v1alpha1');
6627
+ *
6628
+ * async function main() {
6629
+ * const auth = new google.auth.GoogleAuth({
6630
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6631
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6632
+ * });
6633
+ *
6634
+ * // Acquire an auth client, and bind it to all future calls
6635
+ * const authClient = await auth.getClient();
6636
+ * google.options({auth: authClient});
6637
+ *
6638
+ * // Do the magic
6639
+ * const res = await vmmigration.projects.locations.sources.get({
6640
+ * // Required. The Source name.
6641
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
6642
+ * });
6643
+ * console.log(res.data);
6644
+ *
6645
+ * // Example response
6646
+ * // {
6647
+ * // "aws": {},
6648
+ * // "azure": {},
6649
+ * // "createTime": "my_createTime",
6650
+ * // "description": "my_description",
6651
+ * // "encryption": {},
6652
+ * // "error": {},
6653
+ * // "labels": {},
6654
+ * // "name": "my_name",
6655
+ * // "updateTime": "my_updateTime",
6656
+ * // "vmware": {}
6657
+ * // }
6658
+ * }
6659
+ *
6660
+ * main().catch(e => {
6661
+ * console.error(e);
6662
+ * throw e;
6663
+ * });
6664
+ *
6665
+ * ```
5284
6666
  *
5285
6667
  * @param params - Parameters for request
5286
6668
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5369,6 +6751,62 @@ export namespace vmmigration_v1alpha1 {
5369
6751
 
5370
6752
  /**
5371
6753
  * Lists Sources in a given project and location.
6754
+ * @example
6755
+ * ```js
6756
+ * // Before running the sample:
6757
+ * // - Enable the API at:
6758
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6759
+ * // - Login into gcloud by running:
6760
+ * // ```sh
6761
+ * // $ gcloud auth application-default login
6762
+ * // ```
6763
+ * // - Install the npm module by running:
6764
+ * // ```sh
6765
+ * // $ npm install googleapis
6766
+ * // ```
6767
+ *
6768
+ * const {google} = require('googleapis');
6769
+ * const vmmigration = google.vmmigration('v1alpha1');
6770
+ *
6771
+ * async function main() {
6772
+ * const auth = new google.auth.GoogleAuth({
6773
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6774
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6775
+ * });
6776
+ *
6777
+ * // Acquire an auth client, and bind it to all future calls
6778
+ * const authClient = await auth.getClient();
6779
+ * google.options({auth: authClient});
6780
+ *
6781
+ * // Do the magic
6782
+ * const res = await vmmigration.projects.locations.sources.list({
6783
+ * // Optional. The filter request.
6784
+ * filter: 'placeholder-value',
6785
+ * // Optional. the order by fields for the result.
6786
+ * orderBy: 'placeholder-value',
6787
+ * // Optional. The maximum number of sources to return. The service may return fewer than this value. If unspecified, at most 500 sources will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
6788
+ * pageSize: 'placeholder-value',
6789
+ * // Required. A page token, received from a previous `ListSources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSources` must match the call that provided the page token.
6790
+ * pageToken: 'placeholder-value',
6791
+ * // Required. The parent, which owns this collection of sources.
6792
+ * parent: 'projects/my-project/locations/my-location',
6793
+ * });
6794
+ * console.log(res.data);
6795
+ *
6796
+ * // Example response
6797
+ * // {
6798
+ * // "nextPageToken": "my_nextPageToken",
6799
+ * // "sources": [],
6800
+ * // "unreachable": []
6801
+ * // }
6802
+ * }
6803
+ *
6804
+ * main().catch(e => {
6805
+ * console.error(e);
6806
+ * throw e;
6807
+ * });
6808
+ *
6809
+ * ```
5372
6810
  *
5373
6811
  * @param params - Parameters for request
5374
6812
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5460,6 +6898,77 @@ export namespace vmmigration_v1alpha1 {
5460
6898
 
5461
6899
  /**
5462
6900
  * Updates the parameters of a single Source.
6901
+ * @example
6902
+ * ```js
6903
+ * // Before running the sample:
6904
+ * // - Enable the API at:
6905
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6906
+ * // - Login into gcloud by running:
6907
+ * // ```sh
6908
+ * // $ gcloud auth application-default login
6909
+ * // ```
6910
+ * // - Install the npm module by running:
6911
+ * // ```sh
6912
+ * // $ npm install googleapis
6913
+ * // ```
6914
+ *
6915
+ * const {google} = require('googleapis');
6916
+ * const vmmigration = google.vmmigration('v1alpha1');
6917
+ *
6918
+ * async function main() {
6919
+ * const auth = new google.auth.GoogleAuth({
6920
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6921
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6922
+ * });
6923
+ *
6924
+ * // Acquire an auth client, and bind it to all future calls
6925
+ * const authClient = await auth.getClient();
6926
+ * google.options({auth: authClient});
6927
+ *
6928
+ * // Do the magic
6929
+ * const res = await vmmigration.projects.locations.sources.patch({
6930
+ * // Output only. The Source name.
6931
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
6932
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
6933
+ * requestId: 'placeholder-value',
6934
+ * // Field mask is used to specify the fields to be overwritten in the Source resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
6935
+ * updateMask: 'placeholder-value',
6936
+ *
6937
+ * // Request body metadata
6938
+ * requestBody: {
6939
+ * // request body parameters
6940
+ * // {
6941
+ * // "aws": {},
6942
+ * // "azure": {},
6943
+ * // "createTime": "my_createTime",
6944
+ * // "description": "my_description",
6945
+ * // "encryption": {},
6946
+ * // "error": {},
6947
+ * // "labels": {},
6948
+ * // "name": "my_name",
6949
+ * // "updateTime": "my_updateTime",
6950
+ * // "vmware": {}
6951
+ * // }
6952
+ * },
6953
+ * });
6954
+ * console.log(res.data);
6955
+ *
6956
+ * // Example response
6957
+ * // {
6958
+ * // "done": false,
6959
+ * // "error": {},
6960
+ * // "metadata": {},
6961
+ * // "name": "my_name",
6962
+ * // "response": {}
6963
+ * // }
6964
+ * }
6965
+ *
6966
+ * main().catch(e => {
6967
+ * console.error(e);
6968
+ * throw e;
6969
+ * });
6970
+ *
6971
+ * ```
5463
6972
  *
5464
6973
  * @param params - Parameters for request
5465
6974
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5656,6 +7165,82 @@ export namespace vmmigration_v1alpha1 {
5656
7165
 
5657
7166
  /**
5658
7167
  * Creates a new DatacenterConnector in a given Source.
7168
+ * @example
7169
+ * ```js
7170
+ * // Before running the sample:
7171
+ * // - Enable the API at:
7172
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7173
+ * // - Login into gcloud by running:
7174
+ * // ```sh
7175
+ * // $ gcloud auth application-default login
7176
+ * // ```
7177
+ * // - Install the npm module by running:
7178
+ * // ```sh
7179
+ * // $ npm install googleapis
7180
+ * // ```
7181
+ *
7182
+ * const {google} = require('googleapis');
7183
+ * const vmmigration = google.vmmigration('v1alpha1');
7184
+ *
7185
+ * async function main() {
7186
+ * const auth = new google.auth.GoogleAuth({
7187
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7188
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7189
+ * });
7190
+ *
7191
+ * // Acquire an auth client, and bind it to all future calls
7192
+ * const authClient = await auth.getClient();
7193
+ * google.options({auth: authClient});
7194
+ *
7195
+ * // Do the magic
7196
+ * const res =
7197
+ * await vmmigration.projects.locations.sources.datacenterConnectors.create({
7198
+ * // Required. The datacenterConnector identifier.
7199
+ * datacenterConnectorId: 'placeholder-value',
7200
+ * // Required. The DatacenterConnector's parent. Required. The Source in where the new DatacenterConnector will be created. For example: `projects/my-project/locations/us-central1/sources/my-source`
7201
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7202
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
7203
+ * requestId: 'placeholder-value',
7204
+ *
7205
+ * // Request body metadata
7206
+ * requestBody: {
7207
+ * // request body parameters
7208
+ * // {
7209
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
7210
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
7211
+ * // "availableVersions": {},
7212
+ * // "bucket": "my_bucket",
7213
+ * // "createTime": "my_createTime",
7214
+ * // "error": {},
7215
+ * // "name": "my_name",
7216
+ * // "registrationId": "my_registrationId",
7217
+ * // "serviceAccount": "my_serviceAccount",
7218
+ * // "state": "my_state",
7219
+ * // "stateTime": "my_stateTime",
7220
+ * // "updateTime": "my_updateTime",
7221
+ * // "upgradeStatus": {},
7222
+ * // "version": "my_version"
7223
+ * // }
7224
+ * },
7225
+ * });
7226
+ * console.log(res.data);
7227
+ *
7228
+ * // Example response
7229
+ * // {
7230
+ * // "done": false,
7231
+ * // "error": {},
7232
+ * // "metadata": {},
7233
+ * // "name": "my_name",
7234
+ * // "response": {}
7235
+ * // }
7236
+ * }
7237
+ *
7238
+ * main().catch(e => {
7239
+ * console.error(e);
7240
+ * throw e;
7241
+ * });
7242
+ *
7243
+ * ```
5659
7244
  *
5660
7245
  * @param params - Parameters for request
5661
7246
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5748,6 +7333,59 @@ export namespace vmmigration_v1alpha1 {
5748
7333
 
5749
7334
  /**
5750
7335
  * Deletes a single DatacenterConnector.
7336
+ * @example
7337
+ * ```js
7338
+ * // Before running the sample:
7339
+ * // - Enable the API at:
7340
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7341
+ * // - Login into gcloud by running:
7342
+ * // ```sh
7343
+ * // $ gcloud auth application-default login
7344
+ * // ```
7345
+ * // - Install the npm module by running:
7346
+ * // ```sh
7347
+ * // $ npm install googleapis
7348
+ * // ```
7349
+ *
7350
+ * const {google} = require('googleapis');
7351
+ * const vmmigration = google.vmmigration('v1alpha1');
7352
+ *
7353
+ * async function main() {
7354
+ * const auth = new google.auth.GoogleAuth({
7355
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7356
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7357
+ * });
7358
+ *
7359
+ * // Acquire an auth client, and bind it to all future calls
7360
+ * const authClient = await auth.getClient();
7361
+ * google.options({auth: authClient});
7362
+ *
7363
+ * // Do the magic
7364
+ * const res =
7365
+ * await vmmigration.projects.locations.sources.datacenterConnectors.delete({
7366
+ * // Required. The DatacenterConnector name.
7367
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
7368
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
7369
+ * requestId: 'placeholder-value',
7370
+ * });
7371
+ * console.log(res.data);
7372
+ *
7373
+ * // Example response
7374
+ * // {
7375
+ * // "done": false,
7376
+ * // "error": {},
7377
+ * // "metadata": {},
7378
+ * // "name": "my_name",
7379
+ * // "response": {}
7380
+ * // }
7381
+ * }
7382
+ *
7383
+ * main().catch(e => {
7384
+ * console.error(e);
7385
+ * throw e;
7386
+ * });
7387
+ *
7388
+ * ```
5751
7389
  *
5752
7390
  * @param params - Parameters for request
5753
7391
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5837,6 +7475,66 @@ export namespace vmmigration_v1alpha1 {
5837
7475
 
5838
7476
  /**
5839
7477
  * Gets details of a single DatacenterConnector.
7478
+ * @example
7479
+ * ```js
7480
+ * // Before running the sample:
7481
+ * // - Enable the API at:
7482
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7483
+ * // - Login into gcloud by running:
7484
+ * // ```sh
7485
+ * // $ gcloud auth application-default login
7486
+ * // ```
7487
+ * // - Install the npm module by running:
7488
+ * // ```sh
7489
+ * // $ npm install googleapis
7490
+ * // ```
7491
+ *
7492
+ * const {google} = require('googleapis');
7493
+ * const vmmigration = google.vmmigration('v1alpha1');
7494
+ *
7495
+ * async function main() {
7496
+ * const auth = new google.auth.GoogleAuth({
7497
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7498
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7499
+ * });
7500
+ *
7501
+ * // Acquire an auth client, and bind it to all future calls
7502
+ * const authClient = await auth.getClient();
7503
+ * google.options({auth: authClient});
7504
+ *
7505
+ * // Do the magic
7506
+ * const res =
7507
+ * await vmmigration.projects.locations.sources.datacenterConnectors.get({
7508
+ * // Required. The name of the DatacenterConnector.
7509
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
7510
+ * });
7511
+ * console.log(res.data);
7512
+ *
7513
+ * // Example response
7514
+ * // {
7515
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
7516
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
7517
+ * // "availableVersions": {},
7518
+ * // "bucket": "my_bucket",
7519
+ * // "createTime": "my_createTime",
7520
+ * // "error": {},
7521
+ * // "name": "my_name",
7522
+ * // "registrationId": "my_registrationId",
7523
+ * // "serviceAccount": "my_serviceAccount",
7524
+ * // "state": "my_state",
7525
+ * // "stateTime": "my_stateTime",
7526
+ * // "updateTime": "my_updateTime",
7527
+ * // "upgradeStatus": {},
7528
+ * // "version": "my_version"
7529
+ * // }
7530
+ * }
7531
+ *
7532
+ * main().catch(e => {
7533
+ * console.error(e);
7534
+ * throw e;
7535
+ * });
7536
+ *
7537
+ * ```
5840
7538
  *
5841
7539
  * @param params - Parameters for request
5842
7540
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5926,6 +7624,63 @@ export namespace vmmigration_v1alpha1 {
5926
7624
 
5927
7625
  /**
5928
7626
  * Lists DatacenterConnectors in a given Source.
7627
+ * @example
7628
+ * ```js
7629
+ * // Before running the sample:
7630
+ * // - Enable the API at:
7631
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7632
+ * // - Login into gcloud by running:
7633
+ * // ```sh
7634
+ * // $ gcloud auth application-default login
7635
+ * // ```
7636
+ * // - Install the npm module by running:
7637
+ * // ```sh
7638
+ * // $ npm install googleapis
7639
+ * // ```
7640
+ *
7641
+ * const {google} = require('googleapis');
7642
+ * const vmmigration = google.vmmigration('v1alpha1');
7643
+ *
7644
+ * async function main() {
7645
+ * const auth = new google.auth.GoogleAuth({
7646
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7647
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7648
+ * });
7649
+ *
7650
+ * // Acquire an auth client, and bind it to all future calls
7651
+ * const authClient = await auth.getClient();
7652
+ * google.options({auth: authClient});
7653
+ *
7654
+ * // Do the magic
7655
+ * const res =
7656
+ * await vmmigration.projects.locations.sources.datacenterConnectors.list({
7657
+ * // Optional. The filter request.
7658
+ * filter: 'placeholder-value',
7659
+ * // Optional. the order by fields for the result.
7660
+ * orderBy: 'placeholder-value',
7661
+ * // Optional. The maximum number of connectors to return. The service may return fewer than this value. If unspecified, at most 500 sources will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7662
+ * pageSize: 'placeholder-value',
7663
+ * // Required. A page token, received from a previous `ListDatacenterConnectors` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatacenterConnectors` must match the call that provided the page token.
7664
+ * pageToken: 'placeholder-value',
7665
+ * // Required. The parent, which owns this collection of connectors.
7666
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7667
+ * });
7668
+ * console.log(res.data);
7669
+ *
7670
+ * // Example response
7671
+ * // {
7672
+ * // "datacenterConnectors": [],
7673
+ * // "nextPageToken": "my_nextPageToken",
7674
+ * // "unreachable": []
7675
+ * // }
7676
+ * }
7677
+ *
7678
+ * main().catch(e => {
7679
+ * console.error(e);
7680
+ * throw e;
7681
+ * });
7682
+ *
7683
+ * ```
5929
7684
  *
5930
7685
  * @param params - Parameters for request
5931
7686
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6028,6 +7783,68 @@ export namespace vmmigration_v1alpha1 {
6028
7783
 
6029
7784
  /**
6030
7785
  * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
7786
+ * @example
7787
+ * ```js
7788
+ * // Before running the sample:
7789
+ * // - Enable the API at:
7790
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7791
+ * // - Login into gcloud by running:
7792
+ * // ```sh
7793
+ * // $ gcloud auth application-default login
7794
+ * // ```
7795
+ * // - Install the npm module by running:
7796
+ * // ```sh
7797
+ * // $ npm install googleapis
7798
+ * // ```
7799
+ *
7800
+ * const {google} = require('googleapis');
7801
+ * const vmmigration = google.vmmigration('v1alpha1');
7802
+ *
7803
+ * async function main() {
7804
+ * const auth = new google.auth.GoogleAuth({
7805
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7806
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7807
+ * });
7808
+ *
7809
+ * // Acquire an auth client, and bind it to all future calls
7810
+ * const authClient = await auth.getClient();
7811
+ * google.options({auth: authClient});
7812
+ *
7813
+ * // Do the magic
7814
+ * const res =
7815
+ * await vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance(
7816
+ * {
7817
+ * // Required. The DatacenterConnector name.
7818
+ * datacenterConnector:
7819
+ * 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
7820
+ *
7821
+ * // Request body metadata
7822
+ * requestBody: {
7823
+ * // request body parameters
7824
+ * // {
7825
+ * // "requestId": "my_requestId"
7826
+ * // }
7827
+ * },
7828
+ * },
7829
+ * );
7830
+ * console.log(res.data);
7831
+ *
7832
+ * // Example response
7833
+ * // {
7834
+ * // "done": false,
7835
+ * // "error": {},
7836
+ * // "metadata": {},
7837
+ * // "name": "my_name",
7838
+ * // "response": {}
7839
+ * // }
7840
+ * }
7841
+ *
7842
+ * main().catch(e => {
7843
+ * console.error(e);
7844
+ * throw e;
7845
+ * });
7846
+ *
7847
+ * ```
6031
7848
  *
6032
7849
  * @param params - Parameters for request
6033
7850
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6215,6 +8032,93 @@ export namespace vmmigration_v1alpha1 {
6215
8032
 
6216
8033
  /**
6217
8034
  * Creates a new MigratingVm in a given Source.
8035
+ * @example
8036
+ * ```js
8037
+ * // Before running the sample:
8038
+ * // - Enable the API at:
8039
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8040
+ * // - Login into gcloud by running:
8041
+ * // ```sh
8042
+ * // $ gcloud auth application-default login
8043
+ * // ```
8044
+ * // - Install the npm module by running:
8045
+ * // ```sh
8046
+ * // $ npm install googleapis
8047
+ * // ```
8048
+ *
8049
+ * const {google} = require('googleapis');
8050
+ * const vmmigration = google.vmmigration('v1alpha1');
8051
+ *
8052
+ * async function main() {
8053
+ * const auth = new google.auth.GoogleAuth({
8054
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8055
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8056
+ * });
8057
+ *
8058
+ * // Acquire an auth client, and bind it to all future calls
8059
+ * const authClient = await auth.getClient();
8060
+ * google.options({auth: authClient});
8061
+ *
8062
+ * // Do the magic
8063
+ * const res = await vmmigration.projects.locations.sources.migratingVms.create({
8064
+ * // Required. The migratingVm identifier.
8065
+ * migratingVmId: 'placeholder-value',
8066
+ * // Required. The MigratingVm's parent.
8067
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
8068
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
8069
+ * requestId: 'placeholder-value',
8070
+ *
8071
+ * // Request body metadata
8072
+ * requestBody: {
8073
+ * // request body parameters
8074
+ * // {
8075
+ * // "awsSourceVmDetails": {},
8076
+ * // "azureSourceVmDetails": {},
8077
+ * // "computeEngineDisksTargetDefaults": {},
8078
+ * // "computeEngineTargetDefaults": {},
8079
+ * // "computeEngineVmDefaults": {},
8080
+ * // "createTime": "my_createTime",
8081
+ * // "currentSyncInfo": {},
8082
+ * // "cutoverForecast": {},
8083
+ * // "description": "my_description",
8084
+ * // "displayName": "my_displayName",
8085
+ * // "error": {},
8086
+ * // "expiration": {},
8087
+ * // "group": "my_group",
8088
+ * // "labels": {},
8089
+ * // "lastReplicationCycle": {},
8090
+ * // "lastSync": {},
8091
+ * // "name": "my_name",
8092
+ * // "policy": {},
8093
+ * // "recentCloneJobs": [],
8094
+ * // "recentCutoverJobs": [],
8095
+ * // "sourceVmId": "my_sourceVmId",
8096
+ * // "state": "my_state",
8097
+ * // "stateTime": "my_stateTime",
8098
+ * // "targetDefaults": {},
8099
+ * // "updateTime": "my_updateTime",
8100
+ * // "vmwareSourceVmDetails": {}
8101
+ * // }
8102
+ * },
8103
+ * });
8104
+ * console.log(res.data);
8105
+ *
8106
+ * // Example response
8107
+ * // {
8108
+ * // "done": false,
8109
+ * // "error": {},
8110
+ * // "metadata": {},
8111
+ * // "name": "my_name",
8112
+ * // "response": {}
8113
+ * // }
8114
+ * }
8115
+ *
8116
+ * main().catch(e => {
8117
+ * console.error(e);
8118
+ * throw e;
8119
+ * });
8120
+ *
8121
+ * ```
6218
8122
  *
6219
8123
  * @param params - Parameters for request
6220
8124
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6307,6 +8211,56 @@ export namespace vmmigration_v1alpha1 {
6307
8211
 
6308
8212
  /**
6309
8213
  * Deletes a single MigratingVm.
8214
+ * @example
8215
+ * ```js
8216
+ * // Before running the sample:
8217
+ * // - Enable the API at:
8218
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8219
+ * // - Login into gcloud by running:
8220
+ * // ```sh
8221
+ * // $ gcloud auth application-default login
8222
+ * // ```
8223
+ * // - Install the npm module by running:
8224
+ * // ```sh
8225
+ * // $ npm install googleapis
8226
+ * // ```
8227
+ *
8228
+ * const {google} = require('googleapis');
8229
+ * const vmmigration = google.vmmigration('v1alpha1');
8230
+ *
8231
+ * async function main() {
8232
+ * const auth = new google.auth.GoogleAuth({
8233
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8234
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8235
+ * });
8236
+ *
8237
+ * // Acquire an auth client, and bind it to all future calls
8238
+ * const authClient = await auth.getClient();
8239
+ * google.options({auth: authClient});
8240
+ *
8241
+ * // Do the magic
8242
+ * const res = await vmmigration.projects.locations.sources.migratingVms.delete({
8243
+ * // Required. The name of the MigratingVm.
8244
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
8245
+ * });
8246
+ * console.log(res.data);
8247
+ *
8248
+ * // Example response
8249
+ * // {
8250
+ * // "done": false,
8251
+ * // "error": {},
8252
+ * // "metadata": {},
8253
+ * // "name": "my_name",
8254
+ * // "response": {}
8255
+ * // }
8256
+ * }
8257
+ *
8258
+ * main().catch(e => {
8259
+ * console.error(e);
8260
+ * throw e;
8261
+ * });
8262
+ *
8263
+ * ```
6310
8264
  *
6311
8265
  * @param params - Parameters for request
6312
8266
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6394,8 +8348,218 @@ export namespace vmmigration_v1alpha1 {
6394
8348
  }
6395
8349
  }
6396
8350
 
8351
+ /**
8352
+ * Extend the migrating VM time to live.
8353
+ * @example
8354
+ * ```js
8355
+ * // Before running the sample:
8356
+ * // - Enable the API at:
8357
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8358
+ * // - Login into gcloud by running:
8359
+ * // ```sh
8360
+ * // $ gcloud auth application-default login
8361
+ * // ```
8362
+ * // - Install the npm module by running:
8363
+ * // ```sh
8364
+ * // $ npm install googleapis
8365
+ * // ```
8366
+ *
8367
+ * const {google} = require('googleapis');
8368
+ * const vmmigration = google.vmmigration('v1alpha1');
8369
+ *
8370
+ * async function main() {
8371
+ * const auth = new google.auth.GoogleAuth({
8372
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8373
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8374
+ * });
8375
+ *
8376
+ * // Acquire an auth client, and bind it to all future calls
8377
+ * const authClient = await auth.getClient();
8378
+ * google.options({auth: authClient});
8379
+ *
8380
+ * // Do the magic
8381
+ * const res =
8382
+ * await vmmigration.projects.locations.sources.migratingVms.extendMigration({
8383
+ * // Required. The name of the MigratingVm.
8384
+ * migratingVm:
8385
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
8386
+ *
8387
+ * // Request body metadata
8388
+ * requestBody: {
8389
+ * // request body parameters
8390
+ * // {}
8391
+ * },
8392
+ * });
8393
+ * console.log(res.data);
8394
+ *
8395
+ * // Example response
8396
+ * // {
8397
+ * // "done": false,
8398
+ * // "error": {},
8399
+ * // "metadata": {},
8400
+ * // "name": "my_name",
8401
+ * // "response": {}
8402
+ * // }
8403
+ * }
8404
+ *
8405
+ * main().catch(e => {
8406
+ * console.error(e);
8407
+ * throw e;
8408
+ * });
8409
+ *
8410
+ * ```
8411
+ *
8412
+ * @param params - Parameters for request
8413
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8414
+ * @param callback - Optional callback that handles the response.
8415
+ * @returns A promise if used with async/await, or void if used with a callback.
8416
+ */
8417
+ extendMigration(
8418
+ params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration,
8419
+ options: StreamMethodOptions
8420
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8421
+ extendMigration(
8422
+ params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration,
8423
+ options?: MethodOptions
8424
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8425
+ extendMigration(
8426
+ params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration,
8427
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8428
+ callback: BodyResponseCallback<Readable>
8429
+ ): void;
8430
+ extendMigration(
8431
+ params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration,
8432
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8433
+ callback: BodyResponseCallback<Schema$Operation>
8434
+ ): void;
8435
+ extendMigration(
8436
+ params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration,
8437
+ callback: BodyResponseCallback<Schema$Operation>
8438
+ ): void;
8439
+ extendMigration(callback: BodyResponseCallback<Schema$Operation>): void;
8440
+ extendMigration(
8441
+ paramsOrCallback?:
8442
+ | Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration
8443
+ | BodyResponseCallback<Schema$Operation>
8444
+ | BodyResponseCallback<Readable>,
8445
+ optionsOrCallback?:
8446
+ | MethodOptions
8447
+ | StreamMethodOptions
8448
+ | BodyResponseCallback<Schema$Operation>
8449
+ | BodyResponseCallback<Readable>,
8450
+ callback?:
8451
+ | BodyResponseCallback<Schema$Operation>
8452
+ | BodyResponseCallback<Readable>
8453
+ ):
8454
+ | void
8455
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8456
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8457
+ let params = (paramsOrCallback ||
8458
+ {}) as Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration;
8459
+ let options = (optionsOrCallback || {}) as MethodOptions;
8460
+
8461
+ if (typeof paramsOrCallback === 'function') {
8462
+ callback = paramsOrCallback;
8463
+ params =
8464
+ {} as Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration;
8465
+ options = {};
8466
+ }
8467
+
8468
+ if (typeof optionsOrCallback === 'function') {
8469
+ callback = optionsOrCallback;
8470
+ options = {};
8471
+ }
8472
+
8473
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8474
+ const parameters = {
8475
+ options: Object.assign(
8476
+ {
8477
+ url: (rootUrl + '/v1alpha1/{+migratingVm}:extendMigration').replace(
8478
+ /([^:]\/)\/+/g,
8479
+ '$1'
8480
+ ),
8481
+ method: 'POST',
8482
+ apiVersion: '',
8483
+ },
8484
+ options
8485
+ ),
8486
+ params,
8487
+ requiredParams: ['migratingVm'],
8488
+ pathParams: ['migratingVm'],
8489
+ context: this.context,
8490
+ };
8491
+ if (callback) {
8492
+ createAPIRequest<Schema$Operation>(
8493
+ parameters,
8494
+ callback as BodyResponseCallback<unknown>
8495
+ );
8496
+ } else {
8497
+ return createAPIRequest<Schema$Operation>(parameters);
8498
+ }
8499
+ }
8500
+
6397
8501
  /**
6398
8502
  * Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
8503
+ * @example
8504
+ * ```js
8505
+ * // Before running the sample:
8506
+ * // - Enable the API at:
8507
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8508
+ * // - Login into gcloud by running:
8509
+ * // ```sh
8510
+ * // $ gcloud auth application-default login
8511
+ * // ```
8512
+ * // - Install the npm module by running:
8513
+ * // ```sh
8514
+ * // $ npm install googleapis
8515
+ * // ```
8516
+ *
8517
+ * const {google} = require('googleapis');
8518
+ * const vmmigration = google.vmmigration('v1alpha1');
8519
+ *
8520
+ * async function main() {
8521
+ * const auth = new google.auth.GoogleAuth({
8522
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8523
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8524
+ * });
8525
+ *
8526
+ * // Acquire an auth client, and bind it to all future calls
8527
+ * const authClient = await auth.getClient();
8528
+ * google.options({auth: authClient});
8529
+ *
8530
+ * // Do the magic
8531
+ * const res =
8532
+ * await vmmigration.projects.locations.sources.migratingVms.finalizeMigration(
8533
+ * {
8534
+ * // Required. The name of the MigratingVm.
8535
+ * migratingVm:
8536
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
8537
+ *
8538
+ * // Request body metadata
8539
+ * requestBody: {
8540
+ * // request body parameters
8541
+ * // {}
8542
+ * },
8543
+ * },
8544
+ * );
8545
+ * console.log(res.data);
8546
+ *
8547
+ * // Example response
8548
+ * // {
8549
+ * // "done": false,
8550
+ * // "error": {},
8551
+ * // "metadata": {},
8552
+ * // "name": "my_name",
8553
+ * // "response": {}
8554
+ * // }
8555
+ * }
8556
+ *
8557
+ * main().catch(e => {
8558
+ * console.error(e);
8559
+ * throw e;
8560
+ * });
8561
+ *
8562
+ * ```
6399
8563
  *
6400
8564
  * @param params - Parameters for request
6401
8565
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6487,6 +8651,79 @@ export namespace vmmigration_v1alpha1 {
6487
8651
 
6488
8652
  /**
6489
8653
  * Gets details of a single MigratingVm.
8654
+ * @example
8655
+ * ```js
8656
+ * // Before running the sample:
8657
+ * // - Enable the API at:
8658
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8659
+ * // - Login into gcloud by running:
8660
+ * // ```sh
8661
+ * // $ gcloud auth application-default login
8662
+ * // ```
8663
+ * // - Install the npm module by running:
8664
+ * // ```sh
8665
+ * // $ npm install googleapis
8666
+ * // ```
8667
+ *
8668
+ * const {google} = require('googleapis');
8669
+ * const vmmigration = google.vmmigration('v1alpha1');
8670
+ *
8671
+ * async function main() {
8672
+ * const auth = new google.auth.GoogleAuth({
8673
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8674
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8675
+ * });
8676
+ *
8677
+ * // Acquire an auth client, and bind it to all future calls
8678
+ * const authClient = await auth.getClient();
8679
+ * google.options({auth: authClient});
8680
+ *
8681
+ * // Do the magic
8682
+ * const res = await vmmigration.projects.locations.sources.migratingVms.get({
8683
+ * // Required. The name of the MigratingVm.
8684
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
8685
+ * // Optional. The level of details of the migrating VM.
8686
+ * view: 'placeholder-value',
8687
+ * });
8688
+ * console.log(res.data);
8689
+ *
8690
+ * // Example response
8691
+ * // {
8692
+ * // "awsSourceVmDetails": {},
8693
+ * // "azureSourceVmDetails": {},
8694
+ * // "computeEngineDisksTargetDefaults": {},
8695
+ * // "computeEngineTargetDefaults": {},
8696
+ * // "computeEngineVmDefaults": {},
8697
+ * // "createTime": "my_createTime",
8698
+ * // "currentSyncInfo": {},
8699
+ * // "cutoverForecast": {},
8700
+ * // "description": "my_description",
8701
+ * // "displayName": "my_displayName",
8702
+ * // "error": {},
8703
+ * // "expiration": {},
8704
+ * // "group": "my_group",
8705
+ * // "labels": {},
8706
+ * // "lastReplicationCycle": {},
8707
+ * // "lastSync": {},
8708
+ * // "name": "my_name",
8709
+ * // "policy": {},
8710
+ * // "recentCloneJobs": [],
8711
+ * // "recentCutoverJobs": [],
8712
+ * // "sourceVmId": "my_sourceVmId",
8713
+ * // "state": "my_state",
8714
+ * // "stateTime": "my_stateTime",
8715
+ * // "targetDefaults": {},
8716
+ * // "updateTime": "my_updateTime",
8717
+ * // "vmwareSourceVmDetails": {}
8718
+ * // }
8719
+ * }
8720
+ *
8721
+ * main().catch(e => {
8722
+ * console.error(e);
8723
+ * throw e;
8724
+ * });
8725
+ *
8726
+ * ```
6490
8727
  *
6491
8728
  * @param params - Parameters for request
6492
8729
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6576,6 +8813,64 @@ export namespace vmmigration_v1alpha1 {
6576
8813
 
6577
8814
  /**
6578
8815
  * Lists MigratingVms in a given Source.
8816
+ * @example
8817
+ * ```js
8818
+ * // Before running the sample:
8819
+ * // - Enable the API at:
8820
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8821
+ * // - Login into gcloud by running:
8822
+ * // ```sh
8823
+ * // $ gcloud auth application-default login
8824
+ * // ```
8825
+ * // - Install the npm module by running:
8826
+ * // ```sh
8827
+ * // $ npm install googleapis
8828
+ * // ```
8829
+ *
8830
+ * const {google} = require('googleapis');
8831
+ * const vmmigration = google.vmmigration('v1alpha1');
8832
+ *
8833
+ * async function main() {
8834
+ * const auth = new google.auth.GoogleAuth({
8835
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8836
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8837
+ * });
8838
+ *
8839
+ * // Acquire an auth client, and bind it to all future calls
8840
+ * const authClient = await auth.getClient();
8841
+ * google.options({auth: authClient});
8842
+ *
8843
+ * // Do the magic
8844
+ * const res = await vmmigration.projects.locations.sources.migratingVms.list({
8845
+ * // Optional. The filter request.
8846
+ * filter: 'placeholder-value',
8847
+ * // Optional. the order by fields for the result.
8848
+ * orderBy: 'placeholder-value',
8849
+ * // Optional. The maximum number of migrating VMs to return. The service may return fewer than this value. If unspecified, at most 500 migrating VMs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
8850
+ * pageSize: 'placeholder-value',
8851
+ * // Required. A page token, received from a previous `ListMigratingVms` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMigratingVms` must match the call that provided the page token.
8852
+ * pageToken: 'placeholder-value',
8853
+ * // Required. The parent, which owns this collection of MigratingVms.
8854
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
8855
+ * // Optional. The level of details of each migrating VM.
8856
+ * view: 'placeholder-value',
8857
+ * });
8858
+ * console.log(res.data);
8859
+ *
8860
+ * // Example response
8861
+ * // {
8862
+ * // "migratingVms": [],
8863
+ * // "nextPageToken": "my_nextPageToken",
8864
+ * // "unreachable": []
8865
+ * // }
8866
+ * }
8867
+ *
8868
+ * main().catch(e => {
8869
+ * console.error(e);
8870
+ * throw e;
8871
+ * });
8872
+ *
8873
+ * ```
6579
8874
  *
6580
8875
  * @param params - Parameters for request
6581
8876
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6670,6 +8965,93 @@ export namespace vmmigration_v1alpha1 {
6670
8965
 
6671
8966
  /**
6672
8967
  * Updates the parameters of a single MigratingVm.
8968
+ * @example
8969
+ * ```js
8970
+ * // Before running the sample:
8971
+ * // - Enable the API at:
8972
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8973
+ * // - Login into gcloud by running:
8974
+ * // ```sh
8975
+ * // $ gcloud auth application-default login
8976
+ * // ```
8977
+ * // - Install the npm module by running:
8978
+ * // ```sh
8979
+ * // $ npm install googleapis
8980
+ * // ```
8981
+ *
8982
+ * const {google} = require('googleapis');
8983
+ * const vmmigration = google.vmmigration('v1alpha1');
8984
+ *
8985
+ * async function main() {
8986
+ * const auth = new google.auth.GoogleAuth({
8987
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8988
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8989
+ * });
8990
+ *
8991
+ * // Acquire an auth client, and bind it to all future calls
8992
+ * const authClient = await auth.getClient();
8993
+ * google.options({auth: authClient});
8994
+ *
8995
+ * // Do the magic
8996
+ * const res = await vmmigration.projects.locations.sources.migratingVms.patch({
8997
+ * // Output only. The identifier of the MigratingVm.
8998
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
8999
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
9000
+ * requestId: 'placeholder-value',
9001
+ * // Field mask is used to specify the fields to be overwritten in the MigratingVm resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
9002
+ * updateMask: 'placeholder-value',
9003
+ *
9004
+ * // Request body metadata
9005
+ * requestBody: {
9006
+ * // request body parameters
9007
+ * // {
9008
+ * // "awsSourceVmDetails": {},
9009
+ * // "azureSourceVmDetails": {},
9010
+ * // "computeEngineDisksTargetDefaults": {},
9011
+ * // "computeEngineTargetDefaults": {},
9012
+ * // "computeEngineVmDefaults": {},
9013
+ * // "createTime": "my_createTime",
9014
+ * // "currentSyncInfo": {},
9015
+ * // "cutoverForecast": {},
9016
+ * // "description": "my_description",
9017
+ * // "displayName": "my_displayName",
9018
+ * // "error": {},
9019
+ * // "expiration": {},
9020
+ * // "group": "my_group",
9021
+ * // "labels": {},
9022
+ * // "lastReplicationCycle": {},
9023
+ * // "lastSync": {},
9024
+ * // "name": "my_name",
9025
+ * // "policy": {},
9026
+ * // "recentCloneJobs": [],
9027
+ * // "recentCutoverJobs": [],
9028
+ * // "sourceVmId": "my_sourceVmId",
9029
+ * // "state": "my_state",
9030
+ * // "stateTime": "my_stateTime",
9031
+ * // "targetDefaults": {},
9032
+ * // "updateTime": "my_updateTime",
9033
+ * // "vmwareSourceVmDetails": {}
9034
+ * // }
9035
+ * },
9036
+ * });
9037
+ * console.log(res.data);
9038
+ *
9039
+ * // Example response
9040
+ * // {
9041
+ * // "done": false,
9042
+ * // "error": {},
9043
+ * // "metadata": {},
9044
+ * // "name": "my_name",
9045
+ * // "response": {}
9046
+ * // }
9047
+ * }
9048
+ *
9049
+ * main().catch(e => {
9050
+ * console.error(e);
9051
+ * throw e;
9052
+ * });
9053
+ *
9054
+ * ```
6673
9055
  *
6674
9056
  * @param params - Parameters for request
6675
9057
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6759,6 +9141,64 @@ export namespace vmmigration_v1alpha1 {
6759
9141
 
6760
9142
  /**
6761
9143
  * 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.
9144
+ * @example
9145
+ * ```js
9146
+ * // Before running the sample:
9147
+ * // - Enable the API at:
9148
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9149
+ * // - Login into gcloud by running:
9150
+ * // ```sh
9151
+ * // $ gcloud auth application-default login
9152
+ * // ```
9153
+ * // - Install the npm module by running:
9154
+ * // ```sh
9155
+ * // $ npm install googleapis
9156
+ * // ```
9157
+ *
9158
+ * const {google} = require('googleapis');
9159
+ * const vmmigration = google.vmmigration('v1alpha1');
9160
+ *
9161
+ * async function main() {
9162
+ * const auth = new google.auth.GoogleAuth({
9163
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9164
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9165
+ * });
9166
+ *
9167
+ * // Acquire an auth client, and bind it to all future calls
9168
+ * const authClient = await auth.getClient();
9169
+ * google.options({auth: authClient});
9170
+ *
9171
+ * // Do the magic
9172
+ * const res =
9173
+ * await vmmigration.projects.locations.sources.migratingVms.pauseMigration({
9174
+ * // Required. The name of the MigratingVm.
9175
+ * migratingVm:
9176
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
9177
+ *
9178
+ * // Request body metadata
9179
+ * requestBody: {
9180
+ * // request body parameters
9181
+ * // {}
9182
+ * },
9183
+ * });
9184
+ * console.log(res.data);
9185
+ *
9186
+ * // Example response
9187
+ * // {
9188
+ * // "done": false,
9189
+ * // "error": {},
9190
+ * // "metadata": {},
9191
+ * // "name": "my_name",
9192
+ * // "response": {}
9193
+ * // }
9194
+ * }
9195
+ *
9196
+ * main().catch(e => {
9197
+ * console.error(e);
9198
+ * throw e;
9199
+ * });
9200
+ *
9201
+ * ```
6762
9202
  *
6763
9203
  * @param params - Parameters for request
6764
9204
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6851,6 +9291,64 @@ export namespace vmmigration_v1alpha1 {
6851
9291
 
6852
9292
  /**
6853
9293
  * 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.
9294
+ * @example
9295
+ * ```js
9296
+ * // Before running the sample:
9297
+ * // - Enable the API at:
9298
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9299
+ * // - Login into gcloud by running:
9300
+ * // ```sh
9301
+ * // $ gcloud auth application-default login
9302
+ * // ```
9303
+ * // - Install the npm module by running:
9304
+ * // ```sh
9305
+ * // $ npm install googleapis
9306
+ * // ```
9307
+ *
9308
+ * const {google} = require('googleapis');
9309
+ * const vmmigration = google.vmmigration('v1alpha1');
9310
+ *
9311
+ * async function main() {
9312
+ * const auth = new google.auth.GoogleAuth({
9313
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9314
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9315
+ * });
9316
+ *
9317
+ * // Acquire an auth client, and bind it to all future calls
9318
+ * const authClient = await auth.getClient();
9319
+ * google.options({auth: authClient});
9320
+ *
9321
+ * // Do the magic
9322
+ * const res =
9323
+ * await vmmigration.projects.locations.sources.migratingVms.resumeMigration({
9324
+ * // Required. The name of the MigratingVm.
9325
+ * migratingVm:
9326
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
9327
+ *
9328
+ * // Request body metadata
9329
+ * requestBody: {
9330
+ * // request body parameters
9331
+ * // {}
9332
+ * },
9333
+ * });
9334
+ * console.log(res.data);
9335
+ *
9336
+ * // Example response
9337
+ * // {
9338
+ * // "done": false,
9339
+ * // "error": {},
9340
+ * // "metadata": {},
9341
+ * // "name": "my_name",
9342
+ * // "response": {}
9343
+ * // }
9344
+ * }
9345
+ *
9346
+ * main().catch(e => {
9347
+ * console.error(e);
9348
+ * throw e;
9349
+ * });
9350
+ *
9351
+ * ```
6854
9352
  *
6855
9353
  * @param params - Parameters for request
6856
9354
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6943,6 +9441,64 @@ export namespace vmmigration_v1alpha1 {
6943
9441
 
6944
9442
  /**
6945
9443
  * Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
9444
+ * @example
9445
+ * ```js
9446
+ * // Before running the sample:
9447
+ * // - Enable the API at:
9448
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9449
+ * // - Login into gcloud by running:
9450
+ * // ```sh
9451
+ * // $ gcloud auth application-default login
9452
+ * // ```
9453
+ * // - Install the npm module by running:
9454
+ * // ```sh
9455
+ * // $ npm install googleapis
9456
+ * // ```
9457
+ *
9458
+ * const {google} = require('googleapis');
9459
+ * const vmmigration = google.vmmigration('v1alpha1');
9460
+ *
9461
+ * async function main() {
9462
+ * const auth = new google.auth.GoogleAuth({
9463
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9464
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9465
+ * });
9466
+ *
9467
+ * // Acquire an auth client, and bind it to all future calls
9468
+ * const authClient = await auth.getClient();
9469
+ * google.options({auth: authClient});
9470
+ *
9471
+ * // Do the magic
9472
+ * const res =
9473
+ * await vmmigration.projects.locations.sources.migratingVms.startMigration({
9474
+ * // Required. The name of the MigratingVm.
9475
+ * migratingVm:
9476
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
9477
+ *
9478
+ * // Request body metadata
9479
+ * requestBody: {
9480
+ * // request body parameters
9481
+ * // {}
9482
+ * },
9483
+ * });
9484
+ * console.log(res.data);
9485
+ *
9486
+ * // Example response
9487
+ * // {
9488
+ * // "done": false,
9489
+ * // "error": {},
9490
+ * // "metadata": {},
9491
+ * // "name": "my_name",
9492
+ * // "response": {}
9493
+ * // }
9494
+ * }
9495
+ *
9496
+ * main().catch(e => {
9497
+ * console.error(e);
9498
+ * throw e;
9499
+ * });
9500
+ *
9501
+ * ```
6946
9502
  *
6947
9503
  * @param params - Parameters for request
6948
9504
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7061,6 +9617,18 @@ export namespace vmmigration_v1alpha1 {
7061
9617
  */
7062
9618
  name?: string;
7063
9619
  }
9620
+ export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration
9621
+ extends StandardParameters {
9622
+ /**
9623
+ * Required. The name of the MigratingVm.
9624
+ */
9625
+ migratingVm?: string;
9626
+
9627
+ /**
9628
+ * Request body metadata
9629
+ */
9630
+ requestBody?: Schema$ExtendMigrationRequest;
9631
+ }
7064
9632
  export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration
7065
9633
  extends StandardParameters {
7066
9634
  /**
@@ -7176,6 +9744,63 @@ export namespace vmmigration_v1alpha1 {
7176
9744
 
7177
9745
  /**
7178
9746
  * Initiates the cancellation of a running clone job.
9747
+ * @example
9748
+ * ```js
9749
+ * // Before running the sample:
9750
+ * // - Enable the API at:
9751
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9752
+ * // - Login into gcloud by running:
9753
+ * // ```sh
9754
+ * // $ gcloud auth application-default login
9755
+ * // ```
9756
+ * // - Install the npm module by running:
9757
+ * // ```sh
9758
+ * // $ npm install googleapis
9759
+ * // ```
9760
+ *
9761
+ * const {google} = require('googleapis');
9762
+ * const vmmigration = google.vmmigration('v1alpha1');
9763
+ *
9764
+ * async function main() {
9765
+ * const auth = new google.auth.GoogleAuth({
9766
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9767
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9768
+ * });
9769
+ *
9770
+ * // Acquire an auth client, and bind it to all future calls
9771
+ * const authClient = await auth.getClient();
9772
+ * google.options({auth: authClient});
9773
+ *
9774
+ * // Do the magic
9775
+ * const res =
9776
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel({
9777
+ * // Required. The clone job id
9778
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
9779
+ *
9780
+ * // Request body metadata
9781
+ * requestBody: {
9782
+ * // request body parameters
9783
+ * // {}
9784
+ * },
9785
+ * });
9786
+ * console.log(res.data);
9787
+ *
9788
+ * // Example response
9789
+ * // {
9790
+ * // "done": false,
9791
+ * // "error": {},
9792
+ * // "metadata": {},
9793
+ * // "name": "my_name",
9794
+ * // "response": {}
9795
+ * // }
9796
+ * }
9797
+ *
9798
+ * main().catch(e => {
9799
+ * console.error(e);
9800
+ * throw e;
9801
+ * });
9802
+ *
9803
+ * ```
7179
9804
  *
7180
9805
  * @param params - Parameters for request
7181
9806
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7268,6 +9893,80 @@ export namespace vmmigration_v1alpha1 {
7268
9893
 
7269
9894
  /**
7270
9895
  * Initiates a Clone of a specific migrating VM.
9896
+ * @example
9897
+ * ```js
9898
+ * // Before running the sample:
9899
+ * // - Enable the API at:
9900
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9901
+ * // - Login into gcloud by running:
9902
+ * // ```sh
9903
+ * // $ gcloud auth application-default login
9904
+ * // ```
9905
+ * // - Install the npm module by running:
9906
+ * // ```sh
9907
+ * // $ npm install googleapis
9908
+ * // ```
9909
+ *
9910
+ * const {google} = require('googleapis');
9911
+ * const vmmigration = google.vmmigration('v1alpha1');
9912
+ *
9913
+ * async function main() {
9914
+ * const auth = new google.auth.GoogleAuth({
9915
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9916
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9917
+ * });
9918
+ *
9919
+ * // Acquire an auth client, and bind it to all future calls
9920
+ * const authClient = await auth.getClient();
9921
+ * google.options({auth: authClient});
9922
+ *
9923
+ * // Do the magic
9924
+ * const res =
9925
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.create({
9926
+ * // Required. The clone job identifier.
9927
+ * cloneJobId: 'placeholder-value',
9928
+ * // Required. The Clone's parent.
9929
+ * parent:
9930
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
9931
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
9932
+ * requestId: 'placeholder-value',
9933
+ *
9934
+ * // Request body metadata
9935
+ * requestBody: {
9936
+ * // request body parameters
9937
+ * // {
9938
+ * // "computeEngineDisksTargetDetails": {},
9939
+ * // "computeEngineTargetDetails": {},
9940
+ * // "computeEngineVmDetails": {},
9941
+ * // "createTime": "my_createTime",
9942
+ * // "endTime": "my_endTime",
9943
+ * // "error": {},
9944
+ * // "name": "my_name",
9945
+ * // "state": "my_state",
9946
+ * // "stateTime": "my_stateTime",
9947
+ * // "steps": [],
9948
+ * // "targetDetails": {}
9949
+ * // }
9950
+ * },
9951
+ * });
9952
+ * console.log(res.data);
9953
+ *
9954
+ * // Example response
9955
+ * // {
9956
+ * // "done": false,
9957
+ * // "error": {},
9958
+ * // "metadata": {},
9959
+ * // "name": "my_name",
9960
+ * // "response": {}
9961
+ * // }
9962
+ * }
9963
+ *
9964
+ * main().catch(e => {
9965
+ * console.error(e);
9966
+ * throw e;
9967
+ * });
9968
+ *
9969
+ * ```
7271
9970
  *
7272
9971
  * @param params - Parameters for request
7273
9972
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7360,6 +10059,63 @@ export namespace vmmigration_v1alpha1 {
7360
10059
 
7361
10060
  /**
7362
10061
  * Gets details of a single CloneJob.
10062
+ * @example
10063
+ * ```js
10064
+ * // Before running the sample:
10065
+ * // - Enable the API at:
10066
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10067
+ * // - Login into gcloud by running:
10068
+ * // ```sh
10069
+ * // $ gcloud auth application-default login
10070
+ * // ```
10071
+ * // - Install the npm module by running:
10072
+ * // ```sh
10073
+ * // $ npm install googleapis
10074
+ * // ```
10075
+ *
10076
+ * const {google} = require('googleapis');
10077
+ * const vmmigration = google.vmmigration('v1alpha1');
10078
+ *
10079
+ * async function main() {
10080
+ * const auth = new google.auth.GoogleAuth({
10081
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10082
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10083
+ * });
10084
+ *
10085
+ * // Acquire an auth client, and bind it to all future calls
10086
+ * const authClient = await auth.getClient();
10087
+ * google.options({auth: authClient});
10088
+ *
10089
+ * // Do the magic
10090
+ * const res =
10091
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.get({
10092
+ * // Required. The name of the CloneJob.
10093
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
10094
+ * });
10095
+ * console.log(res.data);
10096
+ *
10097
+ * // Example response
10098
+ * // {
10099
+ * // "computeEngineDisksTargetDetails": {},
10100
+ * // "computeEngineTargetDetails": {},
10101
+ * // "computeEngineVmDetails": {},
10102
+ * // "createTime": "my_createTime",
10103
+ * // "endTime": "my_endTime",
10104
+ * // "error": {},
10105
+ * // "name": "my_name",
10106
+ * // "state": "my_state",
10107
+ * // "stateTime": "my_stateTime",
10108
+ * // "steps": [],
10109
+ * // "targetDetails": {}
10110
+ * // }
10111
+ * }
10112
+ *
10113
+ * main().catch(e => {
10114
+ * console.error(e);
10115
+ * throw e;
10116
+ * });
10117
+ *
10118
+ * ```
7363
10119
  *
7364
10120
  * @param params - Parameters for request
7365
10121
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7449,6 +10205,64 @@ export namespace vmmigration_v1alpha1 {
7449
10205
 
7450
10206
  /**
7451
10207
  * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.
10208
+ * @example
10209
+ * ```js
10210
+ * // Before running the sample:
10211
+ * // - Enable the API at:
10212
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10213
+ * // - Login into gcloud by running:
10214
+ * // ```sh
10215
+ * // $ gcloud auth application-default login
10216
+ * // ```
10217
+ * // - Install the npm module by running:
10218
+ * // ```sh
10219
+ * // $ npm install googleapis
10220
+ * // ```
10221
+ *
10222
+ * const {google} = require('googleapis');
10223
+ * const vmmigration = google.vmmigration('v1alpha1');
10224
+ *
10225
+ * async function main() {
10226
+ * const auth = new google.auth.GoogleAuth({
10227
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10228
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10229
+ * });
10230
+ *
10231
+ * // Acquire an auth client, and bind it to all future calls
10232
+ * const authClient = await auth.getClient();
10233
+ * google.options({auth: authClient});
10234
+ *
10235
+ * // Do the magic
10236
+ * const res =
10237
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.list({
10238
+ * // Optional. The filter request.
10239
+ * filter: 'placeholder-value',
10240
+ * // Optional. the order by fields for the result.
10241
+ * orderBy: 'placeholder-value',
10242
+ * // Optional. The maximum number of clone jobs to return. The service may return fewer than this value. If unspecified, at most 500 clone jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
10243
+ * pageSize: 'placeholder-value',
10244
+ * // Required. A page token, received from a previous `ListCloneJobs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCloneJobs` must match the call that provided the page token.
10245
+ * pageToken: 'placeholder-value',
10246
+ * // Required. The parent, which owns this collection of source VMs.
10247
+ * parent:
10248
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
10249
+ * });
10250
+ * console.log(res.data);
10251
+ *
10252
+ * // Example response
10253
+ * // {
10254
+ * // "cloneJobs": [],
10255
+ * // "nextPageToken": "my_nextPageToken",
10256
+ * // "unreachable": []
10257
+ * // }
10258
+ * }
10259
+ *
10260
+ * main().catch(e => {
10261
+ * console.error(e);
10262
+ * throw e;
10263
+ * });
10264
+ *
10265
+ * ```
7452
10266
  *
7453
10267
  * @param params - Parameters for request
7454
10268
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7613,6 +10427,65 @@ export namespace vmmigration_v1alpha1 {
7613
10427
 
7614
10428
  /**
7615
10429
  * Initiates the cancellation of a running cutover job.
10430
+ * @example
10431
+ * ```js
10432
+ * // Before running the sample:
10433
+ * // - Enable the API at:
10434
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10435
+ * // - Login into gcloud by running:
10436
+ * // ```sh
10437
+ * // $ gcloud auth application-default login
10438
+ * // ```
10439
+ * // - Install the npm module by running:
10440
+ * // ```sh
10441
+ * // $ npm install googleapis
10442
+ * // ```
10443
+ *
10444
+ * const {google} = require('googleapis');
10445
+ * const vmmigration = google.vmmigration('v1alpha1');
10446
+ *
10447
+ * async function main() {
10448
+ * const auth = new google.auth.GoogleAuth({
10449
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10450
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10451
+ * });
10452
+ *
10453
+ * // Acquire an auth client, and bind it to all future calls
10454
+ * const authClient = await auth.getClient();
10455
+ * google.options({auth: authClient});
10456
+ *
10457
+ * // Do the magic
10458
+ * const res =
10459
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel(
10460
+ * {
10461
+ * // Required. The cutover job id
10462
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
10463
+ *
10464
+ * // Request body metadata
10465
+ * requestBody: {
10466
+ * // request body parameters
10467
+ * // {}
10468
+ * },
10469
+ * },
10470
+ * );
10471
+ * console.log(res.data);
10472
+ *
10473
+ * // Example response
10474
+ * // {
10475
+ * // "done": false,
10476
+ * // "error": {},
10477
+ * // "metadata": {},
10478
+ * // "name": "my_name",
10479
+ * // "response": {}
10480
+ * // }
10481
+ * }
10482
+ *
10483
+ * main().catch(e => {
10484
+ * console.error(e);
10485
+ * throw e;
10486
+ * });
10487
+ *
10488
+ * ```
7616
10489
  *
7617
10490
  * @param params - Parameters for request
7618
10491
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7705,6 +10578,85 @@ export namespace vmmigration_v1alpha1 {
7705
10578
 
7706
10579
  /**
7707
10580
  * 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.
10581
+ * @example
10582
+ * ```js
10583
+ * // Before running the sample:
10584
+ * // - Enable the API at:
10585
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10586
+ * // - Login into gcloud by running:
10587
+ * // ```sh
10588
+ * // $ gcloud auth application-default login
10589
+ * // ```
10590
+ * // - Install the npm module by running:
10591
+ * // ```sh
10592
+ * // $ npm install googleapis
10593
+ * // ```
10594
+ *
10595
+ * const {google} = require('googleapis');
10596
+ * const vmmigration = google.vmmigration('v1alpha1');
10597
+ *
10598
+ * async function main() {
10599
+ * const auth = new google.auth.GoogleAuth({
10600
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10601
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10602
+ * });
10603
+ *
10604
+ * // Acquire an auth client, and bind it to all future calls
10605
+ * const authClient = await auth.getClient();
10606
+ * google.options({auth: authClient});
10607
+ *
10608
+ * // Do the magic
10609
+ * const res =
10610
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create(
10611
+ * {
10612
+ * // Required. The cutover job identifier.
10613
+ * cutoverJobId: 'placeholder-value',
10614
+ * // Required. The Cutover's parent.
10615
+ * parent:
10616
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
10617
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
10618
+ * requestId: 'placeholder-value',
10619
+ *
10620
+ * // Request body metadata
10621
+ * requestBody: {
10622
+ * // request body parameters
10623
+ * // {
10624
+ * // "computeEngineDisksTargetDetails": {},
10625
+ * // "computeEngineTargetDetails": {},
10626
+ * // "computeEngineVmDetails": {},
10627
+ * // "createTime": "my_createTime",
10628
+ * // "endTime": "my_endTime",
10629
+ * // "error": {},
10630
+ * // "name": "my_name",
10631
+ * // "progress": 0,
10632
+ * // "progressPercent": 0,
10633
+ * // "state": "my_state",
10634
+ * // "stateMessage": "my_stateMessage",
10635
+ * // "stateTime": "my_stateTime",
10636
+ * // "steps": [],
10637
+ * // "targetDetails": {}
10638
+ * // }
10639
+ * },
10640
+ * },
10641
+ * );
10642
+ * console.log(res.data);
10643
+ *
10644
+ * // Example response
10645
+ * // {
10646
+ * // "done": false,
10647
+ * // "error": {},
10648
+ * // "metadata": {},
10649
+ * // "name": "my_name",
10650
+ * // "response": {}
10651
+ * // }
10652
+ * }
10653
+ *
10654
+ * main().catch(e => {
10655
+ * console.error(e);
10656
+ * throw e;
10657
+ * });
10658
+ *
10659
+ * ```
7708
10660
  *
7709
10661
  * @param params - Parameters for request
7710
10662
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7797,6 +10749,66 @@ export namespace vmmigration_v1alpha1 {
7797
10749
 
7798
10750
  /**
7799
10751
  * Gets details of a single CutoverJob.
10752
+ * @example
10753
+ * ```js
10754
+ * // Before running the sample:
10755
+ * // - Enable the API at:
10756
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10757
+ * // - Login into gcloud by running:
10758
+ * // ```sh
10759
+ * // $ gcloud auth application-default login
10760
+ * // ```
10761
+ * // - Install the npm module by running:
10762
+ * // ```sh
10763
+ * // $ npm install googleapis
10764
+ * // ```
10765
+ *
10766
+ * const {google} = require('googleapis');
10767
+ * const vmmigration = google.vmmigration('v1alpha1');
10768
+ *
10769
+ * async function main() {
10770
+ * const auth = new google.auth.GoogleAuth({
10771
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10772
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10773
+ * });
10774
+ *
10775
+ * // Acquire an auth client, and bind it to all future calls
10776
+ * const authClient = await auth.getClient();
10777
+ * google.options({auth: authClient});
10778
+ *
10779
+ * // Do the magic
10780
+ * const res =
10781
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get({
10782
+ * // Required. The name of the CutoverJob.
10783
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
10784
+ * });
10785
+ * console.log(res.data);
10786
+ *
10787
+ * // Example response
10788
+ * // {
10789
+ * // "computeEngineDisksTargetDetails": {},
10790
+ * // "computeEngineTargetDetails": {},
10791
+ * // "computeEngineVmDetails": {},
10792
+ * // "createTime": "my_createTime",
10793
+ * // "endTime": "my_endTime",
10794
+ * // "error": {},
10795
+ * // "name": "my_name",
10796
+ * // "progress": 0,
10797
+ * // "progressPercent": 0,
10798
+ * // "state": "my_state",
10799
+ * // "stateMessage": "my_stateMessage",
10800
+ * // "stateTime": "my_stateTime",
10801
+ * // "steps": [],
10802
+ * // "targetDetails": {}
10803
+ * // }
10804
+ * }
10805
+ *
10806
+ * main().catch(e => {
10807
+ * console.error(e);
10808
+ * throw e;
10809
+ * });
10810
+ *
10811
+ * ```
7800
10812
  *
7801
10813
  * @param params - Parameters for request
7802
10814
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7886,6 +10898,64 @@ export namespace vmmigration_v1alpha1 {
7886
10898
 
7887
10899
  /**
7888
10900
  * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
10901
+ * @example
10902
+ * ```js
10903
+ * // Before running the sample:
10904
+ * // - Enable the API at:
10905
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
10906
+ * // - Login into gcloud by running:
10907
+ * // ```sh
10908
+ * // $ gcloud auth application-default login
10909
+ * // ```
10910
+ * // - Install the npm module by running:
10911
+ * // ```sh
10912
+ * // $ npm install googleapis
10913
+ * // ```
10914
+ *
10915
+ * const {google} = require('googleapis');
10916
+ * const vmmigration = google.vmmigration('v1alpha1');
10917
+ *
10918
+ * async function main() {
10919
+ * const auth = new google.auth.GoogleAuth({
10920
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10921
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10922
+ * });
10923
+ *
10924
+ * // Acquire an auth client, and bind it to all future calls
10925
+ * const authClient = await auth.getClient();
10926
+ * google.options({auth: authClient});
10927
+ *
10928
+ * // Do the magic
10929
+ * const res =
10930
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list({
10931
+ * // Optional. The filter request.
10932
+ * filter: 'placeholder-value',
10933
+ * // Optional. the order by fields for the result.
10934
+ * orderBy: 'placeholder-value',
10935
+ * // Optional. The maximum number of cutover jobs to return. The service may return fewer than this value. If unspecified, at most 500 cutover jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
10936
+ * pageSize: 'placeholder-value',
10937
+ * // Required. A page token, received from a previous `ListCutoverJobs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCutoverJobs` must match the call that provided the page token.
10938
+ * pageToken: 'placeholder-value',
10939
+ * // Required. The parent, which owns this collection of migrating VMs.
10940
+ * parent:
10941
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
10942
+ * });
10943
+ * console.log(res.data);
10944
+ *
10945
+ * // Example response
10946
+ * // {
10947
+ * // "cutoverJobs": [],
10948
+ * // "nextPageToken": "my_nextPageToken",
10949
+ * // "unreachable": []
10950
+ * // }
10951
+ * }
10952
+ *
10953
+ * main().catch(e => {
10954
+ * console.error(e);
10955
+ * throw e;
10956
+ * });
10957
+ *
10958
+ * ```
7889
10959
  *
7890
10960
  * @param params - Parameters for request
7891
10961
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8050,6 +11120,65 @@ export namespace vmmigration_v1alpha1 {
8050
11120
 
8051
11121
  /**
8052
11122
  * Gets details of a single ReplicationCycle.
11123
+ * @example
11124
+ * ```js
11125
+ * // Before running the sample:
11126
+ * // - Enable the API at:
11127
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11128
+ * // - Login into gcloud by running:
11129
+ * // ```sh
11130
+ * // $ gcloud auth application-default login
11131
+ * // ```
11132
+ * // - Install the npm module by running:
11133
+ * // ```sh
11134
+ * // $ npm install googleapis
11135
+ * // ```
11136
+ *
11137
+ * const {google} = require('googleapis');
11138
+ * const vmmigration = google.vmmigration('v1alpha1');
11139
+ *
11140
+ * async function main() {
11141
+ * const auth = new google.auth.GoogleAuth({
11142
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11143
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11144
+ * });
11145
+ *
11146
+ * // Acquire an auth client, and bind it to all future calls
11147
+ * const authClient = await auth.getClient();
11148
+ * google.options({auth: authClient});
11149
+ *
11150
+ * // Do the magic
11151
+ * const res =
11152
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.get(
11153
+ * {
11154
+ * // Required. The name of the ReplicationCycle.
11155
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/replicationCycles/my-replicationCycle',
11156
+ * },
11157
+ * );
11158
+ * console.log(res.data);
11159
+ *
11160
+ * // Example response
11161
+ * // {
11162
+ * // "cycleNumber": 0,
11163
+ * // "endTime": "my_endTime",
11164
+ * // "error": {},
11165
+ * // "name": "my_name",
11166
+ * // "progress": 0,
11167
+ * // "progressPercent": 0,
11168
+ * // "startTime": "my_startTime",
11169
+ * // "state": "my_state",
11170
+ * // "steps": [],
11171
+ * // "totalPauseDuration": "my_totalPauseDuration",
11172
+ * // "warnings": []
11173
+ * // }
11174
+ * }
11175
+ *
11176
+ * main().catch(e => {
11177
+ * console.error(e);
11178
+ * throw e;
11179
+ * });
11180
+ *
11181
+ * ```
8053
11182
  *
8054
11183
  * @param params - Parameters for request
8055
11184
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8139,6 +11268,66 @@ export namespace vmmigration_v1alpha1 {
8139
11268
 
8140
11269
  /**
8141
11270
  * Lists ReplicationCycles in a given MigratingVM.
11271
+ * @example
11272
+ * ```js
11273
+ * // Before running the sample:
11274
+ * // - Enable the API at:
11275
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11276
+ * // - Login into gcloud by running:
11277
+ * // ```sh
11278
+ * // $ gcloud auth application-default login
11279
+ * // ```
11280
+ * // - Install the npm module by running:
11281
+ * // ```sh
11282
+ * // $ npm install googleapis
11283
+ * // ```
11284
+ *
11285
+ * const {google} = require('googleapis');
11286
+ * const vmmigration = google.vmmigration('v1alpha1');
11287
+ *
11288
+ * async function main() {
11289
+ * const auth = new google.auth.GoogleAuth({
11290
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11291
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11292
+ * });
11293
+ *
11294
+ * // Acquire an auth client, and bind it to all future calls
11295
+ * const authClient = await auth.getClient();
11296
+ * google.options({auth: authClient});
11297
+ *
11298
+ * // Do the magic
11299
+ * const res =
11300
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.list(
11301
+ * {
11302
+ * // Optional. The filter request.
11303
+ * filter: 'placeholder-value',
11304
+ * // Optional. the order by fields for the result.
11305
+ * orderBy: 'placeholder-value',
11306
+ * // Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.
11307
+ * pageSize: 'placeholder-value',
11308
+ * // Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.
11309
+ * pageToken: 'placeholder-value',
11310
+ * // Required. The parent, which owns this collection of ReplicationCycles.
11311
+ * parent:
11312
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
11313
+ * },
11314
+ * );
11315
+ * console.log(res.data);
11316
+ *
11317
+ * // Example response
11318
+ * // {
11319
+ * // "nextPageToken": "my_nextPageToken",
11320
+ * // "replicationCycles": [],
11321
+ * // "unreachable": []
11322
+ * // }
11323
+ * }
11324
+ *
11325
+ * main().catch(e => {
11326
+ * console.error(e);
11327
+ * throw e;
11328
+ * });
11329
+ *
11330
+ * ```
8142
11331
  *
8143
11332
  * @param params - Parameters for request
8144
11333
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8275,6 +11464,79 @@ export namespace vmmigration_v1alpha1 {
8275
11464
 
8276
11465
  /**
8277
11466
  * Creates a new UtilizationReport.
11467
+ * @example
11468
+ * ```js
11469
+ * // Before running the sample:
11470
+ * // - Enable the API at:
11471
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11472
+ * // - Login into gcloud by running:
11473
+ * // ```sh
11474
+ * // $ gcloud auth application-default login
11475
+ * // ```
11476
+ * // - Install the npm module by running:
11477
+ * // ```sh
11478
+ * // $ npm install googleapis
11479
+ * // ```
11480
+ *
11481
+ * const {google} = require('googleapis');
11482
+ * const vmmigration = google.vmmigration('v1alpha1');
11483
+ *
11484
+ * async function main() {
11485
+ * const auth = new google.auth.GoogleAuth({
11486
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11487
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11488
+ * });
11489
+ *
11490
+ * // Acquire an auth client, and bind it to all future calls
11491
+ * const authClient = await auth.getClient();
11492
+ * google.options({auth: authClient});
11493
+ *
11494
+ * // Do the magic
11495
+ * const res =
11496
+ * await vmmigration.projects.locations.sources.utilizationReports.create({
11497
+ * // Required. The Utilization Report's parent.
11498
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
11499
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
11500
+ * requestId: 'placeholder-value',
11501
+ * // Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.
11502
+ * utilizationReportId: 'placeholder-value',
11503
+ *
11504
+ * // Request body metadata
11505
+ * requestBody: {
11506
+ * // request body parameters
11507
+ * // {
11508
+ * // "createTime": "my_createTime",
11509
+ * // "displayName": "my_displayName",
11510
+ * // "error": {},
11511
+ * // "frameEndTime": "my_frameEndTime",
11512
+ * // "name": "my_name",
11513
+ * // "state": "my_state",
11514
+ * // "stateTime": "my_stateTime",
11515
+ * // "timeFrame": "my_timeFrame",
11516
+ * // "vmCount": 0,
11517
+ * // "vms": [],
11518
+ * // "vmsCount": 0
11519
+ * // }
11520
+ * },
11521
+ * });
11522
+ * console.log(res.data);
11523
+ *
11524
+ * // Example response
11525
+ * // {
11526
+ * // "done": false,
11527
+ * // "error": {},
11528
+ * // "metadata": {},
11529
+ * // "name": "my_name",
11530
+ * // "response": {}
11531
+ * // }
11532
+ * }
11533
+ *
11534
+ * main().catch(e => {
11535
+ * console.error(e);
11536
+ * throw e;
11537
+ * });
11538
+ *
11539
+ * ```
8278
11540
  *
8279
11541
  * @param params - Parameters for request
8280
11542
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8367,6 +11629,59 @@ export namespace vmmigration_v1alpha1 {
8367
11629
 
8368
11630
  /**
8369
11631
  * Deletes a single Utilization Report.
11632
+ * @example
11633
+ * ```js
11634
+ * // Before running the sample:
11635
+ * // - Enable the API at:
11636
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11637
+ * // - Login into gcloud by running:
11638
+ * // ```sh
11639
+ * // $ gcloud auth application-default login
11640
+ * // ```
11641
+ * // - Install the npm module by running:
11642
+ * // ```sh
11643
+ * // $ npm install googleapis
11644
+ * // ```
11645
+ *
11646
+ * const {google} = require('googleapis');
11647
+ * const vmmigration = google.vmmigration('v1alpha1');
11648
+ *
11649
+ * async function main() {
11650
+ * const auth = new google.auth.GoogleAuth({
11651
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11652
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11653
+ * });
11654
+ *
11655
+ * // Acquire an auth client, and bind it to all future calls
11656
+ * const authClient = await auth.getClient();
11657
+ * google.options({auth: authClient});
11658
+ *
11659
+ * // Do the magic
11660
+ * const res =
11661
+ * await vmmigration.projects.locations.sources.utilizationReports.delete({
11662
+ * // Required. The Utilization Report name.
11663
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
11664
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
11665
+ * requestId: 'placeholder-value',
11666
+ * });
11667
+ * console.log(res.data);
11668
+ *
11669
+ * // Example response
11670
+ * // {
11671
+ * // "done": false,
11672
+ * // "error": {},
11673
+ * // "metadata": {},
11674
+ * // "name": "my_name",
11675
+ * // "response": {}
11676
+ * // }
11677
+ * }
11678
+ *
11679
+ * main().catch(e => {
11680
+ * console.error(e);
11681
+ * throw e;
11682
+ * });
11683
+ *
11684
+ * ```
8370
11685
  *
8371
11686
  * @param params - Parameters for request
8372
11687
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8456,6 +11771,65 @@ export namespace vmmigration_v1alpha1 {
8456
11771
 
8457
11772
  /**
8458
11773
  * Gets a single Utilization Report.
11774
+ * @example
11775
+ * ```js
11776
+ * // Before running the sample:
11777
+ * // - Enable the API at:
11778
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11779
+ * // - Login into gcloud by running:
11780
+ * // ```sh
11781
+ * // $ gcloud auth application-default login
11782
+ * // ```
11783
+ * // - Install the npm module by running:
11784
+ * // ```sh
11785
+ * // $ npm install googleapis
11786
+ * // ```
11787
+ *
11788
+ * const {google} = require('googleapis');
11789
+ * const vmmigration = google.vmmigration('v1alpha1');
11790
+ *
11791
+ * async function main() {
11792
+ * const auth = new google.auth.GoogleAuth({
11793
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11794
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11795
+ * });
11796
+ *
11797
+ * // Acquire an auth client, and bind it to all future calls
11798
+ * const authClient = await auth.getClient();
11799
+ * google.options({auth: authClient});
11800
+ *
11801
+ * // Do the magic
11802
+ * const res =
11803
+ * await vmmigration.projects.locations.sources.utilizationReports.get({
11804
+ * // Required. The Utilization Report name.
11805
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
11806
+ * // Optional. The level of details of the report. Defaults to FULL
11807
+ * view: 'placeholder-value',
11808
+ * });
11809
+ * console.log(res.data);
11810
+ *
11811
+ * // Example response
11812
+ * // {
11813
+ * // "createTime": "my_createTime",
11814
+ * // "displayName": "my_displayName",
11815
+ * // "error": {},
11816
+ * // "frameEndTime": "my_frameEndTime",
11817
+ * // "name": "my_name",
11818
+ * // "state": "my_state",
11819
+ * // "stateTime": "my_stateTime",
11820
+ * // "timeFrame": "my_timeFrame",
11821
+ * // "vmCount": 0,
11822
+ * // "vms": [],
11823
+ * // "vmsCount": 0
11824
+ * // }
11825
+ * }
11826
+ *
11827
+ * main().catch(e => {
11828
+ * console.error(e);
11829
+ * throw e;
11830
+ * });
11831
+ *
11832
+ * ```
8459
11833
  *
8460
11834
  * @param params - Parameters for request
8461
11835
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8545,6 +11919,65 @@ export namespace vmmigration_v1alpha1 {
8545
11919
 
8546
11920
  /**
8547
11921
  * Lists Utilization Reports of the given Source.
11922
+ * @example
11923
+ * ```js
11924
+ * // Before running the sample:
11925
+ * // - Enable the API at:
11926
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
11927
+ * // - Login into gcloud by running:
11928
+ * // ```sh
11929
+ * // $ gcloud auth application-default login
11930
+ * // ```
11931
+ * // - Install the npm module by running:
11932
+ * // ```sh
11933
+ * // $ npm install googleapis
11934
+ * // ```
11935
+ *
11936
+ * const {google} = require('googleapis');
11937
+ * const vmmigration = google.vmmigration('v1alpha1');
11938
+ *
11939
+ * async function main() {
11940
+ * const auth = new google.auth.GoogleAuth({
11941
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11942
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
11943
+ * });
11944
+ *
11945
+ * // Acquire an auth client, and bind it to all future calls
11946
+ * const authClient = await auth.getClient();
11947
+ * google.options({auth: authClient});
11948
+ *
11949
+ * // Do the magic
11950
+ * const res =
11951
+ * await vmmigration.projects.locations.sources.utilizationReports.list({
11952
+ * // Optional. The filter request.
11953
+ * filter: 'placeholder-value',
11954
+ * // Optional. the order by fields for the result.
11955
+ * orderBy: 'placeholder-value',
11956
+ * // Optional. The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 500 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
11957
+ * pageSize: 'placeholder-value',
11958
+ * // Required. A page token, received from a previous `ListUtilizationReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUtilizationReports` must match the call that provided the page token.
11959
+ * pageToken: 'placeholder-value',
11960
+ * // Required. The Utilization Reports parent.
11961
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
11962
+ * // Optional. The level of details of each report. Defaults to BASIC.
11963
+ * view: 'placeholder-value',
11964
+ * });
11965
+ * console.log(res.data);
11966
+ *
11967
+ * // Example response
11968
+ * // {
11969
+ * // "nextPageToken": "my_nextPageToken",
11970
+ * // "unreachable": [],
11971
+ * // "utilizationReports": []
11972
+ * // }
11973
+ * }
11974
+ *
11975
+ * main().catch(e => {
11976
+ * console.error(e);
11977
+ * throw e;
11978
+ * });
11979
+ *
11980
+ * ```
8548
11981
  *
8549
11982
  * @param params - Parameters for request
8550
11983
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8720,6 +12153,72 @@ export namespace vmmigration_v1alpha1 {
8720
12153
 
8721
12154
  /**
8722
12155
  * Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
12156
+ * @example
12157
+ * ```js
12158
+ * // Before running the sample:
12159
+ * // - Enable the API at:
12160
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
12161
+ * // - Login into gcloud by running:
12162
+ * // ```sh
12163
+ * // $ gcloud auth application-default login
12164
+ * // ```
12165
+ * // - Install the npm module by running:
12166
+ * // ```sh
12167
+ * // $ npm install googleapis
12168
+ * // ```
12169
+ *
12170
+ * const {google} = require('googleapis');
12171
+ * const vmmigration = google.vmmigration('v1alpha1');
12172
+ *
12173
+ * async function main() {
12174
+ * const auth = new google.auth.GoogleAuth({
12175
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12176
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
12177
+ * });
12178
+ *
12179
+ * // Acquire an auth client, and bind it to all future calls
12180
+ * const authClient = await auth.getClient();
12181
+ * google.options({auth: authClient});
12182
+ *
12183
+ * // Do the magic
12184
+ * const res = await vmmigration.projects.locations.targetProjects.create({
12185
+ * // Required. The TargetProject's parent.
12186
+ * parent: 'projects/my-project/locations/my-location',
12187
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
12188
+ * requestId: 'placeholder-value',
12189
+ * // Required. The target_project identifier.
12190
+ * targetProjectId: 'placeholder-value',
12191
+ *
12192
+ * // Request body metadata
12193
+ * requestBody: {
12194
+ * // request body parameters
12195
+ * // {
12196
+ * // "createTime": "my_createTime",
12197
+ * // "description": "my_description",
12198
+ * // "name": "my_name",
12199
+ * // "project": "my_project",
12200
+ * // "updateTime": "my_updateTime"
12201
+ * // }
12202
+ * },
12203
+ * });
12204
+ * console.log(res.data);
12205
+ *
12206
+ * // Example response
12207
+ * // {
12208
+ * // "done": false,
12209
+ * // "error": {},
12210
+ * // "metadata": {},
12211
+ * // "name": "my_name",
12212
+ * // "response": {}
12213
+ * // }
12214
+ * }
12215
+ *
12216
+ * main().catch(e => {
12217
+ * console.error(e);
12218
+ * throw e;
12219
+ * });
12220
+ *
12221
+ * ```
8723
12222
  *
8724
12223
  * @param params - Parameters for request
8725
12224
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8811,6 +12310,58 @@ export namespace vmmigration_v1alpha1 {
8811
12310
 
8812
12311
  /**
8813
12312
  * Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
12313
+ * @example
12314
+ * ```js
12315
+ * // Before running the sample:
12316
+ * // - Enable the API at:
12317
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
12318
+ * // - Login into gcloud by running:
12319
+ * // ```sh
12320
+ * // $ gcloud auth application-default login
12321
+ * // ```
12322
+ * // - Install the npm module by running:
12323
+ * // ```sh
12324
+ * // $ npm install googleapis
12325
+ * // ```
12326
+ *
12327
+ * const {google} = require('googleapis');
12328
+ * const vmmigration = google.vmmigration('v1alpha1');
12329
+ *
12330
+ * async function main() {
12331
+ * const auth = new google.auth.GoogleAuth({
12332
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12333
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
12334
+ * });
12335
+ *
12336
+ * // Acquire an auth client, and bind it to all future calls
12337
+ * const authClient = await auth.getClient();
12338
+ * google.options({auth: authClient});
12339
+ *
12340
+ * // Do the magic
12341
+ * const res = await vmmigration.projects.locations.targetProjects.delete({
12342
+ * // Required. The TargetProject name.
12343
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
12344
+ * // Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
12345
+ * requestId: 'placeholder-value',
12346
+ * });
12347
+ * console.log(res.data);
12348
+ *
12349
+ * // Example response
12350
+ * // {
12351
+ * // "done": false,
12352
+ * // "error": {},
12353
+ * // "metadata": {},
12354
+ * // "name": "my_name",
12355
+ * // "response": {}
12356
+ * // }
12357
+ * }
12358
+ *
12359
+ * main().catch(e => {
12360
+ * console.error(e);
12361
+ * throw e;
12362
+ * });
12363
+ *
12364
+ * ```
8814
12365
  *
8815
12366
  * @param params - Parameters for request
8816
12367
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8899,6 +12450,56 @@ export namespace vmmigration_v1alpha1 {
8899
12450
 
8900
12451
  /**
8901
12452
  * Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
12453
+ * @example
12454
+ * ```js
12455
+ * // Before running the sample:
12456
+ * // - Enable the API at:
12457
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
12458
+ * // - Login into gcloud by running:
12459
+ * // ```sh
12460
+ * // $ gcloud auth application-default login
12461
+ * // ```
12462
+ * // - Install the npm module by running:
12463
+ * // ```sh
12464
+ * // $ npm install googleapis
12465
+ * // ```
12466
+ *
12467
+ * const {google} = require('googleapis');
12468
+ * const vmmigration = google.vmmigration('v1alpha1');
12469
+ *
12470
+ * async function main() {
12471
+ * const auth = new google.auth.GoogleAuth({
12472
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12473
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
12474
+ * });
12475
+ *
12476
+ * // Acquire an auth client, and bind it to all future calls
12477
+ * const authClient = await auth.getClient();
12478
+ * google.options({auth: authClient});
12479
+ *
12480
+ * // Do the magic
12481
+ * const res = await vmmigration.projects.locations.targetProjects.get({
12482
+ * // Required. The TargetProject name.
12483
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
12484
+ * });
12485
+ * console.log(res.data);
12486
+ *
12487
+ * // Example response
12488
+ * // {
12489
+ * // "createTime": "my_createTime",
12490
+ * // "description": "my_description",
12491
+ * // "name": "my_name",
12492
+ * // "project": "my_project",
12493
+ * // "updateTime": "my_updateTime"
12494
+ * // }
12495
+ * }
12496
+ *
12497
+ * main().catch(e => {
12498
+ * console.error(e);
12499
+ * throw e;
12500
+ * });
12501
+ *
12502
+ * ```
8902
12503
  *
8903
12504
  * @param params - Parameters for request
8904
12505
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8987,6 +12588,62 @@ export namespace vmmigration_v1alpha1 {
8987
12588
 
8988
12589
  /**
8989
12590
  * Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
12591
+ * @example
12592
+ * ```js
12593
+ * // Before running the sample:
12594
+ * // - Enable the API at:
12595
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
12596
+ * // - Login into gcloud by running:
12597
+ * // ```sh
12598
+ * // $ gcloud auth application-default login
12599
+ * // ```
12600
+ * // - Install the npm module by running:
12601
+ * // ```sh
12602
+ * // $ npm install googleapis
12603
+ * // ```
12604
+ *
12605
+ * const {google} = require('googleapis');
12606
+ * const vmmigration = google.vmmigration('v1alpha1');
12607
+ *
12608
+ * async function main() {
12609
+ * const auth = new google.auth.GoogleAuth({
12610
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12611
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
12612
+ * });
12613
+ *
12614
+ * // Acquire an auth client, and bind it to all future calls
12615
+ * const authClient = await auth.getClient();
12616
+ * google.options({auth: authClient});
12617
+ *
12618
+ * // Do the magic
12619
+ * const res = await vmmigration.projects.locations.targetProjects.list({
12620
+ * // Optional. The filter request.
12621
+ * filter: 'placeholder-value',
12622
+ * // Optional. the order by fields for the result.
12623
+ * orderBy: 'placeholder-value',
12624
+ * // Optional. The maximum number of targets to return. The service may return fewer than this value. If unspecified, at most 500 targets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
12625
+ * pageSize: 'placeholder-value',
12626
+ * // Required. A page token, received from a previous `ListTargets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTargets` must match the call that provided the page token.
12627
+ * pageToken: 'placeholder-value',
12628
+ * // Required. The parent, which owns this collection of targets.
12629
+ * parent: 'projects/my-project/locations/my-location',
12630
+ * });
12631
+ * console.log(res.data);
12632
+ *
12633
+ * // Example response
12634
+ * // {
12635
+ * // "nextPageToken": "my_nextPageToken",
12636
+ * // "targetProjects": [],
12637
+ * // "unreachable": []
12638
+ * // }
12639
+ * }
12640
+ *
12641
+ * main().catch(e => {
12642
+ * console.error(e);
12643
+ * throw e;
12644
+ * });
12645
+ *
12646
+ * ```
8990
12647
  *
8991
12648
  * @param params - Parameters for request
8992
12649
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9082,6 +12739,72 @@ export namespace vmmigration_v1alpha1 {
9082
12739
 
9083
12740
  /**
9084
12741
  * Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
12742
+ * @example
12743
+ * ```js
12744
+ * // Before running the sample:
12745
+ * // - Enable the API at:
12746
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
12747
+ * // - Login into gcloud by running:
12748
+ * // ```sh
12749
+ * // $ gcloud auth application-default login
12750
+ * // ```
12751
+ * // - Install the npm module by running:
12752
+ * // ```sh
12753
+ * // $ npm install googleapis
12754
+ * // ```
12755
+ *
12756
+ * const {google} = require('googleapis');
12757
+ * const vmmigration = google.vmmigration('v1alpha1');
12758
+ *
12759
+ * async function main() {
12760
+ * const auth = new google.auth.GoogleAuth({
12761
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12762
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
12763
+ * });
12764
+ *
12765
+ * // Acquire an auth client, and bind it to all future calls
12766
+ * const authClient = await auth.getClient();
12767
+ * google.options({auth: authClient});
12768
+ *
12769
+ * // Do the magic
12770
+ * const res = await vmmigration.projects.locations.targetProjects.patch({
12771
+ * // Output only. The name of the target project.
12772
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
12773
+ * // A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
12774
+ * requestId: 'placeholder-value',
12775
+ * // Field mask is used to specify the fields to be overwritten in the TargetProject resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
12776
+ * updateMask: 'placeholder-value',
12777
+ *
12778
+ * // Request body metadata
12779
+ * requestBody: {
12780
+ * // request body parameters
12781
+ * // {
12782
+ * // "createTime": "my_createTime",
12783
+ * // "description": "my_description",
12784
+ * // "name": "my_name",
12785
+ * // "project": "my_project",
12786
+ * // "updateTime": "my_updateTime"
12787
+ * // }
12788
+ * },
12789
+ * });
12790
+ * console.log(res.data);
12791
+ *
12792
+ * // Example response
12793
+ * // {
12794
+ * // "done": false,
12795
+ * // "error": {},
12796
+ * // "metadata": {},
12797
+ * // "name": "my_name",
12798
+ * // "response": {}
12799
+ * // }
12800
+ * }
12801
+ *
12802
+ * main().catch(e => {
12803
+ * console.error(e);
12804
+ * throw e;
12805
+ * });
12806
+ *
12807
+ * ```
9085
12808
  *
9086
12809
  * @param params - Parameters for request
9087
12810
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.