@googleapis/vmmigration 12.2.0 → 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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace vmmigration_v1alpha1 {
5
5
  export interface Options extends GlobalOptions {
@@ -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,28 +2882,133 @@ 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`.
2854
2938
  * @param callback - Optional callback that handles the response.
2855
2939
  * @returns A promise if used with async/await, or void if used with a callback.
2856
2940
  */
2857
- get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2858
- get(params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions): GaxiosPromise<Schema$Location>;
2941
+ get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2942
+ get(params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
2859
2943
  get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2860
2944
  get(params: Params$Resource$Projects$Locations$Get, options: MethodOptions | BodyResponseCallback<Schema$Location>, callback: BodyResponseCallback<Schema$Location>): void;
2861
2945
  get(params: Params$Resource$Projects$Locations$Get, callback: BodyResponseCallback<Schema$Location>): void;
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`.
2868
3007
  * @param callback - Optional callback that handles the response.
2869
3008
  * @returns A promise if used with async/await, or void if used with a callback.
2870
3009
  */
2871
- list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2872
- list(params?: Params$Resource$Projects$Locations$List, options?: MethodOptions): GaxiosPromise<Schema$ListLocationsResponse>;
3010
+ list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3011
+ list(params?: Params$Resource$Projects$Locations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
2873
3012
  list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2874
3013
  list(params: Params$Resource$Projects$Locations$List, options: MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>, callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
2875
3014
  list(params: Params$Resource$Projects$Locations$List, callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
@@ -2908,98 +3047,507 @@ 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`.
2914
3111
  * @param callback - Optional callback that handles the response.
2915
3112
  * @returns A promise if used with async/await, or void if used with a callback.
2916
3113
  */
2917
- addGroupMigration(params: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
2918
- addGroupMigration(params?: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3114
+ addGroupMigration(params: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3115
+ addGroupMigration(params?: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2919
3116
  addGroupMigration(params: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2920
3117
  addGroupMigration(params: Params$Resource$Projects$Locations$Groups$Addgroupmigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2921
3118
  addGroupMigration(params: Params$Resource$Projects$Locations$Groups$Addgroupmigration, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
2928
3192
  * @param callback - Optional callback that handles the response.
2929
3193
  * @returns A promise if used with async/await, or void if used with a callback.
2930
3194
  */
2931
- create(params: Params$Resource$Projects$Locations$Groups$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
2932
- create(params?: Params$Resource$Projects$Locations$Groups$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3195
+ create(params: Params$Resource$Projects$Locations$Groups$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3196
+ create(params?: Params$Resource$Projects$Locations$Groups$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2933
3197
  create(params: Params$Resource$Projects$Locations$Groups$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2934
3198
  create(params: Params$Resource$Projects$Locations$Groups$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2935
3199
  create(params: Params$Resource$Projects$Locations$Groups$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
2942
3258
  * @param callback - Optional callback that handles the response.
2943
3259
  * @returns A promise if used with async/await, or void if used with a callback.
2944
3260
  */
2945
- delete(params: Params$Resource$Projects$Locations$Groups$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
2946
- delete(params?: Params$Resource$Projects$Locations$Groups$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3261
+ delete(params: Params$Resource$Projects$Locations$Groups$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3262
+ delete(params?: Params$Resource$Projects$Locations$Groups$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2947
3263
  delete(params: Params$Resource$Projects$Locations$Groups$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2948
3264
  delete(params: Params$Resource$Projects$Locations$Groups$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2949
3265
  delete(params: Params$Resource$Projects$Locations$Groups$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
2956
3323
  * @param callback - Optional callback that handles the response.
2957
3324
  * @returns A promise if used with async/await, or void if used with a callback.
2958
3325
  */
2959
- get(params: Params$Resource$Projects$Locations$Groups$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2960
- get(params?: Params$Resource$Projects$Locations$Groups$Get, options?: MethodOptions): GaxiosPromise<Schema$Group>;
3326
+ get(params: Params$Resource$Projects$Locations$Groups$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3327
+ get(params?: Params$Resource$Projects$Locations$Groups$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Group>>;
2961
3328
  get(params: Params$Resource$Projects$Locations$Groups$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2962
3329
  get(params: Params$Resource$Projects$Locations$Groups$Get, options: MethodOptions | BodyResponseCallback<Schema$Group>, callback: BodyResponseCallback<Schema$Group>): void;
2963
3330
  get(params: Params$Resource$Projects$Locations$Groups$Get, callback: BodyResponseCallback<Schema$Group>): void;
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`.
2970
3393
  * @param callback - Optional callback that handles the response.
2971
3394
  * @returns A promise if used with async/await, or void if used with a callback.
2972
3395
  */
2973
- list(params: Params$Resource$Projects$Locations$Groups$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2974
- list(params?: Params$Resource$Projects$Locations$Groups$List, options?: MethodOptions): GaxiosPromise<Schema$ListGroupsResponse>;
3396
+ list(params: Params$Resource$Projects$Locations$Groups$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3397
+ list(params?: Params$Resource$Projects$Locations$Groups$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListGroupsResponse>>;
2975
3398
  list(params: Params$Resource$Projects$Locations$Groups$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2976
3399
  list(params: Params$Resource$Projects$Locations$Groups$List, options: MethodOptions | BodyResponseCallback<Schema$ListGroupsResponse>, callback: BodyResponseCallback<Schema$ListGroupsResponse>): void;
2977
3400
  list(params: Params$Resource$Projects$Locations$Groups$List, callback: BodyResponseCallback<Schema$ListGroupsResponse>): void;
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`.
2984
3474
  * @param callback - Optional callback that handles the response.
2985
3475
  * @returns A promise if used with async/await, or void if used with a callback.
2986
3476
  */
2987
- patch(params: Params$Resource$Projects$Locations$Groups$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
2988
- patch(params?: Params$Resource$Projects$Locations$Groups$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3477
+ patch(params: Params$Resource$Projects$Locations$Groups$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3478
+ patch(params?: Params$Resource$Projects$Locations$Groups$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2989
3479
  patch(params: Params$Resource$Projects$Locations$Groups$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2990
3480
  patch(params: Params$Resource$Projects$Locations$Groups$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2991
3481
  patch(params: Params$Resource$Projects$Locations$Groups$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
2998
3546
  * @param callback - Optional callback that handles the response.
2999
3547
  * @returns A promise if used with async/await, or void if used with a callback.
3000
3548
  */
3001
- removeGroupMigration(params: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
3002
- removeGroupMigration(params?: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3549
+ removeGroupMigration(params: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3550
+ removeGroupMigration(params?: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3003
3551
  removeGroupMigration(params: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3004
3552
  removeGroupMigration(params: Params$Resource$Projects$Locations$Groups$Removegroupmigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3005
3553
  removeGroupMigration(params: Params$Resource$Projects$Locations$Groups$Removegroupmigration, callback: BodyResponseCallback<Schema$Operation>): void;
@@ -3105,56 +3653,284 @@ 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`.
3111
3727
  * @param callback - Optional callback that handles the response.
3112
3728
  * @returns A promise if used with async/await, or void if used with a callback.
3113
3729
  */
3114
- create(params: Params$Resource$Projects$Locations$Imageimports$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
3115
- create(params?: Params$Resource$Projects$Locations$Imageimports$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3730
+ create(params: Params$Resource$Projects$Locations$Imageimports$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3731
+ create(params?: Params$Resource$Projects$Locations$Imageimports$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3116
3732
  create(params: Params$Resource$Projects$Locations$Imageimports$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3117
3733
  create(params: Params$Resource$Projects$Locations$Imageimports$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3118
3734
  create(params: Params$Resource$Projects$Locations$Imageimports$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3125
3793
  * @param callback - Optional callback that handles the response.
3126
3794
  * @returns A promise if used with async/await, or void if used with a callback.
3127
3795
  */
3128
- delete(params: Params$Resource$Projects$Locations$Imageimports$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3129
- delete(params?: Params$Resource$Projects$Locations$Imageimports$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3796
+ delete(params: Params$Resource$Projects$Locations$Imageimports$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3797
+ delete(params?: Params$Resource$Projects$Locations$Imageimports$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3130
3798
  delete(params: Params$Resource$Projects$Locations$Imageimports$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3131
3799
  delete(params: Params$Resource$Projects$Locations$Imageimports$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3132
3800
  delete(params: Params$Resource$Projects$Locations$Imageimports$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3139
3859
  * @param callback - Optional callback that handles the response.
3140
3860
  * @returns A promise if used with async/await, or void if used with a callback.
3141
3861
  */
3142
- get(params: Params$Resource$Projects$Locations$Imageimports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3143
- get(params?: Params$Resource$Projects$Locations$Imageimports$Get, options?: MethodOptions): GaxiosPromise<Schema$ImageImport>;
3862
+ get(params: Params$Resource$Projects$Locations$Imageimports$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3863
+ get(params?: Params$Resource$Projects$Locations$Imageimports$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ImageImport>>;
3144
3864
  get(params: Params$Resource$Projects$Locations$Imageimports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3145
3865
  get(params: Params$Resource$Projects$Locations$Imageimports$Get, options: MethodOptions | BodyResponseCallback<Schema$ImageImport>, callback: BodyResponseCallback<Schema$ImageImport>): void;
3146
3866
  get(params: Params$Resource$Projects$Locations$Imageimports$Get, callback: BodyResponseCallback<Schema$ImageImport>): void;
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`.
3153
3929
  * @param callback - Optional callback that handles the response.
3154
3930
  * @returns A promise if used with async/await, or void if used with a callback.
3155
3931
  */
3156
- list(params: Params$Resource$Projects$Locations$Imageimports$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3157
- list(params?: Params$Resource$Projects$Locations$Imageimports$List, options?: MethodOptions): GaxiosPromise<Schema$ListImageImportsResponse>;
3932
+ list(params: Params$Resource$Projects$Locations$Imageimports$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3933
+ list(params?: Params$Resource$Projects$Locations$Imageimports$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListImageImportsResponse>>;
3158
3934
  list(params: Params$Resource$Projects$Locations$Imageimports$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3159
3935
  list(params: Params$Resource$Projects$Locations$Imageimports$List, options: MethodOptions | BodyResponseCallback<Schema$ListImageImportsResponse>, callback: BodyResponseCallback<Schema$ListImageImportsResponse>): void;
3160
3936
  list(params: Params$Resource$Projects$Locations$Imageimports$List, callback: BodyResponseCallback<Schema$ListImageImportsResponse>): void;
@@ -3221,42 +3997,214 @@ 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`.
3227
4060
  * @param callback - Optional callback that handles the response.
3228
4061
  * @returns A promise if used with async/await, or void if used with a callback.
3229
4062
  */
3230
- cancel(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
3231
- cancel(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4063
+ cancel(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4064
+ cancel(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3232
4065
  cancel(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3233
4066
  cancel(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3234
4067
  cancel(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3241
4131
  * @param callback - Optional callback that handles the response.
3242
4132
  * @returns A promise if used with async/await, or void if used with a callback.
3243
4133
  */
3244
- get(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3245
- get(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options?: MethodOptions): GaxiosPromise<Schema$ImageImportJob>;
4134
+ get(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4135
+ get(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ImageImportJob>>;
3246
4136
  get(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3247
4137
  get(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, options: MethodOptions | BodyResponseCallback<Schema$ImageImportJob>, callback: BodyResponseCallback<Schema$ImageImportJob>): void;
3248
4138
  get(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get, callback: BodyResponseCallback<Schema$ImageImportJob>): void;
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`.
3255
4203
  * @param callback - Optional callback that handles the response.
3256
4204
  * @returns A promise if used with async/await, or void if used with a callback.
3257
4205
  */
3258
- list(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3259
- list(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options?: MethodOptions): GaxiosPromise<Schema$ListImageImportJobsResponse>;
4206
+ list(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4207
+ list(params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListImageImportJobsResponse>>;
3260
4208
  list(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3261
4209
  list(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListImageImportJobsResponse>, callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>): void;
3262
4210
  list(params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List, callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>): void;
@@ -3305,56 +4253,253 @@ 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`.
3311
4309
  * @param callback - Optional callback that handles the response.
3312
4310
  * @returns A promise if used with async/await, or void if used with a callback.
3313
4311
  */
3314
- cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
3315
- cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
4312
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4313
+ cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3316
4314
  cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3317
4315
  cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
3318
4316
  cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
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`.
3325
4367
  * @param callback - Optional callback that handles the response.
3326
4368
  * @returns A promise if used with async/await, or void if used with a callback.
3327
4369
  */
3328
- delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3329
- delete(params?: Params$Resource$Projects$Locations$Operations$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
4370
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4371
+ delete(params?: Params$Resource$Projects$Locations$Operations$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3330
4372
  delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3331
4373
  delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
3332
4374
  delete(params: Params$Resource$Projects$Locations$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
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`.
3339
4431
  * @param callback - Optional callback that handles the response.
3340
4432
  * @returns A promise if used with async/await, or void if used with a callback.
3341
4433
  */
3342
- get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3343
- get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4434
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4435
+ get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3344
4436
  get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3345
4437
  get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3346
4438
  get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3353
4498
  * @param callback - Optional callback that handles the response.
3354
4499
  * @returns A promise if used with async/await, or void if used with a callback.
3355
4500
  */
3356
- list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3357
- list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$ListOperationsResponse>;
4501
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4502
+ list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
3358
4503
  list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3359
4504
  list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
3360
4505
  list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
@@ -3408,84 +4553,445 @@ 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`.
3414
4630
  * @param callback - Optional callback that handles the response.
3415
4631
  * @returns A promise if used with async/await, or void if used with a callback.
3416
4632
  */
3417
- create(params: Params$Resource$Projects$Locations$Sources$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
3418
- create(params?: Params$Resource$Projects$Locations$Sources$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4633
+ create(params: Params$Resource$Projects$Locations$Sources$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4634
+ create(params?: Params$Resource$Projects$Locations$Sources$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3419
4635
  create(params: Params$Resource$Projects$Locations$Sources$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3420
4636
  create(params: Params$Resource$Projects$Locations$Sources$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3421
4637
  create(params: Params$Resource$Projects$Locations$Sources$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3428
4696
  * @param callback - Optional callback that handles the response.
3429
4697
  * @returns A promise if used with async/await, or void if used with a callback.
3430
4698
  */
3431
- delete(params: Params$Resource$Projects$Locations$Sources$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3432
- delete(params?: Params$Resource$Projects$Locations$Sources$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4699
+ delete(params: Params$Resource$Projects$Locations$Sources$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4700
+ delete(params?: Params$Resource$Projects$Locations$Sources$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3433
4701
  delete(params: Params$Resource$Projects$Locations$Sources$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3434
4702
  delete(params: Params$Resource$Projects$Locations$Sources$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3435
4703
  delete(params: Params$Resource$Projects$Locations$Sources$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3442
4766
  * @param callback - Optional callback that handles the response.
3443
4767
  * @returns A promise if used with async/await, or void if used with a callback.
3444
4768
  */
3445
- fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: StreamMethodOptions): GaxiosPromise<Readable>;
3446
- fetchInventory(params?: Params$Resource$Projects$Locations$Sources$Fetchinventory, options?: MethodOptions): GaxiosPromise<Schema$FetchInventoryResponse>;
4769
+ fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4770
+ fetchInventory(params?: Params$Resource$Projects$Locations$Sources$Fetchinventory, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchInventoryResponse>>;
3447
4771
  fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3448
4772
  fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchInventoryResponse>, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
3449
4773
  fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
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`.
3456
4835
  * @param callback - Optional callback that handles the response.
3457
4836
  * @returns A promise if used with async/await, or void if used with a callback.
3458
4837
  */
3459
- get(params: Params$Resource$Projects$Locations$Sources$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3460
- get(params?: Params$Resource$Projects$Locations$Sources$Get, options?: MethodOptions): GaxiosPromise<Schema$Source>;
4838
+ get(params: Params$Resource$Projects$Locations$Sources$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4839
+ get(params?: Params$Resource$Projects$Locations$Sources$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Source>>;
3461
4840
  get(params: Params$Resource$Projects$Locations$Sources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3462
4841
  get(params: Params$Resource$Projects$Locations$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$Source>, callback: BodyResponseCallback<Schema$Source>): void;
3463
4842
  get(params: Params$Resource$Projects$Locations$Sources$Get, callback: BodyResponseCallback<Schema$Source>): void;
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`.
3470
4905
  * @param callback - Optional callback that handles the response.
3471
4906
  * @returns A promise if used with async/await, or void if used with a callback.
3472
4907
  */
3473
- list(params: Params$Resource$Projects$Locations$Sources$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3474
- list(params?: Params$Resource$Projects$Locations$Sources$List, options?: MethodOptions): GaxiosPromise<Schema$ListSourcesResponse>;
4908
+ list(params: Params$Resource$Projects$Locations$Sources$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4909
+ list(params?: Params$Resource$Projects$Locations$Sources$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListSourcesResponse>>;
3475
4910
  list(params: Params$Resource$Projects$Locations$Sources$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3476
4911
  list(params: Params$Resource$Projects$Locations$Sources$List, options: MethodOptions | BodyResponseCallback<Schema$ListSourcesResponse>, callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
3477
4912
  list(params: Params$Resource$Projects$Locations$Sources$List, callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
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`.
3484
4990
  * @param callback - Optional callback that handles the response.
3485
4991
  * @returns A promise if used with async/await, or void if used with a callback.
3486
4992
  */
3487
- patch(params: Params$Resource$Projects$Locations$Sources$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
3488
- patch(params?: Params$Resource$Projects$Locations$Sources$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4993
+ patch(params: Params$Resource$Projects$Locations$Sources$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4994
+ patch(params?: Params$Resource$Projects$Locations$Sources$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3489
4995
  patch(params: Params$Resource$Projects$Locations$Sources$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3490
4996
  patch(params: Params$Resource$Projects$Locations$Sources$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3491
4997
  patch(params: Params$Resource$Projects$Locations$Sources$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
@@ -3588,70 +5094,378 @@ 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`.
3594
5176
  * @param callback - Optional callback that handles the response.
3595
5177
  * @returns A promise if used with async/await, or void if used with a callback.
3596
5178
  */
3597
- create(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
3598
- create(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5179
+ create(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5180
+ create(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3599
5181
  create(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3600
5182
  create(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3601
5183
  create(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3608
5243
  * @param callback - Optional callback that handles the response.
3609
5244
  * @returns A promise if used with async/await, or void if used with a callback.
3610
5245
  */
3611
- delete(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3612
- delete(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5246
+ delete(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5247
+ delete(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3613
5248
  delete(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3614
5249
  delete(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3615
5250
  delete(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3622
5317
  * @param callback - Optional callback that handles the response.
3623
5318
  * @returns A promise if used with async/await, or void if used with a callback.
3624
5319
  */
3625
- get(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3626
- get(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options?: MethodOptions): GaxiosPromise<Schema$DatacenterConnector>;
5320
+ get(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5321
+ get(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DatacenterConnector>>;
3627
5322
  get(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3628
5323
  get(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, options: MethodOptions | BodyResponseCallback<Schema$DatacenterConnector>, callback: BodyResponseCallback<Schema$DatacenterConnector>): void;
3629
5324
  get(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Get, callback: BodyResponseCallback<Schema$DatacenterConnector>): void;
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`.
3636
5388
  * @param callback - Optional callback that handles the response.
3637
5389
  * @returns A promise if used with async/await, or void if used with a callback.
3638
5390
  */
3639
- list(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3640
- list(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options?: MethodOptions): GaxiosPromise<Schema$ListDatacenterConnectorsResponse>;
5391
+ list(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5392
+ list(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDatacenterConnectorsResponse>>;
3641
5393
  list(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3642
5394
  list(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, options: MethodOptions | BodyResponseCallback<Schema$ListDatacenterConnectorsResponse>, callback: BodyResponseCallback<Schema$ListDatacenterConnectorsResponse>): void;
3643
5395
  list(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$List, callback: BodyResponseCallback<Schema$ListDatacenterConnectorsResponse>): void;
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`.
3650
5464
  * @param callback - Optional callback that handles the response.
3651
5465
  * @returns A promise if used with async/await, or void if used with a callback.
3652
5466
  */
3653
- upgradeAppliance(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options: StreamMethodOptions): GaxiosPromise<Readable>;
3654
- upgradeAppliance(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5467
+ upgradeAppliance(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5468
+ upgradeAppliance(params?: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3655
5469
  upgradeAppliance(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3656
5470
  upgradeAppliance(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3657
5471
  upgradeAppliance(params: Params$Resource$Projects$Locations$Sources$Datacenterconnectors$Upgradeappliance, callback: BodyResponseCallback<Schema$Operation>): void;
@@ -3731,126 +5545,787 @@ 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`.
3737
5638
  * @param callback - Optional callback that handles the response.
3738
5639
  * @returns A promise if used with async/await, or void if used with a callback.
3739
5640
  */
3740
- create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
3741
- create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5641
+ create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5642
+ create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3742
5643
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3743
5644
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3744
5645
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3751
5702
  * @param callback - Optional callback that handles the response.
3752
5703
  * @returns A promise if used with async/await, or void if used with a callback.
3753
5704
  */
3754
- delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3755
- delete(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5705
+ delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5706
+ delete(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3756
5707
  delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
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`.
3765
5848
  * @param callback - Optional callback that handles the response.
3766
5849
  * @returns A promise if used with async/await, or void if used with a callback.
3767
5850
  */
3768
- finalizeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
3769
- finalizeMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
5851
+ finalizeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5852
+ finalizeMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3770
5853
  finalizeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3771
5854
  finalizeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3772
5855
  finalizeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3779
5935
  * @param callback - Optional callback that handles the response.
3780
5936
  * @returns A promise if used with async/await, or void if used with a callback.
3781
5937
  */
3782
- get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3783
- get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options?: MethodOptions): GaxiosPromise<Schema$MigratingVm>;
5938
+ get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5939
+ get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$MigratingVm>>;
3784
5940
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3785
5941
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, options: MethodOptions | BodyResponseCallback<Schema$MigratingVm>, callback: BodyResponseCallback<Schema$MigratingVm>): void;
3786
5942
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Get, callback: BodyResponseCallback<Schema$MigratingVm>): void;
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`.
3793
6007
  * @param callback - Optional callback that handles the response.
3794
6008
  * @returns A promise if used with async/await, or void if used with a callback.
3795
6009
  */
3796
- list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3797
- list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options?: MethodOptions): GaxiosPromise<Schema$ListMigratingVmsResponse>;
6010
+ list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6011
+ list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListMigratingVmsResponse>>;
3798
6012
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3799
6013
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$List, options: MethodOptions | BodyResponseCallback<Schema$ListMigratingVmsResponse>, callback: BodyResponseCallback<Schema$ListMigratingVmsResponse>): void;
3800
6014
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$List, callback: BodyResponseCallback<Schema$ListMigratingVmsResponse>): void;
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`.
3807
6108
  * @param callback - Optional callback that handles the response.
3808
6109
  * @returns A promise if used with async/await, or void if used with a callback.
3809
6110
  */
3810
- patch(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
3811
- patch(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6111
+ patch(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6112
+ patch(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3812
6113
  patch(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3813
6114
  patch(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3814
6115
  patch(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3821
6180
  * @param callback - Optional callback that handles the response.
3822
6181
  * @returns A promise if used with async/await, or void if used with a callback.
3823
6182
  */
3824
- pauseMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
3825
- pauseMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6183
+ pauseMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6184
+ pauseMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3826
6185
  pauseMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3827
6186
  pauseMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3828
6187
  pauseMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Pausemigration, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3835
6252
  * @param callback - Optional callback that handles the response.
3836
6253
  * @returns A promise if used with async/await, or void if used with a callback.
3837
6254
  */
3838
- resumeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
3839
- resumeMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6255
+ resumeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6256
+ resumeMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3840
6257
  resumeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3841
6258
  resumeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3842
6259
  resumeMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Resumemigration, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3849
6324
  * @param callback - Optional callback that handles the response.
3850
6325
  * @returns A promise if used with async/await, or void if used with a callback.
3851
6326
  */
3852
- startMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options: StreamMethodOptions): GaxiosPromise<Readable>;
3853
- startMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6327
+ startMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6328
+ startMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3854
6329
  startMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3855
6330
  startMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3856
6331
  startMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Startmigration, callback: BodyResponseCallback<Schema$Operation>): void;
@@ -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,56 +6464,302 @@ 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`.
3985
6527
  * @param callback - Optional callback that handles the response.
3986
6528
  * @returns A promise if used with async/await, or void if used with a callback.
3987
6529
  */
3988
- cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
3989
- cancel(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6530
+ cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6531
+ cancel(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3990
6532
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3991
6533
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3992
6534
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
3999
6615
  * @param callback - Optional callback that handles the response.
4000
6616
  * @returns A promise if used with async/await, or void if used with a callback.
4001
6617
  */
4002
- create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
4003
- create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6618
+ create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6619
+ create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4004
6620
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4005
6621
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4006
6622
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4013
6686
  * @param callback - Optional callback that handles the response.
4014
6687
  * @returns A promise if used with async/await, or void if used with a callback.
4015
6688
  */
4016
- get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4017
- get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options?: MethodOptions): GaxiosPromise<Schema$CloneJob>;
6689
+ get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6690
+ get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$CloneJob>>;
4018
6691
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4019
6692
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, options: MethodOptions | BodyResponseCallback<Schema$CloneJob>, callback: BodyResponseCallback<Schema$CloneJob>): void;
4020
6693
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$Get, callback: BodyResponseCallback<Schema$CloneJob>): void;
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`.
4027
6758
  * @param callback - Optional callback that handles the response.
4028
6759
  * @returns A promise if used with async/await, or void if used with a callback.
4029
6760
  */
4030
- list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4031
- list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options?: MethodOptions): GaxiosPromise<Schema$ListCloneJobsResponse>;
6761
+ list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6762
+ list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListCloneJobsResponse>>;
4032
6763
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4033
6764
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListCloneJobsResponse>, callback: BodyResponseCallback<Schema$ListCloneJobsResponse>): void;
4034
6765
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Clonejobs$List, callback: BodyResponseCallback<Schema$ListCloneJobsResponse>): void;
@@ -4095,56 +6826,312 @@ 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`.
4101
6891
  * @param callback - Optional callback that handles the response.
4102
6892
  * @returns A promise if used with async/await, or void if used with a callback.
4103
6893
  */
4104
- cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
4105
- cancel(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6894
+ cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6895
+ cancel(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4106
6896
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4107
6897
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4108
6898
  cancel(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4115
6984
  * @param callback - Optional callback that handles the response.
4116
6985
  * @returns A promise if used with async/await, or void if used with a callback.
4117
6986
  */
4118
- create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
4119
- create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
6987
+ create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6988
+ create(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4120
6989
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4121
6990
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4122
6991
  create(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4129
7058
  * @param callback - Optional callback that handles the response.
4130
7059
  * @returns A promise if used with async/await, or void if used with a callback.
4131
7060
  */
4132
- get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4133
- get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options?: MethodOptions): GaxiosPromise<Schema$CutoverJob>;
7061
+ get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7062
+ get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$CutoverJob>>;
4134
7063
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4135
7064
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, options: MethodOptions | BodyResponseCallback<Schema$CutoverJob>, callback: BodyResponseCallback<Schema$CutoverJob>): void;
4136
7065
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$Get, callback: BodyResponseCallback<Schema$CutoverJob>): void;
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`.
4143
7130
  * @param callback - Optional callback that handles the response.
4144
7131
  * @returns A promise if used with async/await, or void if used with a callback.
4145
7132
  */
4146
- list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4147
- list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options?: MethodOptions): GaxiosPromise<Schema$ListCutoverJobsResponse>;
7133
+ list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7134
+ list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListCutoverJobsResponse>>;
4148
7135
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4149
7136
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListCutoverJobsResponse>, callback: BodyResponseCallback<Schema$ListCutoverJobsResponse>): void;
4150
7137
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs$List, callback: BodyResponseCallback<Schema$ListCutoverJobsResponse>): void;
@@ -4211,28 +7198,147 @@ 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`.
4217
7263
  * @param callback - Optional callback that handles the response.
4218
7264
  * @returns A promise if used with async/await, or void if used with a callback.
4219
7265
  */
4220
- get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4221
- get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options?: MethodOptions): GaxiosPromise<Schema$ReplicationCycle>;
7266
+ get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7267
+ get(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ReplicationCycle>>;
4222
7268
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4223
7269
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, options: MethodOptions | BodyResponseCallback<Schema$ReplicationCycle>, callback: BodyResponseCallback<Schema$ReplicationCycle>): void;
4224
7270
  get(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$Get, callback: BodyResponseCallback<Schema$ReplicationCycle>): void;
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`.
4231
7337
  * @param callback - Optional callback that handles the response.
4232
7338
  * @returns A promise if used with async/await, or void if used with a callback.
4233
7339
  */
4234
- list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4235
- list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options?: MethodOptions): GaxiosPromise<Schema$ListReplicationCyclesResponse>;
7340
+ list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7341
+ list(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListReplicationCyclesResponse>>;
4236
7342
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4237
7343
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, options: MethodOptions | BodyResponseCallback<Schema$ListReplicationCyclesResponse>, callback: BodyResponseCallback<Schema$ListReplicationCyclesResponse>): void;
4238
7344
  list(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles$List, callback: BodyResponseCallback<Schema$ListReplicationCyclesResponse>): void;
@@ -4271,56 +7377,300 @@ 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`.
4277
7456
  * @param callback - Optional callback that handles the response.
4278
7457
  * @returns A promise if used with async/await, or void if used with a callback.
4279
7458
  */
4280
- create(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
4281
- create(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
7459
+ create(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7460
+ create(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4282
7461
  create(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4283
7462
  create(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4284
7463
  create(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4291
7523
  * @param callback - Optional callback that handles the response.
4292
7524
  * @returns A promise if used with async/await, or void if used with a callback.
4293
7525
  */
4294
- delete(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
4295
- delete(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
7526
+ delete(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7527
+ delete(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4296
7528
  delete(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4297
7529
  delete(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4298
7530
  delete(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4305
7596
  * @param callback - Optional callback that handles the response.
4306
7597
  * @returns A promise if used with async/await, or void if used with a callback.
4307
7598
  */
4308
- get(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4309
- get(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options?: MethodOptions): GaxiosPromise<Schema$UtilizationReport>;
7599
+ get(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7600
+ get(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$UtilizationReport>>;
4310
7601
  get(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4311
7602
  get(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, options: MethodOptions | BodyResponseCallback<Schema$UtilizationReport>, callback: BodyResponseCallback<Schema$UtilizationReport>): void;
4312
7603
  get(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$Get, callback: BodyResponseCallback<Schema$UtilizationReport>): void;
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`.
4319
7669
  * @param callback - Optional callback that handles the response.
4320
7670
  * @returns A promise if used with async/await, or void if used with a callback.
4321
7671
  */
4322
- list(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4323
- list(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options?: MethodOptions): GaxiosPromise<Schema$ListUtilizationReportsResponse>;
7672
+ list(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7673
+ list(params?: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListUtilizationReportsResponse>>;
4324
7674
  list(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4325
7675
  list(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, options: MethodOptions | BodyResponseCallback<Schema$ListUtilizationReportsResponse>, callback: BodyResponseCallback<Schema$ListUtilizationReportsResponse>): void;
4326
7676
  list(params: Params$Resource$Projects$Locations$Sources$Utilizationreports$List, callback: BodyResponseCallback<Schema$ListUtilizationReportsResponse>): void;
@@ -4395,70 +7745,360 @@ 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`.
4401
7817
  * @param callback - Optional callback that handles the response.
4402
7818
  * @returns A promise if used with async/await, or void if used with a callback.
4403
7819
  */
4404
- create(params: Params$Resource$Projects$Locations$Targetprojects$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
4405
- create(params?: Params$Resource$Projects$Locations$Targetprojects$Create, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
7820
+ create(params: Params$Resource$Projects$Locations$Targetprojects$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7821
+ create(params?: Params$Resource$Projects$Locations$Targetprojects$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4406
7822
  create(params: Params$Resource$Projects$Locations$Targetprojects$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4407
7823
  create(params: Params$Resource$Projects$Locations$Targetprojects$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4408
7824
  create(params: Params$Resource$Projects$Locations$Targetprojects$Create, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4415
7883
  * @param callback - Optional callback that handles the response.
4416
7884
  * @returns A promise if used with async/await, or void if used with a callback.
4417
7885
  */
4418
- delete(params: Params$Resource$Projects$Locations$Targetprojects$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
4419
- delete(params?: Params$Resource$Projects$Locations$Targetprojects$Delete, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
7886
+ delete(params: Params$Resource$Projects$Locations$Targetprojects$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7887
+ delete(params?: Params$Resource$Projects$Locations$Targetprojects$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4420
7888
  delete(params: Params$Resource$Projects$Locations$Targetprojects$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4421
7889
  delete(params: Params$Resource$Projects$Locations$Targetprojects$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4422
7890
  delete(params: Params$Resource$Projects$Locations$Targetprojects$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
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`.
4429
7947
  * @param callback - Optional callback that handles the response.
4430
7948
  * @returns A promise if used with async/await, or void if used with a callback.
4431
7949
  */
4432
- get(params: Params$Resource$Projects$Locations$Targetprojects$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4433
- get(params?: Params$Resource$Projects$Locations$Targetprojects$Get, options?: MethodOptions): GaxiosPromise<Schema$TargetProject>;
7950
+ get(params: Params$Resource$Projects$Locations$Targetprojects$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
7951
+ get(params?: Params$Resource$Projects$Locations$Targetprojects$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TargetProject>>;
4434
7952
  get(params: Params$Resource$Projects$Locations$Targetprojects$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4435
7953
  get(params: Params$Resource$Projects$Locations$Targetprojects$Get, options: MethodOptions | BodyResponseCallback<Schema$TargetProject>, callback: BodyResponseCallback<Schema$TargetProject>): void;
4436
7954
  get(params: Params$Resource$Projects$Locations$Targetprojects$Get, callback: BodyResponseCallback<Schema$TargetProject>): void;
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`.
4443
8017
  * @param callback - Optional callback that handles the response.
4444
8018
  * @returns A promise if used with async/await, or void if used with a callback.
4445
8019
  */
4446
- list(params: Params$Resource$Projects$Locations$Targetprojects$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4447
- list(params?: Params$Resource$Projects$Locations$Targetprojects$List, options?: MethodOptions): GaxiosPromise<Schema$ListTargetProjectsResponse>;
8020
+ list(params: Params$Resource$Projects$Locations$Targetprojects$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
8021
+ list(params?: Params$Resource$Projects$Locations$Targetprojects$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListTargetProjectsResponse>>;
4448
8022
  list(params: Params$Resource$Projects$Locations$Targetprojects$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4449
8023
  list(params: Params$Resource$Projects$Locations$Targetprojects$List, options: MethodOptions | BodyResponseCallback<Schema$ListTargetProjectsResponse>, callback: BodyResponseCallback<Schema$ListTargetProjectsResponse>): void;
4450
8024
  list(params: Params$Resource$Projects$Locations$Targetprojects$List, callback: BodyResponseCallback<Schema$ListTargetProjectsResponse>): void;
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`.
4457
8097
  * @param callback - Optional callback that handles the response.
4458
8098
  * @returns A promise if used with async/await, or void if used with a callback.
4459
8099
  */
4460
- patch(params: Params$Resource$Projects$Locations$Targetprojects$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
4461
- patch(params?: Params$Resource$Projects$Locations$Targetprojects$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
8100
+ patch(params: Params$Resource$Projects$Locations$Targetprojects$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
8101
+ patch(params?: Params$Resource$Projects$Locations$Targetprojects$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4462
8102
  patch(params: Params$Resource$Projects$Locations$Targetprojects$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4463
8103
  patch(params: Params$Resource$Projects$Locations$Targetprojects$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4464
8104
  patch(params: Params$Resource$Projects$Locations$Targetprojects$Patch, callback: BodyResponseCallback<Schema$Operation>): void;