@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.
@@ -260,7 +260,7 @@ export declare namespace vmmigration_v1alpha1 {
260
260
  */
261
261
  committedStorageMb?: string | null;
262
262
  /**
263
- * The number of cpus the VM has.
263
+ * The number of CPU cores the VM has.
264
264
  */
265
265
  cpuCount?: number | null;
266
266
  /**
@@ -305,6 +305,10 @@ export declare namespace vmmigration_v1alpha1 {
305
305
  tags?: {
306
306
  [key: string]: string;
307
307
  } | null;
308
+ /**
309
+ * The number of vCPUs the VM has. It is calculated as the number of CPU cores * threads per CPU the VM has.
310
+ */
311
+ vcpuCount?: number | null;
308
312
  /**
309
313
  * The virtualization type.
310
314
  */
@@ -682,6 +686,10 @@ export declare namespace vmmigration_v1alpha1 {
682
686
  * Compute instance scheduling information (if empty default is used).
683
687
  */
684
688
  computeScheduling?: Schema$ComputeScheduling;
689
+ /**
690
+ * 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.
691
+ */
692
+ diskReplicaZones?: string[] | null;
685
693
  /**
686
694
  * The disk type to use in the VM.
687
695
  */
@@ -779,6 +787,10 @@ export declare namespace vmmigration_v1alpha1 {
779
787
  * Compute instance scheduling information (if empty default is used).
780
788
  */
781
789
  computeScheduling?: Schema$ComputeScheduling;
790
+ /**
791
+ * 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.
792
+ */
793
+ diskReplicaZones?: string[] | null;
782
794
  /**
783
795
  * The disk type to use in the VM.
784
796
  */
@@ -1252,6 +1264,28 @@ export declare namespace vmmigration_v1alpha1 {
1252
1264
  */
1253
1265
  kmsKey?: string | null;
1254
1266
  }
1267
+ /**
1268
+ * Expiration holds information about the expiration of a MigratingVm.
1269
+ */
1270
+ export interface Schema$Expiration {
1271
+ /**
1272
+ * Output only. Timestamp of when this resource is considered expired.
1273
+ */
1274
+ expireTime?: string | null;
1275
+ /**
1276
+ * Output only. Describes whether the expiration can be extended.
1277
+ */
1278
+ extendable?: boolean | null;
1279
+ /**
1280
+ * Output only. The number of times expiration was extended.
1281
+ */
1282
+ extensionCount?: number | null;
1283
+ }
1284
+ /**
1285
+ * Request message for 'ExtendMigrationRequest' request.
1286
+ */
1287
+ export interface Schema$ExtendMigrationRequest {
1288
+ }
1255
1289
  /**
1256
1290
  * Response message for fetchInventory.
1257
1291
  */
@@ -1749,7 +1783,7 @@ export declare namespace vmmigration_v1alpha1 {
1749
1783
  */
1750
1784
  description?: string | null;
1751
1785
  /**
1752
- * Immutable. The encryption to apply to the machine image.
1786
+ * 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.
1753
1787
  */
1754
1788
  encryption?: Schema$Encryption;
1755
1789
  /**
@@ -1767,7 +1801,7 @@ export declare namespace vmmigration_v1alpha1 {
1767
1801
  */
1768
1802
  machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
1769
1803
  /**
1770
- * 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.
1804
+ * 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.
1771
1805
  */
1772
1806
  networkInterfaces?: Schema$NetworkInterface[];
1773
1807
  /**
@@ -1847,6 +1881,10 @@ export declare namespace vmmigration_v1alpha1 {
1847
1881
  * Output only. Provides details on the state of the Migrating VM in case of an error in replication.
1848
1882
  */
1849
1883
  error?: Schema$Status;
1884
+ /**
1885
+ * Output only. Provides details about the expiration state of the migrating VM.
1886
+ */
1887
+ expiration?: Schema$Expiration;
1850
1888
  /**
1851
1889
  * 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.
1852
1890
  */
@@ -2848,6 +2886,56 @@ export declare namespace vmmigration_v1alpha1 {
2848
2886
  constructor(context: APIRequestContext);
2849
2887
  /**
2850
2888
  * Gets information about a location.
2889
+ * @example
2890
+ * ```js
2891
+ * // Before running the sample:
2892
+ * // - Enable the API at:
2893
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2894
+ * // - Login into gcloud by running:
2895
+ * // ```sh
2896
+ * // $ gcloud auth application-default login
2897
+ * // ```
2898
+ * // - Install the npm module by running:
2899
+ * // ```sh
2900
+ * // $ npm install googleapis
2901
+ * // ```
2902
+ *
2903
+ * const {google} = require('googleapis');
2904
+ * const vmmigration = google.vmmigration('v1alpha1');
2905
+ *
2906
+ * async function main() {
2907
+ * const auth = new google.auth.GoogleAuth({
2908
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2909
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2910
+ * });
2911
+ *
2912
+ * // Acquire an auth client, and bind it to all future calls
2913
+ * const authClient = await auth.getClient();
2914
+ * google.options({auth: authClient});
2915
+ *
2916
+ * // Do the magic
2917
+ * const res = await vmmigration.projects.locations.get({
2918
+ * // Resource name for the location.
2919
+ * name: 'projects/my-project/locations/my-location',
2920
+ * });
2921
+ * console.log(res.data);
2922
+ *
2923
+ * // Example response
2924
+ * // {
2925
+ * // "displayName": "my_displayName",
2926
+ * // "labels": {},
2927
+ * // "locationId": "my_locationId",
2928
+ * // "metadata": {},
2929
+ * // "name": "my_name"
2930
+ * // }
2931
+ * }
2932
+ *
2933
+ * main().catch(e => {
2934
+ * console.error(e);
2935
+ * throw e;
2936
+ * });
2937
+ *
2938
+ * ```
2851
2939
  *
2852
2940
  * @param params - Parameters for request
2853
2941
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2862,6 +2950,61 @@ export declare namespace vmmigration_v1alpha1 {
2862
2950
  get(callback: BodyResponseCallback<Schema$Location>): void;
2863
2951
  /**
2864
2952
  * Lists information about the supported locations for this service.
2953
+ * @example
2954
+ * ```js
2955
+ * // Before running the sample:
2956
+ * // - Enable the API at:
2957
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2958
+ * // - Login into gcloud by running:
2959
+ * // ```sh
2960
+ * // $ gcloud auth application-default login
2961
+ * // ```
2962
+ * // - Install the npm module by running:
2963
+ * // ```sh
2964
+ * // $ npm install googleapis
2965
+ * // ```
2966
+ *
2967
+ * const {google} = require('googleapis');
2968
+ * const vmmigration = google.vmmigration('v1alpha1');
2969
+ *
2970
+ * async function main() {
2971
+ * const auth = new google.auth.GoogleAuth({
2972
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2973
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2974
+ * });
2975
+ *
2976
+ * // Acquire an auth client, and bind it to all future calls
2977
+ * const authClient = await auth.getClient();
2978
+ * google.options({auth: authClient});
2979
+ *
2980
+ * // Do the magic
2981
+ * const res = await vmmigration.projects.locations.list({
2982
+ * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2983
+ * extraLocationTypes: 'placeholder-value',
2984
+ * // 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).
2985
+ * filter: 'placeholder-value',
2986
+ * // The resource that owns the locations collection, if applicable.
2987
+ * name: 'projects/my-project',
2988
+ * // The maximum number of results to return. If not set, the service selects a default.
2989
+ * pageSize: 'placeholder-value',
2990
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2991
+ * pageToken: 'placeholder-value',
2992
+ * });
2993
+ * console.log(res.data);
2994
+ *
2995
+ * // Example response
2996
+ * // {
2997
+ * // "locations": [],
2998
+ * // "nextPageToken": "my_nextPageToken"
2999
+ * // }
3000
+ * }
3001
+ *
3002
+ * main().catch(e => {
3003
+ * console.error(e);
3004
+ * throw e;
3005
+ * });
3006
+ *
3007
+ * ```
2865
3008
  *
2866
3009
  * @param params - Parameters for request
2867
3010
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2908,6 +3051,64 @@ export declare namespace vmmigration_v1alpha1 {
2908
3051
  constructor(context: APIRequestContext);
2909
3052
  /**
2910
3053
  * Adds a MigratingVm to a Group.
3054
+ * @example
3055
+ * ```js
3056
+ * // Before running the sample:
3057
+ * // - Enable the API at:
3058
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3059
+ * // - Login into gcloud by running:
3060
+ * // ```sh
3061
+ * // $ gcloud auth application-default login
3062
+ * // ```
3063
+ * // - Install the npm module by running:
3064
+ * // ```sh
3065
+ * // $ npm install googleapis
3066
+ * // ```
3067
+ *
3068
+ * const {google} = require('googleapis');
3069
+ * const vmmigration = google.vmmigration('v1alpha1');
3070
+ *
3071
+ * async function main() {
3072
+ * const auth = new google.auth.GoogleAuth({
3073
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3074
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3075
+ * });
3076
+ *
3077
+ * // Acquire an auth client, and bind it to all future calls
3078
+ * const authClient = await auth.getClient();
3079
+ * google.options({auth: authClient});
3080
+ *
3081
+ * // Do the magic
3082
+ * const res = await vmmigration.projects.locations.groups.addGroupMigration({
3083
+ * // Required. The full path name of the Group to add to.
3084
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
3085
+ *
3086
+ * // Request body metadata
3087
+ * requestBody: {
3088
+ * // request body parameters
3089
+ * // {
3090
+ * // "migratingVm": "my_migratingVm"
3091
+ * // }
3092
+ * },
3093
+ * });
3094
+ * console.log(res.data);
3095
+ *
3096
+ * // Example response
3097
+ * // {
3098
+ * // "done": false,
3099
+ * // "error": {},
3100
+ * // "metadata": {},
3101
+ * // "name": "my_name",
3102
+ * // "response": {}
3103
+ * // }
3104
+ * }
3105
+ *
3106
+ * main().catch(e => {
3107
+ * console.error(e);
3108
+ * throw e;
3109
+ * });
3110
+ *
3111
+ * ```
2911
3112
  *
2912
3113
  * @param params - Parameters for request
2913
3114
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2922,6 +3123,73 @@ export declare namespace vmmigration_v1alpha1 {
2922
3123
  addGroupMigration(callback: BodyResponseCallback<Schema$Operation>): void;
2923
3124
  /**
2924
3125
  * Creates a new Group in a given project and location.
3126
+ * @example
3127
+ * ```js
3128
+ * // Before running the sample:
3129
+ * // - Enable the API at:
3130
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3131
+ * // - Login into gcloud by running:
3132
+ * // ```sh
3133
+ * // $ gcloud auth application-default login
3134
+ * // ```
3135
+ * // - Install the npm module by running:
3136
+ * // ```sh
3137
+ * // $ npm install googleapis
3138
+ * // ```
3139
+ *
3140
+ * const {google} = require('googleapis');
3141
+ * const vmmigration = google.vmmigration('v1alpha1');
3142
+ *
3143
+ * async function main() {
3144
+ * const auth = new google.auth.GoogleAuth({
3145
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3146
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3147
+ * });
3148
+ *
3149
+ * // Acquire an auth client, and bind it to all future calls
3150
+ * const authClient = await auth.getClient();
3151
+ * google.options({auth: authClient});
3152
+ *
3153
+ * // Do the magic
3154
+ * const res = await vmmigration.projects.locations.groups.create({
3155
+ * // Required. The group identifier.
3156
+ * groupId: 'placeholder-value',
3157
+ * // Required. The Group's parent.
3158
+ * parent: 'projects/my-project/locations/my-location',
3159
+ * // 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).
3160
+ * requestId: 'placeholder-value',
3161
+ *
3162
+ * // Request body metadata
3163
+ * requestBody: {
3164
+ * // request body parameters
3165
+ * // {
3166
+ * // "createTime": "my_createTime",
3167
+ * // "description": "my_description",
3168
+ * // "displayName": "my_displayName",
3169
+ * // "migrationTargetType": "my_migrationTargetType",
3170
+ * // "name": "my_name",
3171
+ * // "updateTime": "my_updateTime"
3172
+ * // }
3173
+ * },
3174
+ * });
3175
+ * console.log(res.data);
3176
+ *
3177
+ * // Example response
3178
+ * // {
3179
+ * // "done": false,
3180
+ * // "error": {},
3181
+ * // "metadata": {},
3182
+ * // "name": "my_name",
3183
+ * // "response": {}
3184
+ * // }
3185
+ * }
3186
+ *
3187
+ * main().catch(e => {
3188
+ * console.error(e);
3189
+ * throw e;
3190
+ * });
3191
+ *
3192
+ * ```
2925
3193
  *
2926
3194
  * @param params - Parameters for request
2927
3195
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2936,6 +3204,58 @@ export declare namespace vmmigration_v1alpha1 {
2936
3204
  create(callback: BodyResponseCallback<Schema$Operation>): void;
2937
3205
  /**
2938
3206
  * Deletes a single Group.
3207
+ * @example
3208
+ * ```js
3209
+ * // Before running the sample:
3210
+ * // - Enable the API at:
3211
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3212
+ * // - Login into gcloud by running:
3213
+ * // ```sh
3214
+ * // $ gcloud auth application-default login
3215
+ * // ```
3216
+ * // - Install the npm module by running:
3217
+ * // ```sh
3218
+ * // $ npm install googleapis
3219
+ * // ```
3220
+ *
3221
+ * const {google} = require('googleapis');
3222
+ * const vmmigration = google.vmmigration('v1alpha1');
3223
+ *
3224
+ * async function main() {
3225
+ * const auth = new google.auth.GoogleAuth({
3226
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3227
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3228
+ * });
3229
+ *
3230
+ * // Acquire an auth client, and bind it to all future calls
3231
+ * const authClient = await auth.getClient();
3232
+ * google.options({auth: authClient});
3233
+ *
3234
+ * // Do the magic
3235
+ * const res = await vmmigration.projects.locations.groups.delete({
3236
+ * // Required. The Group name.
3237
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3238
+ * // 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).
3239
+ * requestId: 'placeholder-value',
3240
+ * });
3241
+ * console.log(res.data);
3242
+ *
3243
+ * // Example response
3244
+ * // {
3245
+ * // "done": false,
3246
+ * // "error": {},
3247
+ * // "metadata": {},
3248
+ * // "name": "my_name",
3249
+ * // "response": {}
3250
+ * // }
3251
+ * }
3252
+ *
3253
+ * main().catch(e => {
3254
+ * console.error(e);
3255
+ * throw e;
3256
+ * });
3257
+ *
3258
+ * ```
2939
3259
  *
2940
3260
  * @param params - Parameters for request
2941
3261
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2950,6 +3270,57 @@ export declare namespace vmmigration_v1alpha1 {
2950
3270
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
2951
3271
  /**
2952
3272
  * Gets details of a single Group.
3273
+ * @example
3274
+ * ```js
3275
+ * // Before running the sample:
3276
+ * // - Enable the API at:
3277
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3278
+ * // - Login into gcloud by running:
3279
+ * // ```sh
3280
+ * // $ gcloud auth application-default login
3281
+ * // ```
3282
+ * // - Install the npm module by running:
3283
+ * // ```sh
3284
+ * // $ npm install googleapis
3285
+ * // ```
3286
+ *
3287
+ * const {google} = require('googleapis');
3288
+ * const vmmigration = google.vmmigration('v1alpha1');
3289
+ *
3290
+ * async function main() {
3291
+ * const auth = new google.auth.GoogleAuth({
3292
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3293
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3294
+ * });
3295
+ *
3296
+ * // Acquire an auth client, and bind it to all future calls
3297
+ * const authClient = await auth.getClient();
3298
+ * google.options({auth: authClient});
3299
+ *
3300
+ * // Do the magic
3301
+ * const res = await vmmigration.projects.locations.groups.get({
3302
+ * // Required. The group name.
3303
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3304
+ * });
3305
+ * console.log(res.data);
3306
+ *
3307
+ * // Example response
3308
+ * // {
3309
+ * // "createTime": "my_createTime",
3310
+ * // "description": "my_description",
3311
+ * // "displayName": "my_displayName",
3312
+ * // "migrationTargetType": "my_migrationTargetType",
3313
+ * // "name": "my_name",
3314
+ * // "updateTime": "my_updateTime"
3315
+ * // }
3316
+ * }
3317
+ *
3318
+ * main().catch(e => {
3319
+ * console.error(e);
3320
+ * throw e;
3321
+ * });
3322
+ *
3323
+ * ```
2953
3324
  *
2954
3325
  * @param params - Parameters for request
2955
3326
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2964,6 +3335,62 @@ export declare namespace vmmigration_v1alpha1 {
2964
3335
  get(callback: BodyResponseCallback<Schema$Group>): void;
2965
3336
  /**
2966
3337
  * Lists Groups in a given project and location.
3338
+ * @example
3339
+ * ```js
3340
+ * // Before running the sample:
3341
+ * // - Enable the API at:
3342
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3343
+ * // - Login into gcloud by running:
3344
+ * // ```sh
3345
+ * // $ gcloud auth application-default login
3346
+ * // ```
3347
+ * // - Install the npm module by running:
3348
+ * // ```sh
3349
+ * // $ npm install googleapis
3350
+ * // ```
3351
+ *
3352
+ * const {google} = require('googleapis');
3353
+ * const vmmigration = google.vmmigration('v1alpha1');
3354
+ *
3355
+ * async function main() {
3356
+ * const auth = new google.auth.GoogleAuth({
3357
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3358
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3359
+ * });
3360
+ *
3361
+ * // Acquire an auth client, and bind it to all future calls
3362
+ * const authClient = await auth.getClient();
3363
+ * google.options({auth: authClient});
3364
+ *
3365
+ * // Do the magic
3366
+ * const res = await vmmigration.projects.locations.groups.list({
3367
+ * // Optional. The filter request.
3368
+ * filter: 'placeholder-value',
3369
+ * // Optional. the order by fields for the result.
3370
+ * orderBy: 'placeholder-value',
3371
+ * // 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.
3372
+ * pageSize: 'placeholder-value',
3373
+ * // 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.
3374
+ * pageToken: 'placeholder-value',
3375
+ * // Required. The parent, which owns this collection of groups.
3376
+ * parent: 'projects/my-project/locations/my-location',
3377
+ * });
3378
+ * console.log(res.data);
3379
+ *
3380
+ * // Example response
3381
+ * // {
3382
+ * // "groups": [],
3383
+ * // "nextPageToken": "my_nextPageToken",
3384
+ * // "unreachable": []
3385
+ * // }
3386
+ * }
3387
+ *
3388
+ * main().catch(e => {
3389
+ * console.error(e);
3390
+ * throw e;
3391
+ * });
3392
+ *
3393
+ * ```
2967
3394
  *
2968
3395
  * @param params - Parameters for request
2969
3396
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2978,6 +3405,73 @@ export declare namespace vmmigration_v1alpha1 {
2978
3405
  list(callback: BodyResponseCallback<Schema$ListGroupsResponse>): void;
2979
3406
  /**
2980
3407
  * Updates the parameters of a single Group.
3408
+ * @example
3409
+ * ```js
3410
+ * // Before running the sample:
3411
+ * // - Enable the API at:
3412
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3413
+ * // - Login into gcloud by running:
3414
+ * // ```sh
3415
+ * // $ gcloud auth application-default login
3416
+ * // ```
3417
+ * // - Install the npm module by running:
3418
+ * // ```sh
3419
+ * // $ npm install googleapis
3420
+ * // ```
3421
+ *
3422
+ * const {google} = require('googleapis');
3423
+ * const vmmigration = google.vmmigration('v1alpha1');
3424
+ *
3425
+ * async function main() {
3426
+ * const auth = new google.auth.GoogleAuth({
3427
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3428
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3429
+ * });
3430
+ *
3431
+ * // Acquire an auth client, and bind it to all future calls
3432
+ * const authClient = await auth.getClient();
3433
+ * google.options({auth: authClient});
3434
+ *
3435
+ * // Do the magic
3436
+ * const res = await vmmigration.projects.locations.groups.patch({
3437
+ * // Output only. The Group name.
3438
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3439
+ * // 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).
3440
+ * requestId: 'placeholder-value',
3441
+ * // 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.
3442
+ * updateMask: 'placeholder-value',
3443
+ *
3444
+ * // Request body metadata
3445
+ * requestBody: {
3446
+ * // request body parameters
3447
+ * // {
3448
+ * // "createTime": "my_createTime",
3449
+ * // "description": "my_description",
3450
+ * // "displayName": "my_displayName",
3451
+ * // "migrationTargetType": "my_migrationTargetType",
3452
+ * // "name": "my_name",
3453
+ * // "updateTime": "my_updateTime"
3454
+ * // }
3455
+ * },
3456
+ * });
3457
+ * console.log(res.data);
3458
+ *
3459
+ * // Example response
3460
+ * // {
3461
+ * // "done": false,
3462
+ * // "error": {},
3463
+ * // "metadata": {},
3464
+ * // "name": "my_name",
3465
+ * // "response": {}
3466
+ * // }
3467
+ * }
3468
+ *
3469
+ * main().catch(e => {
3470
+ * console.error(e);
3471
+ * throw e;
3472
+ * });
3473
+ *
3474
+ * ```
2981
3475
  *
2982
3476
  * @param params - Parameters for request
2983
3477
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2992,6 +3486,64 @@ export declare namespace vmmigration_v1alpha1 {
2992
3486
  patch(callback: BodyResponseCallback<Schema$Operation>): void;
2993
3487
  /**
2994
3488
  * Removes a MigratingVm from a Group.
3489
+ * @example
3490
+ * ```js
3491
+ * // Before running the sample:
3492
+ * // - Enable the API at:
3493
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3494
+ * // - Login into gcloud by running:
3495
+ * // ```sh
3496
+ * // $ gcloud auth application-default login
3497
+ * // ```
3498
+ * // - Install the npm module by running:
3499
+ * // ```sh
3500
+ * // $ npm install googleapis
3501
+ * // ```
3502
+ *
3503
+ * const {google} = require('googleapis');
3504
+ * const vmmigration = google.vmmigration('v1alpha1');
3505
+ *
3506
+ * async function main() {
3507
+ * const auth = new google.auth.GoogleAuth({
3508
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3509
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3510
+ * });
3511
+ *
3512
+ * // Acquire an auth client, and bind it to all future calls
3513
+ * const authClient = await auth.getClient();
3514
+ * google.options({auth: authClient});
3515
+ *
3516
+ * // Do the magic
3517
+ * const res = await vmmigration.projects.locations.groups.removeGroupMigration({
3518
+ * // Required. The name of the Group.
3519
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
3520
+ *
3521
+ * // Request body metadata
3522
+ * requestBody: {
3523
+ * // request body parameters
3524
+ * // {
3525
+ * // "migratingVm": "my_migratingVm"
3526
+ * // }
3527
+ * },
3528
+ * });
3529
+ * console.log(res.data);
3530
+ *
3531
+ * // Example response
3532
+ * // {
3533
+ * // "done": false,
3534
+ * // "error": {},
3535
+ * // "metadata": {},
3536
+ * // "name": "my_name",
3537
+ * // "response": {}
3538
+ * // }
3539
+ * }
3540
+ *
3541
+ * main().catch(e => {
3542
+ * console.error(e);
3543
+ * throw e;
3544
+ * });
3545
+ *
3546
+ * ```
2995
3547
  *
2996
3548
  * @param params - Parameters for request
2997
3549
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3105,6 +3657,74 @@ export declare namespace vmmigration_v1alpha1 {
3105
3657
  constructor(context: APIRequestContext);
3106
3658
  /**
3107
3659
  * Creates a new ImageImport in a given project.
3660
+ * @example
3661
+ * ```js
3662
+ * // Before running the sample:
3663
+ * // - Enable the API at:
3664
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3665
+ * // - Login into gcloud by running:
3666
+ * // ```sh
3667
+ * // $ gcloud auth application-default login
3668
+ * // ```
3669
+ * // - Install the npm module by running:
3670
+ * // ```sh
3671
+ * // $ npm install googleapis
3672
+ * // ```
3673
+ *
3674
+ * const {google} = require('googleapis');
3675
+ * const vmmigration = google.vmmigration('v1alpha1');
3676
+ *
3677
+ * async function main() {
3678
+ * const auth = new google.auth.GoogleAuth({
3679
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3680
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3681
+ * });
3682
+ *
3683
+ * // Acquire an auth client, and bind it to all future calls
3684
+ * const authClient = await auth.getClient();
3685
+ * google.options({auth: authClient});
3686
+ *
3687
+ * // Do the magic
3688
+ * const res = await vmmigration.projects.locations.imageImports.create({
3689
+ * // 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.
3690
+ * imageImportId: 'placeholder-value',
3691
+ * // Required. The ImageImport's parent.
3692
+ * parent: 'projects/my-project/locations/my-location',
3693
+ * // 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).
3694
+ * requestId: 'placeholder-value',
3695
+ *
3696
+ * // Request body metadata
3697
+ * requestBody: {
3698
+ * // request body parameters
3699
+ * // {
3700
+ * // "cloudStorageUri": "my_cloudStorageUri",
3701
+ * // "createTime": "my_createTime",
3702
+ * // "diskImageTargetDefaults": {},
3703
+ * // "encryption": {},
3704
+ * // "machineImageTargetDefaults": {},
3705
+ * // "name": "my_name",
3706
+ * // "recentImageImportJobs": []
3707
+ * // }
3708
+ * },
3709
+ * });
3710
+ * console.log(res.data);
3711
+ *
3712
+ * // Example response
3713
+ * // {
3714
+ * // "done": false,
3715
+ * // "error": {},
3716
+ * // "metadata": {},
3717
+ * // "name": "my_name",
3718
+ * // "response": {}
3719
+ * // }
3720
+ * }
3721
+ *
3722
+ * main().catch(e => {
3723
+ * console.error(e);
3724
+ * throw e;
3725
+ * });
3726
+ *
3727
+ * ```
3108
3728
  *
3109
3729
  * @param params - Parameters for request
3110
3730
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3119,6 +3739,58 @@ export declare namespace vmmigration_v1alpha1 {
3119
3739
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3120
3740
  /**
3121
3741
  * Deletes a single ImageImport.
3742
+ * @example
3743
+ * ```js
3744
+ * // Before running the sample:
3745
+ * // - Enable the API at:
3746
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3747
+ * // - Login into gcloud by running:
3748
+ * // ```sh
3749
+ * // $ gcloud auth application-default login
3750
+ * // ```
3751
+ * // - Install the npm module by running:
3752
+ * // ```sh
3753
+ * // $ npm install googleapis
3754
+ * // ```
3755
+ *
3756
+ * const {google} = require('googleapis');
3757
+ * const vmmigration = google.vmmigration('v1alpha1');
3758
+ *
3759
+ * async function main() {
3760
+ * const auth = new google.auth.GoogleAuth({
3761
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3762
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3763
+ * });
3764
+ *
3765
+ * // Acquire an auth client, and bind it to all future calls
3766
+ * const authClient = await auth.getClient();
3767
+ * google.options({auth: authClient});
3768
+ *
3769
+ * // Do the magic
3770
+ * const res = await vmmigration.projects.locations.imageImports.delete({
3771
+ * // Required. The ImageImport name.
3772
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
3773
+ * // 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).
3774
+ * requestId: 'placeholder-value',
3775
+ * });
3776
+ * console.log(res.data);
3777
+ *
3778
+ * // Example response
3779
+ * // {
3780
+ * // "done": false,
3781
+ * // "error": {},
3782
+ * // "metadata": {},
3783
+ * // "name": "my_name",
3784
+ * // "response": {}
3785
+ * // }
3786
+ * }
3787
+ *
3788
+ * main().catch(e => {
3789
+ * console.error(e);
3790
+ * throw e;
3791
+ * });
3792
+ *
3793
+ * ```
3122
3794
  *
3123
3795
  * @param params - Parameters for request
3124
3796
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3133,6 +3805,58 @@ export declare namespace vmmigration_v1alpha1 {
3133
3805
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
3134
3806
  /**
3135
3807
  * Gets details of a single ImageImport.
3808
+ * @example
3809
+ * ```js
3810
+ * // Before running the sample:
3811
+ * // - Enable the API at:
3812
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3813
+ * // - Login into gcloud by running:
3814
+ * // ```sh
3815
+ * // $ gcloud auth application-default login
3816
+ * // ```
3817
+ * // - Install the npm module by running:
3818
+ * // ```sh
3819
+ * // $ npm install googleapis
3820
+ * // ```
3821
+ *
3822
+ * const {google} = require('googleapis');
3823
+ * const vmmigration = google.vmmigration('v1alpha1');
3824
+ *
3825
+ * async function main() {
3826
+ * const auth = new google.auth.GoogleAuth({
3827
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3828
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3829
+ * });
3830
+ *
3831
+ * // Acquire an auth client, and bind it to all future calls
3832
+ * const authClient = await auth.getClient();
3833
+ * google.options({auth: authClient});
3834
+ *
3835
+ * // Do the magic
3836
+ * const res = await vmmigration.projects.locations.imageImports.get({
3837
+ * // Required. The ImageImport name.
3838
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
3839
+ * });
3840
+ * console.log(res.data);
3841
+ *
3842
+ * // Example response
3843
+ * // {
3844
+ * // "cloudStorageUri": "my_cloudStorageUri",
3845
+ * // "createTime": "my_createTime",
3846
+ * // "diskImageTargetDefaults": {},
3847
+ * // "encryption": {},
3848
+ * // "machineImageTargetDefaults": {},
3849
+ * // "name": "my_name",
3850
+ * // "recentImageImportJobs": []
3851
+ * // }
3852
+ * }
3853
+ *
3854
+ * main().catch(e => {
3855
+ * console.error(e);
3856
+ * throw e;
3857
+ * });
3858
+ *
3859
+ * ```
3136
3860
  *
3137
3861
  * @param params - Parameters for request
3138
3862
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3147,6 +3871,62 @@ export declare namespace vmmigration_v1alpha1 {
3147
3871
  get(callback: BodyResponseCallback<Schema$ImageImport>): void;
3148
3872
  /**
3149
3873
  * Lists ImageImports in a given project.
3874
+ * @example
3875
+ * ```js
3876
+ * // Before running the sample:
3877
+ * // - Enable the API at:
3878
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3879
+ * // - Login into gcloud by running:
3880
+ * // ```sh
3881
+ * // $ gcloud auth application-default login
3882
+ * // ```
3883
+ * // - Install the npm module by running:
3884
+ * // ```sh
3885
+ * // $ npm install googleapis
3886
+ * // ```
3887
+ *
3888
+ * const {google} = require('googleapis');
3889
+ * const vmmigration = google.vmmigration('v1alpha1');
3890
+ *
3891
+ * async function main() {
3892
+ * const auth = new google.auth.GoogleAuth({
3893
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3894
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3895
+ * });
3896
+ *
3897
+ * // Acquire an auth client, and bind it to all future calls
3898
+ * const authClient = await auth.getClient();
3899
+ * google.options({auth: authClient});
3900
+ *
3901
+ * // Do the magic
3902
+ * const res = await vmmigration.projects.locations.imageImports.list({
3903
+ * // Optional. The filter request (according to AIP-160).
3904
+ * filter: 'placeholder-value',
3905
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
3906
+ * orderBy: 'placeholder-value',
3907
+ * // 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.
3908
+ * pageSize: 'placeholder-value',
3909
+ * // 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.
3910
+ * pageToken: 'placeholder-value',
3911
+ * // Required. The parent, which owns this collection of targets.
3912
+ * parent: 'projects/my-project/locations/my-location',
3913
+ * });
3914
+ * console.log(res.data);
3915
+ *
3916
+ * // Example response
3917
+ * // {
3918
+ * // "imageImports": [],
3919
+ * // "nextPageToken": "my_nextPageToken",
3920
+ * // "unreachable": []
3921
+ * // }
3922
+ * }
3923
+ *
3924
+ * main().catch(e => {
3925
+ * console.error(e);
3926
+ * throw e;
3927
+ * });
3928
+ *
3929
+ * ```
3150
3930
  *
3151
3931
  * @param params - Parameters for request
3152
3932
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3221,6 +4001,63 @@ export declare namespace vmmigration_v1alpha1 {
3221
4001
  constructor(context: APIRequestContext);
3222
4002
  /**
3223
4003
  * Initiates the cancellation of a running clone job.
4004
+ * @example
4005
+ * ```js
4006
+ * // Before running the sample:
4007
+ * // - Enable the API at:
4008
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4009
+ * // - Login into gcloud by running:
4010
+ * // ```sh
4011
+ * // $ gcloud auth application-default login
4012
+ * // ```
4013
+ * // - Install the npm module by running:
4014
+ * // ```sh
4015
+ * // $ npm install googleapis
4016
+ * // ```
4017
+ *
4018
+ * const {google} = require('googleapis');
4019
+ * const vmmigration = google.vmmigration('v1alpha1');
4020
+ *
4021
+ * async function main() {
4022
+ * const auth = new google.auth.GoogleAuth({
4023
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4024
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4025
+ * });
4026
+ *
4027
+ * // Acquire an auth client, and bind it to all future calls
4028
+ * const authClient = await auth.getClient();
4029
+ * google.options({auth: authClient});
4030
+ *
4031
+ * // Do the magic
4032
+ * const res =
4033
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.cancel({
4034
+ * // Required. The image import job id.
4035
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
4036
+ *
4037
+ * // Request body metadata
4038
+ * requestBody: {
4039
+ * // request body parameters
4040
+ * // {}
4041
+ * },
4042
+ * });
4043
+ * console.log(res.data);
4044
+ *
4045
+ * // Example response
4046
+ * // {
4047
+ * // "done": false,
4048
+ * // "error": {},
4049
+ * // "metadata": {},
4050
+ * // "name": "my_name",
4051
+ * // "response": {}
4052
+ * // }
4053
+ * }
4054
+ *
4055
+ * main().catch(e => {
4056
+ * console.error(e);
4057
+ * throw e;
4058
+ * });
4059
+ *
4060
+ * ```
3224
4061
  *
3225
4062
  * @param params - Parameters for request
3226
4063
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3235,6 +4072,63 @@ export declare namespace vmmigration_v1alpha1 {
3235
4072
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3236
4073
  /**
3237
4074
  * Gets details of a single ImageImportJob.
4075
+ * @example
4076
+ * ```js
4077
+ * // Before running the sample:
4078
+ * // - Enable the API at:
4079
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4080
+ * // - Login into gcloud by running:
4081
+ * // ```sh
4082
+ * // $ gcloud auth application-default login
4083
+ * // ```
4084
+ * // - Install the npm module by running:
4085
+ * // ```sh
4086
+ * // $ npm install googleapis
4087
+ * // ```
4088
+ *
4089
+ * const {google} = require('googleapis');
4090
+ * const vmmigration = google.vmmigration('v1alpha1');
4091
+ *
4092
+ * async function main() {
4093
+ * const auth = new google.auth.GoogleAuth({
4094
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4095
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4096
+ * });
4097
+ *
4098
+ * // Acquire an auth client, and bind it to all future calls
4099
+ * const authClient = await auth.getClient();
4100
+ * google.options({auth: authClient});
4101
+ *
4102
+ * // Do the magic
4103
+ * const res =
4104
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.get({
4105
+ * // Required. The ImageImportJob name.
4106
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
4107
+ * });
4108
+ * console.log(res.data);
4109
+ *
4110
+ * // Example response
4111
+ * // {
4112
+ * // "cloudStorageUri": "my_cloudStorageUri",
4113
+ * // "createTime": "my_createTime",
4114
+ * // "createdResources": [],
4115
+ * // "diskImageTargetDetails": {},
4116
+ * // "endTime": "my_endTime",
4117
+ * // "errors": [],
4118
+ * // "machineImageTargetDetails": {},
4119
+ * // "name": "my_name",
4120
+ * // "state": "my_state",
4121
+ * // "steps": [],
4122
+ * // "warnings": []
4123
+ * // }
4124
+ * }
4125
+ *
4126
+ * main().catch(e => {
4127
+ * console.error(e);
4128
+ * throw e;
4129
+ * });
4130
+ *
4131
+ * ```
3238
4132
  *
3239
4133
  * @param params - Parameters for request
3240
4134
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3249,6 +4143,64 @@ export declare namespace vmmigration_v1alpha1 {
3249
4143
  get(callback: BodyResponseCallback<Schema$ImageImportJob>): void;
3250
4144
  /**
3251
4145
  * Lists ImageImportJobs in a given project.
4146
+ * @example
4147
+ * ```js
4148
+ * // Before running the sample:
4149
+ * // - Enable the API at:
4150
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4151
+ * // - Login into gcloud by running:
4152
+ * // ```sh
4153
+ * // $ gcloud auth application-default login
4154
+ * // ```
4155
+ * // - Install the npm module by running:
4156
+ * // ```sh
4157
+ * // $ npm install googleapis
4158
+ * // ```
4159
+ *
4160
+ * const {google} = require('googleapis');
4161
+ * const vmmigration = google.vmmigration('v1alpha1');
4162
+ *
4163
+ * async function main() {
4164
+ * const auth = new google.auth.GoogleAuth({
4165
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4166
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4167
+ * });
4168
+ *
4169
+ * // Acquire an auth client, and bind it to all future calls
4170
+ * const authClient = await auth.getClient();
4171
+ * google.options({auth: authClient});
4172
+ *
4173
+ * // Do the magic
4174
+ * const res =
4175
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.list({
4176
+ * // Optional. The filter request (according to AIP-160).
4177
+ * filter: 'placeholder-value',
4178
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
4179
+ * orderBy: 'placeholder-value',
4180
+ * // 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.
4181
+ * pageSize: 'placeholder-value',
4182
+ * // 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.
4183
+ * pageToken: 'placeholder-value',
4184
+ * // Required. The parent, which owns this collection of targets.
4185
+ * parent:
4186
+ * 'projects/my-project/locations/my-location/imageImports/my-imageImport',
4187
+ * });
4188
+ * console.log(res.data);
4189
+ *
4190
+ * // Example response
4191
+ * // {
4192
+ * // "imageImportJobs": [],
4193
+ * // "nextPageToken": "my_nextPageToken",
4194
+ * // "unreachable": []
4195
+ * // }
4196
+ * }
4197
+ *
4198
+ * main().catch(e => {
4199
+ * console.error(e);
4200
+ * throw e;
4201
+ * });
4202
+ *
4203
+ * ```
3252
4204
  *
3253
4205
  * @param params - Parameters for request
3254
4206
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3305,6 +4257,56 @@ export declare namespace vmmigration_v1alpha1 {
3305
4257
  constructor(context: APIRequestContext);
3306
4258
  /**
3307
4259
  * 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`.
4260
+ * @example
4261
+ * ```js
4262
+ * // Before running the sample:
4263
+ * // - Enable the API at:
4264
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4265
+ * // - Login into gcloud by running:
4266
+ * // ```sh
4267
+ * // $ gcloud auth application-default login
4268
+ * // ```
4269
+ * // - Install the npm module by running:
4270
+ * // ```sh
4271
+ * // $ npm install googleapis
4272
+ * // ```
4273
+ *
4274
+ * const {google} = require('googleapis');
4275
+ * const vmmigration = google.vmmigration('v1alpha1');
4276
+ *
4277
+ * async function main() {
4278
+ * const auth = new google.auth.GoogleAuth({
4279
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4280
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4281
+ * });
4282
+ *
4283
+ * // Acquire an auth client, and bind it to all future calls
4284
+ * const authClient = await auth.getClient();
4285
+ * google.options({auth: authClient});
4286
+ *
4287
+ * // Do the magic
4288
+ * const res = await vmmigration.projects.locations.operations.cancel({
4289
+ * // The name of the operation resource to be cancelled.
4290
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4291
+ *
4292
+ * // Request body metadata
4293
+ * requestBody: {
4294
+ * // request body parameters
4295
+ * // {}
4296
+ * },
4297
+ * });
4298
+ * console.log(res.data);
4299
+ *
4300
+ * // Example response
4301
+ * // {}
4302
+ * }
4303
+ *
4304
+ * main().catch(e => {
4305
+ * console.error(e);
4306
+ * throw e;
4307
+ * });
4308
+ *
4309
+ * ```
3308
4310
  *
3309
4311
  * @param params - Parameters for request
3310
4312
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3319,6 +4321,50 @@ export declare namespace vmmigration_v1alpha1 {
3319
4321
  cancel(callback: BodyResponseCallback<Schema$Empty>): void;
3320
4322
  /**
3321
4323
  * 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`.
4324
+ * @example
4325
+ * ```js
4326
+ * // Before running the sample:
4327
+ * // - Enable the API at:
4328
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4329
+ * // - Login into gcloud by running:
4330
+ * // ```sh
4331
+ * // $ gcloud auth application-default login
4332
+ * // ```
4333
+ * // - Install the npm module by running:
4334
+ * // ```sh
4335
+ * // $ npm install googleapis
4336
+ * // ```
4337
+ *
4338
+ * const {google} = require('googleapis');
4339
+ * const vmmigration = google.vmmigration('v1alpha1');
4340
+ *
4341
+ * async function main() {
4342
+ * const auth = new google.auth.GoogleAuth({
4343
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4344
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4345
+ * });
4346
+ *
4347
+ * // Acquire an auth client, and bind it to all future calls
4348
+ * const authClient = await auth.getClient();
4349
+ * google.options({auth: authClient});
4350
+ *
4351
+ * // Do the magic
4352
+ * const res = await vmmigration.projects.locations.operations.delete({
4353
+ * // The name of the operation resource to be deleted.
4354
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4355
+ * });
4356
+ * console.log(res.data);
4357
+ *
4358
+ * // Example response
4359
+ * // {}
4360
+ * }
4361
+ *
4362
+ * main().catch(e => {
4363
+ * console.error(e);
4364
+ * throw e;
4365
+ * });
4366
+ *
4367
+ * ```
3322
4368
  *
3323
4369
  * @param params - Parameters for request
3324
4370
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3333,6 +4379,56 @@ export declare namespace vmmigration_v1alpha1 {
3333
4379
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
3334
4380
  /**
3335
4381
  * 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.
4382
+ * @example
4383
+ * ```js
4384
+ * // Before running the sample:
4385
+ * // - Enable the API at:
4386
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4387
+ * // - Login into gcloud by running:
4388
+ * // ```sh
4389
+ * // $ gcloud auth application-default login
4390
+ * // ```
4391
+ * // - Install the npm module by running:
4392
+ * // ```sh
4393
+ * // $ npm install googleapis
4394
+ * // ```
4395
+ *
4396
+ * const {google} = require('googleapis');
4397
+ * const vmmigration = google.vmmigration('v1alpha1');
4398
+ *
4399
+ * async function main() {
4400
+ * const auth = new google.auth.GoogleAuth({
4401
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4402
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4403
+ * });
4404
+ *
4405
+ * // Acquire an auth client, and bind it to all future calls
4406
+ * const authClient = await auth.getClient();
4407
+ * google.options({auth: authClient});
4408
+ *
4409
+ * // Do the magic
4410
+ * const res = await vmmigration.projects.locations.operations.get({
4411
+ * // The name of the operation resource.
4412
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4413
+ * });
4414
+ * console.log(res.data);
4415
+ *
4416
+ * // Example response
4417
+ * // {
4418
+ * // "done": false,
4419
+ * // "error": {},
4420
+ * // "metadata": {},
4421
+ * // "name": "my_name",
4422
+ * // "response": {}
4423
+ * // }
4424
+ * }
4425
+ *
4426
+ * main().catch(e => {
4427
+ * console.error(e);
4428
+ * throw e;
4429
+ * });
4430
+ *
4431
+ * ```
3336
4432
  *
3337
4433
  * @param params - Parameters for request
3338
4434
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3347,6 +4443,59 @@ export declare namespace vmmigration_v1alpha1 {
3347
4443
  get(callback: BodyResponseCallback<Schema$Operation>): void;
3348
4444
  /**
3349
4445
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
4446
+ * @example
4447
+ * ```js
4448
+ * // Before running the sample:
4449
+ * // - Enable the API at:
4450
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4451
+ * // - Login into gcloud by running:
4452
+ * // ```sh
4453
+ * // $ gcloud auth application-default login
4454
+ * // ```
4455
+ * // - Install the npm module by running:
4456
+ * // ```sh
4457
+ * // $ npm install googleapis
4458
+ * // ```
4459
+ *
4460
+ * const {google} = require('googleapis');
4461
+ * const vmmigration = google.vmmigration('v1alpha1');
4462
+ *
4463
+ * async function main() {
4464
+ * const auth = new google.auth.GoogleAuth({
4465
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4466
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4467
+ * });
4468
+ *
4469
+ * // Acquire an auth client, and bind it to all future calls
4470
+ * const authClient = await auth.getClient();
4471
+ * google.options({auth: authClient});
4472
+ *
4473
+ * // Do the magic
4474
+ * const res = await vmmigration.projects.locations.operations.list({
4475
+ * // The standard list filter.
4476
+ * filter: 'placeholder-value',
4477
+ * // The name of the operation's parent resource.
4478
+ * name: 'projects/my-project/locations/my-location',
4479
+ * // The standard list page size.
4480
+ * pageSize: 'placeholder-value',
4481
+ * // The standard list page token.
4482
+ * pageToken: 'placeholder-value',
4483
+ * });
4484
+ * console.log(res.data);
4485
+ *
4486
+ * // Example response
4487
+ * // {
4488
+ * // "nextPageToken": "my_nextPageToken",
4489
+ * // "operations": []
4490
+ * // }
4491
+ * }
4492
+ *
4493
+ * main().catch(e => {
4494
+ * console.error(e);
4495
+ * throw e;
4496
+ * });
4497
+ *
4498
+ * ```
3350
4499
  *
3351
4500
  * @param params - Parameters for request
3352
4501
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3408,6 +4557,77 @@ export declare namespace vmmigration_v1alpha1 {
3408
4557
  constructor(context: APIRequestContext);
3409
4558
  /**
3410
4559
  * Creates a new Source in a given project and location.
4560
+ * @example
4561
+ * ```js
4562
+ * // Before running the sample:
4563
+ * // - Enable the API at:
4564
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4565
+ * // - Login into gcloud by running:
4566
+ * // ```sh
4567
+ * // $ gcloud auth application-default login
4568
+ * // ```
4569
+ * // - Install the npm module by running:
4570
+ * // ```sh
4571
+ * // $ npm install googleapis
4572
+ * // ```
4573
+ *
4574
+ * const {google} = require('googleapis');
4575
+ * const vmmigration = google.vmmigration('v1alpha1');
4576
+ *
4577
+ * async function main() {
4578
+ * const auth = new google.auth.GoogleAuth({
4579
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4580
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4581
+ * });
4582
+ *
4583
+ * // Acquire an auth client, and bind it to all future calls
4584
+ * const authClient = await auth.getClient();
4585
+ * google.options({auth: authClient});
4586
+ *
4587
+ * // Do the magic
4588
+ * const res = await vmmigration.projects.locations.sources.create({
4589
+ * // Required. The Source's parent.
4590
+ * parent: 'projects/my-project/locations/my-location',
4591
+ * // 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).
4592
+ * requestId: 'placeholder-value',
4593
+ * // Required. The source identifier.
4594
+ * sourceId: 'placeholder-value',
4595
+ *
4596
+ * // Request body metadata
4597
+ * requestBody: {
4598
+ * // request body parameters
4599
+ * // {
4600
+ * // "aws": {},
4601
+ * // "azure": {},
4602
+ * // "createTime": "my_createTime",
4603
+ * // "description": "my_description",
4604
+ * // "encryption": {},
4605
+ * // "error": {},
4606
+ * // "labels": {},
4607
+ * // "name": "my_name",
4608
+ * // "updateTime": "my_updateTime",
4609
+ * // "vmware": {}
4610
+ * // }
4611
+ * },
4612
+ * });
4613
+ * console.log(res.data);
4614
+ *
4615
+ * // Example response
4616
+ * // {
4617
+ * // "done": false,
4618
+ * // "error": {},
4619
+ * // "metadata": {},
4620
+ * // "name": "my_name",
4621
+ * // "response": {}
4622
+ * // }
4623
+ * }
4624
+ *
4625
+ * main().catch(e => {
4626
+ * console.error(e);
4627
+ * throw e;
4628
+ * });
4629
+ *
4630
+ * ```
3411
4631
  *
3412
4632
  * @param params - Parameters for request
3413
4633
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3422,6 +4642,58 @@ export declare namespace vmmigration_v1alpha1 {
3422
4642
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3423
4643
  /**
3424
4644
  * Deletes a single Source.
4645
+ * @example
4646
+ * ```js
4647
+ * // Before running the sample:
4648
+ * // - Enable the API at:
4649
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4650
+ * // - Login into gcloud by running:
4651
+ * // ```sh
4652
+ * // $ gcloud auth application-default login
4653
+ * // ```
4654
+ * // - Install the npm module by running:
4655
+ * // ```sh
4656
+ * // $ npm install googleapis
4657
+ * // ```
4658
+ *
4659
+ * const {google} = require('googleapis');
4660
+ * const vmmigration = google.vmmigration('v1alpha1');
4661
+ *
4662
+ * async function main() {
4663
+ * const auth = new google.auth.GoogleAuth({
4664
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4665
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4666
+ * });
4667
+ *
4668
+ * // Acquire an auth client, and bind it to all future calls
4669
+ * const authClient = await auth.getClient();
4670
+ * google.options({auth: authClient});
4671
+ *
4672
+ * // Do the magic
4673
+ * const res = await vmmigration.projects.locations.sources.delete({
4674
+ * // Required. The Source name.
4675
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4676
+ * // 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).
4677
+ * requestId: 'placeholder-value',
4678
+ * });
4679
+ * console.log(res.data);
4680
+ *
4681
+ * // Example response
4682
+ * // {
4683
+ * // "done": false,
4684
+ * // "error": {},
4685
+ * // "metadata": {},
4686
+ * // "name": "my_name",
4687
+ * // "response": {}
4688
+ * // }
4689
+ * }
4690
+ *
4691
+ * main().catch(e => {
4692
+ * console.error(e);
4693
+ * throw e;
4694
+ * });
4695
+ *
4696
+ * ```
3425
4697
  *
3426
4698
  * @param params - Parameters for request
3427
4699
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3436,6 +4708,62 @@ export declare namespace vmmigration_v1alpha1 {
3436
4708
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
3437
4709
  /**
3438
4710
  * 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.
4711
+ * @example
4712
+ * ```js
4713
+ * // Before running the sample:
4714
+ * // - Enable the API at:
4715
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4716
+ * // - Login into gcloud by running:
4717
+ * // ```sh
4718
+ * // $ gcloud auth application-default login
4719
+ * // ```
4720
+ * // - Install the npm module by running:
4721
+ * // ```sh
4722
+ * // $ npm install googleapis
4723
+ * // ```
4724
+ *
4725
+ * const {google} = require('googleapis');
4726
+ * const vmmigration = google.vmmigration('v1alpha1');
4727
+ *
4728
+ * async function main() {
4729
+ * const auth = new google.auth.GoogleAuth({
4730
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4731
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4732
+ * });
4733
+ *
4734
+ * // Acquire an auth client, and bind it to all future calls
4735
+ * const authClient = await auth.getClient();
4736
+ * google.options({auth: authClient});
4737
+ *
4738
+ * // Do the magic
4739
+ * const res = await vmmigration.projects.locations.sources.fetchInventory({
4740
+ * // 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.
4741
+ * forceRefresh: 'placeholder-value',
4742
+ * // 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.
4743
+ * pageSize: 'placeholder-value',
4744
+ * // 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.
4745
+ * pageToken: 'placeholder-value',
4746
+ * // Required. The name of the Source.
4747
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
4748
+ * });
4749
+ * console.log(res.data);
4750
+ *
4751
+ * // Example response
4752
+ * // {
4753
+ * // "awsVms": {},
4754
+ * // "azureVms": {},
4755
+ * // "nextPageToken": "my_nextPageToken",
4756
+ * // "updateTime": "my_updateTime",
4757
+ * // "vmwareVms": {}
4758
+ * // }
4759
+ * }
4760
+ *
4761
+ * main().catch(e => {
4762
+ * console.error(e);
4763
+ * throw e;
4764
+ * });
4765
+ *
4766
+ * ```
3439
4767
  *
3440
4768
  * @param params - Parameters for request
3441
4769
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3450,6 +4778,61 @@ export declare namespace vmmigration_v1alpha1 {
3450
4778
  fetchInventory(callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
3451
4779
  /**
3452
4780
  * Gets details of a single Source.
4781
+ * @example
4782
+ * ```js
4783
+ * // Before running the sample:
4784
+ * // - Enable the API at:
4785
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4786
+ * // - Login into gcloud by running:
4787
+ * // ```sh
4788
+ * // $ gcloud auth application-default login
4789
+ * // ```
4790
+ * // - Install the npm module by running:
4791
+ * // ```sh
4792
+ * // $ npm install googleapis
4793
+ * // ```
4794
+ *
4795
+ * const {google} = require('googleapis');
4796
+ * const vmmigration = google.vmmigration('v1alpha1');
4797
+ *
4798
+ * async function main() {
4799
+ * const auth = new google.auth.GoogleAuth({
4800
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4801
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4802
+ * });
4803
+ *
4804
+ * // Acquire an auth client, and bind it to all future calls
4805
+ * const authClient = await auth.getClient();
4806
+ * google.options({auth: authClient});
4807
+ *
4808
+ * // Do the magic
4809
+ * const res = await vmmigration.projects.locations.sources.get({
4810
+ * // Required. The Source name.
4811
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4812
+ * });
4813
+ * console.log(res.data);
4814
+ *
4815
+ * // Example response
4816
+ * // {
4817
+ * // "aws": {},
4818
+ * // "azure": {},
4819
+ * // "createTime": "my_createTime",
4820
+ * // "description": "my_description",
4821
+ * // "encryption": {},
4822
+ * // "error": {},
4823
+ * // "labels": {},
4824
+ * // "name": "my_name",
4825
+ * // "updateTime": "my_updateTime",
4826
+ * // "vmware": {}
4827
+ * // }
4828
+ * }
4829
+ *
4830
+ * main().catch(e => {
4831
+ * console.error(e);
4832
+ * throw e;
4833
+ * });
4834
+ *
4835
+ * ```
3453
4836
  *
3454
4837
  * @param params - Parameters for request
3455
4838
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3464,6 +4847,62 @@ export declare namespace vmmigration_v1alpha1 {
3464
4847
  get(callback: BodyResponseCallback<Schema$Source>): void;
3465
4848
  /**
3466
4849
  * Lists Sources in a given project and location.
4850
+ * @example
4851
+ * ```js
4852
+ * // Before running the sample:
4853
+ * // - Enable the API at:
4854
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4855
+ * // - Login into gcloud by running:
4856
+ * // ```sh
4857
+ * // $ gcloud auth application-default login
4858
+ * // ```
4859
+ * // - Install the npm module by running:
4860
+ * // ```sh
4861
+ * // $ npm install googleapis
4862
+ * // ```
4863
+ *
4864
+ * const {google} = require('googleapis');
4865
+ * const vmmigration = google.vmmigration('v1alpha1');
4866
+ *
4867
+ * async function main() {
4868
+ * const auth = new google.auth.GoogleAuth({
4869
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4870
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4871
+ * });
4872
+ *
4873
+ * // Acquire an auth client, and bind it to all future calls
4874
+ * const authClient = await auth.getClient();
4875
+ * google.options({auth: authClient});
4876
+ *
4877
+ * // Do the magic
4878
+ * const res = await vmmigration.projects.locations.sources.list({
4879
+ * // Optional. The filter request.
4880
+ * filter: 'placeholder-value',
4881
+ * // Optional. the order by fields for the result.
4882
+ * orderBy: 'placeholder-value',
4883
+ * // 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.
4884
+ * pageSize: 'placeholder-value',
4885
+ * // 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.
4886
+ * pageToken: 'placeholder-value',
4887
+ * // Required. The parent, which owns this collection of sources.
4888
+ * parent: 'projects/my-project/locations/my-location',
4889
+ * });
4890
+ * console.log(res.data);
4891
+ *
4892
+ * // Example response
4893
+ * // {
4894
+ * // "nextPageToken": "my_nextPageToken",
4895
+ * // "sources": [],
4896
+ * // "unreachable": []
4897
+ * // }
4898
+ * }
4899
+ *
4900
+ * main().catch(e => {
4901
+ * console.error(e);
4902
+ * throw e;
4903
+ * });
4904
+ *
4905
+ * ```
3467
4906
  *
3468
4907
  * @param params - Parameters for request
3469
4908
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3478,6 +4917,77 @@ export declare namespace vmmigration_v1alpha1 {
3478
4917
  list(callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
3479
4918
  /**
3480
4919
  * Updates the parameters of a single Source.
4920
+ * @example
4921
+ * ```js
4922
+ * // Before running the sample:
4923
+ * // - Enable the API at:
4924
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4925
+ * // - Login into gcloud by running:
4926
+ * // ```sh
4927
+ * // $ gcloud auth application-default login
4928
+ * // ```
4929
+ * // - Install the npm module by running:
4930
+ * // ```sh
4931
+ * // $ npm install googleapis
4932
+ * // ```
4933
+ *
4934
+ * const {google} = require('googleapis');
4935
+ * const vmmigration = google.vmmigration('v1alpha1');
4936
+ *
4937
+ * async function main() {
4938
+ * const auth = new google.auth.GoogleAuth({
4939
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4940
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4941
+ * });
4942
+ *
4943
+ * // Acquire an auth client, and bind it to all future calls
4944
+ * const authClient = await auth.getClient();
4945
+ * google.options({auth: authClient});
4946
+ *
4947
+ * // Do the magic
4948
+ * const res = await vmmigration.projects.locations.sources.patch({
4949
+ * // Output only. The Source name.
4950
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4951
+ * // 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).
4952
+ * requestId: 'placeholder-value',
4953
+ * // 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.
4954
+ * updateMask: 'placeholder-value',
4955
+ *
4956
+ * // Request body metadata
4957
+ * requestBody: {
4958
+ * // request body parameters
4959
+ * // {
4960
+ * // "aws": {},
4961
+ * // "azure": {},
4962
+ * // "createTime": "my_createTime",
4963
+ * // "description": "my_description",
4964
+ * // "encryption": {},
4965
+ * // "error": {},
4966
+ * // "labels": {},
4967
+ * // "name": "my_name",
4968
+ * // "updateTime": "my_updateTime",
4969
+ * // "vmware": {}
4970
+ * // }
4971
+ * },
4972
+ * });
4973
+ * console.log(res.data);
4974
+ *
4975
+ * // Example response
4976
+ * // {
4977
+ * // "done": false,
4978
+ * // "error": {},
4979
+ * // "metadata": {},
4980
+ * // "name": "my_name",
4981
+ * // "response": {}
4982
+ * // }
4983
+ * }
4984
+ *
4985
+ * main().catch(e => {
4986
+ * console.error(e);
4987
+ * throw e;
4988
+ * });
4989
+ *
4990
+ * ```
3481
4991
  *
3482
4992
  * @param params - Parameters for request
3483
4993
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3588,6 +5098,82 @@ export declare namespace vmmigration_v1alpha1 {
3588
5098
  constructor(context: APIRequestContext);
3589
5099
  /**
3590
5100
  * Creates a new DatacenterConnector in a given Source.
5101
+ * @example
5102
+ * ```js
5103
+ * // Before running the sample:
5104
+ * // - Enable the API at:
5105
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5106
+ * // - Login into gcloud by running:
5107
+ * // ```sh
5108
+ * // $ gcloud auth application-default login
5109
+ * // ```
5110
+ * // - Install the npm module by running:
5111
+ * // ```sh
5112
+ * // $ npm install googleapis
5113
+ * // ```
5114
+ *
5115
+ * const {google} = require('googleapis');
5116
+ * const vmmigration = google.vmmigration('v1alpha1');
5117
+ *
5118
+ * async function main() {
5119
+ * const auth = new google.auth.GoogleAuth({
5120
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5121
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5122
+ * });
5123
+ *
5124
+ * // Acquire an auth client, and bind it to all future calls
5125
+ * const authClient = await auth.getClient();
5126
+ * google.options({auth: authClient});
5127
+ *
5128
+ * // Do the magic
5129
+ * const res =
5130
+ * await vmmigration.projects.locations.sources.datacenterConnectors.create({
5131
+ * // Required. The datacenterConnector identifier.
5132
+ * datacenterConnectorId: 'placeholder-value',
5133
+ * // 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`
5134
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5135
+ * // 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).
5136
+ * requestId: 'placeholder-value',
5137
+ *
5138
+ * // Request body metadata
5139
+ * requestBody: {
5140
+ * // request body parameters
5141
+ * // {
5142
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
5143
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
5144
+ * // "availableVersions": {},
5145
+ * // "bucket": "my_bucket",
5146
+ * // "createTime": "my_createTime",
5147
+ * // "error": {},
5148
+ * // "name": "my_name",
5149
+ * // "registrationId": "my_registrationId",
5150
+ * // "serviceAccount": "my_serviceAccount",
5151
+ * // "state": "my_state",
5152
+ * // "stateTime": "my_stateTime",
5153
+ * // "updateTime": "my_updateTime",
5154
+ * // "upgradeStatus": {},
5155
+ * // "version": "my_version"
5156
+ * // }
5157
+ * },
5158
+ * });
5159
+ * console.log(res.data);
5160
+ *
5161
+ * // Example response
5162
+ * // {
5163
+ * // "done": false,
5164
+ * // "error": {},
5165
+ * // "metadata": {},
5166
+ * // "name": "my_name",
5167
+ * // "response": {}
5168
+ * // }
5169
+ * }
5170
+ *
5171
+ * main().catch(e => {
5172
+ * console.error(e);
5173
+ * throw e;
5174
+ * });
5175
+ *
5176
+ * ```
3591
5177
  *
3592
5178
  * @param params - Parameters for request
3593
5179
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3602,6 +5188,59 @@ export declare namespace vmmigration_v1alpha1 {
3602
5188
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3603
5189
  /**
3604
5190
  * Deletes a single DatacenterConnector.
5191
+ * @example
5192
+ * ```js
5193
+ * // Before running the sample:
5194
+ * // - Enable the API at:
5195
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5196
+ * // - Login into gcloud by running:
5197
+ * // ```sh
5198
+ * // $ gcloud auth application-default login
5199
+ * // ```
5200
+ * // - Install the npm module by running:
5201
+ * // ```sh
5202
+ * // $ npm install googleapis
5203
+ * // ```
5204
+ *
5205
+ * const {google} = require('googleapis');
5206
+ * const vmmigration = google.vmmigration('v1alpha1');
5207
+ *
5208
+ * async function main() {
5209
+ * const auth = new google.auth.GoogleAuth({
5210
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5211
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5212
+ * });
5213
+ *
5214
+ * // Acquire an auth client, and bind it to all future calls
5215
+ * const authClient = await auth.getClient();
5216
+ * google.options({auth: authClient});
5217
+ *
5218
+ * // Do the magic
5219
+ * const res =
5220
+ * await vmmigration.projects.locations.sources.datacenterConnectors.delete({
5221
+ * // Required. The DatacenterConnector name.
5222
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5223
+ * // 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).
5224
+ * requestId: 'placeholder-value',
5225
+ * });
5226
+ * console.log(res.data);
5227
+ *
5228
+ * // Example response
5229
+ * // {
5230
+ * // "done": false,
5231
+ * // "error": {},
5232
+ * // "metadata": {},
5233
+ * // "name": "my_name",
5234
+ * // "response": {}
5235
+ * // }
5236
+ * }
5237
+ *
5238
+ * main().catch(e => {
5239
+ * console.error(e);
5240
+ * throw e;
5241
+ * });
5242
+ *
5243
+ * ```
3605
5244
  *
3606
5245
  * @param params - Parameters for request
3607
5246
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3616,6 +5255,66 @@ export declare namespace vmmigration_v1alpha1 {
3616
5255
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
3617
5256
  /**
3618
5257
  * Gets details of a single DatacenterConnector.
5258
+ * @example
5259
+ * ```js
5260
+ * // Before running the sample:
5261
+ * // - Enable the API at:
5262
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5263
+ * // - Login into gcloud by running:
5264
+ * // ```sh
5265
+ * // $ gcloud auth application-default login
5266
+ * // ```
5267
+ * // - Install the npm module by running:
5268
+ * // ```sh
5269
+ * // $ npm install googleapis
5270
+ * // ```
5271
+ *
5272
+ * const {google} = require('googleapis');
5273
+ * const vmmigration = google.vmmigration('v1alpha1');
5274
+ *
5275
+ * async function main() {
5276
+ * const auth = new google.auth.GoogleAuth({
5277
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5278
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5279
+ * });
5280
+ *
5281
+ * // Acquire an auth client, and bind it to all future calls
5282
+ * const authClient = await auth.getClient();
5283
+ * google.options({auth: authClient});
5284
+ *
5285
+ * // Do the magic
5286
+ * const res =
5287
+ * await vmmigration.projects.locations.sources.datacenterConnectors.get({
5288
+ * // Required. The name of the DatacenterConnector.
5289
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5290
+ * });
5291
+ * console.log(res.data);
5292
+ *
5293
+ * // Example response
5294
+ * // {
5295
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
5296
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
5297
+ * // "availableVersions": {},
5298
+ * // "bucket": "my_bucket",
5299
+ * // "createTime": "my_createTime",
5300
+ * // "error": {},
5301
+ * // "name": "my_name",
5302
+ * // "registrationId": "my_registrationId",
5303
+ * // "serviceAccount": "my_serviceAccount",
5304
+ * // "state": "my_state",
5305
+ * // "stateTime": "my_stateTime",
5306
+ * // "updateTime": "my_updateTime",
5307
+ * // "upgradeStatus": {},
5308
+ * // "version": "my_version"
5309
+ * // }
5310
+ * }
5311
+ *
5312
+ * main().catch(e => {
5313
+ * console.error(e);
5314
+ * throw e;
5315
+ * });
5316
+ *
5317
+ * ```
3619
5318
  *
3620
5319
  * @param params - Parameters for request
3621
5320
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3630,6 +5329,63 @@ export declare namespace vmmigration_v1alpha1 {
3630
5329
  get(callback: BodyResponseCallback<Schema$DatacenterConnector>): void;
3631
5330
  /**
3632
5331
  * Lists DatacenterConnectors in a given Source.
5332
+ * @example
5333
+ * ```js
5334
+ * // Before running the sample:
5335
+ * // - Enable the API at:
5336
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5337
+ * // - Login into gcloud by running:
5338
+ * // ```sh
5339
+ * // $ gcloud auth application-default login
5340
+ * // ```
5341
+ * // - Install the npm module by running:
5342
+ * // ```sh
5343
+ * // $ npm install googleapis
5344
+ * // ```
5345
+ *
5346
+ * const {google} = require('googleapis');
5347
+ * const vmmigration = google.vmmigration('v1alpha1');
5348
+ *
5349
+ * async function main() {
5350
+ * const auth = new google.auth.GoogleAuth({
5351
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5352
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5353
+ * });
5354
+ *
5355
+ * // Acquire an auth client, and bind it to all future calls
5356
+ * const authClient = await auth.getClient();
5357
+ * google.options({auth: authClient});
5358
+ *
5359
+ * // Do the magic
5360
+ * const res =
5361
+ * await vmmigration.projects.locations.sources.datacenterConnectors.list({
5362
+ * // Optional. The filter request.
5363
+ * filter: 'placeholder-value',
5364
+ * // Optional. the order by fields for the result.
5365
+ * orderBy: 'placeholder-value',
5366
+ * // 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.
5367
+ * pageSize: 'placeholder-value',
5368
+ * // 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.
5369
+ * pageToken: 'placeholder-value',
5370
+ * // Required. The parent, which owns this collection of connectors.
5371
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5372
+ * });
5373
+ * console.log(res.data);
5374
+ *
5375
+ * // Example response
5376
+ * // {
5377
+ * // "datacenterConnectors": [],
5378
+ * // "nextPageToken": "my_nextPageToken",
5379
+ * // "unreachable": []
5380
+ * // }
5381
+ * }
5382
+ *
5383
+ * main().catch(e => {
5384
+ * console.error(e);
5385
+ * throw e;
5386
+ * });
5387
+ *
5388
+ * ```
3633
5389
  *
3634
5390
  * @param params - Parameters for request
3635
5391
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3644,6 +5400,68 @@ export declare namespace vmmigration_v1alpha1 {
3644
5400
  list(callback: BodyResponseCallback<Schema$ListDatacenterConnectorsResponse>): void;
3645
5401
  /**
3646
5402
  * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
5403
+ * @example
5404
+ * ```js
5405
+ * // Before running the sample:
5406
+ * // - Enable the API at:
5407
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5408
+ * // - Login into gcloud by running:
5409
+ * // ```sh
5410
+ * // $ gcloud auth application-default login
5411
+ * // ```
5412
+ * // - Install the npm module by running:
5413
+ * // ```sh
5414
+ * // $ npm install googleapis
5415
+ * // ```
5416
+ *
5417
+ * const {google} = require('googleapis');
5418
+ * const vmmigration = google.vmmigration('v1alpha1');
5419
+ *
5420
+ * async function main() {
5421
+ * const auth = new google.auth.GoogleAuth({
5422
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5423
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5424
+ * });
5425
+ *
5426
+ * // Acquire an auth client, and bind it to all future calls
5427
+ * const authClient = await auth.getClient();
5428
+ * google.options({auth: authClient});
5429
+ *
5430
+ * // Do the magic
5431
+ * const res =
5432
+ * await vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance(
5433
+ * {
5434
+ * // Required. The DatacenterConnector name.
5435
+ * datacenterConnector:
5436
+ * 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5437
+ *
5438
+ * // Request body metadata
5439
+ * requestBody: {
5440
+ * // request body parameters
5441
+ * // {
5442
+ * // "requestId": "my_requestId"
5443
+ * // }
5444
+ * },
5445
+ * },
5446
+ * );
5447
+ * console.log(res.data);
5448
+ *
5449
+ * // Example response
5450
+ * // {
5451
+ * // "done": false,
5452
+ * // "error": {},
5453
+ * // "metadata": {},
5454
+ * // "name": "my_name",
5455
+ * // "response": {}
5456
+ * // }
5457
+ * }
5458
+ *
5459
+ * main().catch(e => {
5460
+ * console.error(e);
5461
+ * throw e;
5462
+ * });
5463
+ *
5464
+ * ```
3647
5465
  *
3648
5466
  * @param params - Parameters for request
3649
5467
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3731,6 +5549,93 @@ export declare namespace vmmigration_v1alpha1 {
3731
5549
  constructor(context: APIRequestContext);
3732
5550
  /**
3733
5551
  * Creates a new MigratingVm in a given Source.
5552
+ * @example
5553
+ * ```js
5554
+ * // Before running the sample:
5555
+ * // - Enable the API at:
5556
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5557
+ * // - Login into gcloud by running:
5558
+ * // ```sh
5559
+ * // $ gcloud auth application-default login
5560
+ * // ```
5561
+ * // - Install the npm module by running:
5562
+ * // ```sh
5563
+ * // $ npm install googleapis
5564
+ * // ```
5565
+ *
5566
+ * const {google} = require('googleapis');
5567
+ * const vmmigration = google.vmmigration('v1alpha1');
5568
+ *
5569
+ * async function main() {
5570
+ * const auth = new google.auth.GoogleAuth({
5571
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5572
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5573
+ * });
5574
+ *
5575
+ * // Acquire an auth client, and bind it to all future calls
5576
+ * const authClient = await auth.getClient();
5577
+ * google.options({auth: authClient});
5578
+ *
5579
+ * // Do the magic
5580
+ * const res = await vmmigration.projects.locations.sources.migratingVms.create({
5581
+ * // Required. The migratingVm identifier.
5582
+ * migratingVmId: 'placeholder-value',
5583
+ * // Required. The MigratingVm's parent.
5584
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5585
+ * // 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).
5586
+ * requestId: 'placeholder-value',
5587
+ *
5588
+ * // Request body metadata
5589
+ * requestBody: {
5590
+ * // request body parameters
5591
+ * // {
5592
+ * // "awsSourceVmDetails": {},
5593
+ * // "azureSourceVmDetails": {},
5594
+ * // "computeEngineDisksTargetDefaults": {},
5595
+ * // "computeEngineTargetDefaults": {},
5596
+ * // "computeEngineVmDefaults": {},
5597
+ * // "createTime": "my_createTime",
5598
+ * // "currentSyncInfo": {},
5599
+ * // "cutoverForecast": {},
5600
+ * // "description": "my_description",
5601
+ * // "displayName": "my_displayName",
5602
+ * // "error": {},
5603
+ * // "expiration": {},
5604
+ * // "group": "my_group",
5605
+ * // "labels": {},
5606
+ * // "lastReplicationCycle": {},
5607
+ * // "lastSync": {},
5608
+ * // "name": "my_name",
5609
+ * // "policy": {},
5610
+ * // "recentCloneJobs": [],
5611
+ * // "recentCutoverJobs": [],
5612
+ * // "sourceVmId": "my_sourceVmId",
5613
+ * // "state": "my_state",
5614
+ * // "stateTime": "my_stateTime",
5615
+ * // "targetDefaults": {},
5616
+ * // "updateTime": "my_updateTime",
5617
+ * // "vmwareSourceVmDetails": {}
5618
+ * // }
5619
+ * },
5620
+ * });
5621
+ * console.log(res.data);
5622
+ *
5623
+ * // Example response
5624
+ * // {
5625
+ * // "done": false,
5626
+ * // "error": {},
5627
+ * // "metadata": {},
5628
+ * // "name": "my_name",
5629
+ * // "response": {}
5630
+ * // }
5631
+ * }
5632
+ *
5633
+ * main().catch(e => {
5634
+ * console.error(e);
5635
+ * throw e;
5636
+ * });
5637
+ *
5638
+ * ```
3734
5639
  *
3735
5640
  * @param params - Parameters for request
3736
5641
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3745,6 +5650,56 @@ export declare namespace vmmigration_v1alpha1 {
3745
5650
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3746
5651
  /**
3747
5652
  * Deletes a single MigratingVm.
5653
+ * @example
5654
+ * ```js
5655
+ * // Before running the sample:
5656
+ * // - Enable the API at:
5657
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5658
+ * // - Login into gcloud by running:
5659
+ * // ```sh
5660
+ * // $ gcloud auth application-default login
5661
+ * // ```
5662
+ * // - Install the npm module by running:
5663
+ * // ```sh
5664
+ * // $ npm install googleapis
5665
+ * // ```
5666
+ *
5667
+ * const {google} = require('googleapis');
5668
+ * const vmmigration = google.vmmigration('v1alpha1');
5669
+ *
5670
+ * async function main() {
5671
+ * const auth = new google.auth.GoogleAuth({
5672
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5673
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5674
+ * });
5675
+ *
5676
+ * // Acquire an auth client, and bind it to all future calls
5677
+ * const authClient = await auth.getClient();
5678
+ * google.options({auth: authClient});
5679
+ *
5680
+ * // Do the magic
5681
+ * const res = await vmmigration.projects.locations.sources.migratingVms.delete({
5682
+ * // Required. The name of the MigratingVm.
5683
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5684
+ * });
5685
+ * console.log(res.data);
5686
+ *
5687
+ * // Example response
5688
+ * // {
5689
+ * // "done": false,
5690
+ * // "error": {},
5691
+ * // "metadata": {},
5692
+ * // "name": "my_name",
5693
+ * // "response": {}
5694
+ * // }
5695
+ * }
5696
+ *
5697
+ * main().catch(e => {
5698
+ * console.error(e);
5699
+ * throw e;
5700
+ * });
5701
+ *
5702
+ * ```
3748
5703
  *
3749
5704
  * @param params - Parameters for request
3750
5705
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3757,8 +5712,140 @@ export declare namespace vmmigration_v1alpha1 {
3757
5712
  delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3758
5713
  delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
3759
5714
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
5715
+ /**
5716
+ * Extend the migrating VM time to live.
5717
+ * @example
5718
+ * ```js
5719
+ * // Before running the sample:
5720
+ * // - Enable the API at:
5721
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5722
+ * // - Login into gcloud by running:
5723
+ * // ```sh
5724
+ * // $ gcloud auth application-default login
5725
+ * // ```
5726
+ * // - Install the npm module by running:
5727
+ * // ```sh
5728
+ * // $ npm install googleapis
5729
+ * // ```
5730
+ *
5731
+ * const {google} = require('googleapis');
5732
+ * const vmmigration = google.vmmigration('v1alpha1');
5733
+ *
5734
+ * async function main() {
5735
+ * const auth = new google.auth.GoogleAuth({
5736
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5737
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5738
+ * });
5739
+ *
5740
+ * // Acquire an auth client, and bind it to all future calls
5741
+ * const authClient = await auth.getClient();
5742
+ * google.options({auth: authClient});
5743
+ *
5744
+ * // Do the magic
5745
+ * const res =
5746
+ * await vmmigration.projects.locations.sources.migratingVms.extendMigration({
5747
+ * // Required. The name of the MigratingVm.
5748
+ * migratingVm:
5749
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5750
+ *
5751
+ * // Request body metadata
5752
+ * requestBody: {
5753
+ * // request body parameters
5754
+ * // {}
5755
+ * },
5756
+ * });
5757
+ * console.log(res.data);
5758
+ *
5759
+ * // Example response
5760
+ * // {
5761
+ * // "done": false,
5762
+ * // "error": {},
5763
+ * // "metadata": {},
5764
+ * // "name": "my_name",
5765
+ * // "response": {}
5766
+ * // }
5767
+ * }
5768
+ *
5769
+ * main().catch(e => {
5770
+ * console.error(e);
5771
+ * throw e;
5772
+ * });
5773
+ *
5774
+ * ```
5775
+ *
5776
+ * @param params - Parameters for request
5777
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5778
+ * @param callback - Optional callback that handles the response.
5779
+ * @returns A promise if used with async/await, or void if used with a callback.
5780
+ */
5781
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5782
+ extendMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5783
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5784
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5785
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, callback: BodyResponseCallback<Schema$Operation>): void;
5786
+ extendMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3760
5787
  /**
3761
5788
  * Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
5789
+ * @example
5790
+ * ```js
5791
+ * // Before running the sample:
5792
+ * // - Enable the API at:
5793
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5794
+ * // - Login into gcloud by running:
5795
+ * // ```sh
5796
+ * // $ gcloud auth application-default login
5797
+ * // ```
5798
+ * // - Install the npm module by running:
5799
+ * // ```sh
5800
+ * // $ npm install googleapis
5801
+ * // ```
5802
+ *
5803
+ * const {google} = require('googleapis');
5804
+ * const vmmigration = google.vmmigration('v1alpha1');
5805
+ *
5806
+ * async function main() {
5807
+ * const auth = new google.auth.GoogleAuth({
5808
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5809
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5810
+ * });
5811
+ *
5812
+ * // Acquire an auth client, and bind it to all future calls
5813
+ * const authClient = await auth.getClient();
5814
+ * google.options({auth: authClient});
5815
+ *
5816
+ * // Do the magic
5817
+ * const res =
5818
+ * await vmmigration.projects.locations.sources.migratingVms.finalizeMigration(
5819
+ * {
5820
+ * // Required. The name of the MigratingVm.
5821
+ * migratingVm:
5822
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5823
+ *
5824
+ * // Request body metadata
5825
+ * requestBody: {
5826
+ * // request body parameters
5827
+ * // {}
5828
+ * },
5829
+ * },
5830
+ * );
5831
+ * console.log(res.data);
5832
+ *
5833
+ * // Example response
5834
+ * // {
5835
+ * // "done": false,
5836
+ * // "error": {},
5837
+ * // "metadata": {},
5838
+ * // "name": "my_name",
5839
+ * // "response": {}
5840
+ * // }
5841
+ * }
5842
+ *
5843
+ * main().catch(e => {
5844
+ * console.error(e);
5845
+ * throw e;
5846
+ * });
5847
+ *
5848
+ * ```
3762
5849
  *
3763
5850
  * @param params - Parameters for request
3764
5851
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3773,6 +5860,79 @@ export declare namespace vmmigration_v1alpha1 {
3773
5860
  finalizeMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3774
5861
  /**
3775
5862
  * Gets details of a single MigratingVm.
5863
+ * @example
5864
+ * ```js
5865
+ * // Before running the sample:
5866
+ * // - Enable the API at:
5867
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5868
+ * // - Login into gcloud by running:
5869
+ * // ```sh
5870
+ * // $ gcloud auth application-default login
5871
+ * // ```
5872
+ * // - Install the npm module by running:
5873
+ * // ```sh
5874
+ * // $ npm install googleapis
5875
+ * // ```
5876
+ *
5877
+ * const {google} = require('googleapis');
5878
+ * const vmmigration = google.vmmigration('v1alpha1');
5879
+ *
5880
+ * async function main() {
5881
+ * const auth = new google.auth.GoogleAuth({
5882
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5883
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5884
+ * });
5885
+ *
5886
+ * // Acquire an auth client, and bind it to all future calls
5887
+ * const authClient = await auth.getClient();
5888
+ * google.options({auth: authClient});
5889
+ *
5890
+ * // Do the magic
5891
+ * const res = await vmmigration.projects.locations.sources.migratingVms.get({
5892
+ * // Required. The name of the MigratingVm.
5893
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5894
+ * // Optional. The level of details of the migrating VM.
5895
+ * view: 'placeholder-value',
5896
+ * });
5897
+ * console.log(res.data);
5898
+ *
5899
+ * // Example response
5900
+ * // {
5901
+ * // "awsSourceVmDetails": {},
5902
+ * // "azureSourceVmDetails": {},
5903
+ * // "computeEngineDisksTargetDefaults": {},
5904
+ * // "computeEngineTargetDefaults": {},
5905
+ * // "computeEngineVmDefaults": {},
5906
+ * // "createTime": "my_createTime",
5907
+ * // "currentSyncInfo": {},
5908
+ * // "cutoverForecast": {},
5909
+ * // "description": "my_description",
5910
+ * // "displayName": "my_displayName",
5911
+ * // "error": {},
5912
+ * // "expiration": {},
5913
+ * // "group": "my_group",
5914
+ * // "labels": {},
5915
+ * // "lastReplicationCycle": {},
5916
+ * // "lastSync": {},
5917
+ * // "name": "my_name",
5918
+ * // "policy": {},
5919
+ * // "recentCloneJobs": [],
5920
+ * // "recentCutoverJobs": [],
5921
+ * // "sourceVmId": "my_sourceVmId",
5922
+ * // "state": "my_state",
5923
+ * // "stateTime": "my_stateTime",
5924
+ * // "targetDefaults": {},
5925
+ * // "updateTime": "my_updateTime",
5926
+ * // "vmwareSourceVmDetails": {}
5927
+ * // }
5928
+ * }
5929
+ *
5930
+ * main().catch(e => {
5931
+ * console.error(e);
5932
+ * throw e;
5933
+ * });
5934
+ *
5935
+ * ```
3776
5936
  *
3777
5937
  * @param params - Parameters for request
3778
5938
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3787,6 +5947,64 @@ export declare namespace vmmigration_v1alpha1 {
3787
5947
  get(callback: BodyResponseCallback<Schema$MigratingVm>): void;
3788
5948
  /**
3789
5949
  * Lists MigratingVms in a given Source.
5950
+ * @example
5951
+ * ```js
5952
+ * // Before running the sample:
5953
+ * // - Enable the API at:
5954
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5955
+ * // - Login into gcloud by running:
5956
+ * // ```sh
5957
+ * // $ gcloud auth application-default login
5958
+ * // ```
5959
+ * // - Install the npm module by running:
5960
+ * // ```sh
5961
+ * // $ npm install googleapis
5962
+ * // ```
5963
+ *
5964
+ * const {google} = require('googleapis');
5965
+ * const vmmigration = google.vmmigration('v1alpha1');
5966
+ *
5967
+ * async function main() {
5968
+ * const auth = new google.auth.GoogleAuth({
5969
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5970
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5971
+ * });
5972
+ *
5973
+ * // Acquire an auth client, and bind it to all future calls
5974
+ * const authClient = await auth.getClient();
5975
+ * google.options({auth: authClient});
5976
+ *
5977
+ * // Do the magic
5978
+ * const res = await vmmigration.projects.locations.sources.migratingVms.list({
5979
+ * // Optional. The filter request.
5980
+ * filter: 'placeholder-value',
5981
+ * // Optional. the order by fields for the result.
5982
+ * orderBy: 'placeholder-value',
5983
+ * // 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.
5984
+ * pageSize: 'placeholder-value',
5985
+ * // 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.
5986
+ * pageToken: 'placeholder-value',
5987
+ * // Required. The parent, which owns this collection of MigratingVms.
5988
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5989
+ * // Optional. The level of details of each migrating VM.
5990
+ * view: 'placeholder-value',
5991
+ * });
5992
+ * console.log(res.data);
5993
+ *
5994
+ * // Example response
5995
+ * // {
5996
+ * // "migratingVms": [],
5997
+ * // "nextPageToken": "my_nextPageToken",
5998
+ * // "unreachable": []
5999
+ * // }
6000
+ * }
6001
+ *
6002
+ * main().catch(e => {
6003
+ * console.error(e);
6004
+ * throw e;
6005
+ * });
6006
+ *
6007
+ * ```
3790
6008
  *
3791
6009
  * @param params - Parameters for request
3792
6010
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3801,6 +6019,93 @@ export declare namespace vmmigration_v1alpha1 {
3801
6019
  list(callback: BodyResponseCallback<Schema$ListMigratingVmsResponse>): void;
3802
6020
  /**
3803
6021
  * Updates the parameters of a single MigratingVm.
6022
+ * @example
6023
+ * ```js
6024
+ * // Before running the sample:
6025
+ * // - Enable the API at:
6026
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6027
+ * // - Login into gcloud by running:
6028
+ * // ```sh
6029
+ * // $ gcloud auth application-default login
6030
+ * // ```
6031
+ * // - Install the npm module by running:
6032
+ * // ```sh
6033
+ * // $ npm install googleapis
6034
+ * // ```
6035
+ *
6036
+ * const {google} = require('googleapis');
6037
+ * const vmmigration = google.vmmigration('v1alpha1');
6038
+ *
6039
+ * async function main() {
6040
+ * const auth = new google.auth.GoogleAuth({
6041
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6042
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6043
+ * });
6044
+ *
6045
+ * // Acquire an auth client, and bind it to all future calls
6046
+ * const authClient = await auth.getClient();
6047
+ * google.options({auth: authClient});
6048
+ *
6049
+ * // Do the magic
6050
+ * const res = await vmmigration.projects.locations.sources.migratingVms.patch({
6051
+ * // Output only. The identifier of the MigratingVm.
6052
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6053
+ * // 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).
6054
+ * requestId: 'placeholder-value',
6055
+ * // 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.
6056
+ * updateMask: 'placeholder-value',
6057
+ *
6058
+ * // Request body metadata
6059
+ * requestBody: {
6060
+ * // request body parameters
6061
+ * // {
6062
+ * // "awsSourceVmDetails": {},
6063
+ * // "azureSourceVmDetails": {},
6064
+ * // "computeEngineDisksTargetDefaults": {},
6065
+ * // "computeEngineTargetDefaults": {},
6066
+ * // "computeEngineVmDefaults": {},
6067
+ * // "createTime": "my_createTime",
6068
+ * // "currentSyncInfo": {},
6069
+ * // "cutoverForecast": {},
6070
+ * // "description": "my_description",
6071
+ * // "displayName": "my_displayName",
6072
+ * // "error": {},
6073
+ * // "expiration": {},
6074
+ * // "group": "my_group",
6075
+ * // "labels": {},
6076
+ * // "lastReplicationCycle": {},
6077
+ * // "lastSync": {},
6078
+ * // "name": "my_name",
6079
+ * // "policy": {},
6080
+ * // "recentCloneJobs": [],
6081
+ * // "recentCutoverJobs": [],
6082
+ * // "sourceVmId": "my_sourceVmId",
6083
+ * // "state": "my_state",
6084
+ * // "stateTime": "my_stateTime",
6085
+ * // "targetDefaults": {},
6086
+ * // "updateTime": "my_updateTime",
6087
+ * // "vmwareSourceVmDetails": {}
6088
+ * // }
6089
+ * },
6090
+ * });
6091
+ * console.log(res.data);
6092
+ *
6093
+ * // Example response
6094
+ * // {
6095
+ * // "done": false,
6096
+ * // "error": {},
6097
+ * // "metadata": {},
6098
+ * // "name": "my_name",
6099
+ * // "response": {}
6100
+ * // }
6101
+ * }
6102
+ *
6103
+ * main().catch(e => {
6104
+ * console.error(e);
6105
+ * throw e;
6106
+ * });
6107
+ *
6108
+ * ```
3804
6109
  *
3805
6110
  * @param params - Parameters for request
3806
6111
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3815,6 +6120,64 @@ export declare namespace vmmigration_v1alpha1 {
3815
6120
  patch(callback: BodyResponseCallback<Schema$Operation>): void;
3816
6121
  /**
3817
6122
  * 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.
6123
+ * @example
6124
+ * ```js
6125
+ * // Before running the sample:
6126
+ * // - Enable the API at:
6127
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6128
+ * // - Login into gcloud by running:
6129
+ * // ```sh
6130
+ * // $ gcloud auth application-default login
6131
+ * // ```
6132
+ * // - Install the npm module by running:
6133
+ * // ```sh
6134
+ * // $ npm install googleapis
6135
+ * // ```
6136
+ *
6137
+ * const {google} = require('googleapis');
6138
+ * const vmmigration = google.vmmigration('v1alpha1');
6139
+ *
6140
+ * async function main() {
6141
+ * const auth = new google.auth.GoogleAuth({
6142
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6143
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6144
+ * });
6145
+ *
6146
+ * // Acquire an auth client, and bind it to all future calls
6147
+ * const authClient = await auth.getClient();
6148
+ * google.options({auth: authClient});
6149
+ *
6150
+ * // Do the magic
6151
+ * const res =
6152
+ * await vmmigration.projects.locations.sources.migratingVms.pauseMigration({
6153
+ * // Required. The name of the MigratingVm.
6154
+ * migratingVm:
6155
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6156
+ *
6157
+ * // Request body metadata
6158
+ * requestBody: {
6159
+ * // request body parameters
6160
+ * // {}
6161
+ * },
6162
+ * });
6163
+ * console.log(res.data);
6164
+ *
6165
+ * // Example response
6166
+ * // {
6167
+ * // "done": false,
6168
+ * // "error": {},
6169
+ * // "metadata": {},
6170
+ * // "name": "my_name",
6171
+ * // "response": {}
6172
+ * // }
6173
+ * }
6174
+ *
6175
+ * main().catch(e => {
6176
+ * console.error(e);
6177
+ * throw e;
6178
+ * });
6179
+ *
6180
+ * ```
3818
6181
  *
3819
6182
  * @param params - Parameters for request
3820
6183
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3829,6 +6192,64 @@ export declare namespace vmmigration_v1alpha1 {
3829
6192
  pauseMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3830
6193
  /**
3831
6194
  * 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.
6195
+ * @example
6196
+ * ```js
6197
+ * // Before running the sample:
6198
+ * // - Enable the API at:
6199
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6200
+ * // - Login into gcloud by running:
6201
+ * // ```sh
6202
+ * // $ gcloud auth application-default login
6203
+ * // ```
6204
+ * // - Install the npm module by running:
6205
+ * // ```sh
6206
+ * // $ npm install googleapis
6207
+ * // ```
6208
+ *
6209
+ * const {google} = require('googleapis');
6210
+ * const vmmigration = google.vmmigration('v1alpha1');
6211
+ *
6212
+ * async function main() {
6213
+ * const auth = new google.auth.GoogleAuth({
6214
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6215
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6216
+ * });
6217
+ *
6218
+ * // Acquire an auth client, and bind it to all future calls
6219
+ * const authClient = await auth.getClient();
6220
+ * google.options({auth: authClient});
6221
+ *
6222
+ * // Do the magic
6223
+ * const res =
6224
+ * await vmmigration.projects.locations.sources.migratingVms.resumeMigration({
6225
+ * // Required. The name of the MigratingVm.
6226
+ * migratingVm:
6227
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6228
+ *
6229
+ * // Request body metadata
6230
+ * requestBody: {
6231
+ * // request body parameters
6232
+ * // {}
6233
+ * },
6234
+ * });
6235
+ * console.log(res.data);
6236
+ *
6237
+ * // Example response
6238
+ * // {
6239
+ * // "done": false,
6240
+ * // "error": {},
6241
+ * // "metadata": {},
6242
+ * // "name": "my_name",
6243
+ * // "response": {}
6244
+ * // }
6245
+ * }
6246
+ *
6247
+ * main().catch(e => {
6248
+ * console.error(e);
6249
+ * throw e;
6250
+ * });
6251
+ *
6252
+ * ```
3832
6253
  *
3833
6254
  * @param params - Parameters for request
3834
6255
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3843,6 +6264,64 @@ export declare namespace vmmigration_v1alpha1 {
3843
6264
  resumeMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3844
6265
  /**
3845
6266
  * Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
6267
+ * @example
6268
+ * ```js
6269
+ * // Before running the sample:
6270
+ * // - Enable the API at:
6271
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6272
+ * // - Login into gcloud by running:
6273
+ * // ```sh
6274
+ * // $ gcloud auth application-default login
6275
+ * // ```
6276
+ * // - Install the npm module by running:
6277
+ * // ```sh
6278
+ * // $ npm install googleapis
6279
+ * // ```
6280
+ *
6281
+ * const {google} = require('googleapis');
6282
+ * const vmmigration = google.vmmigration('v1alpha1');
6283
+ *
6284
+ * async function main() {
6285
+ * const auth = new google.auth.GoogleAuth({
6286
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6287
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6288
+ * });
6289
+ *
6290
+ * // Acquire an auth client, and bind it to all future calls
6291
+ * const authClient = await auth.getClient();
6292
+ * google.options({auth: authClient});
6293
+ *
6294
+ * // Do the magic
6295
+ * const res =
6296
+ * await vmmigration.projects.locations.sources.migratingVms.startMigration({
6297
+ * // Required. The name of the MigratingVm.
6298
+ * migratingVm:
6299
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6300
+ *
6301
+ * // Request body metadata
6302
+ * requestBody: {
6303
+ * // request body parameters
6304
+ * // {}
6305
+ * },
6306
+ * });
6307
+ * console.log(res.data);
6308
+ *
6309
+ * // Example response
6310
+ * // {
6311
+ * // "done": false,
6312
+ * // "error": {},
6313
+ * // "metadata": {},
6314
+ * // "name": "my_name",
6315
+ * // "response": {}
6316
+ * // }
6317
+ * }
6318
+ *
6319
+ * main().catch(e => {
6320
+ * console.error(e);
6321
+ * throw e;
6322
+ * });
6323
+ *
6324
+ * ```
3846
6325
  *
3847
6326
  * @param params - Parameters for request
3848
6327
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3880,6 +6359,16 @@ export declare namespace vmmigration_v1alpha1 {
3880
6359
  */
3881
6360
  name?: string;
3882
6361
  }
6362
+ export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration extends StandardParameters {
6363
+ /**
6364
+ * Required. The name of the MigratingVm.
6365
+ */
6366
+ migratingVm?: string;
6367
+ /**
6368
+ * Request body metadata
6369
+ */
6370
+ requestBody?: Schema$ExtendMigrationRequest;
6371
+ }
3883
6372
  export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration extends StandardParameters {
3884
6373
  /**
3885
6374
  * Required. The name of the MigratingVm.
@@ -3979,6 +6468,63 @@ export declare namespace vmmigration_v1alpha1 {
3979
6468
  constructor(context: APIRequestContext);
3980
6469
  /**
3981
6470
  * Initiates the cancellation of a running clone job.
6471
+ * @example
6472
+ * ```js
6473
+ * // Before running the sample:
6474
+ * // - Enable the API at:
6475
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6476
+ * // - Login into gcloud by running:
6477
+ * // ```sh
6478
+ * // $ gcloud auth application-default login
6479
+ * // ```
6480
+ * // - Install the npm module by running:
6481
+ * // ```sh
6482
+ * // $ npm install googleapis
6483
+ * // ```
6484
+ *
6485
+ * const {google} = require('googleapis');
6486
+ * const vmmigration = google.vmmigration('v1alpha1');
6487
+ *
6488
+ * async function main() {
6489
+ * const auth = new google.auth.GoogleAuth({
6490
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6491
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6492
+ * });
6493
+ *
6494
+ * // Acquire an auth client, and bind it to all future calls
6495
+ * const authClient = await auth.getClient();
6496
+ * google.options({auth: authClient});
6497
+ *
6498
+ * // Do the magic
6499
+ * const res =
6500
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel({
6501
+ * // Required. The clone job id
6502
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
6503
+ *
6504
+ * // Request body metadata
6505
+ * requestBody: {
6506
+ * // request body parameters
6507
+ * // {}
6508
+ * },
6509
+ * });
6510
+ * console.log(res.data);
6511
+ *
6512
+ * // Example response
6513
+ * // {
6514
+ * // "done": false,
6515
+ * // "error": {},
6516
+ * // "metadata": {},
6517
+ * // "name": "my_name",
6518
+ * // "response": {}
6519
+ * // }
6520
+ * }
6521
+ *
6522
+ * main().catch(e => {
6523
+ * console.error(e);
6524
+ * throw e;
6525
+ * });
6526
+ *
6527
+ * ```
3982
6528
  *
3983
6529
  * @param params - Parameters for request
3984
6530
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3993,6 +6539,80 @@ export declare namespace vmmigration_v1alpha1 {
3993
6539
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3994
6540
  /**
3995
6541
  * Initiates a Clone of a specific migrating VM.
6542
+ * @example
6543
+ * ```js
6544
+ * // Before running the sample:
6545
+ * // - Enable the API at:
6546
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6547
+ * // - Login into gcloud by running:
6548
+ * // ```sh
6549
+ * // $ gcloud auth application-default login
6550
+ * // ```
6551
+ * // - Install the npm module by running:
6552
+ * // ```sh
6553
+ * // $ npm install googleapis
6554
+ * // ```
6555
+ *
6556
+ * const {google} = require('googleapis');
6557
+ * const vmmigration = google.vmmigration('v1alpha1');
6558
+ *
6559
+ * async function main() {
6560
+ * const auth = new google.auth.GoogleAuth({
6561
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6562
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6563
+ * });
6564
+ *
6565
+ * // Acquire an auth client, and bind it to all future calls
6566
+ * const authClient = await auth.getClient();
6567
+ * google.options({auth: authClient});
6568
+ *
6569
+ * // Do the magic
6570
+ * const res =
6571
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.create({
6572
+ * // Required. The clone job identifier.
6573
+ * cloneJobId: 'placeholder-value',
6574
+ * // Required. The Clone's parent.
6575
+ * parent:
6576
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6577
+ * // 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).
6578
+ * requestId: 'placeholder-value',
6579
+ *
6580
+ * // Request body metadata
6581
+ * requestBody: {
6582
+ * // request body parameters
6583
+ * // {
6584
+ * // "computeEngineDisksTargetDetails": {},
6585
+ * // "computeEngineTargetDetails": {},
6586
+ * // "computeEngineVmDetails": {},
6587
+ * // "createTime": "my_createTime",
6588
+ * // "endTime": "my_endTime",
6589
+ * // "error": {},
6590
+ * // "name": "my_name",
6591
+ * // "state": "my_state",
6592
+ * // "stateTime": "my_stateTime",
6593
+ * // "steps": [],
6594
+ * // "targetDetails": {}
6595
+ * // }
6596
+ * },
6597
+ * });
6598
+ * console.log(res.data);
6599
+ *
6600
+ * // Example response
6601
+ * // {
6602
+ * // "done": false,
6603
+ * // "error": {},
6604
+ * // "metadata": {},
6605
+ * // "name": "my_name",
6606
+ * // "response": {}
6607
+ * // }
6608
+ * }
6609
+ *
6610
+ * main().catch(e => {
6611
+ * console.error(e);
6612
+ * throw e;
6613
+ * });
6614
+ *
6615
+ * ```
3996
6616
  *
3997
6617
  * @param params - Parameters for request
3998
6618
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4007,6 +6627,63 @@ export declare namespace vmmigration_v1alpha1 {
4007
6627
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4008
6628
  /**
4009
6629
  * Gets details of a single CloneJob.
6630
+ * @example
6631
+ * ```js
6632
+ * // Before running the sample:
6633
+ * // - Enable the API at:
6634
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6635
+ * // - Login into gcloud by running:
6636
+ * // ```sh
6637
+ * // $ gcloud auth application-default login
6638
+ * // ```
6639
+ * // - Install the npm module by running:
6640
+ * // ```sh
6641
+ * // $ npm install googleapis
6642
+ * // ```
6643
+ *
6644
+ * const {google} = require('googleapis');
6645
+ * const vmmigration = google.vmmigration('v1alpha1');
6646
+ *
6647
+ * async function main() {
6648
+ * const auth = new google.auth.GoogleAuth({
6649
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6650
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6651
+ * });
6652
+ *
6653
+ * // Acquire an auth client, and bind it to all future calls
6654
+ * const authClient = await auth.getClient();
6655
+ * google.options({auth: authClient});
6656
+ *
6657
+ * // Do the magic
6658
+ * const res =
6659
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.get({
6660
+ * // Required. The name of the CloneJob.
6661
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
6662
+ * });
6663
+ * console.log(res.data);
6664
+ *
6665
+ * // Example response
6666
+ * // {
6667
+ * // "computeEngineDisksTargetDetails": {},
6668
+ * // "computeEngineTargetDetails": {},
6669
+ * // "computeEngineVmDetails": {},
6670
+ * // "createTime": "my_createTime",
6671
+ * // "endTime": "my_endTime",
6672
+ * // "error": {},
6673
+ * // "name": "my_name",
6674
+ * // "state": "my_state",
6675
+ * // "stateTime": "my_stateTime",
6676
+ * // "steps": [],
6677
+ * // "targetDetails": {}
6678
+ * // }
6679
+ * }
6680
+ *
6681
+ * main().catch(e => {
6682
+ * console.error(e);
6683
+ * throw e;
6684
+ * });
6685
+ *
6686
+ * ```
4010
6687
  *
4011
6688
  * @param params - Parameters for request
4012
6689
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4021,6 +6698,64 @@ export declare namespace vmmigration_v1alpha1 {
4021
6698
  get(callback: BodyResponseCallback<Schema$CloneJob>): void;
4022
6699
  /**
4023
6700
  * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.
6701
+ * @example
6702
+ * ```js
6703
+ * // Before running the sample:
6704
+ * // - Enable the API at:
6705
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6706
+ * // - Login into gcloud by running:
6707
+ * // ```sh
6708
+ * // $ gcloud auth application-default login
6709
+ * // ```
6710
+ * // - Install the npm module by running:
6711
+ * // ```sh
6712
+ * // $ npm install googleapis
6713
+ * // ```
6714
+ *
6715
+ * const {google} = require('googleapis');
6716
+ * const vmmigration = google.vmmigration('v1alpha1');
6717
+ *
6718
+ * async function main() {
6719
+ * const auth = new google.auth.GoogleAuth({
6720
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6721
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6722
+ * });
6723
+ *
6724
+ * // Acquire an auth client, and bind it to all future calls
6725
+ * const authClient = await auth.getClient();
6726
+ * google.options({auth: authClient});
6727
+ *
6728
+ * // Do the magic
6729
+ * const res =
6730
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.list({
6731
+ * // Optional. The filter request.
6732
+ * filter: 'placeholder-value',
6733
+ * // Optional. the order by fields for the result.
6734
+ * orderBy: 'placeholder-value',
6735
+ * // 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.
6736
+ * pageSize: 'placeholder-value',
6737
+ * // 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.
6738
+ * pageToken: 'placeholder-value',
6739
+ * // Required. The parent, which owns this collection of source VMs.
6740
+ * parent:
6741
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6742
+ * });
6743
+ * console.log(res.data);
6744
+ *
6745
+ * // Example response
6746
+ * // {
6747
+ * // "cloneJobs": [],
6748
+ * // "nextPageToken": "my_nextPageToken",
6749
+ * // "unreachable": []
6750
+ * // }
6751
+ * }
6752
+ *
6753
+ * main().catch(e => {
6754
+ * console.error(e);
6755
+ * throw e;
6756
+ * });
6757
+ *
6758
+ * ```
4024
6759
  *
4025
6760
  * @param params - Parameters for request
4026
6761
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4095,6 +6830,65 @@ export declare namespace vmmigration_v1alpha1 {
4095
6830
  constructor(context: APIRequestContext);
4096
6831
  /**
4097
6832
  * Initiates the cancellation of a running cutover job.
6833
+ * @example
6834
+ * ```js
6835
+ * // Before running the sample:
6836
+ * // - Enable the API at:
6837
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6838
+ * // - Login into gcloud by running:
6839
+ * // ```sh
6840
+ * // $ gcloud auth application-default login
6841
+ * // ```
6842
+ * // - Install the npm module by running:
6843
+ * // ```sh
6844
+ * // $ npm install googleapis
6845
+ * // ```
6846
+ *
6847
+ * const {google} = require('googleapis');
6848
+ * const vmmigration = google.vmmigration('v1alpha1');
6849
+ *
6850
+ * async function main() {
6851
+ * const auth = new google.auth.GoogleAuth({
6852
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6853
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6854
+ * });
6855
+ *
6856
+ * // Acquire an auth client, and bind it to all future calls
6857
+ * const authClient = await auth.getClient();
6858
+ * google.options({auth: authClient});
6859
+ *
6860
+ * // Do the magic
6861
+ * const res =
6862
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel(
6863
+ * {
6864
+ * // Required. The cutover job id
6865
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
6866
+ *
6867
+ * // Request body metadata
6868
+ * requestBody: {
6869
+ * // request body parameters
6870
+ * // {}
6871
+ * },
6872
+ * },
6873
+ * );
6874
+ * console.log(res.data);
6875
+ *
6876
+ * // Example response
6877
+ * // {
6878
+ * // "done": false,
6879
+ * // "error": {},
6880
+ * // "metadata": {},
6881
+ * // "name": "my_name",
6882
+ * // "response": {}
6883
+ * // }
6884
+ * }
6885
+ *
6886
+ * main().catch(e => {
6887
+ * console.error(e);
6888
+ * throw e;
6889
+ * });
6890
+ *
6891
+ * ```
4098
6892
  *
4099
6893
  * @param params - Parameters for request
4100
6894
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4109,6 +6903,85 @@ export declare namespace vmmigration_v1alpha1 {
4109
6903
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
4110
6904
  /**
4111
6905
  * 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.
6906
+ * @example
6907
+ * ```js
6908
+ * // Before running the sample:
6909
+ * // - Enable the API at:
6910
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6911
+ * // - Login into gcloud by running:
6912
+ * // ```sh
6913
+ * // $ gcloud auth application-default login
6914
+ * // ```
6915
+ * // - Install the npm module by running:
6916
+ * // ```sh
6917
+ * // $ npm install googleapis
6918
+ * // ```
6919
+ *
6920
+ * const {google} = require('googleapis');
6921
+ * const vmmigration = google.vmmigration('v1alpha1');
6922
+ *
6923
+ * async function main() {
6924
+ * const auth = new google.auth.GoogleAuth({
6925
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6926
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6927
+ * });
6928
+ *
6929
+ * // Acquire an auth client, and bind it to all future calls
6930
+ * const authClient = await auth.getClient();
6931
+ * google.options({auth: authClient});
6932
+ *
6933
+ * // Do the magic
6934
+ * const res =
6935
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create(
6936
+ * {
6937
+ * // Required. The cutover job identifier.
6938
+ * cutoverJobId: 'placeholder-value',
6939
+ * // Required. The Cutover's parent.
6940
+ * parent:
6941
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6942
+ * // 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).
6943
+ * requestId: 'placeholder-value',
6944
+ *
6945
+ * // Request body metadata
6946
+ * requestBody: {
6947
+ * // request body parameters
6948
+ * // {
6949
+ * // "computeEngineDisksTargetDetails": {},
6950
+ * // "computeEngineTargetDetails": {},
6951
+ * // "computeEngineVmDetails": {},
6952
+ * // "createTime": "my_createTime",
6953
+ * // "endTime": "my_endTime",
6954
+ * // "error": {},
6955
+ * // "name": "my_name",
6956
+ * // "progress": 0,
6957
+ * // "progressPercent": 0,
6958
+ * // "state": "my_state",
6959
+ * // "stateMessage": "my_stateMessage",
6960
+ * // "stateTime": "my_stateTime",
6961
+ * // "steps": [],
6962
+ * // "targetDetails": {}
6963
+ * // }
6964
+ * },
6965
+ * },
6966
+ * );
6967
+ * console.log(res.data);
6968
+ *
6969
+ * // Example response
6970
+ * // {
6971
+ * // "done": false,
6972
+ * // "error": {},
6973
+ * // "metadata": {},
6974
+ * // "name": "my_name",
6975
+ * // "response": {}
6976
+ * // }
6977
+ * }
6978
+ *
6979
+ * main().catch(e => {
6980
+ * console.error(e);
6981
+ * throw e;
6982
+ * });
6983
+ *
6984
+ * ```
4112
6985
  *
4113
6986
  * @param params - Parameters for request
4114
6987
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4123,6 +6996,66 @@ export declare namespace vmmigration_v1alpha1 {
4123
6996
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4124
6997
  /**
4125
6998
  * Gets details of a single CutoverJob.
6999
+ * @example
7000
+ * ```js
7001
+ * // Before running the sample:
7002
+ * // - Enable the API at:
7003
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7004
+ * // - Login into gcloud by running:
7005
+ * // ```sh
7006
+ * // $ gcloud auth application-default login
7007
+ * // ```
7008
+ * // - Install the npm module by running:
7009
+ * // ```sh
7010
+ * // $ npm install googleapis
7011
+ * // ```
7012
+ *
7013
+ * const {google} = require('googleapis');
7014
+ * const vmmigration = google.vmmigration('v1alpha1');
7015
+ *
7016
+ * async function main() {
7017
+ * const auth = new google.auth.GoogleAuth({
7018
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7019
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7020
+ * });
7021
+ *
7022
+ * // Acquire an auth client, and bind it to all future calls
7023
+ * const authClient = await auth.getClient();
7024
+ * google.options({auth: authClient});
7025
+ *
7026
+ * // Do the magic
7027
+ * const res =
7028
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get({
7029
+ * // Required. The name of the CutoverJob.
7030
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
7031
+ * });
7032
+ * console.log(res.data);
7033
+ *
7034
+ * // Example response
7035
+ * // {
7036
+ * // "computeEngineDisksTargetDetails": {},
7037
+ * // "computeEngineTargetDetails": {},
7038
+ * // "computeEngineVmDetails": {},
7039
+ * // "createTime": "my_createTime",
7040
+ * // "endTime": "my_endTime",
7041
+ * // "error": {},
7042
+ * // "name": "my_name",
7043
+ * // "progress": 0,
7044
+ * // "progressPercent": 0,
7045
+ * // "state": "my_state",
7046
+ * // "stateMessage": "my_stateMessage",
7047
+ * // "stateTime": "my_stateTime",
7048
+ * // "steps": [],
7049
+ * // "targetDetails": {}
7050
+ * // }
7051
+ * }
7052
+ *
7053
+ * main().catch(e => {
7054
+ * console.error(e);
7055
+ * throw e;
7056
+ * });
7057
+ *
7058
+ * ```
4126
7059
  *
4127
7060
  * @param params - Parameters for request
4128
7061
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4137,6 +7070,64 @@ export declare namespace vmmigration_v1alpha1 {
4137
7070
  get(callback: BodyResponseCallback<Schema$CutoverJob>): void;
4138
7071
  /**
4139
7072
  * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
7073
+ * @example
7074
+ * ```js
7075
+ * // Before running the sample:
7076
+ * // - Enable the API at:
7077
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7078
+ * // - Login into gcloud by running:
7079
+ * // ```sh
7080
+ * // $ gcloud auth application-default login
7081
+ * // ```
7082
+ * // - Install the npm module by running:
7083
+ * // ```sh
7084
+ * // $ npm install googleapis
7085
+ * // ```
7086
+ *
7087
+ * const {google} = require('googleapis');
7088
+ * const vmmigration = google.vmmigration('v1alpha1');
7089
+ *
7090
+ * async function main() {
7091
+ * const auth = new google.auth.GoogleAuth({
7092
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7093
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7094
+ * });
7095
+ *
7096
+ * // Acquire an auth client, and bind it to all future calls
7097
+ * const authClient = await auth.getClient();
7098
+ * google.options({auth: authClient});
7099
+ *
7100
+ * // Do the magic
7101
+ * const res =
7102
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list({
7103
+ * // Optional. The filter request.
7104
+ * filter: 'placeholder-value',
7105
+ * // Optional. the order by fields for the result.
7106
+ * orderBy: 'placeholder-value',
7107
+ * // 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.
7108
+ * pageSize: 'placeholder-value',
7109
+ * // 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.
7110
+ * pageToken: 'placeholder-value',
7111
+ * // Required. The parent, which owns this collection of migrating VMs.
7112
+ * parent:
7113
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
7114
+ * });
7115
+ * console.log(res.data);
7116
+ *
7117
+ * // Example response
7118
+ * // {
7119
+ * // "cutoverJobs": [],
7120
+ * // "nextPageToken": "my_nextPageToken",
7121
+ * // "unreachable": []
7122
+ * // }
7123
+ * }
7124
+ *
7125
+ * main().catch(e => {
7126
+ * console.error(e);
7127
+ * throw e;
7128
+ * });
7129
+ *
7130
+ * ```
4140
7131
  *
4141
7132
  * @param params - Parameters for request
4142
7133
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4211,6 +7202,65 @@ export declare namespace vmmigration_v1alpha1 {
4211
7202
  constructor(context: APIRequestContext);
4212
7203
  /**
4213
7204
  * Gets details of a single ReplicationCycle.
7205
+ * @example
7206
+ * ```js
7207
+ * // Before running the sample:
7208
+ * // - Enable the API at:
7209
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7210
+ * // - Login into gcloud by running:
7211
+ * // ```sh
7212
+ * // $ gcloud auth application-default login
7213
+ * // ```
7214
+ * // - Install the npm module by running:
7215
+ * // ```sh
7216
+ * // $ npm install googleapis
7217
+ * // ```
7218
+ *
7219
+ * const {google} = require('googleapis');
7220
+ * const vmmigration = google.vmmigration('v1alpha1');
7221
+ *
7222
+ * async function main() {
7223
+ * const auth = new google.auth.GoogleAuth({
7224
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7225
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7226
+ * });
7227
+ *
7228
+ * // Acquire an auth client, and bind it to all future calls
7229
+ * const authClient = await auth.getClient();
7230
+ * google.options({auth: authClient});
7231
+ *
7232
+ * // Do the magic
7233
+ * const res =
7234
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.get(
7235
+ * {
7236
+ * // Required. The name of the ReplicationCycle.
7237
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/replicationCycles/my-replicationCycle',
7238
+ * },
7239
+ * );
7240
+ * console.log(res.data);
7241
+ *
7242
+ * // Example response
7243
+ * // {
7244
+ * // "cycleNumber": 0,
7245
+ * // "endTime": "my_endTime",
7246
+ * // "error": {},
7247
+ * // "name": "my_name",
7248
+ * // "progress": 0,
7249
+ * // "progressPercent": 0,
7250
+ * // "startTime": "my_startTime",
7251
+ * // "state": "my_state",
7252
+ * // "steps": [],
7253
+ * // "totalPauseDuration": "my_totalPauseDuration",
7254
+ * // "warnings": []
7255
+ * // }
7256
+ * }
7257
+ *
7258
+ * main().catch(e => {
7259
+ * console.error(e);
7260
+ * throw e;
7261
+ * });
7262
+ *
7263
+ * ```
4214
7264
  *
4215
7265
  * @param params - Parameters for request
4216
7266
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4225,6 +7275,66 @@ export declare namespace vmmigration_v1alpha1 {
4225
7275
  get(callback: BodyResponseCallback<Schema$ReplicationCycle>): void;
4226
7276
  /**
4227
7277
  * Lists ReplicationCycles in a given MigratingVM.
7278
+ * @example
7279
+ * ```js
7280
+ * // Before running the sample:
7281
+ * // - Enable the API at:
7282
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7283
+ * // - Login into gcloud by running:
7284
+ * // ```sh
7285
+ * // $ gcloud auth application-default login
7286
+ * // ```
7287
+ * // - Install the npm module by running:
7288
+ * // ```sh
7289
+ * // $ npm install googleapis
7290
+ * // ```
7291
+ *
7292
+ * const {google} = require('googleapis');
7293
+ * const vmmigration = google.vmmigration('v1alpha1');
7294
+ *
7295
+ * async function main() {
7296
+ * const auth = new google.auth.GoogleAuth({
7297
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7298
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7299
+ * });
7300
+ *
7301
+ * // Acquire an auth client, and bind it to all future calls
7302
+ * const authClient = await auth.getClient();
7303
+ * google.options({auth: authClient});
7304
+ *
7305
+ * // Do the magic
7306
+ * const res =
7307
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.list(
7308
+ * {
7309
+ * // Optional. The filter request.
7310
+ * filter: 'placeholder-value',
7311
+ * // Optional. the order by fields for the result.
7312
+ * orderBy: 'placeholder-value',
7313
+ * // 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.
7314
+ * pageSize: 'placeholder-value',
7315
+ * // 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.
7316
+ * pageToken: 'placeholder-value',
7317
+ * // Required. The parent, which owns this collection of ReplicationCycles.
7318
+ * parent:
7319
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
7320
+ * },
7321
+ * );
7322
+ * console.log(res.data);
7323
+ *
7324
+ * // Example response
7325
+ * // {
7326
+ * // "nextPageToken": "my_nextPageToken",
7327
+ * // "replicationCycles": [],
7328
+ * // "unreachable": []
7329
+ * // }
7330
+ * }
7331
+ *
7332
+ * main().catch(e => {
7333
+ * console.error(e);
7334
+ * throw e;
7335
+ * });
7336
+ *
7337
+ * ```
4228
7338
  *
4229
7339
  * @param params - Parameters for request
4230
7340
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4271,6 +7381,79 @@ export declare namespace vmmigration_v1alpha1 {
4271
7381
  constructor(context: APIRequestContext);
4272
7382
  /**
4273
7383
  * Creates a new UtilizationReport.
7384
+ * @example
7385
+ * ```js
7386
+ * // Before running the sample:
7387
+ * // - Enable the API at:
7388
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7389
+ * // - Login into gcloud by running:
7390
+ * // ```sh
7391
+ * // $ gcloud auth application-default login
7392
+ * // ```
7393
+ * // - Install the npm module by running:
7394
+ * // ```sh
7395
+ * // $ npm install googleapis
7396
+ * // ```
7397
+ *
7398
+ * const {google} = require('googleapis');
7399
+ * const vmmigration = google.vmmigration('v1alpha1');
7400
+ *
7401
+ * async function main() {
7402
+ * const auth = new google.auth.GoogleAuth({
7403
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7404
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7405
+ * });
7406
+ *
7407
+ * // Acquire an auth client, and bind it to all future calls
7408
+ * const authClient = await auth.getClient();
7409
+ * google.options({auth: authClient});
7410
+ *
7411
+ * // Do the magic
7412
+ * const res =
7413
+ * await vmmigration.projects.locations.sources.utilizationReports.create({
7414
+ * // Required. The Utilization Report's parent.
7415
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7416
+ * // 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).
7417
+ * requestId: 'placeholder-value',
7418
+ * // 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.
7419
+ * utilizationReportId: 'placeholder-value',
7420
+ *
7421
+ * // Request body metadata
7422
+ * requestBody: {
7423
+ * // request body parameters
7424
+ * // {
7425
+ * // "createTime": "my_createTime",
7426
+ * // "displayName": "my_displayName",
7427
+ * // "error": {},
7428
+ * // "frameEndTime": "my_frameEndTime",
7429
+ * // "name": "my_name",
7430
+ * // "state": "my_state",
7431
+ * // "stateTime": "my_stateTime",
7432
+ * // "timeFrame": "my_timeFrame",
7433
+ * // "vmCount": 0,
7434
+ * // "vms": [],
7435
+ * // "vmsCount": 0
7436
+ * // }
7437
+ * },
7438
+ * });
7439
+ * console.log(res.data);
7440
+ *
7441
+ * // Example response
7442
+ * // {
7443
+ * // "done": false,
7444
+ * // "error": {},
7445
+ * // "metadata": {},
7446
+ * // "name": "my_name",
7447
+ * // "response": {}
7448
+ * // }
7449
+ * }
7450
+ *
7451
+ * main().catch(e => {
7452
+ * console.error(e);
7453
+ * throw e;
7454
+ * });
7455
+ *
7456
+ * ```
4274
7457
  *
4275
7458
  * @param params - Parameters for request
4276
7459
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4285,6 +7468,59 @@ export declare namespace vmmigration_v1alpha1 {
4285
7468
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4286
7469
  /**
4287
7470
  * Deletes a single Utilization Report.
7471
+ * @example
7472
+ * ```js
7473
+ * // Before running the sample:
7474
+ * // - Enable the API at:
7475
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7476
+ * // - Login into gcloud by running:
7477
+ * // ```sh
7478
+ * // $ gcloud auth application-default login
7479
+ * // ```
7480
+ * // - Install the npm module by running:
7481
+ * // ```sh
7482
+ * // $ npm install googleapis
7483
+ * // ```
7484
+ *
7485
+ * const {google} = require('googleapis');
7486
+ * const vmmigration = google.vmmigration('v1alpha1');
7487
+ *
7488
+ * async function main() {
7489
+ * const auth = new google.auth.GoogleAuth({
7490
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7491
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7492
+ * });
7493
+ *
7494
+ * // Acquire an auth client, and bind it to all future calls
7495
+ * const authClient = await auth.getClient();
7496
+ * google.options({auth: authClient});
7497
+ *
7498
+ * // Do the magic
7499
+ * const res =
7500
+ * await vmmigration.projects.locations.sources.utilizationReports.delete({
7501
+ * // Required. The Utilization Report name.
7502
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
7503
+ * // 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).
7504
+ * requestId: 'placeholder-value',
7505
+ * });
7506
+ * console.log(res.data);
7507
+ *
7508
+ * // Example response
7509
+ * // {
7510
+ * // "done": false,
7511
+ * // "error": {},
7512
+ * // "metadata": {},
7513
+ * // "name": "my_name",
7514
+ * // "response": {}
7515
+ * // }
7516
+ * }
7517
+ *
7518
+ * main().catch(e => {
7519
+ * console.error(e);
7520
+ * throw e;
7521
+ * });
7522
+ *
7523
+ * ```
4288
7524
  *
4289
7525
  * @param params - Parameters for request
4290
7526
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4299,6 +7535,65 @@ export declare namespace vmmigration_v1alpha1 {
4299
7535
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
4300
7536
  /**
4301
7537
  * Gets a single Utilization Report.
7538
+ * @example
7539
+ * ```js
7540
+ * // Before running the sample:
7541
+ * // - Enable the API at:
7542
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7543
+ * // - Login into gcloud by running:
7544
+ * // ```sh
7545
+ * // $ gcloud auth application-default login
7546
+ * // ```
7547
+ * // - Install the npm module by running:
7548
+ * // ```sh
7549
+ * // $ npm install googleapis
7550
+ * // ```
7551
+ *
7552
+ * const {google} = require('googleapis');
7553
+ * const vmmigration = google.vmmigration('v1alpha1');
7554
+ *
7555
+ * async function main() {
7556
+ * const auth = new google.auth.GoogleAuth({
7557
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7558
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7559
+ * });
7560
+ *
7561
+ * // Acquire an auth client, and bind it to all future calls
7562
+ * const authClient = await auth.getClient();
7563
+ * google.options({auth: authClient});
7564
+ *
7565
+ * // Do the magic
7566
+ * const res =
7567
+ * await vmmigration.projects.locations.sources.utilizationReports.get({
7568
+ * // Required. The Utilization Report name.
7569
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
7570
+ * // Optional. The level of details of the report. Defaults to FULL
7571
+ * view: 'placeholder-value',
7572
+ * });
7573
+ * console.log(res.data);
7574
+ *
7575
+ * // Example response
7576
+ * // {
7577
+ * // "createTime": "my_createTime",
7578
+ * // "displayName": "my_displayName",
7579
+ * // "error": {},
7580
+ * // "frameEndTime": "my_frameEndTime",
7581
+ * // "name": "my_name",
7582
+ * // "state": "my_state",
7583
+ * // "stateTime": "my_stateTime",
7584
+ * // "timeFrame": "my_timeFrame",
7585
+ * // "vmCount": 0,
7586
+ * // "vms": [],
7587
+ * // "vmsCount": 0
7588
+ * // }
7589
+ * }
7590
+ *
7591
+ * main().catch(e => {
7592
+ * console.error(e);
7593
+ * throw e;
7594
+ * });
7595
+ *
7596
+ * ```
4302
7597
  *
4303
7598
  * @param params - Parameters for request
4304
7599
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4313,6 +7608,65 @@ export declare namespace vmmigration_v1alpha1 {
4313
7608
  get(callback: BodyResponseCallback<Schema$UtilizationReport>): void;
4314
7609
  /**
4315
7610
  * Lists Utilization Reports of the given Source.
7611
+ * @example
7612
+ * ```js
7613
+ * // Before running the sample:
7614
+ * // - Enable the API at:
7615
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7616
+ * // - Login into gcloud by running:
7617
+ * // ```sh
7618
+ * // $ gcloud auth application-default login
7619
+ * // ```
7620
+ * // - Install the npm module by running:
7621
+ * // ```sh
7622
+ * // $ npm install googleapis
7623
+ * // ```
7624
+ *
7625
+ * const {google} = require('googleapis');
7626
+ * const vmmigration = google.vmmigration('v1alpha1');
7627
+ *
7628
+ * async function main() {
7629
+ * const auth = new google.auth.GoogleAuth({
7630
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7631
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7632
+ * });
7633
+ *
7634
+ * // Acquire an auth client, and bind it to all future calls
7635
+ * const authClient = await auth.getClient();
7636
+ * google.options({auth: authClient});
7637
+ *
7638
+ * // Do the magic
7639
+ * const res =
7640
+ * await vmmigration.projects.locations.sources.utilizationReports.list({
7641
+ * // Optional. The filter request.
7642
+ * filter: 'placeholder-value',
7643
+ * // Optional. the order by fields for the result.
7644
+ * orderBy: 'placeholder-value',
7645
+ * // 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.
7646
+ * pageSize: 'placeholder-value',
7647
+ * // 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.
7648
+ * pageToken: 'placeholder-value',
7649
+ * // Required. The Utilization Reports parent.
7650
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7651
+ * // Optional. The level of details of each report. Defaults to BASIC.
7652
+ * view: 'placeholder-value',
7653
+ * });
7654
+ * console.log(res.data);
7655
+ *
7656
+ * // Example response
7657
+ * // {
7658
+ * // "nextPageToken": "my_nextPageToken",
7659
+ * // "unreachable": [],
7660
+ * // "utilizationReports": []
7661
+ * // }
7662
+ * }
7663
+ *
7664
+ * main().catch(e => {
7665
+ * console.error(e);
7666
+ * throw e;
7667
+ * });
7668
+ *
7669
+ * ```
4316
7670
  *
4317
7671
  * @param params - Parameters for request
4318
7672
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4395,6 +7749,72 @@ export declare namespace vmmigration_v1alpha1 {
4395
7749
  constructor(context: APIRequestContext);
4396
7750
  /**
4397
7751
  * Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7752
+ * @example
7753
+ * ```js
7754
+ * // Before running the sample:
7755
+ * // - Enable the API at:
7756
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7757
+ * // - Login into gcloud by running:
7758
+ * // ```sh
7759
+ * // $ gcloud auth application-default login
7760
+ * // ```
7761
+ * // - Install the npm module by running:
7762
+ * // ```sh
7763
+ * // $ npm install googleapis
7764
+ * // ```
7765
+ *
7766
+ * const {google} = require('googleapis');
7767
+ * const vmmigration = google.vmmigration('v1alpha1');
7768
+ *
7769
+ * async function main() {
7770
+ * const auth = new google.auth.GoogleAuth({
7771
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7772
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7773
+ * });
7774
+ *
7775
+ * // Acquire an auth client, and bind it to all future calls
7776
+ * const authClient = await auth.getClient();
7777
+ * google.options({auth: authClient});
7778
+ *
7779
+ * // Do the magic
7780
+ * const res = await vmmigration.projects.locations.targetProjects.create({
7781
+ * // Required. The TargetProject's parent.
7782
+ * parent: 'projects/my-project/locations/my-location',
7783
+ * // 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).
7784
+ * requestId: 'placeholder-value',
7785
+ * // Required. The target_project identifier.
7786
+ * targetProjectId: 'placeholder-value',
7787
+ *
7788
+ * // Request body metadata
7789
+ * requestBody: {
7790
+ * // request body parameters
7791
+ * // {
7792
+ * // "createTime": "my_createTime",
7793
+ * // "description": "my_description",
7794
+ * // "name": "my_name",
7795
+ * // "project": "my_project",
7796
+ * // "updateTime": "my_updateTime"
7797
+ * // }
7798
+ * },
7799
+ * });
7800
+ * console.log(res.data);
7801
+ *
7802
+ * // Example response
7803
+ * // {
7804
+ * // "done": false,
7805
+ * // "error": {},
7806
+ * // "metadata": {},
7807
+ * // "name": "my_name",
7808
+ * // "response": {}
7809
+ * // }
7810
+ * }
7811
+ *
7812
+ * main().catch(e => {
7813
+ * console.error(e);
7814
+ * throw e;
7815
+ * });
7816
+ *
7817
+ * ```
4398
7818
  *
4399
7819
  * @param params - Parameters for request
4400
7820
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4409,6 +7829,58 @@ export declare namespace vmmigration_v1alpha1 {
4409
7829
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4410
7830
  /**
4411
7831
  * Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7832
+ * @example
7833
+ * ```js
7834
+ * // Before running the sample:
7835
+ * // - Enable the API at:
7836
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7837
+ * // - Login into gcloud by running:
7838
+ * // ```sh
7839
+ * // $ gcloud auth application-default login
7840
+ * // ```
7841
+ * // - Install the npm module by running:
7842
+ * // ```sh
7843
+ * // $ npm install googleapis
7844
+ * // ```
7845
+ *
7846
+ * const {google} = require('googleapis');
7847
+ * const vmmigration = google.vmmigration('v1alpha1');
7848
+ *
7849
+ * async function main() {
7850
+ * const auth = new google.auth.GoogleAuth({
7851
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7852
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7853
+ * });
7854
+ *
7855
+ * // Acquire an auth client, and bind it to all future calls
7856
+ * const authClient = await auth.getClient();
7857
+ * google.options({auth: authClient});
7858
+ *
7859
+ * // Do the magic
7860
+ * const res = await vmmigration.projects.locations.targetProjects.delete({
7861
+ * // Required. The TargetProject name.
7862
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
7863
+ * // 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).
7864
+ * requestId: 'placeholder-value',
7865
+ * });
7866
+ * console.log(res.data);
7867
+ *
7868
+ * // Example response
7869
+ * // {
7870
+ * // "done": false,
7871
+ * // "error": {},
7872
+ * // "metadata": {},
7873
+ * // "name": "my_name",
7874
+ * // "response": {}
7875
+ * // }
7876
+ * }
7877
+ *
7878
+ * main().catch(e => {
7879
+ * console.error(e);
7880
+ * throw e;
7881
+ * });
7882
+ *
7883
+ * ```
4412
7884
  *
4413
7885
  * @param params - Parameters for request
4414
7886
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4423,6 +7895,56 @@ export declare namespace vmmigration_v1alpha1 {
4423
7895
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
4424
7896
  /**
4425
7897
  * Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7898
+ * @example
7899
+ * ```js
7900
+ * // Before running the sample:
7901
+ * // - Enable the API at:
7902
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7903
+ * // - Login into gcloud by running:
7904
+ * // ```sh
7905
+ * // $ gcloud auth application-default login
7906
+ * // ```
7907
+ * // - Install the npm module by running:
7908
+ * // ```sh
7909
+ * // $ npm install googleapis
7910
+ * // ```
7911
+ *
7912
+ * const {google} = require('googleapis');
7913
+ * const vmmigration = google.vmmigration('v1alpha1');
7914
+ *
7915
+ * async function main() {
7916
+ * const auth = new google.auth.GoogleAuth({
7917
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7918
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7919
+ * });
7920
+ *
7921
+ * // Acquire an auth client, and bind it to all future calls
7922
+ * const authClient = await auth.getClient();
7923
+ * google.options({auth: authClient});
7924
+ *
7925
+ * // Do the magic
7926
+ * const res = await vmmigration.projects.locations.targetProjects.get({
7927
+ * // Required. The TargetProject name.
7928
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
7929
+ * });
7930
+ * console.log(res.data);
7931
+ *
7932
+ * // Example response
7933
+ * // {
7934
+ * // "createTime": "my_createTime",
7935
+ * // "description": "my_description",
7936
+ * // "name": "my_name",
7937
+ * // "project": "my_project",
7938
+ * // "updateTime": "my_updateTime"
7939
+ * // }
7940
+ * }
7941
+ *
7942
+ * main().catch(e => {
7943
+ * console.error(e);
7944
+ * throw e;
7945
+ * });
7946
+ *
7947
+ * ```
4426
7948
  *
4427
7949
  * @param params - Parameters for request
4428
7950
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4437,6 +7959,62 @@ export declare namespace vmmigration_v1alpha1 {
4437
7959
  get(callback: BodyResponseCallback<Schema$TargetProject>): void;
4438
7960
  /**
4439
7961
  * Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7962
+ * @example
7963
+ * ```js
7964
+ * // Before running the sample:
7965
+ * // - Enable the API at:
7966
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7967
+ * // - Login into gcloud by running:
7968
+ * // ```sh
7969
+ * // $ gcloud auth application-default login
7970
+ * // ```
7971
+ * // - Install the npm module by running:
7972
+ * // ```sh
7973
+ * // $ npm install googleapis
7974
+ * // ```
7975
+ *
7976
+ * const {google} = require('googleapis');
7977
+ * const vmmigration = google.vmmigration('v1alpha1');
7978
+ *
7979
+ * async function main() {
7980
+ * const auth = new google.auth.GoogleAuth({
7981
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7982
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7983
+ * });
7984
+ *
7985
+ * // Acquire an auth client, and bind it to all future calls
7986
+ * const authClient = await auth.getClient();
7987
+ * google.options({auth: authClient});
7988
+ *
7989
+ * // Do the magic
7990
+ * const res = await vmmigration.projects.locations.targetProjects.list({
7991
+ * // Optional. The filter request.
7992
+ * filter: 'placeholder-value',
7993
+ * // Optional. the order by fields for the result.
7994
+ * orderBy: 'placeholder-value',
7995
+ * // 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.
7996
+ * pageSize: 'placeholder-value',
7997
+ * // 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.
7998
+ * pageToken: 'placeholder-value',
7999
+ * // Required. The parent, which owns this collection of targets.
8000
+ * parent: 'projects/my-project/locations/my-location',
8001
+ * });
8002
+ * console.log(res.data);
8003
+ *
8004
+ * // Example response
8005
+ * // {
8006
+ * // "nextPageToken": "my_nextPageToken",
8007
+ * // "targetProjects": [],
8008
+ * // "unreachable": []
8009
+ * // }
8010
+ * }
8011
+ *
8012
+ * main().catch(e => {
8013
+ * console.error(e);
8014
+ * throw e;
8015
+ * });
8016
+ *
8017
+ * ```
4440
8018
  *
4441
8019
  * @param params - Parameters for request
4442
8020
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4451,6 +8029,72 @@ export declare namespace vmmigration_v1alpha1 {
4451
8029
  list(callback: BodyResponseCallback<Schema$ListTargetProjectsResponse>): void;
4452
8030
  /**
4453
8031
  * Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
8032
+ * @example
8033
+ * ```js
8034
+ * // Before running the sample:
8035
+ * // - Enable the API at:
8036
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8037
+ * // - Login into gcloud by running:
8038
+ * // ```sh
8039
+ * // $ gcloud auth application-default login
8040
+ * // ```
8041
+ * // - Install the npm module by running:
8042
+ * // ```sh
8043
+ * // $ npm install googleapis
8044
+ * // ```
8045
+ *
8046
+ * const {google} = require('googleapis');
8047
+ * const vmmigration = google.vmmigration('v1alpha1');
8048
+ *
8049
+ * async function main() {
8050
+ * const auth = new google.auth.GoogleAuth({
8051
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8052
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8053
+ * });
8054
+ *
8055
+ * // Acquire an auth client, and bind it to all future calls
8056
+ * const authClient = await auth.getClient();
8057
+ * google.options({auth: authClient});
8058
+ *
8059
+ * // Do the magic
8060
+ * const res = await vmmigration.projects.locations.targetProjects.patch({
8061
+ * // Output only. The name of the target project.
8062
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
8063
+ * // 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).
8064
+ * requestId: 'placeholder-value',
8065
+ * // 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.
8066
+ * updateMask: 'placeholder-value',
8067
+ *
8068
+ * // Request body metadata
8069
+ * requestBody: {
8070
+ * // request body parameters
8071
+ * // {
8072
+ * // "createTime": "my_createTime",
8073
+ * // "description": "my_description",
8074
+ * // "name": "my_name",
8075
+ * // "project": "my_project",
8076
+ * // "updateTime": "my_updateTime"
8077
+ * // }
8078
+ * },
8079
+ * });
8080
+ * console.log(res.data);
8081
+ *
8082
+ * // Example response
8083
+ * // {
8084
+ * // "done": false,
8085
+ * // "error": {},
8086
+ * // "metadata": {},
8087
+ * // "name": "my_name",
8088
+ * // "response": {}
8089
+ * // }
8090
+ * }
8091
+ *
8092
+ * main().catch(e => {
8093
+ * console.error(e);
8094
+ * throw e;
8095
+ * });
8096
+ *
8097
+ * ```
4454
8098
  *
4455
8099
  * @param params - Parameters for request
4456
8100
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.