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