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