@googleapis/vmmigration 13.0.1 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.d.ts CHANGED
@@ -260,7 +260,7 @@ export declare namespace vmmigration_v1 {
260
260
  */
261
261
  committedStorageMb?: string | null;
262
262
  /**
263
- * The number of cpus the VM has.
263
+ * The number of CPU cores the VM has.
264
264
  */
265
265
  cpuCount?: number | null;
266
266
  /**
@@ -305,6 +305,10 @@ export declare namespace vmmigration_v1 {
305
305
  tags?: {
306
306
  [key: string]: string;
307
307
  } | null;
308
+ /**
309
+ * The number of vCPUs the VM has. It is calculated as the number of CPU cores * threads per CPU the VM has.
310
+ */
311
+ vcpuCount?: number | null;
308
312
  /**
309
313
  * The virtualization type.
310
314
  */
@@ -674,6 +678,10 @@ export declare namespace vmmigration_v1 {
674
678
  * Compute instance scheduling information (if empty default is used).
675
679
  */
676
680
  computeScheduling?: Schema$ComputeScheduling;
681
+ /**
682
+ * 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.
683
+ */
684
+ diskReplicaZones?: string[] | null;
677
685
  /**
678
686
  * The disk type to use in the VM.
679
687
  */
@@ -771,6 +779,10 @@ export declare namespace vmmigration_v1 {
771
779
  * Compute instance scheduling information (if empty default is used).
772
780
  */
773
781
  computeScheduling?: Schema$ComputeScheduling;
782
+ /**
783
+ * 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.
784
+ */
785
+ diskReplicaZones?: string[] | null;
774
786
  /**
775
787
  * The disk type to use in the VM.
776
788
  */
@@ -1231,6 +1243,28 @@ export declare namespace vmmigration_v1 {
1231
1243
  */
1232
1244
  kmsKey?: string | null;
1233
1245
  }
1246
+ /**
1247
+ * Expiration holds information about the expiration of a MigratingVm.
1248
+ */
1249
+ export interface Schema$Expiration {
1250
+ /**
1251
+ * Output only. Timestamp of when this resource is considered expired.
1252
+ */
1253
+ expireTime?: string | null;
1254
+ /**
1255
+ * Output only. Describes whether the expiration can be extended.
1256
+ */
1257
+ extendable?: boolean | null;
1258
+ /**
1259
+ * Output only. The number of times expiration was extended.
1260
+ */
1261
+ extensionCount?: number | null;
1262
+ }
1263
+ /**
1264
+ * Request message for 'ExtendMigrationRequest' request.
1265
+ */
1266
+ export interface Schema$ExtendMigrationRequest {
1267
+ }
1234
1268
  /**
1235
1269
  * Response message for fetchInventory.
1236
1270
  */
@@ -1728,7 +1762,7 @@ export declare namespace vmmigration_v1 {
1728
1762
  */
1729
1763
  description?: string | null;
1730
1764
  /**
1731
- * Immutable. The encryption to apply to the machine image.
1765
+ * 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.
1732
1766
  */
1733
1767
  encryption?: Schema$Encryption;
1734
1768
  /**
@@ -1746,7 +1780,7 @@ export declare namespace vmmigration_v1 {
1746
1780
  */
1747
1781
  machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
1748
1782
  /**
1749
- * 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.
1783
+ * 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.
1750
1784
  */
1751
1785
  networkInterfaces?: Schema$NetworkInterface[];
1752
1786
  /**
@@ -1822,6 +1856,10 @@ export declare namespace vmmigration_v1 {
1822
1856
  * Output only. Provides details on the state of the Migrating VM in case of an error in replication.
1823
1857
  */
1824
1858
  error?: Schema$Status;
1859
+ /**
1860
+ * Output only. Provides details about the expiration state of the migrating VM.
1861
+ */
1862
+ expiration?: Schema$Expiration;
1825
1863
  /**
1826
1864
  * 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.
1827
1865
  */
@@ -2678,6 +2716,56 @@ export declare namespace vmmigration_v1 {
2678
2716
  constructor(context: APIRequestContext);
2679
2717
  /**
2680
2718
  * Gets information about a location.
2719
+ * @example
2720
+ * ```js
2721
+ * // Before running the sample:
2722
+ * // - Enable the API at:
2723
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2724
+ * // - Login into gcloud by running:
2725
+ * // ```sh
2726
+ * // $ gcloud auth application-default login
2727
+ * // ```
2728
+ * // - Install the npm module by running:
2729
+ * // ```sh
2730
+ * // $ npm install googleapis
2731
+ * // ```
2732
+ *
2733
+ * const {google} = require('googleapis');
2734
+ * const vmmigration = google.vmmigration('v1');
2735
+ *
2736
+ * async function main() {
2737
+ * const auth = new google.auth.GoogleAuth({
2738
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2739
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2740
+ * });
2741
+ *
2742
+ * // Acquire an auth client, and bind it to all future calls
2743
+ * const authClient = await auth.getClient();
2744
+ * google.options({auth: authClient});
2745
+ *
2746
+ * // Do the magic
2747
+ * const res = await vmmigration.projects.locations.get({
2748
+ * // Resource name for the location.
2749
+ * name: 'projects/my-project/locations/my-location',
2750
+ * });
2751
+ * console.log(res.data);
2752
+ *
2753
+ * // Example response
2754
+ * // {
2755
+ * // "displayName": "my_displayName",
2756
+ * // "labels": {},
2757
+ * // "locationId": "my_locationId",
2758
+ * // "metadata": {},
2759
+ * // "name": "my_name"
2760
+ * // }
2761
+ * }
2762
+ *
2763
+ * main().catch(e => {
2764
+ * console.error(e);
2765
+ * throw e;
2766
+ * });
2767
+ *
2768
+ * ```
2681
2769
  *
2682
2770
  * @param params - Parameters for request
2683
2771
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2692,6 +2780,61 @@ export declare namespace vmmigration_v1 {
2692
2780
  get(callback: BodyResponseCallback<Schema$Location>): void;
2693
2781
  /**
2694
2782
  * Lists information about the supported locations for this service.
2783
+ * @example
2784
+ * ```js
2785
+ * // Before running the sample:
2786
+ * // - Enable the API at:
2787
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2788
+ * // - Login into gcloud by running:
2789
+ * // ```sh
2790
+ * // $ gcloud auth application-default login
2791
+ * // ```
2792
+ * // - Install the npm module by running:
2793
+ * // ```sh
2794
+ * // $ npm install googleapis
2795
+ * // ```
2796
+ *
2797
+ * const {google} = require('googleapis');
2798
+ * const vmmigration = google.vmmigration('v1');
2799
+ *
2800
+ * async function main() {
2801
+ * const auth = new google.auth.GoogleAuth({
2802
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2803
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2804
+ * });
2805
+ *
2806
+ * // Acquire an auth client, and bind it to all future calls
2807
+ * const authClient = await auth.getClient();
2808
+ * google.options({auth: authClient});
2809
+ *
2810
+ * // Do the magic
2811
+ * const res = await vmmigration.projects.locations.list({
2812
+ * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2813
+ * extraLocationTypes: 'placeholder-value',
2814
+ * // 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).
2815
+ * filter: 'placeholder-value',
2816
+ * // The resource that owns the locations collection, if applicable.
2817
+ * name: 'projects/my-project',
2818
+ * // The maximum number of results to return. If not set, the service selects a default.
2819
+ * pageSize: 'placeholder-value',
2820
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2821
+ * pageToken: 'placeholder-value',
2822
+ * });
2823
+ * console.log(res.data);
2824
+ *
2825
+ * // Example response
2826
+ * // {
2827
+ * // "locations": [],
2828
+ * // "nextPageToken": "my_nextPageToken"
2829
+ * // }
2830
+ * }
2831
+ *
2832
+ * main().catch(e => {
2833
+ * console.error(e);
2834
+ * throw e;
2835
+ * });
2836
+ *
2837
+ * ```
2695
2838
  *
2696
2839
  * @param params - Parameters for request
2697
2840
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2738,6 +2881,64 @@ export declare namespace vmmigration_v1 {
2738
2881
  constructor(context: APIRequestContext);
2739
2882
  /**
2740
2883
  * Adds a MigratingVm to a Group.
2884
+ * @example
2885
+ * ```js
2886
+ * // Before running the sample:
2887
+ * // - Enable the API at:
2888
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2889
+ * // - Login into gcloud by running:
2890
+ * // ```sh
2891
+ * // $ gcloud auth application-default login
2892
+ * // ```
2893
+ * // - Install the npm module by running:
2894
+ * // ```sh
2895
+ * // $ npm install googleapis
2896
+ * // ```
2897
+ *
2898
+ * const {google} = require('googleapis');
2899
+ * const vmmigration = google.vmmigration('v1');
2900
+ *
2901
+ * async function main() {
2902
+ * const auth = new google.auth.GoogleAuth({
2903
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2904
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2905
+ * });
2906
+ *
2907
+ * // Acquire an auth client, and bind it to all future calls
2908
+ * const authClient = await auth.getClient();
2909
+ * google.options({auth: authClient});
2910
+ *
2911
+ * // Do the magic
2912
+ * const res = await vmmigration.projects.locations.groups.addGroupMigration({
2913
+ * // Required. The full path name of the Group to add to.
2914
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
2915
+ *
2916
+ * // Request body metadata
2917
+ * requestBody: {
2918
+ * // request body parameters
2919
+ * // {
2920
+ * // "migratingVm": "my_migratingVm"
2921
+ * // }
2922
+ * },
2923
+ * });
2924
+ * console.log(res.data);
2925
+ *
2926
+ * // Example response
2927
+ * // {
2928
+ * // "done": false,
2929
+ * // "error": {},
2930
+ * // "metadata": {},
2931
+ * // "name": "my_name",
2932
+ * // "response": {}
2933
+ * // }
2934
+ * }
2935
+ *
2936
+ * main().catch(e => {
2937
+ * console.error(e);
2938
+ * throw e;
2939
+ * });
2940
+ *
2941
+ * ```
2741
2942
  *
2742
2943
  * @param params - Parameters for request
2743
2944
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2752,6 +2953,73 @@ export declare namespace vmmigration_v1 {
2752
2953
  addGroupMigration(callback: BodyResponseCallback<Schema$Operation>): void;
2753
2954
  /**
2754
2955
  * Creates a new Group in a given project and location.
2956
+ * @example
2957
+ * ```js
2958
+ * // Before running the sample:
2959
+ * // - Enable the API at:
2960
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
2961
+ * // - Login into gcloud by running:
2962
+ * // ```sh
2963
+ * // $ gcloud auth application-default login
2964
+ * // ```
2965
+ * // - Install the npm module by running:
2966
+ * // ```sh
2967
+ * // $ npm install googleapis
2968
+ * // ```
2969
+ *
2970
+ * const {google} = require('googleapis');
2971
+ * const vmmigration = google.vmmigration('v1');
2972
+ *
2973
+ * async function main() {
2974
+ * const auth = new google.auth.GoogleAuth({
2975
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2976
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2977
+ * });
2978
+ *
2979
+ * // Acquire an auth client, and bind it to all future calls
2980
+ * const authClient = await auth.getClient();
2981
+ * google.options({auth: authClient});
2982
+ *
2983
+ * // Do the magic
2984
+ * const res = await vmmigration.projects.locations.groups.create({
2985
+ * // Required. The group identifier.
2986
+ * groupId: 'placeholder-value',
2987
+ * // Required. The Group's parent.
2988
+ * parent: 'projects/my-project/locations/my-location',
2989
+ * // 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).
2990
+ * requestId: 'placeholder-value',
2991
+ *
2992
+ * // Request body metadata
2993
+ * requestBody: {
2994
+ * // request body parameters
2995
+ * // {
2996
+ * // "createTime": "my_createTime",
2997
+ * // "description": "my_description",
2998
+ * // "displayName": "my_displayName",
2999
+ * // "migrationTargetType": "my_migrationTargetType",
3000
+ * // "name": "my_name",
3001
+ * // "updateTime": "my_updateTime"
3002
+ * // }
3003
+ * },
3004
+ * });
3005
+ * console.log(res.data);
3006
+ *
3007
+ * // Example response
3008
+ * // {
3009
+ * // "done": false,
3010
+ * // "error": {},
3011
+ * // "metadata": {},
3012
+ * // "name": "my_name",
3013
+ * // "response": {}
3014
+ * // }
3015
+ * }
3016
+ *
3017
+ * main().catch(e => {
3018
+ * console.error(e);
3019
+ * throw e;
3020
+ * });
3021
+ *
3022
+ * ```
2755
3023
  *
2756
3024
  * @param params - Parameters for request
2757
3025
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2766,6 +3034,58 @@ export declare namespace vmmigration_v1 {
2766
3034
  create(callback: BodyResponseCallback<Schema$Operation>): void;
2767
3035
  /**
2768
3036
  * Deletes a single Group.
3037
+ * @example
3038
+ * ```js
3039
+ * // Before running the sample:
3040
+ * // - Enable the API at:
3041
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3042
+ * // - Login into gcloud by running:
3043
+ * // ```sh
3044
+ * // $ gcloud auth application-default login
3045
+ * // ```
3046
+ * // - Install the npm module by running:
3047
+ * // ```sh
3048
+ * // $ npm install googleapis
3049
+ * // ```
3050
+ *
3051
+ * const {google} = require('googleapis');
3052
+ * const vmmigration = google.vmmigration('v1');
3053
+ *
3054
+ * async function main() {
3055
+ * const auth = new google.auth.GoogleAuth({
3056
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3057
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3058
+ * });
3059
+ *
3060
+ * // Acquire an auth client, and bind it to all future calls
3061
+ * const authClient = await auth.getClient();
3062
+ * google.options({auth: authClient});
3063
+ *
3064
+ * // Do the magic
3065
+ * const res = await vmmigration.projects.locations.groups.delete({
3066
+ * // Required. The Group name.
3067
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3068
+ * // 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).
3069
+ * requestId: 'placeholder-value',
3070
+ * });
3071
+ * console.log(res.data);
3072
+ *
3073
+ * // Example response
3074
+ * // {
3075
+ * // "done": false,
3076
+ * // "error": {},
3077
+ * // "metadata": {},
3078
+ * // "name": "my_name",
3079
+ * // "response": {}
3080
+ * // }
3081
+ * }
3082
+ *
3083
+ * main().catch(e => {
3084
+ * console.error(e);
3085
+ * throw e;
3086
+ * });
3087
+ *
3088
+ * ```
2769
3089
  *
2770
3090
  * @param params - Parameters for request
2771
3091
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2780,6 +3100,57 @@ export declare namespace vmmigration_v1 {
2780
3100
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
2781
3101
  /**
2782
3102
  * Gets details of a single Group.
3103
+ * @example
3104
+ * ```js
3105
+ * // Before running the sample:
3106
+ * // - Enable the API at:
3107
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3108
+ * // - Login into gcloud by running:
3109
+ * // ```sh
3110
+ * // $ gcloud auth application-default login
3111
+ * // ```
3112
+ * // - Install the npm module by running:
3113
+ * // ```sh
3114
+ * // $ npm install googleapis
3115
+ * // ```
3116
+ *
3117
+ * const {google} = require('googleapis');
3118
+ * const vmmigration = google.vmmigration('v1');
3119
+ *
3120
+ * async function main() {
3121
+ * const auth = new google.auth.GoogleAuth({
3122
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3123
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3124
+ * });
3125
+ *
3126
+ * // Acquire an auth client, and bind it to all future calls
3127
+ * const authClient = await auth.getClient();
3128
+ * google.options({auth: authClient});
3129
+ *
3130
+ * // Do the magic
3131
+ * const res = await vmmigration.projects.locations.groups.get({
3132
+ * // Required. The group name.
3133
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3134
+ * });
3135
+ * console.log(res.data);
3136
+ *
3137
+ * // Example response
3138
+ * // {
3139
+ * // "createTime": "my_createTime",
3140
+ * // "description": "my_description",
3141
+ * // "displayName": "my_displayName",
3142
+ * // "migrationTargetType": "my_migrationTargetType",
3143
+ * // "name": "my_name",
3144
+ * // "updateTime": "my_updateTime"
3145
+ * // }
3146
+ * }
3147
+ *
3148
+ * main().catch(e => {
3149
+ * console.error(e);
3150
+ * throw e;
3151
+ * });
3152
+ *
3153
+ * ```
2783
3154
  *
2784
3155
  * @param params - Parameters for request
2785
3156
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2794,6 +3165,62 @@ export declare namespace vmmigration_v1 {
2794
3165
  get(callback: BodyResponseCallback<Schema$Group>): void;
2795
3166
  /**
2796
3167
  * Lists Groups in a given project and location.
3168
+ * @example
3169
+ * ```js
3170
+ * // Before running the sample:
3171
+ * // - Enable the API at:
3172
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3173
+ * // - Login into gcloud by running:
3174
+ * // ```sh
3175
+ * // $ gcloud auth application-default login
3176
+ * // ```
3177
+ * // - Install the npm module by running:
3178
+ * // ```sh
3179
+ * // $ npm install googleapis
3180
+ * // ```
3181
+ *
3182
+ * const {google} = require('googleapis');
3183
+ * const vmmigration = google.vmmigration('v1');
3184
+ *
3185
+ * async function main() {
3186
+ * const auth = new google.auth.GoogleAuth({
3187
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3188
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3189
+ * });
3190
+ *
3191
+ * // Acquire an auth client, and bind it to all future calls
3192
+ * const authClient = await auth.getClient();
3193
+ * google.options({auth: authClient});
3194
+ *
3195
+ * // Do the magic
3196
+ * const res = await vmmigration.projects.locations.groups.list({
3197
+ * // Optional. The filter request.
3198
+ * filter: 'placeholder-value',
3199
+ * // Optional. the order by fields for the result.
3200
+ * orderBy: 'placeholder-value',
3201
+ * // 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.
3202
+ * pageSize: 'placeholder-value',
3203
+ * // 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.
3204
+ * pageToken: 'placeholder-value',
3205
+ * // Required. The parent, which owns this collection of groups.
3206
+ * parent: 'projects/my-project/locations/my-location',
3207
+ * });
3208
+ * console.log(res.data);
3209
+ *
3210
+ * // Example response
3211
+ * // {
3212
+ * // "groups": [],
3213
+ * // "nextPageToken": "my_nextPageToken",
3214
+ * // "unreachable": []
3215
+ * // }
3216
+ * }
3217
+ *
3218
+ * main().catch(e => {
3219
+ * console.error(e);
3220
+ * throw e;
3221
+ * });
3222
+ *
3223
+ * ```
2797
3224
  *
2798
3225
  * @param params - Parameters for request
2799
3226
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2808,6 +3235,73 @@ export declare namespace vmmigration_v1 {
2808
3235
  list(callback: BodyResponseCallback<Schema$ListGroupsResponse>): void;
2809
3236
  /**
2810
3237
  * Updates the parameters of a single Group.
3238
+ * @example
3239
+ * ```js
3240
+ * // Before running the sample:
3241
+ * // - Enable the API at:
3242
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3243
+ * // - Login into gcloud by running:
3244
+ * // ```sh
3245
+ * // $ gcloud auth application-default login
3246
+ * // ```
3247
+ * // - Install the npm module by running:
3248
+ * // ```sh
3249
+ * // $ npm install googleapis
3250
+ * // ```
3251
+ *
3252
+ * const {google} = require('googleapis');
3253
+ * const vmmigration = google.vmmigration('v1');
3254
+ *
3255
+ * async function main() {
3256
+ * const auth = new google.auth.GoogleAuth({
3257
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3258
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3259
+ * });
3260
+ *
3261
+ * // Acquire an auth client, and bind it to all future calls
3262
+ * const authClient = await auth.getClient();
3263
+ * google.options({auth: authClient});
3264
+ *
3265
+ * // Do the magic
3266
+ * const res = await vmmigration.projects.locations.groups.patch({
3267
+ * // Output only. The Group name.
3268
+ * name: 'projects/my-project/locations/my-location/groups/my-group',
3269
+ * // 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).
3270
+ * requestId: 'placeholder-value',
3271
+ * // 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.
3272
+ * updateMask: 'placeholder-value',
3273
+ *
3274
+ * // Request body metadata
3275
+ * requestBody: {
3276
+ * // request body parameters
3277
+ * // {
3278
+ * // "createTime": "my_createTime",
3279
+ * // "description": "my_description",
3280
+ * // "displayName": "my_displayName",
3281
+ * // "migrationTargetType": "my_migrationTargetType",
3282
+ * // "name": "my_name",
3283
+ * // "updateTime": "my_updateTime"
3284
+ * // }
3285
+ * },
3286
+ * });
3287
+ * console.log(res.data);
3288
+ *
3289
+ * // Example response
3290
+ * // {
3291
+ * // "done": false,
3292
+ * // "error": {},
3293
+ * // "metadata": {},
3294
+ * // "name": "my_name",
3295
+ * // "response": {}
3296
+ * // }
3297
+ * }
3298
+ *
3299
+ * main().catch(e => {
3300
+ * console.error(e);
3301
+ * throw e;
3302
+ * });
3303
+ *
3304
+ * ```
2811
3305
  *
2812
3306
  * @param params - Parameters for request
2813
3307
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2822,6 +3316,64 @@ export declare namespace vmmigration_v1 {
2822
3316
  patch(callback: BodyResponseCallback<Schema$Operation>): void;
2823
3317
  /**
2824
3318
  * Removes a MigratingVm from a Group.
3319
+ * @example
3320
+ * ```js
3321
+ * // Before running the sample:
3322
+ * // - Enable the API at:
3323
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3324
+ * // - Login into gcloud by running:
3325
+ * // ```sh
3326
+ * // $ gcloud auth application-default login
3327
+ * // ```
3328
+ * // - Install the npm module by running:
3329
+ * // ```sh
3330
+ * // $ npm install googleapis
3331
+ * // ```
3332
+ *
3333
+ * const {google} = require('googleapis');
3334
+ * const vmmigration = google.vmmigration('v1');
3335
+ *
3336
+ * async function main() {
3337
+ * const auth = new google.auth.GoogleAuth({
3338
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3339
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3340
+ * });
3341
+ *
3342
+ * // Acquire an auth client, and bind it to all future calls
3343
+ * const authClient = await auth.getClient();
3344
+ * google.options({auth: authClient});
3345
+ *
3346
+ * // Do the magic
3347
+ * const res = await vmmigration.projects.locations.groups.removeGroupMigration({
3348
+ * // Required. The name of the Group.
3349
+ * group: 'projects/my-project/locations/my-location/groups/my-group',
3350
+ *
3351
+ * // Request body metadata
3352
+ * requestBody: {
3353
+ * // request body parameters
3354
+ * // {
3355
+ * // "migratingVm": "my_migratingVm"
3356
+ * // }
3357
+ * },
3358
+ * });
3359
+ * console.log(res.data);
3360
+ *
3361
+ * // Example response
3362
+ * // {
3363
+ * // "done": false,
3364
+ * // "error": {},
3365
+ * // "metadata": {},
3366
+ * // "name": "my_name",
3367
+ * // "response": {}
3368
+ * // }
3369
+ * }
3370
+ *
3371
+ * main().catch(e => {
3372
+ * console.error(e);
3373
+ * throw e;
3374
+ * });
3375
+ *
3376
+ * ```
2825
3377
  *
2826
3378
  * @param params - Parameters for request
2827
3379
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2935,6 +3487,74 @@ export declare namespace vmmigration_v1 {
2935
3487
  constructor(context: APIRequestContext);
2936
3488
  /**
2937
3489
  * Creates a new ImageImport in a given project.
3490
+ * @example
3491
+ * ```js
3492
+ * // Before running the sample:
3493
+ * // - Enable the API at:
3494
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3495
+ * // - Login into gcloud by running:
3496
+ * // ```sh
3497
+ * // $ gcloud auth application-default login
3498
+ * // ```
3499
+ * // - Install the npm module by running:
3500
+ * // ```sh
3501
+ * // $ npm install googleapis
3502
+ * // ```
3503
+ *
3504
+ * const {google} = require('googleapis');
3505
+ * const vmmigration = google.vmmigration('v1');
3506
+ *
3507
+ * async function main() {
3508
+ * const auth = new google.auth.GoogleAuth({
3509
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3510
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3511
+ * });
3512
+ *
3513
+ * // Acquire an auth client, and bind it to all future calls
3514
+ * const authClient = await auth.getClient();
3515
+ * google.options({auth: authClient});
3516
+ *
3517
+ * // Do the magic
3518
+ * const res = await vmmigration.projects.locations.imageImports.create({
3519
+ * // 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.
3520
+ * imageImportId: 'placeholder-value',
3521
+ * // Required. The ImageImport's parent.
3522
+ * parent: 'projects/my-project/locations/my-location',
3523
+ * // 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).
3524
+ * requestId: 'placeholder-value',
3525
+ *
3526
+ * // Request body metadata
3527
+ * requestBody: {
3528
+ * // request body parameters
3529
+ * // {
3530
+ * // "cloudStorageUri": "my_cloudStorageUri",
3531
+ * // "createTime": "my_createTime",
3532
+ * // "diskImageTargetDefaults": {},
3533
+ * // "encryption": {},
3534
+ * // "machineImageTargetDefaults": {},
3535
+ * // "name": "my_name",
3536
+ * // "recentImageImportJobs": []
3537
+ * // }
3538
+ * },
3539
+ * });
3540
+ * console.log(res.data);
3541
+ *
3542
+ * // Example response
3543
+ * // {
3544
+ * // "done": false,
3545
+ * // "error": {},
3546
+ * // "metadata": {},
3547
+ * // "name": "my_name",
3548
+ * // "response": {}
3549
+ * // }
3550
+ * }
3551
+ *
3552
+ * main().catch(e => {
3553
+ * console.error(e);
3554
+ * throw e;
3555
+ * });
3556
+ *
3557
+ * ```
2938
3558
  *
2939
3559
  * @param params - Parameters for request
2940
3560
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2949,6 +3569,58 @@ export declare namespace vmmigration_v1 {
2949
3569
  create(callback: BodyResponseCallback<Schema$Operation>): void;
2950
3570
  /**
2951
3571
  * Deletes a single ImageImport.
3572
+ * @example
3573
+ * ```js
3574
+ * // Before running the sample:
3575
+ * // - Enable the API at:
3576
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3577
+ * // - Login into gcloud by running:
3578
+ * // ```sh
3579
+ * // $ gcloud auth application-default login
3580
+ * // ```
3581
+ * // - Install the npm module by running:
3582
+ * // ```sh
3583
+ * // $ npm install googleapis
3584
+ * // ```
3585
+ *
3586
+ * const {google} = require('googleapis');
3587
+ * const vmmigration = google.vmmigration('v1');
3588
+ *
3589
+ * async function main() {
3590
+ * const auth = new google.auth.GoogleAuth({
3591
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3592
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3593
+ * });
3594
+ *
3595
+ * // Acquire an auth client, and bind it to all future calls
3596
+ * const authClient = await auth.getClient();
3597
+ * google.options({auth: authClient});
3598
+ *
3599
+ * // Do the magic
3600
+ * const res = await vmmigration.projects.locations.imageImports.delete({
3601
+ * // Required. The ImageImport name.
3602
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
3603
+ * // 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).
3604
+ * requestId: 'placeholder-value',
3605
+ * });
3606
+ * console.log(res.data);
3607
+ *
3608
+ * // Example response
3609
+ * // {
3610
+ * // "done": false,
3611
+ * // "error": {},
3612
+ * // "metadata": {},
3613
+ * // "name": "my_name",
3614
+ * // "response": {}
3615
+ * // }
3616
+ * }
3617
+ *
3618
+ * main().catch(e => {
3619
+ * console.error(e);
3620
+ * throw e;
3621
+ * });
3622
+ *
3623
+ * ```
2952
3624
  *
2953
3625
  * @param params - Parameters for request
2954
3626
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2963,6 +3635,58 @@ export declare namespace vmmigration_v1 {
2963
3635
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
2964
3636
  /**
2965
3637
  * Gets details of a single ImageImport.
3638
+ * @example
3639
+ * ```js
3640
+ * // Before running the sample:
3641
+ * // - Enable the API at:
3642
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3643
+ * // - Login into gcloud by running:
3644
+ * // ```sh
3645
+ * // $ gcloud auth application-default login
3646
+ * // ```
3647
+ * // - Install the npm module by running:
3648
+ * // ```sh
3649
+ * // $ npm install googleapis
3650
+ * // ```
3651
+ *
3652
+ * const {google} = require('googleapis');
3653
+ * const vmmigration = google.vmmigration('v1');
3654
+ *
3655
+ * async function main() {
3656
+ * const auth = new google.auth.GoogleAuth({
3657
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3658
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3659
+ * });
3660
+ *
3661
+ * // Acquire an auth client, and bind it to all future calls
3662
+ * const authClient = await auth.getClient();
3663
+ * google.options({auth: authClient});
3664
+ *
3665
+ * // Do the magic
3666
+ * const res = await vmmigration.projects.locations.imageImports.get({
3667
+ * // Required. The ImageImport name.
3668
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport',
3669
+ * });
3670
+ * console.log(res.data);
3671
+ *
3672
+ * // Example response
3673
+ * // {
3674
+ * // "cloudStorageUri": "my_cloudStorageUri",
3675
+ * // "createTime": "my_createTime",
3676
+ * // "diskImageTargetDefaults": {},
3677
+ * // "encryption": {},
3678
+ * // "machineImageTargetDefaults": {},
3679
+ * // "name": "my_name",
3680
+ * // "recentImageImportJobs": []
3681
+ * // }
3682
+ * }
3683
+ *
3684
+ * main().catch(e => {
3685
+ * console.error(e);
3686
+ * throw e;
3687
+ * });
3688
+ *
3689
+ * ```
2966
3690
  *
2967
3691
  * @param params - Parameters for request
2968
3692
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2977,6 +3701,62 @@ export declare namespace vmmigration_v1 {
2977
3701
  get(callback: BodyResponseCallback<Schema$ImageImport>): void;
2978
3702
  /**
2979
3703
  * Lists ImageImports in a given project.
3704
+ * @example
3705
+ * ```js
3706
+ * // Before running the sample:
3707
+ * // - Enable the API at:
3708
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3709
+ * // - Login into gcloud by running:
3710
+ * // ```sh
3711
+ * // $ gcloud auth application-default login
3712
+ * // ```
3713
+ * // - Install the npm module by running:
3714
+ * // ```sh
3715
+ * // $ npm install googleapis
3716
+ * // ```
3717
+ *
3718
+ * const {google} = require('googleapis');
3719
+ * const vmmigration = google.vmmigration('v1');
3720
+ *
3721
+ * async function main() {
3722
+ * const auth = new google.auth.GoogleAuth({
3723
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3724
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3725
+ * });
3726
+ *
3727
+ * // Acquire an auth client, and bind it to all future calls
3728
+ * const authClient = await auth.getClient();
3729
+ * google.options({auth: authClient});
3730
+ *
3731
+ * // Do the magic
3732
+ * const res = await vmmigration.projects.locations.imageImports.list({
3733
+ * // Optional. The filter request (according to AIP-160).
3734
+ * filter: 'placeholder-value',
3735
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
3736
+ * orderBy: 'placeholder-value',
3737
+ * // 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.
3738
+ * pageSize: 'placeholder-value',
3739
+ * // 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.
3740
+ * pageToken: 'placeholder-value',
3741
+ * // Required. The parent, which owns this collection of targets.
3742
+ * parent: 'projects/my-project/locations/my-location',
3743
+ * });
3744
+ * console.log(res.data);
3745
+ *
3746
+ * // Example response
3747
+ * // {
3748
+ * // "imageImports": [],
3749
+ * // "nextPageToken": "my_nextPageToken",
3750
+ * // "unreachable": []
3751
+ * // }
3752
+ * }
3753
+ *
3754
+ * main().catch(e => {
3755
+ * console.error(e);
3756
+ * throw e;
3757
+ * });
3758
+ *
3759
+ * ```
2980
3760
  *
2981
3761
  * @param params - Parameters for request
2982
3762
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3051,6 +3831,63 @@ export declare namespace vmmigration_v1 {
3051
3831
  constructor(context: APIRequestContext);
3052
3832
  /**
3053
3833
  * Initiates the cancellation of a running clone job.
3834
+ * @example
3835
+ * ```js
3836
+ * // Before running the sample:
3837
+ * // - Enable the API at:
3838
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3839
+ * // - Login into gcloud by running:
3840
+ * // ```sh
3841
+ * // $ gcloud auth application-default login
3842
+ * // ```
3843
+ * // - Install the npm module by running:
3844
+ * // ```sh
3845
+ * // $ npm install googleapis
3846
+ * // ```
3847
+ *
3848
+ * const {google} = require('googleapis');
3849
+ * const vmmigration = google.vmmigration('v1');
3850
+ *
3851
+ * async function main() {
3852
+ * const auth = new google.auth.GoogleAuth({
3853
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3854
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3855
+ * });
3856
+ *
3857
+ * // Acquire an auth client, and bind it to all future calls
3858
+ * const authClient = await auth.getClient();
3859
+ * google.options({auth: authClient});
3860
+ *
3861
+ * // Do the magic
3862
+ * const res =
3863
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.cancel({
3864
+ * // Required. The image import job id.
3865
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
3866
+ *
3867
+ * // Request body metadata
3868
+ * requestBody: {
3869
+ * // request body parameters
3870
+ * // {}
3871
+ * },
3872
+ * });
3873
+ * console.log(res.data);
3874
+ *
3875
+ * // Example response
3876
+ * // {
3877
+ * // "done": false,
3878
+ * // "error": {},
3879
+ * // "metadata": {},
3880
+ * // "name": "my_name",
3881
+ * // "response": {}
3882
+ * // }
3883
+ * }
3884
+ *
3885
+ * main().catch(e => {
3886
+ * console.error(e);
3887
+ * throw e;
3888
+ * });
3889
+ *
3890
+ * ```
3054
3891
  *
3055
3892
  * @param params - Parameters for request
3056
3893
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3065,6 +3902,63 @@ export declare namespace vmmigration_v1 {
3065
3902
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3066
3903
  /**
3067
3904
  * Gets details of a single ImageImportJob.
3905
+ * @example
3906
+ * ```js
3907
+ * // Before running the sample:
3908
+ * // - Enable the API at:
3909
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3910
+ * // - Login into gcloud by running:
3911
+ * // ```sh
3912
+ * // $ gcloud auth application-default login
3913
+ * // ```
3914
+ * // - Install the npm module by running:
3915
+ * // ```sh
3916
+ * // $ npm install googleapis
3917
+ * // ```
3918
+ *
3919
+ * const {google} = require('googleapis');
3920
+ * const vmmigration = google.vmmigration('v1');
3921
+ *
3922
+ * async function main() {
3923
+ * const auth = new google.auth.GoogleAuth({
3924
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3925
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3926
+ * });
3927
+ *
3928
+ * // Acquire an auth client, and bind it to all future calls
3929
+ * const authClient = await auth.getClient();
3930
+ * google.options({auth: authClient});
3931
+ *
3932
+ * // Do the magic
3933
+ * const res =
3934
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.get({
3935
+ * // Required. The ImageImportJob name.
3936
+ * name: 'projects/my-project/locations/my-location/imageImports/my-imageImport/imageImportJobs/my-imageImportJob',
3937
+ * });
3938
+ * console.log(res.data);
3939
+ *
3940
+ * // Example response
3941
+ * // {
3942
+ * // "cloudStorageUri": "my_cloudStorageUri",
3943
+ * // "createTime": "my_createTime",
3944
+ * // "createdResources": [],
3945
+ * // "diskImageTargetDetails": {},
3946
+ * // "endTime": "my_endTime",
3947
+ * // "errors": [],
3948
+ * // "machineImageTargetDetails": {},
3949
+ * // "name": "my_name",
3950
+ * // "state": "my_state",
3951
+ * // "steps": [],
3952
+ * // "warnings": []
3953
+ * // }
3954
+ * }
3955
+ *
3956
+ * main().catch(e => {
3957
+ * console.error(e);
3958
+ * throw e;
3959
+ * });
3960
+ *
3961
+ * ```
3068
3962
  *
3069
3963
  * @param params - Parameters for request
3070
3964
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3079,6 +3973,64 @@ export declare namespace vmmigration_v1 {
3079
3973
  get(callback: BodyResponseCallback<Schema$ImageImportJob>): void;
3080
3974
  /**
3081
3975
  * Lists ImageImportJobs in a given project.
3976
+ * @example
3977
+ * ```js
3978
+ * // Before running the sample:
3979
+ * // - Enable the API at:
3980
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
3981
+ * // - Login into gcloud by running:
3982
+ * // ```sh
3983
+ * // $ gcloud auth application-default login
3984
+ * // ```
3985
+ * // - Install the npm module by running:
3986
+ * // ```sh
3987
+ * // $ npm install googleapis
3988
+ * // ```
3989
+ *
3990
+ * const {google} = require('googleapis');
3991
+ * const vmmigration = google.vmmigration('v1');
3992
+ *
3993
+ * async function main() {
3994
+ * const auth = new google.auth.GoogleAuth({
3995
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3996
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3997
+ * });
3998
+ *
3999
+ * // Acquire an auth client, and bind it to all future calls
4000
+ * const authClient = await auth.getClient();
4001
+ * google.options({auth: authClient});
4002
+ *
4003
+ * // Do the magic
4004
+ * const res =
4005
+ * await vmmigration.projects.locations.imageImports.imageImportJobs.list({
4006
+ * // Optional. The filter request (according to AIP-160).
4007
+ * filter: 'placeholder-value',
4008
+ * // Optional. The order by fields for the result (according to AIP-132). Currently ordering is only possible by "name" field.
4009
+ * orderBy: 'placeholder-value',
4010
+ * // 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.
4011
+ * pageSize: 'placeholder-value',
4012
+ * // 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.
4013
+ * pageToken: 'placeholder-value',
4014
+ * // Required. The parent, which owns this collection of targets.
4015
+ * parent:
4016
+ * 'projects/my-project/locations/my-location/imageImports/my-imageImport',
4017
+ * });
4018
+ * console.log(res.data);
4019
+ *
4020
+ * // Example response
4021
+ * // {
4022
+ * // "imageImportJobs": [],
4023
+ * // "nextPageToken": "my_nextPageToken",
4024
+ * // "unreachable": []
4025
+ * // }
4026
+ * }
4027
+ *
4028
+ * main().catch(e => {
4029
+ * console.error(e);
4030
+ * throw e;
4031
+ * });
4032
+ *
4033
+ * ```
3082
4034
  *
3083
4035
  * @param params - Parameters for request
3084
4036
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3135,6 +4087,56 @@ export declare namespace vmmigration_v1 {
3135
4087
  constructor(context: APIRequestContext);
3136
4088
  /**
3137
4089
  * 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`.
4090
+ * @example
4091
+ * ```js
4092
+ * // Before running the sample:
4093
+ * // - Enable the API at:
4094
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4095
+ * // - Login into gcloud by running:
4096
+ * // ```sh
4097
+ * // $ gcloud auth application-default login
4098
+ * // ```
4099
+ * // - Install the npm module by running:
4100
+ * // ```sh
4101
+ * // $ npm install googleapis
4102
+ * // ```
4103
+ *
4104
+ * const {google} = require('googleapis');
4105
+ * const vmmigration = google.vmmigration('v1');
4106
+ *
4107
+ * async function main() {
4108
+ * const auth = new google.auth.GoogleAuth({
4109
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4110
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4111
+ * });
4112
+ *
4113
+ * // Acquire an auth client, and bind it to all future calls
4114
+ * const authClient = await auth.getClient();
4115
+ * google.options({auth: authClient});
4116
+ *
4117
+ * // Do the magic
4118
+ * const res = await vmmigration.projects.locations.operations.cancel({
4119
+ * // The name of the operation resource to be cancelled.
4120
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4121
+ *
4122
+ * // Request body metadata
4123
+ * requestBody: {
4124
+ * // request body parameters
4125
+ * // {}
4126
+ * },
4127
+ * });
4128
+ * console.log(res.data);
4129
+ *
4130
+ * // Example response
4131
+ * // {}
4132
+ * }
4133
+ *
4134
+ * main().catch(e => {
4135
+ * console.error(e);
4136
+ * throw e;
4137
+ * });
4138
+ *
4139
+ * ```
3138
4140
  *
3139
4141
  * @param params - Parameters for request
3140
4142
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3149,6 +4151,50 @@ export declare namespace vmmigration_v1 {
3149
4151
  cancel(callback: BodyResponseCallback<Schema$Empty>): void;
3150
4152
  /**
3151
4153
  * 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`.
4154
+ * @example
4155
+ * ```js
4156
+ * // Before running the sample:
4157
+ * // - Enable the API at:
4158
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4159
+ * // - Login into gcloud by running:
4160
+ * // ```sh
4161
+ * // $ gcloud auth application-default login
4162
+ * // ```
4163
+ * // - Install the npm module by running:
4164
+ * // ```sh
4165
+ * // $ npm install googleapis
4166
+ * // ```
4167
+ *
4168
+ * const {google} = require('googleapis');
4169
+ * const vmmigration = google.vmmigration('v1');
4170
+ *
4171
+ * async function main() {
4172
+ * const auth = new google.auth.GoogleAuth({
4173
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4174
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4175
+ * });
4176
+ *
4177
+ * // Acquire an auth client, and bind it to all future calls
4178
+ * const authClient = await auth.getClient();
4179
+ * google.options({auth: authClient});
4180
+ *
4181
+ * // Do the magic
4182
+ * const res = await vmmigration.projects.locations.operations.delete({
4183
+ * // The name of the operation resource to be deleted.
4184
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4185
+ * });
4186
+ * console.log(res.data);
4187
+ *
4188
+ * // Example response
4189
+ * // {}
4190
+ * }
4191
+ *
4192
+ * main().catch(e => {
4193
+ * console.error(e);
4194
+ * throw e;
4195
+ * });
4196
+ *
4197
+ * ```
3152
4198
  *
3153
4199
  * @param params - Parameters for request
3154
4200
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3163,6 +4209,56 @@ export declare namespace vmmigration_v1 {
3163
4209
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
3164
4210
  /**
3165
4211
  * 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.
4212
+ * @example
4213
+ * ```js
4214
+ * // Before running the sample:
4215
+ * // - Enable the API at:
4216
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4217
+ * // - Login into gcloud by running:
4218
+ * // ```sh
4219
+ * // $ gcloud auth application-default login
4220
+ * // ```
4221
+ * // - Install the npm module by running:
4222
+ * // ```sh
4223
+ * // $ npm install googleapis
4224
+ * // ```
4225
+ *
4226
+ * const {google} = require('googleapis');
4227
+ * const vmmigration = google.vmmigration('v1');
4228
+ *
4229
+ * async function main() {
4230
+ * const auth = new google.auth.GoogleAuth({
4231
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4232
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4233
+ * });
4234
+ *
4235
+ * // Acquire an auth client, and bind it to all future calls
4236
+ * const authClient = await auth.getClient();
4237
+ * google.options({auth: authClient});
4238
+ *
4239
+ * // Do the magic
4240
+ * const res = await vmmigration.projects.locations.operations.get({
4241
+ * // The name of the operation resource.
4242
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4243
+ * });
4244
+ * console.log(res.data);
4245
+ *
4246
+ * // Example response
4247
+ * // {
4248
+ * // "done": false,
4249
+ * // "error": {},
4250
+ * // "metadata": {},
4251
+ * // "name": "my_name",
4252
+ * // "response": {}
4253
+ * // }
4254
+ * }
4255
+ *
4256
+ * main().catch(e => {
4257
+ * console.error(e);
4258
+ * throw e;
4259
+ * });
4260
+ *
4261
+ * ```
3166
4262
  *
3167
4263
  * @param params - Parameters for request
3168
4264
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3177,6 +4273,59 @@ export declare namespace vmmigration_v1 {
3177
4273
  get(callback: BodyResponseCallback<Schema$Operation>): void;
3178
4274
  /**
3179
4275
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
4276
+ * @example
4277
+ * ```js
4278
+ * // Before running the sample:
4279
+ * // - Enable the API at:
4280
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4281
+ * // - Login into gcloud by running:
4282
+ * // ```sh
4283
+ * // $ gcloud auth application-default login
4284
+ * // ```
4285
+ * // - Install the npm module by running:
4286
+ * // ```sh
4287
+ * // $ npm install googleapis
4288
+ * // ```
4289
+ *
4290
+ * const {google} = require('googleapis');
4291
+ * const vmmigration = google.vmmigration('v1');
4292
+ *
4293
+ * async function main() {
4294
+ * const auth = new google.auth.GoogleAuth({
4295
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4296
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4297
+ * });
4298
+ *
4299
+ * // Acquire an auth client, and bind it to all future calls
4300
+ * const authClient = await auth.getClient();
4301
+ * google.options({auth: authClient});
4302
+ *
4303
+ * // Do the magic
4304
+ * const res = await vmmigration.projects.locations.operations.list({
4305
+ * // The standard list filter.
4306
+ * filter: 'placeholder-value',
4307
+ * // The name of the operation's parent resource.
4308
+ * name: 'projects/my-project/locations/my-location',
4309
+ * // The standard list page size.
4310
+ * pageSize: 'placeholder-value',
4311
+ * // The standard list page token.
4312
+ * pageToken: 'placeholder-value',
4313
+ * });
4314
+ * console.log(res.data);
4315
+ *
4316
+ * // Example response
4317
+ * // {
4318
+ * // "nextPageToken": "my_nextPageToken",
4319
+ * // "operations": []
4320
+ * // }
4321
+ * }
4322
+ *
4323
+ * main().catch(e => {
4324
+ * console.error(e);
4325
+ * throw e;
4326
+ * });
4327
+ *
4328
+ * ```
3180
4329
  *
3181
4330
  * @param params - Parameters for request
3182
4331
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3238,6 +4387,76 @@ export declare namespace vmmigration_v1 {
3238
4387
  constructor(context: APIRequestContext);
3239
4388
  /**
3240
4389
  * Creates a new Source in a given project and location.
4390
+ * @example
4391
+ * ```js
4392
+ * // Before running the sample:
4393
+ * // - Enable the API at:
4394
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4395
+ * // - Login into gcloud by running:
4396
+ * // ```sh
4397
+ * // $ gcloud auth application-default login
4398
+ * // ```
4399
+ * // - Install the npm module by running:
4400
+ * // ```sh
4401
+ * // $ npm install googleapis
4402
+ * // ```
4403
+ *
4404
+ * const {google} = require('googleapis');
4405
+ * const vmmigration = google.vmmigration('v1');
4406
+ *
4407
+ * async function main() {
4408
+ * const auth = new google.auth.GoogleAuth({
4409
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4410
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4411
+ * });
4412
+ *
4413
+ * // Acquire an auth client, and bind it to all future calls
4414
+ * const authClient = await auth.getClient();
4415
+ * google.options({auth: authClient});
4416
+ *
4417
+ * // Do the magic
4418
+ * const res = await vmmigration.projects.locations.sources.create({
4419
+ * // Required. The Source's parent.
4420
+ * parent: 'projects/my-project/locations/my-location',
4421
+ * // 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).
4422
+ * requestId: 'placeholder-value',
4423
+ * // Required. The source identifier.
4424
+ * sourceId: 'placeholder-value',
4425
+ *
4426
+ * // Request body metadata
4427
+ * requestBody: {
4428
+ * // request body parameters
4429
+ * // {
4430
+ * // "aws": {},
4431
+ * // "azure": {},
4432
+ * // "createTime": "my_createTime",
4433
+ * // "description": "my_description",
4434
+ * // "encryption": {},
4435
+ * // "labels": {},
4436
+ * // "name": "my_name",
4437
+ * // "updateTime": "my_updateTime",
4438
+ * // "vmware": {}
4439
+ * // }
4440
+ * },
4441
+ * });
4442
+ * console.log(res.data);
4443
+ *
4444
+ * // Example response
4445
+ * // {
4446
+ * // "done": false,
4447
+ * // "error": {},
4448
+ * // "metadata": {},
4449
+ * // "name": "my_name",
4450
+ * // "response": {}
4451
+ * // }
4452
+ * }
4453
+ *
4454
+ * main().catch(e => {
4455
+ * console.error(e);
4456
+ * throw e;
4457
+ * });
4458
+ *
4459
+ * ```
3241
4460
  *
3242
4461
  * @param params - Parameters for request
3243
4462
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3252,6 +4471,58 @@ export declare namespace vmmigration_v1 {
3252
4471
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3253
4472
  /**
3254
4473
  * Deletes a single Source.
4474
+ * @example
4475
+ * ```js
4476
+ * // Before running the sample:
4477
+ * // - Enable the API at:
4478
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4479
+ * // - Login into gcloud by running:
4480
+ * // ```sh
4481
+ * // $ gcloud auth application-default login
4482
+ * // ```
4483
+ * // - Install the npm module by running:
4484
+ * // ```sh
4485
+ * // $ npm install googleapis
4486
+ * // ```
4487
+ *
4488
+ * const {google} = require('googleapis');
4489
+ * const vmmigration = google.vmmigration('v1');
4490
+ *
4491
+ * async function main() {
4492
+ * const auth = new google.auth.GoogleAuth({
4493
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4494
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4495
+ * });
4496
+ *
4497
+ * // Acquire an auth client, and bind it to all future calls
4498
+ * const authClient = await auth.getClient();
4499
+ * google.options({auth: authClient});
4500
+ *
4501
+ * // Do the magic
4502
+ * const res = await vmmigration.projects.locations.sources.delete({
4503
+ * // Required. The Source name.
4504
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4505
+ * // 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).
4506
+ * requestId: 'placeholder-value',
4507
+ * });
4508
+ * console.log(res.data);
4509
+ *
4510
+ * // Example response
4511
+ * // {
4512
+ * // "done": false,
4513
+ * // "error": {},
4514
+ * // "metadata": {},
4515
+ * // "name": "my_name",
4516
+ * // "response": {}
4517
+ * // }
4518
+ * }
4519
+ *
4520
+ * main().catch(e => {
4521
+ * console.error(e);
4522
+ * throw e;
4523
+ * });
4524
+ *
4525
+ * ```
3255
4526
  *
3256
4527
  * @param params - Parameters for request
3257
4528
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3266,6 +4537,62 @@ export declare namespace vmmigration_v1 {
3266
4537
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
3267
4538
  /**
3268
4539
  * 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.
4540
+ * @example
4541
+ * ```js
4542
+ * // Before running the sample:
4543
+ * // - Enable the API at:
4544
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4545
+ * // - Login into gcloud by running:
4546
+ * // ```sh
4547
+ * // $ gcloud auth application-default login
4548
+ * // ```
4549
+ * // - Install the npm module by running:
4550
+ * // ```sh
4551
+ * // $ npm install googleapis
4552
+ * // ```
4553
+ *
4554
+ * const {google} = require('googleapis');
4555
+ * const vmmigration = google.vmmigration('v1');
4556
+ *
4557
+ * async function main() {
4558
+ * const auth = new google.auth.GoogleAuth({
4559
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4560
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4561
+ * });
4562
+ *
4563
+ * // Acquire an auth client, and bind it to all future calls
4564
+ * const authClient = await auth.getClient();
4565
+ * google.options({auth: authClient});
4566
+ *
4567
+ * // Do the magic
4568
+ * const res = await vmmigration.projects.locations.sources.fetchInventory({
4569
+ * // 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.
4570
+ * forceRefresh: 'placeholder-value',
4571
+ * // 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.
4572
+ * pageSize: 'placeholder-value',
4573
+ * // 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.
4574
+ * pageToken: 'placeholder-value',
4575
+ * // Required. The name of the Source.
4576
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
4577
+ * });
4578
+ * console.log(res.data);
4579
+ *
4580
+ * // Example response
4581
+ * // {
4582
+ * // "awsVms": {},
4583
+ * // "azureVms": {},
4584
+ * // "nextPageToken": "my_nextPageToken",
4585
+ * // "updateTime": "my_updateTime",
4586
+ * // "vmwareVms": {}
4587
+ * // }
4588
+ * }
4589
+ *
4590
+ * main().catch(e => {
4591
+ * console.error(e);
4592
+ * throw e;
4593
+ * });
4594
+ *
4595
+ * ```
3269
4596
  *
3270
4597
  * @param params - Parameters for request
3271
4598
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3280,6 +4607,60 @@ export declare namespace vmmigration_v1 {
3280
4607
  fetchInventory(callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
3281
4608
  /**
3282
4609
  * Gets details of a single Source.
4610
+ * @example
4611
+ * ```js
4612
+ * // Before running the sample:
4613
+ * // - Enable the API at:
4614
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4615
+ * // - Login into gcloud by running:
4616
+ * // ```sh
4617
+ * // $ gcloud auth application-default login
4618
+ * // ```
4619
+ * // - Install the npm module by running:
4620
+ * // ```sh
4621
+ * // $ npm install googleapis
4622
+ * // ```
4623
+ *
4624
+ * const {google} = require('googleapis');
4625
+ * const vmmigration = google.vmmigration('v1');
4626
+ *
4627
+ * async function main() {
4628
+ * const auth = new google.auth.GoogleAuth({
4629
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4630
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4631
+ * });
4632
+ *
4633
+ * // Acquire an auth client, and bind it to all future calls
4634
+ * const authClient = await auth.getClient();
4635
+ * google.options({auth: authClient});
4636
+ *
4637
+ * // Do the magic
4638
+ * const res = await vmmigration.projects.locations.sources.get({
4639
+ * // Required. The Source name.
4640
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4641
+ * });
4642
+ * console.log(res.data);
4643
+ *
4644
+ * // Example response
4645
+ * // {
4646
+ * // "aws": {},
4647
+ * // "azure": {},
4648
+ * // "createTime": "my_createTime",
4649
+ * // "description": "my_description",
4650
+ * // "encryption": {},
4651
+ * // "labels": {},
4652
+ * // "name": "my_name",
4653
+ * // "updateTime": "my_updateTime",
4654
+ * // "vmware": {}
4655
+ * // }
4656
+ * }
4657
+ *
4658
+ * main().catch(e => {
4659
+ * console.error(e);
4660
+ * throw e;
4661
+ * });
4662
+ *
4663
+ * ```
3283
4664
  *
3284
4665
  * @param params - Parameters for request
3285
4666
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3294,6 +4675,62 @@ export declare namespace vmmigration_v1 {
3294
4675
  get(callback: BodyResponseCallback<Schema$Source>): void;
3295
4676
  /**
3296
4677
  * Lists Sources in a given project and location.
4678
+ * @example
4679
+ * ```js
4680
+ * // Before running the sample:
4681
+ * // - Enable the API at:
4682
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4683
+ * // - Login into gcloud by running:
4684
+ * // ```sh
4685
+ * // $ gcloud auth application-default login
4686
+ * // ```
4687
+ * // - Install the npm module by running:
4688
+ * // ```sh
4689
+ * // $ npm install googleapis
4690
+ * // ```
4691
+ *
4692
+ * const {google} = require('googleapis');
4693
+ * const vmmigration = google.vmmigration('v1');
4694
+ *
4695
+ * async function main() {
4696
+ * const auth = new google.auth.GoogleAuth({
4697
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4698
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4699
+ * });
4700
+ *
4701
+ * // Acquire an auth client, and bind it to all future calls
4702
+ * const authClient = await auth.getClient();
4703
+ * google.options({auth: authClient});
4704
+ *
4705
+ * // Do the magic
4706
+ * const res = await vmmigration.projects.locations.sources.list({
4707
+ * // Optional. The filter request.
4708
+ * filter: 'placeholder-value',
4709
+ * // Optional. the order by fields for the result.
4710
+ * orderBy: 'placeholder-value',
4711
+ * // 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.
4712
+ * pageSize: 'placeholder-value',
4713
+ * // 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.
4714
+ * pageToken: 'placeholder-value',
4715
+ * // Required. The parent, which owns this collection of sources.
4716
+ * parent: 'projects/my-project/locations/my-location',
4717
+ * });
4718
+ * console.log(res.data);
4719
+ *
4720
+ * // Example response
4721
+ * // {
4722
+ * // "nextPageToken": "my_nextPageToken",
4723
+ * // "sources": [],
4724
+ * // "unreachable": []
4725
+ * // }
4726
+ * }
4727
+ *
4728
+ * main().catch(e => {
4729
+ * console.error(e);
4730
+ * throw e;
4731
+ * });
4732
+ *
4733
+ * ```
3297
4734
  *
3298
4735
  * @param params - Parameters for request
3299
4736
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3308,6 +4745,76 @@ export declare namespace vmmigration_v1 {
3308
4745
  list(callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
3309
4746
  /**
3310
4747
  * Updates the parameters of a single Source.
4748
+ * @example
4749
+ * ```js
4750
+ * // Before running the sample:
4751
+ * // - Enable the API at:
4752
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4753
+ * // - Login into gcloud by running:
4754
+ * // ```sh
4755
+ * // $ gcloud auth application-default login
4756
+ * // ```
4757
+ * // - Install the npm module by running:
4758
+ * // ```sh
4759
+ * // $ npm install googleapis
4760
+ * // ```
4761
+ *
4762
+ * const {google} = require('googleapis');
4763
+ * const vmmigration = google.vmmigration('v1');
4764
+ *
4765
+ * async function main() {
4766
+ * const auth = new google.auth.GoogleAuth({
4767
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4768
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4769
+ * });
4770
+ *
4771
+ * // Acquire an auth client, and bind it to all future calls
4772
+ * const authClient = await auth.getClient();
4773
+ * google.options({auth: authClient});
4774
+ *
4775
+ * // Do the magic
4776
+ * const res = await vmmigration.projects.locations.sources.patch({
4777
+ * // Output only. The Source name.
4778
+ * name: 'projects/my-project/locations/my-location/sources/my-source',
4779
+ * // 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).
4780
+ * requestId: 'placeholder-value',
4781
+ * // 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.
4782
+ * updateMask: 'placeholder-value',
4783
+ *
4784
+ * // Request body metadata
4785
+ * requestBody: {
4786
+ * // request body parameters
4787
+ * // {
4788
+ * // "aws": {},
4789
+ * // "azure": {},
4790
+ * // "createTime": "my_createTime",
4791
+ * // "description": "my_description",
4792
+ * // "encryption": {},
4793
+ * // "labels": {},
4794
+ * // "name": "my_name",
4795
+ * // "updateTime": "my_updateTime",
4796
+ * // "vmware": {}
4797
+ * // }
4798
+ * },
4799
+ * });
4800
+ * console.log(res.data);
4801
+ *
4802
+ * // Example response
4803
+ * // {
4804
+ * // "done": false,
4805
+ * // "error": {},
4806
+ * // "metadata": {},
4807
+ * // "name": "my_name",
4808
+ * // "response": {}
4809
+ * // }
4810
+ * }
4811
+ *
4812
+ * main().catch(e => {
4813
+ * console.error(e);
4814
+ * throw e;
4815
+ * });
4816
+ *
4817
+ * ```
3311
4818
  *
3312
4819
  * @param params - Parameters for request
3313
4820
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3418,6 +4925,82 @@ export declare namespace vmmigration_v1 {
3418
4925
  constructor(context: APIRequestContext);
3419
4926
  /**
3420
4927
  * Creates a new DatacenterConnector in a given Source.
4928
+ * @example
4929
+ * ```js
4930
+ * // Before running the sample:
4931
+ * // - Enable the API at:
4932
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
4933
+ * // - Login into gcloud by running:
4934
+ * // ```sh
4935
+ * // $ gcloud auth application-default login
4936
+ * // ```
4937
+ * // - Install the npm module by running:
4938
+ * // ```sh
4939
+ * // $ npm install googleapis
4940
+ * // ```
4941
+ *
4942
+ * const {google} = require('googleapis');
4943
+ * const vmmigration = google.vmmigration('v1');
4944
+ *
4945
+ * async function main() {
4946
+ * const auth = new google.auth.GoogleAuth({
4947
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4948
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4949
+ * });
4950
+ *
4951
+ * // Acquire an auth client, and bind it to all future calls
4952
+ * const authClient = await auth.getClient();
4953
+ * google.options({auth: authClient});
4954
+ *
4955
+ * // Do the magic
4956
+ * const res =
4957
+ * await vmmigration.projects.locations.sources.datacenterConnectors.create({
4958
+ * // Required. The datacenterConnector identifier.
4959
+ * datacenterConnectorId: 'placeholder-value',
4960
+ * // 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`
4961
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
4962
+ * // 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).
4963
+ * requestId: 'placeholder-value',
4964
+ *
4965
+ * // Request body metadata
4966
+ * requestBody: {
4967
+ * // request body parameters
4968
+ * // {
4969
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
4970
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
4971
+ * // "availableVersions": {},
4972
+ * // "bucket": "my_bucket",
4973
+ * // "createTime": "my_createTime",
4974
+ * // "error": {},
4975
+ * // "name": "my_name",
4976
+ * // "registrationId": "my_registrationId",
4977
+ * // "serviceAccount": "my_serviceAccount",
4978
+ * // "state": "my_state",
4979
+ * // "stateTime": "my_stateTime",
4980
+ * // "updateTime": "my_updateTime",
4981
+ * // "upgradeStatus": {},
4982
+ * // "version": "my_version"
4983
+ * // }
4984
+ * },
4985
+ * });
4986
+ * console.log(res.data);
4987
+ *
4988
+ * // Example response
4989
+ * // {
4990
+ * // "done": false,
4991
+ * // "error": {},
4992
+ * // "metadata": {},
4993
+ * // "name": "my_name",
4994
+ * // "response": {}
4995
+ * // }
4996
+ * }
4997
+ *
4998
+ * main().catch(e => {
4999
+ * console.error(e);
5000
+ * throw e;
5001
+ * });
5002
+ *
5003
+ * ```
3421
5004
  *
3422
5005
  * @param params - Parameters for request
3423
5006
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3432,6 +5015,59 @@ export declare namespace vmmigration_v1 {
3432
5015
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3433
5016
  /**
3434
5017
  * Deletes a single DatacenterConnector.
5018
+ * @example
5019
+ * ```js
5020
+ * // Before running the sample:
5021
+ * // - Enable the API at:
5022
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5023
+ * // - Login into gcloud by running:
5024
+ * // ```sh
5025
+ * // $ gcloud auth application-default login
5026
+ * // ```
5027
+ * // - Install the npm module by running:
5028
+ * // ```sh
5029
+ * // $ npm install googleapis
5030
+ * // ```
5031
+ *
5032
+ * const {google} = require('googleapis');
5033
+ * const vmmigration = google.vmmigration('v1');
5034
+ *
5035
+ * async function main() {
5036
+ * const auth = new google.auth.GoogleAuth({
5037
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5038
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5039
+ * });
5040
+ *
5041
+ * // Acquire an auth client, and bind it to all future calls
5042
+ * const authClient = await auth.getClient();
5043
+ * google.options({auth: authClient});
5044
+ *
5045
+ * // Do the magic
5046
+ * const res =
5047
+ * await vmmigration.projects.locations.sources.datacenterConnectors.delete({
5048
+ * // Required. The DatacenterConnector name.
5049
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5050
+ * // 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).
5051
+ * requestId: 'placeholder-value',
5052
+ * });
5053
+ * console.log(res.data);
5054
+ *
5055
+ * // Example response
5056
+ * // {
5057
+ * // "done": false,
5058
+ * // "error": {},
5059
+ * // "metadata": {},
5060
+ * // "name": "my_name",
5061
+ * // "response": {}
5062
+ * // }
5063
+ * }
5064
+ *
5065
+ * main().catch(e => {
5066
+ * console.error(e);
5067
+ * throw e;
5068
+ * });
5069
+ *
5070
+ * ```
3435
5071
  *
3436
5072
  * @param params - Parameters for request
3437
5073
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3446,6 +5082,66 @@ export declare namespace vmmigration_v1 {
3446
5082
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
3447
5083
  /**
3448
5084
  * Gets details of a single DatacenterConnector.
5085
+ * @example
5086
+ * ```js
5087
+ * // Before running the sample:
5088
+ * // - Enable the API at:
5089
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5090
+ * // - Login into gcloud by running:
5091
+ * // ```sh
5092
+ * // $ gcloud auth application-default login
5093
+ * // ```
5094
+ * // - Install the npm module by running:
5095
+ * // ```sh
5096
+ * // $ npm install googleapis
5097
+ * // ```
5098
+ *
5099
+ * const {google} = require('googleapis');
5100
+ * const vmmigration = google.vmmigration('v1');
5101
+ *
5102
+ * async function main() {
5103
+ * const auth = new google.auth.GoogleAuth({
5104
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5105
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5106
+ * });
5107
+ *
5108
+ * // Acquire an auth client, and bind it to all future calls
5109
+ * const authClient = await auth.getClient();
5110
+ * google.options({auth: authClient});
5111
+ *
5112
+ * // Do the magic
5113
+ * const res =
5114
+ * await vmmigration.projects.locations.sources.datacenterConnectors.get({
5115
+ * // Required. The name of the DatacenterConnector.
5116
+ * name: 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5117
+ * });
5118
+ * console.log(res.data);
5119
+ *
5120
+ * // Example response
5121
+ * // {
5122
+ * // "applianceInfrastructureVersion": "my_applianceInfrastructureVersion",
5123
+ * // "applianceSoftwareVersion": "my_applianceSoftwareVersion",
5124
+ * // "availableVersions": {},
5125
+ * // "bucket": "my_bucket",
5126
+ * // "createTime": "my_createTime",
5127
+ * // "error": {},
5128
+ * // "name": "my_name",
5129
+ * // "registrationId": "my_registrationId",
5130
+ * // "serviceAccount": "my_serviceAccount",
5131
+ * // "state": "my_state",
5132
+ * // "stateTime": "my_stateTime",
5133
+ * // "updateTime": "my_updateTime",
5134
+ * // "upgradeStatus": {},
5135
+ * // "version": "my_version"
5136
+ * // }
5137
+ * }
5138
+ *
5139
+ * main().catch(e => {
5140
+ * console.error(e);
5141
+ * throw e;
5142
+ * });
5143
+ *
5144
+ * ```
3449
5145
  *
3450
5146
  * @param params - Parameters for request
3451
5147
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3460,6 +5156,63 @@ export declare namespace vmmigration_v1 {
3460
5156
  get(callback: BodyResponseCallback<Schema$DatacenterConnector>): void;
3461
5157
  /**
3462
5158
  * Lists DatacenterConnectors in a given Source.
5159
+ * @example
5160
+ * ```js
5161
+ * // Before running the sample:
5162
+ * // - Enable the API at:
5163
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5164
+ * // - Login into gcloud by running:
5165
+ * // ```sh
5166
+ * // $ gcloud auth application-default login
5167
+ * // ```
5168
+ * // - Install the npm module by running:
5169
+ * // ```sh
5170
+ * // $ npm install googleapis
5171
+ * // ```
5172
+ *
5173
+ * const {google} = require('googleapis');
5174
+ * const vmmigration = google.vmmigration('v1');
5175
+ *
5176
+ * async function main() {
5177
+ * const auth = new google.auth.GoogleAuth({
5178
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5179
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5180
+ * });
5181
+ *
5182
+ * // Acquire an auth client, and bind it to all future calls
5183
+ * const authClient = await auth.getClient();
5184
+ * google.options({auth: authClient});
5185
+ *
5186
+ * // Do the magic
5187
+ * const res =
5188
+ * await vmmigration.projects.locations.sources.datacenterConnectors.list({
5189
+ * // Optional. The filter request.
5190
+ * filter: 'placeholder-value',
5191
+ * // Optional. the order by fields for the result.
5192
+ * orderBy: 'placeholder-value',
5193
+ * // 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.
5194
+ * pageSize: 'placeholder-value',
5195
+ * // 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.
5196
+ * pageToken: 'placeholder-value',
5197
+ * // Required. The parent, which owns this collection of connectors.
5198
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5199
+ * });
5200
+ * console.log(res.data);
5201
+ *
5202
+ * // Example response
5203
+ * // {
5204
+ * // "datacenterConnectors": [],
5205
+ * // "nextPageToken": "my_nextPageToken",
5206
+ * // "unreachable": []
5207
+ * // }
5208
+ * }
5209
+ *
5210
+ * main().catch(e => {
5211
+ * console.error(e);
5212
+ * throw e;
5213
+ * });
5214
+ *
5215
+ * ```
3463
5216
  *
3464
5217
  * @param params - Parameters for request
3465
5218
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3474,6 +5227,68 @@ export declare namespace vmmigration_v1 {
3474
5227
  list(callback: BodyResponseCallback<Schema$ListDatacenterConnectorsResponse>): void;
3475
5228
  /**
3476
5229
  * Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
5230
+ * @example
5231
+ * ```js
5232
+ * // Before running the sample:
5233
+ * // - Enable the API at:
5234
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5235
+ * // - Login into gcloud by running:
5236
+ * // ```sh
5237
+ * // $ gcloud auth application-default login
5238
+ * // ```
5239
+ * // - Install the npm module by running:
5240
+ * // ```sh
5241
+ * // $ npm install googleapis
5242
+ * // ```
5243
+ *
5244
+ * const {google} = require('googleapis');
5245
+ * const vmmigration = google.vmmigration('v1');
5246
+ *
5247
+ * async function main() {
5248
+ * const auth = new google.auth.GoogleAuth({
5249
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5250
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5251
+ * });
5252
+ *
5253
+ * // Acquire an auth client, and bind it to all future calls
5254
+ * const authClient = await auth.getClient();
5255
+ * google.options({auth: authClient});
5256
+ *
5257
+ * // Do the magic
5258
+ * const res =
5259
+ * await vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance(
5260
+ * {
5261
+ * // Required. The DatacenterConnector name.
5262
+ * datacenterConnector:
5263
+ * 'projects/my-project/locations/my-location/sources/my-source/datacenterConnectors/my-datacenterConnector',
5264
+ *
5265
+ * // Request body metadata
5266
+ * requestBody: {
5267
+ * // request body parameters
5268
+ * // {
5269
+ * // "requestId": "my_requestId"
5270
+ * // }
5271
+ * },
5272
+ * },
5273
+ * );
5274
+ * console.log(res.data);
5275
+ *
5276
+ * // Example response
5277
+ * // {
5278
+ * // "done": false,
5279
+ * // "error": {},
5280
+ * // "metadata": {},
5281
+ * // "name": "my_name",
5282
+ * // "response": {}
5283
+ * // }
5284
+ * }
5285
+ *
5286
+ * main().catch(e => {
5287
+ * console.error(e);
5288
+ * throw e;
5289
+ * });
5290
+ *
5291
+ * ```
3477
5292
  *
3478
5293
  * @param params - Parameters for request
3479
5294
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3561,6 +5376,91 @@ export declare namespace vmmigration_v1 {
3561
5376
  constructor(context: APIRequestContext);
3562
5377
  /**
3563
5378
  * Creates a new MigratingVm in a given Source.
5379
+ * @example
5380
+ * ```js
5381
+ * // Before running the sample:
5382
+ * // - Enable the API at:
5383
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5384
+ * // - Login into gcloud by running:
5385
+ * // ```sh
5386
+ * // $ gcloud auth application-default login
5387
+ * // ```
5388
+ * // - Install the npm module by running:
5389
+ * // ```sh
5390
+ * // $ npm install googleapis
5391
+ * // ```
5392
+ *
5393
+ * const {google} = require('googleapis');
5394
+ * const vmmigration = google.vmmigration('v1');
5395
+ *
5396
+ * async function main() {
5397
+ * const auth = new google.auth.GoogleAuth({
5398
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5399
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5400
+ * });
5401
+ *
5402
+ * // Acquire an auth client, and bind it to all future calls
5403
+ * const authClient = await auth.getClient();
5404
+ * google.options({auth: authClient});
5405
+ *
5406
+ * // Do the magic
5407
+ * const res = await vmmigration.projects.locations.sources.migratingVms.create({
5408
+ * // Required. The migratingVm identifier.
5409
+ * migratingVmId: 'placeholder-value',
5410
+ * // Required. The MigratingVm's parent.
5411
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5412
+ * // 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).
5413
+ * requestId: 'placeholder-value',
5414
+ *
5415
+ * // Request body metadata
5416
+ * requestBody: {
5417
+ * // request body parameters
5418
+ * // {
5419
+ * // "awsSourceVmDetails": {},
5420
+ * // "azureSourceVmDetails": {},
5421
+ * // "computeEngineDisksTargetDefaults": {},
5422
+ * // "computeEngineTargetDefaults": {},
5423
+ * // "createTime": "my_createTime",
5424
+ * // "currentSyncInfo": {},
5425
+ * // "cutoverForecast": {},
5426
+ * // "description": "my_description",
5427
+ * // "displayName": "my_displayName",
5428
+ * // "error": {},
5429
+ * // "expiration": {},
5430
+ * // "group": "my_group",
5431
+ * // "labels": {},
5432
+ * // "lastReplicationCycle": {},
5433
+ * // "lastSync": {},
5434
+ * // "name": "my_name",
5435
+ * // "policy": {},
5436
+ * // "recentCloneJobs": [],
5437
+ * // "recentCutoverJobs": [],
5438
+ * // "sourceVmId": "my_sourceVmId",
5439
+ * // "state": "my_state",
5440
+ * // "stateTime": "my_stateTime",
5441
+ * // "updateTime": "my_updateTime",
5442
+ * // "vmwareSourceVmDetails": {}
5443
+ * // }
5444
+ * },
5445
+ * });
5446
+ * console.log(res.data);
5447
+ *
5448
+ * // Example response
5449
+ * // {
5450
+ * // "done": false,
5451
+ * // "error": {},
5452
+ * // "metadata": {},
5453
+ * // "name": "my_name",
5454
+ * // "response": {}
5455
+ * // }
5456
+ * }
5457
+ *
5458
+ * main().catch(e => {
5459
+ * console.error(e);
5460
+ * throw e;
5461
+ * });
5462
+ *
5463
+ * ```
3564
5464
  *
3565
5465
  * @param params - Parameters for request
3566
5466
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3575,6 +5475,56 @@ export declare namespace vmmigration_v1 {
3575
5475
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3576
5476
  /**
3577
5477
  * Deletes a single MigratingVm.
5478
+ * @example
5479
+ * ```js
5480
+ * // Before running the sample:
5481
+ * // - Enable the API at:
5482
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5483
+ * // - Login into gcloud by running:
5484
+ * // ```sh
5485
+ * // $ gcloud auth application-default login
5486
+ * // ```
5487
+ * // - Install the npm module by running:
5488
+ * // ```sh
5489
+ * // $ npm install googleapis
5490
+ * // ```
5491
+ *
5492
+ * const {google} = require('googleapis');
5493
+ * const vmmigration = google.vmmigration('v1');
5494
+ *
5495
+ * async function main() {
5496
+ * const auth = new google.auth.GoogleAuth({
5497
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5498
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5499
+ * });
5500
+ *
5501
+ * // Acquire an auth client, and bind it to all future calls
5502
+ * const authClient = await auth.getClient();
5503
+ * google.options({auth: authClient});
5504
+ *
5505
+ * // Do the magic
5506
+ * const res = await vmmigration.projects.locations.sources.migratingVms.delete({
5507
+ * // Required. The name of the MigratingVm.
5508
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5509
+ * });
5510
+ * console.log(res.data);
5511
+ *
5512
+ * // Example response
5513
+ * // {
5514
+ * // "done": false,
5515
+ * // "error": {},
5516
+ * // "metadata": {},
5517
+ * // "name": "my_name",
5518
+ * // "response": {}
5519
+ * // }
5520
+ * }
5521
+ *
5522
+ * main().catch(e => {
5523
+ * console.error(e);
5524
+ * throw e;
5525
+ * });
5526
+ *
5527
+ * ```
3578
5528
  *
3579
5529
  * @param params - Parameters for request
3580
5530
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3587,8 +5537,140 @@ export declare namespace vmmigration_v1 {
3587
5537
  delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3588
5538
  delete(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
3589
5539
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
5540
+ /**
5541
+ * Extend the migrating VM time to live.
5542
+ * @example
5543
+ * ```js
5544
+ * // Before running the sample:
5545
+ * // - Enable the API at:
5546
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5547
+ * // - Login into gcloud by running:
5548
+ * // ```sh
5549
+ * // $ gcloud auth application-default login
5550
+ * // ```
5551
+ * // - Install the npm module by running:
5552
+ * // ```sh
5553
+ * // $ npm install googleapis
5554
+ * // ```
5555
+ *
5556
+ * const {google} = require('googleapis');
5557
+ * const vmmigration = google.vmmigration('v1');
5558
+ *
5559
+ * async function main() {
5560
+ * const auth = new google.auth.GoogleAuth({
5561
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5562
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5563
+ * });
5564
+ *
5565
+ * // Acquire an auth client, and bind it to all future calls
5566
+ * const authClient = await auth.getClient();
5567
+ * google.options({auth: authClient});
5568
+ *
5569
+ * // Do the magic
5570
+ * const res =
5571
+ * await vmmigration.projects.locations.sources.migratingVms.extendMigration({
5572
+ * // Required. The name of the MigratingVm.
5573
+ * migratingVm:
5574
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5575
+ *
5576
+ * // Request body metadata
5577
+ * requestBody: {
5578
+ * // request body parameters
5579
+ * // {}
5580
+ * },
5581
+ * });
5582
+ * console.log(res.data);
5583
+ *
5584
+ * // Example response
5585
+ * // {
5586
+ * // "done": false,
5587
+ * // "error": {},
5588
+ * // "metadata": {},
5589
+ * // "name": "my_name",
5590
+ * // "response": {}
5591
+ * // }
5592
+ * }
5593
+ *
5594
+ * main().catch(e => {
5595
+ * console.error(e);
5596
+ * throw e;
5597
+ * });
5598
+ *
5599
+ * ```
5600
+ *
5601
+ * @param params - Parameters for request
5602
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5603
+ * @param callback - Optional callback that handles the response.
5604
+ * @returns A promise if used with async/await, or void if used with a callback.
5605
+ */
5606
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5607
+ extendMigration(params?: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5608
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5609
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5610
+ extendMigration(params: Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration, callback: BodyResponseCallback<Schema$Operation>): void;
5611
+ extendMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3590
5612
  /**
3591
5613
  * Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
5614
+ * @example
5615
+ * ```js
5616
+ * // Before running the sample:
5617
+ * // - Enable the API at:
5618
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5619
+ * // - Login into gcloud by running:
5620
+ * // ```sh
5621
+ * // $ gcloud auth application-default login
5622
+ * // ```
5623
+ * // - Install the npm module by running:
5624
+ * // ```sh
5625
+ * // $ npm install googleapis
5626
+ * // ```
5627
+ *
5628
+ * const {google} = require('googleapis');
5629
+ * const vmmigration = google.vmmigration('v1');
5630
+ *
5631
+ * async function main() {
5632
+ * const auth = new google.auth.GoogleAuth({
5633
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5634
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5635
+ * });
5636
+ *
5637
+ * // Acquire an auth client, and bind it to all future calls
5638
+ * const authClient = await auth.getClient();
5639
+ * google.options({auth: authClient});
5640
+ *
5641
+ * // Do the magic
5642
+ * const res =
5643
+ * await vmmigration.projects.locations.sources.migratingVms.finalizeMigration(
5644
+ * {
5645
+ * // Required. The name of the MigratingVm.
5646
+ * migratingVm:
5647
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5648
+ *
5649
+ * // Request body metadata
5650
+ * requestBody: {
5651
+ * // request body parameters
5652
+ * // {}
5653
+ * },
5654
+ * },
5655
+ * );
5656
+ * console.log(res.data);
5657
+ *
5658
+ * // Example response
5659
+ * // {
5660
+ * // "done": false,
5661
+ * // "error": {},
5662
+ * // "metadata": {},
5663
+ * // "name": "my_name",
5664
+ * // "response": {}
5665
+ * // }
5666
+ * }
5667
+ *
5668
+ * main().catch(e => {
5669
+ * console.error(e);
5670
+ * throw e;
5671
+ * });
5672
+ *
5673
+ * ```
3592
5674
  *
3593
5675
  * @param params - Parameters for request
3594
5676
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3603,6 +5685,77 @@ export declare namespace vmmigration_v1 {
3603
5685
  finalizeMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3604
5686
  /**
3605
5687
  * Gets details of a single MigratingVm.
5688
+ * @example
5689
+ * ```js
5690
+ * // Before running the sample:
5691
+ * // - Enable the API at:
5692
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5693
+ * // - Login into gcloud by running:
5694
+ * // ```sh
5695
+ * // $ gcloud auth application-default login
5696
+ * // ```
5697
+ * // - Install the npm module by running:
5698
+ * // ```sh
5699
+ * // $ npm install googleapis
5700
+ * // ```
5701
+ *
5702
+ * const {google} = require('googleapis');
5703
+ * const vmmigration = google.vmmigration('v1');
5704
+ *
5705
+ * async function main() {
5706
+ * const auth = new google.auth.GoogleAuth({
5707
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5708
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5709
+ * });
5710
+ *
5711
+ * // Acquire an auth client, and bind it to all future calls
5712
+ * const authClient = await auth.getClient();
5713
+ * google.options({auth: authClient});
5714
+ *
5715
+ * // Do the magic
5716
+ * const res = await vmmigration.projects.locations.sources.migratingVms.get({
5717
+ * // Required. The name of the MigratingVm.
5718
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5719
+ * // Optional. The level of details of the migrating VM.
5720
+ * view: 'placeholder-value',
5721
+ * });
5722
+ * console.log(res.data);
5723
+ *
5724
+ * // Example response
5725
+ * // {
5726
+ * // "awsSourceVmDetails": {},
5727
+ * // "azureSourceVmDetails": {},
5728
+ * // "computeEngineDisksTargetDefaults": {},
5729
+ * // "computeEngineTargetDefaults": {},
5730
+ * // "createTime": "my_createTime",
5731
+ * // "currentSyncInfo": {},
5732
+ * // "cutoverForecast": {},
5733
+ * // "description": "my_description",
5734
+ * // "displayName": "my_displayName",
5735
+ * // "error": {},
5736
+ * // "expiration": {},
5737
+ * // "group": "my_group",
5738
+ * // "labels": {},
5739
+ * // "lastReplicationCycle": {},
5740
+ * // "lastSync": {},
5741
+ * // "name": "my_name",
5742
+ * // "policy": {},
5743
+ * // "recentCloneJobs": [],
5744
+ * // "recentCutoverJobs": [],
5745
+ * // "sourceVmId": "my_sourceVmId",
5746
+ * // "state": "my_state",
5747
+ * // "stateTime": "my_stateTime",
5748
+ * // "updateTime": "my_updateTime",
5749
+ * // "vmwareSourceVmDetails": {}
5750
+ * // }
5751
+ * }
5752
+ *
5753
+ * main().catch(e => {
5754
+ * console.error(e);
5755
+ * throw e;
5756
+ * });
5757
+ *
5758
+ * ```
3606
5759
  *
3607
5760
  * @param params - Parameters for request
3608
5761
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3617,6 +5770,64 @@ export declare namespace vmmigration_v1 {
3617
5770
  get(callback: BodyResponseCallback<Schema$MigratingVm>): void;
3618
5771
  /**
3619
5772
  * Lists MigratingVms in a given Source.
5773
+ * @example
5774
+ * ```js
5775
+ * // Before running the sample:
5776
+ * // - Enable the API at:
5777
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5778
+ * // - Login into gcloud by running:
5779
+ * // ```sh
5780
+ * // $ gcloud auth application-default login
5781
+ * // ```
5782
+ * // - Install the npm module by running:
5783
+ * // ```sh
5784
+ * // $ npm install googleapis
5785
+ * // ```
5786
+ *
5787
+ * const {google} = require('googleapis');
5788
+ * const vmmigration = google.vmmigration('v1');
5789
+ *
5790
+ * async function main() {
5791
+ * const auth = new google.auth.GoogleAuth({
5792
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5793
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5794
+ * });
5795
+ *
5796
+ * // Acquire an auth client, and bind it to all future calls
5797
+ * const authClient = await auth.getClient();
5798
+ * google.options({auth: authClient});
5799
+ *
5800
+ * // Do the magic
5801
+ * const res = await vmmigration.projects.locations.sources.migratingVms.list({
5802
+ * // Optional. The filter request.
5803
+ * filter: 'placeholder-value',
5804
+ * // Optional. the order by fields for the result.
5805
+ * orderBy: 'placeholder-value',
5806
+ * // 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.
5807
+ * pageSize: 'placeholder-value',
5808
+ * // 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.
5809
+ * pageToken: 'placeholder-value',
5810
+ * // Required. The parent, which owns this collection of MigratingVms.
5811
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5812
+ * // Optional. The level of details of each migrating VM.
5813
+ * view: 'placeholder-value',
5814
+ * });
5815
+ * console.log(res.data);
5816
+ *
5817
+ * // Example response
5818
+ * // {
5819
+ * // "migratingVms": [],
5820
+ * // "nextPageToken": "my_nextPageToken",
5821
+ * // "unreachable": []
5822
+ * // }
5823
+ * }
5824
+ *
5825
+ * main().catch(e => {
5826
+ * console.error(e);
5827
+ * throw e;
5828
+ * });
5829
+ *
5830
+ * ```
3620
5831
  *
3621
5832
  * @param params - Parameters for request
3622
5833
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3631,6 +5842,91 @@ export declare namespace vmmigration_v1 {
3631
5842
  list(callback: BodyResponseCallback<Schema$ListMigratingVmsResponse>): void;
3632
5843
  /**
3633
5844
  * Updates the parameters of a single MigratingVm.
5845
+ * @example
5846
+ * ```js
5847
+ * // Before running the sample:
5848
+ * // - Enable the API at:
5849
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5850
+ * // - Login into gcloud by running:
5851
+ * // ```sh
5852
+ * // $ gcloud auth application-default login
5853
+ * // ```
5854
+ * // - Install the npm module by running:
5855
+ * // ```sh
5856
+ * // $ npm install googleapis
5857
+ * // ```
5858
+ *
5859
+ * const {google} = require('googleapis');
5860
+ * const vmmigration = google.vmmigration('v1');
5861
+ *
5862
+ * async function main() {
5863
+ * const auth = new google.auth.GoogleAuth({
5864
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5865
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5866
+ * });
5867
+ *
5868
+ * // Acquire an auth client, and bind it to all future calls
5869
+ * const authClient = await auth.getClient();
5870
+ * google.options({auth: authClient});
5871
+ *
5872
+ * // Do the magic
5873
+ * const res = await vmmigration.projects.locations.sources.migratingVms.patch({
5874
+ * // Output only. The identifier of the MigratingVm.
5875
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5876
+ * // 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).
5877
+ * requestId: 'placeholder-value',
5878
+ * // 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.
5879
+ * updateMask: 'placeholder-value',
5880
+ *
5881
+ * // Request body metadata
5882
+ * requestBody: {
5883
+ * // request body parameters
5884
+ * // {
5885
+ * // "awsSourceVmDetails": {},
5886
+ * // "azureSourceVmDetails": {},
5887
+ * // "computeEngineDisksTargetDefaults": {},
5888
+ * // "computeEngineTargetDefaults": {},
5889
+ * // "createTime": "my_createTime",
5890
+ * // "currentSyncInfo": {},
5891
+ * // "cutoverForecast": {},
5892
+ * // "description": "my_description",
5893
+ * // "displayName": "my_displayName",
5894
+ * // "error": {},
5895
+ * // "expiration": {},
5896
+ * // "group": "my_group",
5897
+ * // "labels": {},
5898
+ * // "lastReplicationCycle": {},
5899
+ * // "lastSync": {},
5900
+ * // "name": "my_name",
5901
+ * // "policy": {},
5902
+ * // "recentCloneJobs": [],
5903
+ * // "recentCutoverJobs": [],
5904
+ * // "sourceVmId": "my_sourceVmId",
5905
+ * // "state": "my_state",
5906
+ * // "stateTime": "my_stateTime",
5907
+ * // "updateTime": "my_updateTime",
5908
+ * // "vmwareSourceVmDetails": {}
5909
+ * // }
5910
+ * },
5911
+ * });
5912
+ * console.log(res.data);
5913
+ *
5914
+ * // Example response
5915
+ * // {
5916
+ * // "done": false,
5917
+ * // "error": {},
5918
+ * // "metadata": {},
5919
+ * // "name": "my_name",
5920
+ * // "response": {}
5921
+ * // }
5922
+ * }
5923
+ *
5924
+ * main().catch(e => {
5925
+ * console.error(e);
5926
+ * throw e;
5927
+ * });
5928
+ *
5929
+ * ```
3634
5930
  *
3635
5931
  * @param params - Parameters for request
3636
5932
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3645,6 +5941,64 @@ export declare namespace vmmigration_v1 {
3645
5941
  patch(callback: BodyResponseCallback<Schema$Operation>): void;
3646
5942
  /**
3647
5943
  * 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.
5944
+ * @example
5945
+ * ```js
5946
+ * // Before running the sample:
5947
+ * // - Enable the API at:
5948
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5949
+ * // - Login into gcloud by running:
5950
+ * // ```sh
5951
+ * // $ gcloud auth application-default login
5952
+ * // ```
5953
+ * // - Install the npm module by running:
5954
+ * // ```sh
5955
+ * // $ npm install googleapis
5956
+ * // ```
5957
+ *
5958
+ * const {google} = require('googleapis');
5959
+ * const vmmigration = google.vmmigration('v1');
5960
+ *
5961
+ * async function main() {
5962
+ * const auth = new google.auth.GoogleAuth({
5963
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5964
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5965
+ * });
5966
+ *
5967
+ * // Acquire an auth client, and bind it to all future calls
5968
+ * const authClient = await auth.getClient();
5969
+ * google.options({auth: authClient});
5970
+ *
5971
+ * // Do the magic
5972
+ * const res =
5973
+ * await vmmigration.projects.locations.sources.migratingVms.pauseMigration({
5974
+ * // Required. The name of the MigratingVm.
5975
+ * migratingVm:
5976
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
5977
+ *
5978
+ * // Request body metadata
5979
+ * requestBody: {
5980
+ * // request body parameters
5981
+ * // {}
5982
+ * },
5983
+ * });
5984
+ * console.log(res.data);
5985
+ *
5986
+ * // Example response
5987
+ * // {
5988
+ * // "done": false,
5989
+ * // "error": {},
5990
+ * // "metadata": {},
5991
+ * // "name": "my_name",
5992
+ * // "response": {}
5993
+ * // }
5994
+ * }
5995
+ *
5996
+ * main().catch(e => {
5997
+ * console.error(e);
5998
+ * throw e;
5999
+ * });
6000
+ *
6001
+ * ```
3648
6002
  *
3649
6003
  * @param params - Parameters for request
3650
6004
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3659,6 +6013,64 @@ export declare namespace vmmigration_v1 {
3659
6013
  pauseMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3660
6014
  /**
3661
6015
  * 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.
6016
+ * @example
6017
+ * ```js
6018
+ * // Before running the sample:
6019
+ * // - Enable the API at:
6020
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6021
+ * // - Login into gcloud by running:
6022
+ * // ```sh
6023
+ * // $ gcloud auth application-default login
6024
+ * // ```
6025
+ * // - Install the npm module by running:
6026
+ * // ```sh
6027
+ * // $ npm install googleapis
6028
+ * // ```
6029
+ *
6030
+ * const {google} = require('googleapis');
6031
+ * const vmmigration = google.vmmigration('v1');
6032
+ *
6033
+ * async function main() {
6034
+ * const auth = new google.auth.GoogleAuth({
6035
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6036
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6037
+ * });
6038
+ *
6039
+ * // Acquire an auth client, and bind it to all future calls
6040
+ * const authClient = await auth.getClient();
6041
+ * google.options({auth: authClient});
6042
+ *
6043
+ * // Do the magic
6044
+ * const res =
6045
+ * await vmmigration.projects.locations.sources.migratingVms.resumeMigration({
6046
+ * // Required. The name of the MigratingVm.
6047
+ * migratingVm:
6048
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6049
+ *
6050
+ * // Request body metadata
6051
+ * requestBody: {
6052
+ * // request body parameters
6053
+ * // {}
6054
+ * },
6055
+ * });
6056
+ * console.log(res.data);
6057
+ *
6058
+ * // Example response
6059
+ * // {
6060
+ * // "done": false,
6061
+ * // "error": {},
6062
+ * // "metadata": {},
6063
+ * // "name": "my_name",
6064
+ * // "response": {}
6065
+ * // }
6066
+ * }
6067
+ *
6068
+ * main().catch(e => {
6069
+ * console.error(e);
6070
+ * throw e;
6071
+ * });
6072
+ *
6073
+ * ```
3662
6074
  *
3663
6075
  * @param params - Parameters for request
3664
6076
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3673,6 +6085,64 @@ export declare namespace vmmigration_v1 {
3673
6085
  resumeMigration(callback: BodyResponseCallback<Schema$Operation>): void;
3674
6086
  /**
3675
6087
  * Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
6088
+ * @example
6089
+ * ```js
6090
+ * // Before running the sample:
6091
+ * // - Enable the API at:
6092
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6093
+ * // - Login into gcloud by running:
6094
+ * // ```sh
6095
+ * // $ gcloud auth application-default login
6096
+ * // ```
6097
+ * // - Install the npm module by running:
6098
+ * // ```sh
6099
+ * // $ npm install googleapis
6100
+ * // ```
6101
+ *
6102
+ * const {google} = require('googleapis');
6103
+ * const vmmigration = google.vmmigration('v1');
6104
+ *
6105
+ * async function main() {
6106
+ * const auth = new google.auth.GoogleAuth({
6107
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6108
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6109
+ * });
6110
+ *
6111
+ * // Acquire an auth client, and bind it to all future calls
6112
+ * const authClient = await auth.getClient();
6113
+ * google.options({auth: authClient});
6114
+ *
6115
+ * // Do the magic
6116
+ * const res =
6117
+ * await vmmigration.projects.locations.sources.migratingVms.startMigration({
6118
+ * // Required. The name of the MigratingVm.
6119
+ * migratingVm:
6120
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6121
+ *
6122
+ * // Request body metadata
6123
+ * requestBody: {
6124
+ * // request body parameters
6125
+ * // {}
6126
+ * },
6127
+ * });
6128
+ * console.log(res.data);
6129
+ *
6130
+ * // Example response
6131
+ * // {
6132
+ * // "done": false,
6133
+ * // "error": {},
6134
+ * // "metadata": {},
6135
+ * // "name": "my_name",
6136
+ * // "response": {}
6137
+ * // }
6138
+ * }
6139
+ *
6140
+ * main().catch(e => {
6141
+ * console.error(e);
6142
+ * throw e;
6143
+ * });
6144
+ *
6145
+ * ```
3676
6146
  *
3677
6147
  * @param params - Parameters for request
3678
6148
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3710,6 +6180,16 @@ export declare namespace vmmigration_v1 {
3710
6180
  */
3711
6181
  name?: string;
3712
6182
  }
6183
+ export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Extendmigration extends StandardParameters {
6184
+ /**
6185
+ * Required. The name of the MigratingVm.
6186
+ */
6187
+ migratingVm?: string;
6188
+ /**
6189
+ * Request body metadata
6190
+ */
6191
+ requestBody?: Schema$ExtendMigrationRequest;
6192
+ }
3713
6193
  export interface Params$Resource$Projects$Locations$Sources$Migratingvms$Finalizemigration extends StandardParameters {
3714
6194
  /**
3715
6195
  * Required. The name of the MigratingVm.
@@ -3809,6 +6289,63 @@ export declare namespace vmmigration_v1 {
3809
6289
  constructor(context: APIRequestContext);
3810
6290
  /**
3811
6291
  * Initiates the cancellation of a running clone job.
6292
+ * @example
6293
+ * ```js
6294
+ * // Before running the sample:
6295
+ * // - Enable the API at:
6296
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6297
+ * // - Login into gcloud by running:
6298
+ * // ```sh
6299
+ * // $ gcloud auth application-default login
6300
+ * // ```
6301
+ * // - Install the npm module by running:
6302
+ * // ```sh
6303
+ * // $ npm install googleapis
6304
+ * // ```
6305
+ *
6306
+ * const {google} = require('googleapis');
6307
+ * const vmmigration = google.vmmigration('v1');
6308
+ *
6309
+ * async function main() {
6310
+ * const auth = new google.auth.GoogleAuth({
6311
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6312
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6313
+ * });
6314
+ *
6315
+ * // Acquire an auth client, and bind it to all future calls
6316
+ * const authClient = await auth.getClient();
6317
+ * google.options({auth: authClient});
6318
+ *
6319
+ * // Do the magic
6320
+ * const res =
6321
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel({
6322
+ * // Required. The clone job id
6323
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
6324
+ *
6325
+ * // Request body metadata
6326
+ * requestBody: {
6327
+ * // request body parameters
6328
+ * // {}
6329
+ * },
6330
+ * });
6331
+ * console.log(res.data);
6332
+ *
6333
+ * // Example response
6334
+ * // {
6335
+ * // "done": false,
6336
+ * // "error": {},
6337
+ * // "metadata": {},
6338
+ * // "name": "my_name",
6339
+ * // "response": {}
6340
+ * // }
6341
+ * }
6342
+ *
6343
+ * main().catch(e => {
6344
+ * console.error(e);
6345
+ * throw e;
6346
+ * });
6347
+ *
6348
+ * ```
3812
6349
  *
3813
6350
  * @param params - Parameters for request
3814
6351
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3823,6 +6360,78 @@ export declare namespace vmmigration_v1 {
3823
6360
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3824
6361
  /**
3825
6362
  * Initiates a Clone of a specific migrating VM.
6363
+ * @example
6364
+ * ```js
6365
+ * // Before running the sample:
6366
+ * // - Enable the API at:
6367
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6368
+ * // - Login into gcloud by running:
6369
+ * // ```sh
6370
+ * // $ gcloud auth application-default login
6371
+ * // ```
6372
+ * // - Install the npm module by running:
6373
+ * // ```sh
6374
+ * // $ npm install googleapis
6375
+ * // ```
6376
+ *
6377
+ * const {google} = require('googleapis');
6378
+ * const vmmigration = google.vmmigration('v1');
6379
+ *
6380
+ * async function main() {
6381
+ * const auth = new google.auth.GoogleAuth({
6382
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6383
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6384
+ * });
6385
+ *
6386
+ * // Acquire an auth client, and bind it to all future calls
6387
+ * const authClient = await auth.getClient();
6388
+ * google.options({auth: authClient});
6389
+ *
6390
+ * // Do the magic
6391
+ * const res =
6392
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.create({
6393
+ * // Required. The clone job identifier.
6394
+ * cloneJobId: 'placeholder-value',
6395
+ * // Required. The Clone's parent.
6396
+ * parent:
6397
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6398
+ * // 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).
6399
+ * requestId: 'placeholder-value',
6400
+ *
6401
+ * // Request body metadata
6402
+ * requestBody: {
6403
+ * // request body parameters
6404
+ * // {
6405
+ * // "computeEngineDisksTargetDetails": {},
6406
+ * // "computeEngineTargetDetails": {},
6407
+ * // "createTime": "my_createTime",
6408
+ * // "endTime": "my_endTime",
6409
+ * // "error": {},
6410
+ * // "name": "my_name",
6411
+ * // "state": "my_state",
6412
+ * // "stateTime": "my_stateTime",
6413
+ * // "steps": []
6414
+ * // }
6415
+ * },
6416
+ * });
6417
+ * console.log(res.data);
6418
+ *
6419
+ * // Example response
6420
+ * // {
6421
+ * // "done": false,
6422
+ * // "error": {},
6423
+ * // "metadata": {},
6424
+ * // "name": "my_name",
6425
+ * // "response": {}
6426
+ * // }
6427
+ * }
6428
+ *
6429
+ * main().catch(e => {
6430
+ * console.error(e);
6431
+ * throw e;
6432
+ * });
6433
+ *
6434
+ * ```
3826
6435
  *
3827
6436
  * @param params - Parameters for request
3828
6437
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3837,6 +6446,61 @@ export declare namespace vmmigration_v1 {
3837
6446
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3838
6447
  /**
3839
6448
  * Gets details of a single CloneJob.
6449
+ * @example
6450
+ * ```js
6451
+ * // Before running the sample:
6452
+ * // - Enable the API at:
6453
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6454
+ * // - Login into gcloud by running:
6455
+ * // ```sh
6456
+ * // $ gcloud auth application-default login
6457
+ * // ```
6458
+ * // - Install the npm module by running:
6459
+ * // ```sh
6460
+ * // $ npm install googleapis
6461
+ * // ```
6462
+ *
6463
+ * const {google} = require('googleapis');
6464
+ * const vmmigration = google.vmmigration('v1');
6465
+ *
6466
+ * async function main() {
6467
+ * const auth = new google.auth.GoogleAuth({
6468
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6469
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6470
+ * });
6471
+ *
6472
+ * // Acquire an auth client, and bind it to all future calls
6473
+ * const authClient = await auth.getClient();
6474
+ * google.options({auth: authClient});
6475
+ *
6476
+ * // Do the magic
6477
+ * const res =
6478
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.get({
6479
+ * // Required. The name of the CloneJob.
6480
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cloneJobs/my-cloneJob',
6481
+ * });
6482
+ * console.log(res.data);
6483
+ *
6484
+ * // Example response
6485
+ * // {
6486
+ * // "computeEngineDisksTargetDetails": {},
6487
+ * // "computeEngineTargetDetails": {},
6488
+ * // "createTime": "my_createTime",
6489
+ * // "endTime": "my_endTime",
6490
+ * // "error": {},
6491
+ * // "name": "my_name",
6492
+ * // "state": "my_state",
6493
+ * // "stateTime": "my_stateTime",
6494
+ * // "steps": []
6495
+ * // }
6496
+ * }
6497
+ *
6498
+ * main().catch(e => {
6499
+ * console.error(e);
6500
+ * throw e;
6501
+ * });
6502
+ *
6503
+ * ```
3840
6504
  *
3841
6505
  * @param params - Parameters for request
3842
6506
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3851,6 +6515,64 @@ export declare namespace vmmigration_v1 {
3851
6515
  get(callback: BodyResponseCallback<Schema$CloneJob>): void;
3852
6516
  /**
3853
6517
  * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.
6518
+ * @example
6519
+ * ```js
6520
+ * // Before running the sample:
6521
+ * // - Enable the API at:
6522
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6523
+ * // - Login into gcloud by running:
6524
+ * // ```sh
6525
+ * // $ gcloud auth application-default login
6526
+ * // ```
6527
+ * // - Install the npm module by running:
6528
+ * // ```sh
6529
+ * // $ npm install googleapis
6530
+ * // ```
6531
+ *
6532
+ * const {google} = require('googleapis');
6533
+ * const vmmigration = google.vmmigration('v1');
6534
+ *
6535
+ * async function main() {
6536
+ * const auth = new google.auth.GoogleAuth({
6537
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6538
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6539
+ * });
6540
+ *
6541
+ * // Acquire an auth client, and bind it to all future calls
6542
+ * const authClient = await auth.getClient();
6543
+ * google.options({auth: authClient});
6544
+ *
6545
+ * // Do the magic
6546
+ * const res =
6547
+ * await vmmigration.projects.locations.sources.migratingVms.cloneJobs.list({
6548
+ * // Optional. The filter request.
6549
+ * filter: 'placeholder-value',
6550
+ * // Optional. the order by fields for the result.
6551
+ * orderBy: 'placeholder-value',
6552
+ * // 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.
6553
+ * pageSize: 'placeholder-value',
6554
+ * // 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.
6555
+ * pageToken: 'placeholder-value',
6556
+ * // Required. The parent, which owns this collection of source VMs.
6557
+ * parent:
6558
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6559
+ * });
6560
+ * console.log(res.data);
6561
+ *
6562
+ * // Example response
6563
+ * // {
6564
+ * // "cloneJobs": [],
6565
+ * // "nextPageToken": "my_nextPageToken",
6566
+ * // "unreachable": []
6567
+ * // }
6568
+ * }
6569
+ *
6570
+ * main().catch(e => {
6571
+ * console.error(e);
6572
+ * throw e;
6573
+ * });
6574
+ *
6575
+ * ```
3854
6576
  *
3855
6577
  * @param params - Parameters for request
3856
6578
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3925,6 +6647,65 @@ export declare namespace vmmigration_v1 {
3925
6647
  constructor(context: APIRequestContext);
3926
6648
  /**
3927
6649
  * Initiates the cancellation of a running cutover job.
6650
+ * @example
6651
+ * ```js
6652
+ * // Before running the sample:
6653
+ * // - Enable the API at:
6654
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6655
+ * // - Login into gcloud by running:
6656
+ * // ```sh
6657
+ * // $ gcloud auth application-default login
6658
+ * // ```
6659
+ * // - Install the npm module by running:
6660
+ * // ```sh
6661
+ * // $ npm install googleapis
6662
+ * // ```
6663
+ *
6664
+ * const {google} = require('googleapis');
6665
+ * const vmmigration = google.vmmigration('v1');
6666
+ *
6667
+ * async function main() {
6668
+ * const auth = new google.auth.GoogleAuth({
6669
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6670
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6671
+ * });
6672
+ *
6673
+ * // Acquire an auth client, and bind it to all future calls
6674
+ * const authClient = await auth.getClient();
6675
+ * google.options({auth: authClient});
6676
+ *
6677
+ * // Do the magic
6678
+ * const res =
6679
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel(
6680
+ * {
6681
+ * // Required. The cutover job id
6682
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
6683
+ *
6684
+ * // Request body metadata
6685
+ * requestBody: {
6686
+ * // request body parameters
6687
+ * // {}
6688
+ * },
6689
+ * },
6690
+ * );
6691
+ * console.log(res.data);
6692
+ *
6693
+ * // Example response
6694
+ * // {
6695
+ * // "done": false,
6696
+ * // "error": {},
6697
+ * // "metadata": {},
6698
+ * // "name": "my_name",
6699
+ * // "response": {}
6700
+ * // }
6701
+ * }
6702
+ *
6703
+ * main().catch(e => {
6704
+ * console.error(e);
6705
+ * throw e;
6706
+ * });
6707
+ *
6708
+ * ```
3928
6709
  *
3929
6710
  * @param params - Parameters for request
3930
6711
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3939,6 +6720,82 @@ export declare namespace vmmigration_v1 {
3939
6720
  cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3940
6721
  /**
3941
6722
  * 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.
6723
+ * @example
6724
+ * ```js
6725
+ * // Before running the sample:
6726
+ * // - Enable the API at:
6727
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6728
+ * // - Login into gcloud by running:
6729
+ * // ```sh
6730
+ * // $ gcloud auth application-default login
6731
+ * // ```
6732
+ * // - Install the npm module by running:
6733
+ * // ```sh
6734
+ * // $ npm install googleapis
6735
+ * // ```
6736
+ *
6737
+ * const {google} = require('googleapis');
6738
+ * const vmmigration = google.vmmigration('v1');
6739
+ *
6740
+ * async function main() {
6741
+ * const auth = new google.auth.GoogleAuth({
6742
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6743
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6744
+ * });
6745
+ *
6746
+ * // Acquire an auth client, and bind it to all future calls
6747
+ * const authClient = await auth.getClient();
6748
+ * google.options({auth: authClient});
6749
+ *
6750
+ * // Do the magic
6751
+ * const res =
6752
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create(
6753
+ * {
6754
+ * // Required. The cutover job identifier.
6755
+ * cutoverJobId: 'placeholder-value',
6756
+ * // Required. The Cutover's parent.
6757
+ * parent:
6758
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6759
+ * // 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).
6760
+ * requestId: 'placeholder-value',
6761
+ *
6762
+ * // Request body metadata
6763
+ * requestBody: {
6764
+ * // request body parameters
6765
+ * // {
6766
+ * // "computeEngineDisksTargetDetails": {},
6767
+ * // "computeEngineTargetDetails": {},
6768
+ * // "createTime": "my_createTime",
6769
+ * // "endTime": "my_endTime",
6770
+ * // "error": {},
6771
+ * // "name": "my_name",
6772
+ * // "progressPercent": 0,
6773
+ * // "state": "my_state",
6774
+ * // "stateMessage": "my_stateMessage",
6775
+ * // "stateTime": "my_stateTime",
6776
+ * // "steps": []
6777
+ * // }
6778
+ * },
6779
+ * },
6780
+ * );
6781
+ * console.log(res.data);
6782
+ *
6783
+ * // Example response
6784
+ * // {
6785
+ * // "done": false,
6786
+ * // "error": {},
6787
+ * // "metadata": {},
6788
+ * // "name": "my_name",
6789
+ * // "response": {}
6790
+ * // }
6791
+ * }
6792
+ *
6793
+ * main().catch(e => {
6794
+ * console.error(e);
6795
+ * throw e;
6796
+ * });
6797
+ *
6798
+ * ```
3942
6799
  *
3943
6800
  * @param params - Parameters for request
3944
6801
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3953,6 +6810,63 @@ export declare namespace vmmigration_v1 {
3953
6810
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3954
6811
  /**
3955
6812
  * Gets details of a single CutoverJob.
6813
+ * @example
6814
+ * ```js
6815
+ * // Before running the sample:
6816
+ * // - Enable the API at:
6817
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6818
+ * // - Login into gcloud by running:
6819
+ * // ```sh
6820
+ * // $ gcloud auth application-default login
6821
+ * // ```
6822
+ * // - Install the npm module by running:
6823
+ * // ```sh
6824
+ * // $ npm install googleapis
6825
+ * // ```
6826
+ *
6827
+ * const {google} = require('googleapis');
6828
+ * const vmmigration = google.vmmigration('v1');
6829
+ *
6830
+ * async function main() {
6831
+ * const auth = new google.auth.GoogleAuth({
6832
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6833
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6834
+ * });
6835
+ *
6836
+ * // Acquire an auth client, and bind it to all future calls
6837
+ * const authClient = await auth.getClient();
6838
+ * google.options({auth: authClient});
6839
+ *
6840
+ * // Do the magic
6841
+ * const res =
6842
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get({
6843
+ * // Required. The name of the CutoverJob.
6844
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/cutoverJobs/my-cutoverJob',
6845
+ * });
6846
+ * console.log(res.data);
6847
+ *
6848
+ * // Example response
6849
+ * // {
6850
+ * // "computeEngineDisksTargetDetails": {},
6851
+ * // "computeEngineTargetDetails": {},
6852
+ * // "createTime": "my_createTime",
6853
+ * // "endTime": "my_endTime",
6854
+ * // "error": {},
6855
+ * // "name": "my_name",
6856
+ * // "progressPercent": 0,
6857
+ * // "state": "my_state",
6858
+ * // "stateMessage": "my_stateMessage",
6859
+ * // "stateTime": "my_stateTime",
6860
+ * // "steps": []
6861
+ * // }
6862
+ * }
6863
+ *
6864
+ * main().catch(e => {
6865
+ * console.error(e);
6866
+ * throw e;
6867
+ * });
6868
+ *
6869
+ * ```
3956
6870
  *
3957
6871
  * @param params - Parameters for request
3958
6872
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3967,6 +6881,64 @@ export declare namespace vmmigration_v1 {
3967
6881
  get(callback: BodyResponseCallback<Schema$CutoverJob>): void;
3968
6882
  /**
3969
6883
  * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
6884
+ * @example
6885
+ * ```js
6886
+ * // Before running the sample:
6887
+ * // - Enable the API at:
6888
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6889
+ * // - Login into gcloud by running:
6890
+ * // ```sh
6891
+ * // $ gcloud auth application-default login
6892
+ * // ```
6893
+ * // - Install the npm module by running:
6894
+ * // ```sh
6895
+ * // $ npm install googleapis
6896
+ * // ```
6897
+ *
6898
+ * const {google} = require('googleapis');
6899
+ * const vmmigration = google.vmmigration('v1');
6900
+ *
6901
+ * async function main() {
6902
+ * const auth = new google.auth.GoogleAuth({
6903
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6904
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6905
+ * });
6906
+ *
6907
+ * // Acquire an auth client, and bind it to all future calls
6908
+ * const authClient = await auth.getClient();
6909
+ * google.options({auth: authClient});
6910
+ *
6911
+ * // Do the magic
6912
+ * const res =
6913
+ * await vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list({
6914
+ * // Optional. The filter request.
6915
+ * filter: 'placeholder-value',
6916
+ * // Optional. the order by fields for the result.
6917
+ * orderBy: 'placeholder-value',
6918
+ * // 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.
6919
+ * pageSize: 'placeholder-value',
6920
+ * // 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.
6921
+ * pageToken: 'placeholder-value',
6922
+ * // Required. The parent, which owns this collection of migrating VMs.
6923
+ * parent:
6924
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
6925
+ * });
6926
+ * console.log(res.data);
6927
+ *
6928
+ * // Example response
6929
+ * // {
6930
+ * // "cutoverJobs": [],
6931
+ * // "nextPageToken": "my_nextPageToken",
6932
+ * // "unreachable": []
6933
+ * // }
6934
+ * }
6935
+ *
6936
+ * main().catch(e => {
6937
+ * console.error(e);
6938
+ * throw e;
6939
+ * });
6940
+ *
6941
+ * ```
3970
6942
  *
3971
6943
  * @param params - Parameters for request
3972
6944
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4041,6 +7013,64 @@ export declare namespace vmmigration_v1 {
4041
7013
  constructor(context: APIRequestContext);
4042
7014
  /**
4043
7015
  * Gets details of a single ReplicationCycle.
7016
+ * @example
7017
+ * ```js
7018
+ * // Before running the sample:
7019
+ * // - Enable the API at:
7020
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7021
+ * // - Login into gcloud by running:
7022
+ * // ```sh
7023
+ * // $ gcloud auth application-default login
7024
+ * // ```
7025
+ * // - Install the npm module by running:
7026
+ * // ```sh
7027
+ * // $ npm install googleapis
7028
+ * // ```
7029
+ *
7030
+ * const {google} = require('googleapis');
7031
+ * const vmmigration = google.vmmigration('v1');
7032
+ *
7033
+ * async function main() {
7034
+ * const auth = new google.auth.GoogleAuth({
7035
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7036
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7037
+ * });
7038
+ *
7039
+ * // Acquire an auth client, and bind it to all future calls
7040
+ * const authClient = await auth.getClient();
7041
+ * google.options({auth: authClient});
7042
+ *
7043
+ * // Do the magic
7044
+ * const res =
7045
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.get(
7046
+ * {
7047
+ * // Required. The name of the ReplicationCycle.
7048
+ * name: 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm/replicationCycles/my-replicationCycle',
7049
+ * },
7050
+ * );
7051
+ * console.log(res.data);
7052
+ *
7053
+ * // Example response
7054
+ * // {
7055
+ * // "cycleNumber": 0,
7056
+ * // "endTime": "my_endTime",
7057
+ * // "error": {},
7058
+ * // "name": "my_name",
7059
+ * // "progressPercent": 0,
7060
+ * // "startTime": "my_startTime",
7061
+ * // "state": "my_state",
7062
+ * // "steps": [],
7063
+ * // "totalPauseDuration": "my_totalPauseDuration",
7064
+ * // "warnings": []
7065
+ * // }
7066
+ * }
7067
+ *
7068
+ * main().catch(e => {
7069
+ * console.error(e);
7070
+ * throw e;
7071
+ * });
7072
+ *
7073
+ * ```
4044
7074
  *
4045
7075
  * @param params - Parameters for request
4046
7076
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4055,6 +7085,66 @@ export declare namespace vmmigration_v1 {
4055
7085
  get(callback: BodyResponseCallback<Schema$ReplicationCycle>): void;
4056
7086
  /**
4057
7087
  * Lists ReplicationCycles in a given MigratingVM.
7088
+ * @example
7089
+ * ```js
7090
+ * // Before running the sample:
7091
+ * // - Enable the API at:
7092
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7093
+ * // - Login into gcloud by running:
7094
+ * // ```sh
7095
+ * // $ gcloud auth application-default login
7096
+ * // ```
7097
+ * // - Install the npm module by running:
7098
+ * // ```sh
7099
+ * // $ npm install googleapis
7100
+ * // ```
7101
+ *
7102
+ * const {google} = require('googleapis');
7103
+ * const vmmigration = google.vmmigration('v1');
7104
+ *
7105
+ * async function main() {
7106
+ * const auth = new google.auth.GoogleAuth({
7107
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7108
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7109
+ * });
7110
+ *
7111
+ * // Acquire an auth client, and bind it to all future calls
7112
+ * const authClient = await auth.getClient();
7113
+ * google.options({auth: authClient});
7114
+ *
7115
+ * // Do the magic
7116
+ * const res =
7117
+ * await vmmigration.projects.locations.sources.migratingVms.replicationCycles.list(
7118
+ * {
7119
+ * // Optional. The filter request.
7120
+ * filter: 'placeholder-value',
7121
+ * // Optional. the order by fields for the result.
7122
+ * orderBy: 'placeholder-value',
7123
+ * // 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.
7124
+ * pageSize: 'placeholder-value',
7125
+ * // 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.
7126
+ * pageToken: 'placeholder-value',
7127
+ * // Required. The parent, which owns this collection of ReplicationCycles.
7128
+ * parent:
7129
+ * 'projects/my-project/locations/my-location/sources/my-source/migratingVms/my-migratingVm',
7130
+ * },
7131
+ * );
7132
+ * console.log(res.data);
7133
+ *
7134
+ * // Example response
7135
+ * // {
7136
+ * // "nextPageToken": "my_nextPageToken",
7137
+ * // "replicationCycles": [],
7138
+ * // "unreachable": []
7139
+ * // }
7140
+ * }
7141
+ *
7142
+ * main().catch(e => {
7143
+ * console.error(e);
7144
+ * throw e;
7145
+ * });
7146
+ *
7147
+ * ```
4058
7148
  *
4059
7149
  * @param params - Parameters for request
4060
7150
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4101,6 +7191,78 @@ export declare namespace vmmigration_v1 {
4101
7191
  constructor(context: APIRequestContext);
4102
7192
  /**
4103
7193
  * Creates a new UtilizationReport.
7194
+ * @example
7195
+ * ```js
7196
+ * // Before running the sample:
7197
+ * // - Enable the API at:
7198
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7199
+ * // - Login into gcloud by running:
7200
+ * // ```sh
7201
+ * // $ gcloud auth application-default login
7202
+ * // ```
7203
+ * // - Install the npm module by running:
7204
+ * // ```sh
7205
+ * // $ npm install googleapis
7206
+ * // ```
7207
+ *
7208
+ * const {google} = require('googleapis');
7209
+ * const vmmigration = google.vmmigration('v1');
7210
+ *
7211
+ * async function main() {
7212
+ * const auth = new google.auth.GoogleAuth({
7213
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7214
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7215
+ * });
7216
+ *
7217
+ * // Acquire an auth client, and bind it to all future calls
7218
+ * const authClient = await auth.getClient();
7219
+ * google.options({auth: authClient});
7220
+ *
7221
+ * // Do the magic
7222
+ * const res =
7223
+ * await vmmigration.projects.locations.sources.utilizationReports.create({
7224
+ * // Required. The Utilization Report's parent.
7225
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7226
+ * // 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).
7227
+ * requestId: 'placeholder-value',
7228
+ * // 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.
7229
+ * utilizationReportId: 'placeholder-value',
7230
+ *
7231
+ * // Request body metadata
7232
+ * requestBody: {
7233
+ * // request body parameters
7234
+ * // {
7235
+ * // "createTime": "my_createTime",
7236
+ * // "displayName": "my_displayName",
7237
+ * // "error": {},
7238
+ * // "frameEndTime": "my_frameEndTime",
7239
+ * // "name": "my_name",
7240
+ * // "state": "my_state",
7241
+ * // "stateTime": "my_stateTime",
7242
+ * // "timeFrame": "my_timeFrame",
7243
+ * // "vmCount": 0,
7244
+ * // "vms": []
7245
+ * // }
7246
+ * },
7247
+ * });
7248
+ * console.log(res.data);
7249
+ *
7250
+ * // Example response
7251
+ * // {
7252
+ * // "done": false,
7253
+ * // "error": {},
7254
+ * // "metadata": {},
7255
+ * // "name": "my_name",
7256
+ * // "response": {}
7257
+ * // }
7258
+ * }
7259
+ *
7260
+ * main().catch(e => {
7261
+ * console.error(e);
7262
+ * throw e;
7263
+ * });
7264
+ *
7265
+ * ```
4104
7266
  *
4105
7267
  * @param params - Parameters for request
4106
7268
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4115,6 +7277,59 @@ export declare namespace vmmigration_v1 {
4115
7277
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4116
7278
  /**
4117
7279
  * Deletes a single Utilization Report.
7280
+ * @example
7281
+ * ```js
7282
+ * // Before running the sample:
7283
+ * // - Enable the API at:
7284
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7285
+ * // - Login into gcloud by running:
7286
+ * // ```sh
7287
+ * // $ gcloud auth application-default login
7288
+ * // ```
7289
+ * // - Install the npm module by running:
7290
+ * // ```sh
7291
+ * // $ npm install googleapis
7292
+ * // ```
7293
+ *
7294
+ * const {google} = require('googleapis');
7295
+ * const vmmigration = google.vmmigration('v1');
7296
+ *
7297
+ * async function main() {
7298
+ * const auth = new google.auth.GoogleAuth({
7299
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7300
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7301
+ * });
7302
+ *
7303
+ * // Acquire an auth client, and bind it to all future calls
7304
+ * const authClient = await auth.getClient();
7305
+ * google.options({auth: authClient});
7306
+ *
7307
+ * // Do the magic
7308
+ * const res =
7309
+ * await vmmigration.projects.locations.sources.utilizationReports.delete({
7310
+ * // Required. The Utilization Report name.
7311
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
7312
+ * // 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).
7313
+ * requestId: 'placeholder-value',
7314
+ * });
7315
+ * console.log(res.data);
7316
+ *
7317
+ * // Example response
7318
+ * // {
7319
+ * // "done": false,
7320
+ * // "error": {},
7321
+ * // "metadata": {},
7322
+ * // "name": "my_name",
7323
+ * // "response": {}
7324
+ * // }
7325
+ * }
7326
+ *
7327
+ * main().catch(e => {
7328
+ * console.error(e);
7329
+ * throw e;
7330
+ * });
7331
+ *
7332
+ * ```
4118
7333
  *
4119
7334
  * @param params - Parameters for request
4120
7335
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4129,6 +7344,64 @@ export declare namespace vmmigration_v1 {
4129
7344
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
4130
7345
  /**
4131
7346
  * Gets a single Utilization Report.
7347
+ * @example
7348
+ * ```js
7349
+ * // Before running the sample:
7350
+ * // - Enable the API at:
7351
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7352
+ * // - Login into gcloud by running:
7353
+ * // ```sh
7354
+ * // $ gcloud auth application-default login
7355
+ * // ```
7356
+ * // - Install the npm module by running:
7357
+ * // ```sh
7358
+ * // $ npm install googleapis
7359
+ * // ```
7360
+ *
7361
+ * const {google} = require('googleapis');
7362
+ * const vmmigration = google.vmmigration('v1');
7363
+ *
7364
+ * async function main() {
7365
+ * const auth = new google.auth.GoogleAuth({
7366
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7367
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7368
+ * });
7369
+ *
7370
+ * // Acquire an auth client, and bind it to all future calls
7371
+ * const authClient = await auth.getClient();
7372
+ * google.options({auth: authClient});
7373
+ *
7374
+ * // Do the magic
7375
+ * const res =
7376
+ * await vmmigration.projects.locations.sources.utilizationReports.get({
7377
+ * // Required. The Utilization Report name.
7378
+ * name: 'projects/my-project/locations/my-location/sources/my-source/utilizationReports/my-utilizationReport',
7379
+ * // Optional. The level of details of the report. Defaults to FULL
7380
+ * view: 'placeholder-value',
7381
+ * });
7382
+ * console.log(res.data);
7383
+ *
7384
+ * // Example response
7385
+ * // {
7386
+ * // "createTime": "my_createTime",
7387
+ * // "displayName": "my_displayName",
7388
+ * // "error": {},
7389
+ * // "frameEndTime": "my_frameEndTime",
7390
+ * // "name": "my_name",
7391
+ * // "state": "my_state",
7392
+ * // "stateTime": "my_stateTime",
7393
+ * // "timeFrame": "my_timeFrame",
7394
+ * // "vmCount": 0,
7395
+ * // "vms": []
7396
+ * // }
7397
+ * }
7398
+ *
7399
+ * main().catch(e => {
7400
+ * console.error(e);
7401
+ * throw e;
7402
+ * });
7403
+ *
7404
+ * ```
4132
7405
  *
4133
7406
  * @param params - Parameters for request
4134
7407
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4143,6 +7416,65 @@ export declare namespace vmmigration_v1 {
4143
7416
  get(callback: BodyResponseCallback<Schema$UtilizationReport>): void;
4144
7417
  /**
4145
7418
  * Lists Utilization Reports of the given Source.
7419
+ * @example
7420
+ * ```js
7421
+ * // Before running the sample:
7422
+ * // - Enable the API at:
7423
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7424
+ * // - Login into gcloud by running:
7425
+ * // ```sh
7426
+ * // $ gcloud auth application-default login
7427
+ * // ```
7428
+ * // - Install the npm module by running:
7429
+ * // ```sh
7430
+ * // $ npm install googleapis
7431
+ * // ```
7432
+ *
7433
+ * const {google} = require('googleapis');
7434
+ * const vmmigration = google.vmmigration('v1');
7435
+ *
7436
+ * async function main() {
7437
+ * const auth = new google.auth.GoogleAuth({
7438
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7439
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7440
+ * });
7441
+ *
7442
+ * // Acquire an auth client, and bind it to all future calls
7443
+ * const authClient = await auth.getClient();
7444
+ * google.options({auth: authClient});
7445
+ *
7446
+ * // Do the magic
7447
+ * const res =
7448
+ * await vmmigration.projects.locations.sources.utilizationReports.list({
7449
+ * // Optional. The filter request.
7450
+ * filter: 'placeholder-value',
7451
+ * // Optional. the order by fields for the result.
7452
+ * orderBy: 'placeholder-value',
7453
+ * // 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.
7454
+ * pageSize: 'placeholder-value',
7455
+ * // 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.
7456
+ * pageToken: 'placeholder-value',
7457
+ * // Required. The Utilization Reports parent.
7458
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
7459
+ * // Optional. The level of details of each report. Defaults to BASIC.
7460
+ * view: 'placeholder-value',
7461
+ * });
7462
+ * console.log(res.data);
7463
+ *
7464
+ * // Example response
7465
+ * // {
7466
+ * // "nextPageToken": "my_nextPageToken",
7467
+ * // "unreachable": [],
7468
+ * // "utilizationReports": []
7469
+ * // }
7470
+ * }
7471
+ *
7472
+ * main().catch(e => {
7473
+ * console.error(e);
7474
+ * throw e;
7475
+ * });
7476
+ *
7477
+ * ```
4146
7478
  *
4147
7479
  * @param params - Parameters for request
4148
7480
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4225,6 +7557,72 @@ export declare namespace vmmigration_v1 {
4225
7557
  constructor(context: APIRequestContext);
4226
7558
  /**
4227
7559
  * Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7560
+ * @example
7561
+ * ```js
7562
+ * // Before running the sample:
7563
+ * // - Enable the API at:
7564
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7565
+ * // - Login into gcloud by running:
7566
+ * // ```sh
7567
+ * // $ gcloud auth application-default login
7568
+ * // ```
7569
+ * // - Install the npm module by running:
7570
+ * // ```sh
7571
+ * // $ npm install googleapis
7572
+ * // ```
7573
+ *
7574
+ * const {google} = require('googleapis');
7575
+ * const vmmigration = google.vmmigration('v1');
7576
+ *
7577
+ * async function main() {
7578
+ * const auth = new google.auth.GoogleAuth({
7579
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7580
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7581
+ * });
7582
+ *
7583
+ * // Acquire an auth client, and bind it to all future calls
7584
+ * const authClient = await auth.getClient();
7585
+ * google.options({auth: authClient});
7586
+ *
7587
+ * // Do the magic
7588
+ * const res = await vmmigration.projects.locations.targetProjects.create({
7589
+ * // Required. The TargetProject's parent.
7590
+ * parent: 'projects/my-project/locations/my-location',
7591
+ * // 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).
7592
+ * requestId: 'placeholder-value',
7593
+ * // Required. The target_project identifier.
7594
+ * targetProjectId: 'placeholder-value',
7595
+ *
7596
+ * // Request body metadata
7597
+ * requestBody: {
7598
+ * // request body parameters
7599
+ * // {
7600
+ * // "createTime": "my_createTime",
7601
+ * // "description": "my_description",
7602
+ * // "name": "my_name",
7603
+ * // "project": "my_project",
7604
+ * // "updateTime": "my_updateTime"
7605
+ * // }
7606
+ * },
7607
+ * });
7608
+ * console.log(res.data);
7609
+ *
7610
+ * // Example response
7611
+ * // {
7612
+ * // "done": false,
7613
+ * // "error": {},
7614
+ * // "metadata": {},
7615
+ * // "name": "my_name",
7616
+ * // "response": {}
7617
+ * // }
7618
+ * }
7619
+ *
7620
+ * main().catch(e => {
7621
+ * console.error(e);
7622
+ * throw e;
7623
+ * });
7624
+ *
7625
+ * ```
4228
7626
  *
4229
7627
  * @param params - Parameters for request
4230
7628
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4239,6 +7637,58 @@ export declare namespace vmmigration_v1 {
4239
7637
  create(callback: BodyResponseCallback<Schema$Operation>): void;
4240
7638
  /**
4241
7639
  * Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7640
+ * @example
7641
+ * ```js
7642
+ * // Before running the sample:
7643
+ * // - Enable the API at:
7644
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7645
+ * // - Login into gcloud by running:
7646
+ * // ```sh
7647
+ * // $ gcloud auth application-default login
7648
+ * // ```
7649
+ * // - Install the npm module by running:
7650
+ * // ```sh
7651
+ * // $ npm install googleapis
7652
+ * // ```
7653
+ *
7654
+ * const {google} = require('googleapis');
7655
+ * const vmmigration = google.vmmigration('v1');
7656
+ *
7657
+ * async function main() {
7658
+ * const auth = new google.auth.GoogleAuth({
7659
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7660
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7661
+ * });
7662
+ *
7663
+ * // Acquire an auth client, and bind it to all future calls
7664
+ * const authClient = await auth.getClient();
7665
+ * google.options({auth: authClient});
7666
+ *
7667
+ * // Do the magic
7668
+ * const res = await vmmigration.projects.locations.targetProjects.delete({
7669
+ * // Required. The TargetProject name.
7670
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
7671
+ * // 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).
7672
+ * requestId: 'placeholder-value',
7673
+ * });
7674
+ * console.log(res.data);
7675
+ *
7676
+ * // Example response
7677
+ * // {
7678
+ * // "done": false,
7679
+ * // "error": {},
7680
+ * // "metadata": {},
7681
+ * // "name": "my_name",
7682
+ * // "response": {}
7683
+ * // }
7684
+ * }
7685
+ *
7686
+ * main().catch(e => {
7687
+ * console.error(e);
7688
+ * throw e;
7689
+ * });
7690
+ *
7691
+ * ```
4242
7692
  *
4243
7693
  * @param params - Parameters for request
4244
7694
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4253,6 +7703,56 @@ export declare namespace vmmigration_v1 {
4253
7703
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
4254
7704
  /**
4255
7705
  * Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7706
+ * @example
7707
+ * ```js
7708
+ * // Before running the sample:
7709
+ * // - Enable the API at:
7710
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7711
+ * // - Login into gcloud by running:
7712
+ * // ```sh
7713
+ * // $ gcloud auth application-default login
7714
+ * // ```
7715
+ * // - Install the npm module by running:
7716
+ * // ```sh
7717
+ * // $ npm install googleapis
7718
+ * // ```
7719
+ *
7720
+ * const {google} = require('googleapis');
7721
+ * const vmmigration = google.vmmigration('v1');
7722
+ *
7723
+ * async function main() {
7724
+ * const auth = new google.auth.GoogleAuth({
7725
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7726
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7727
+ * });
7728
+ *
7729
+ * // Acquire an auth client, and bind it to all future calls
7730
+ * const authClient = await auth.getClient();
7731
+ * google.options({auth: authClient});
7732
+ *
7733
+ * // Do the magic
7734
+ * const res = await vmmigration.projects.locations.targetProjects.get({
7735
+ * // Required. The TargetProject name.
7736
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
7737
+ * });
7738
+ * console.log(res.data);
7739
+ *
7740
+ * // Example response
7741
+ * // {
7742
+ * // "createTime": "my_createTime",
7743
+ * // "description": "my_description",
7744
+ * // "name": "my_name",
7745
+ * // "project": "my_project",
7746
+ * // "updateTime": "my_updateTime"
7747
+ * // }
7748
+ * }
7749
+ *
7750
+ * main().catch(e => {
7751
+ * console.error(e);
7752
+ * throw e;
7753
+ * });
7754
+ *
7755
+ * ```
4256
7756
  *
4257
7757
  * @param params - Parameters for request
4258
7758
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4267,6 +7767,62 @@ export declare namespace vmmigration_v1 {
4267
7767
  get(callback: BodyResponseCallback<Schema$TargetProject>): void;
4268
7768
  /**
4269
7769
  * Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7770
+ * @example
7771
+ * ```js
7772
+ * // Before running the sample:
7773
+ * // - Enable the API at:
7774
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7775
+ * // - Login into gcloud by running:
7776
+ * // ```sh
7777
+ * // $ gcloud auth application-default login
7778
+ * // ```
7779
+ * // - Install the npm module by running:
7780
+ * // ```sh
7781
+ * // $ npm install googleapis
7782
+ * // ```
7783
+ *
7784
+ * const {google} = require('googleapis');
7785
+ * const vmmigration = google.vmmigration('v1');
7786
+ *
7787
+ * async function main() {
7788
+ * const auth = new google.auth.GoogleAuth({
7789
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7790
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7791
+ * });
7792
+ *
7793
+ * // Acquire an auth client, and bind it to all future calls
7794
+ * const authClient = await auth.getClient();
7795
+ * google.options({auth: authClient});
7796
+ *
7797
+ * // Do the magic
7798
+ * const res = await vmmigration.projects.locations.targetProjects.list({
7799
+ * // Optional. The filter request.
7800
+ * filter: 'placeholder-value',
7801
+ * // Optional. the order by fields for the result.
7802
+ * orderBy: 'placeholder-value',
7803
+ * // 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.
7804
+ * pageSize: 'placeholder-value',
7805
+ * // 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.
7806
+ * pageToken: 'placeholder-value',
7807
+ * // Required. The parent, which owns this collection of targets.
7808
+ * parent: 'projects/my-project/locations/my-location',
7809
+ * });
7810
+ * console.log(res.data);
7811
+ *
7812
+ * // Example response
7813
+ * // {
7814
+ * // "nextPageToken": "my_nextPageToken",
7815
+ * // "targetProjects": [],
7816
+ * // "unreachable": []
7817
+ * // }
7818
+ * }
7819
+ *
7820
+ * main().catch(e => {
7821
+ * console.error(e);
7822
+ * throw e;
7823
+ * });
7824
+ *
7825
+ * ```
4270
7826
  *
4271
7827
  * @param params - Parameters for request
4272
7828
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4281,6 +7837,72 @@ export declare namespace vmmigration_v1 {
4281
7837
  list(callback: BodyResponseCallback<Schema$ListTargetProjectsResponse>): void;
4282
7838
  /**
4283
7839
  * Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
7840
+ * @example
7841
+ * ```js
7842
+ * // Before running the sample:
7843
+ * // - Enable the API at:
7844
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
7845
+ * // - Login into gcloud by running:
7846
+ * // ```sh
7847
+ * // $ gcloud auth application-default login
7848
+ * // ```
7849
+ * // - Install the npm module by running:
7850
+ * // ```sh
7851
+ * // $ npm install googleapis
7852
+ * // ```
7853
+ *
7854
+ * const {google} = require('googleapis');
7855
+ * const vmmigration = google.vmmigration('v1');
7856
+ *
7857
+ * async function main() {
7858
+ * const auth = new google.auth.GoogleAuth({
7859
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7860
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
7861
+ * });
7862
+ *
7863
+ * // Acquire an auth client, and bind it to all future calls
7864
+ * const authClient = await auth.getClient();
7865
+ * google.options({auth: authClient});
7866
+ *
7867
+ * // Do the magic
7868
+ * const res = await vmmigration.projects.locations.targetProjects.patch({
7869
+ * // Output only. The name of the target project.
7870
+ * name: 'projects/my-project/locations/my-location/targetProjects/my-targetProject',
7871
+ * // 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).
7872
+ * requestId: 'placeholder-value',
7873
+ * // 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.
7874
+ * updateMask: 'placeholder-value',
7875
+ *
7876
+ * // Request body metadata
7877
+ * requestBody: {
7878
+ * // request body parameters
7879
+ * // {
7880
+ * // "createTime": "my_createTime",
7881
+ * // "description": "my_description",
7882
+ * // "name": "my_name",
7883
+ * // "project": "my_project",
7884
+ * // "updateTime": "my_updateTime"
7885
+ * // }
7886
+ * },
7887
+ * });
7888
+ * console.log(res.data);
7889
+ *
7890
+ * // Example response
7891
+ * // {
7892
+ * // "done": false,
7893
+ * // "error": {},
7894
+ * // "metadata": {},
7895
+ * // "name": "my_name",
7896
+ * // "response": {}
7897
+ * // }
7898
+ * }
7899
+ *
7900
+ * main().catch(e => {
7901
+ * console.error(e);
7902
+ * throw e;
7903
+ * });
7904
+ *
7905
+ * ```
4284
7906
  *
4285
7907
  * @param params - Parameters for request
4286
7908
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.