@googleapis/vmmigration 15.0.0 → 16.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,19 @@ export declare namespace vmmigration_v1alpha1 {
87
87
  */
88
88
  sessionToken?: string | null;
89
89
  }
90
+ /**
91
+ * AdaptationModifier a modifier to be used for configuration of the OS adaptation process.
92
+ */
93
+ export interface Schema$AdaptationModifier {
94
+ /**
95
+ * Optional. The modifier name.
96
+ */
97
+ modifier?: string | null;
98
+ /**
99
+ * Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.
100
+ */
101
+ value?: string | null;
102
+ }
90
103
  /**
91
104
  * AdaptingOSStep contains specific step details.
92
105
  */
@@ -217,6 +230,29 @@ export declare namespace vmmigration_v1alpha1 {
217
230
  */
218
231
  state?: string | null;
219
232
  }
233
+ /**
234
+ * Represents the source AWS Disk details.
235
+ */
236
+ export interface Schema$AwsSourceDiskDetails {
237
+ /**
238
+ * Optional. Output only. Disk type.
239
+ */
240
+ diskType?: string | null;
241
+ /**
242
+ * Output only. Size in GiB.
243
+ */
244
+ sizeGib?: string | null;
245
+ /**
246
+ * Optional. Output only. A map of AWS volume tags.
247
+ */
248
+ tags?: {
249
+ [key: string]: string;
250
+ } | null;
251
+ /**
252
+ * Required. AWS volume ID.
253
+ */
254
+ volumeId?: string | null;
255
+ }
220
256
  /**
221
257
  * Represent the source AWS VM details.
222
258
  */
@@ -518,6 +554,11 @@ export declare namespace vmmigration_v1alpha1 {
518
554
  */
519
555
  export interface Schema$CancelCutoverJobRequest {
520
556
  }
557
+ /**
558
+ * Request message for 'CancelDiskMigrationJob' request.
559
+ */
560
+ export interface Schema$CancelDiskMigrationJobRequest {
561
+ }
521
562
  /**
522
563
  * Request message for 'CancelImageImportJob' request.
523
564
  */
@@ -619,6 +660,27 @@ export declare namespace vmmigration_v1alpha1 {
619
660
  */
620
661
  startTime?: string | null;
621
662
  }
663
+ /**
664
+ * Compute Engine disk target details.
665
+ */
666
+ export interface Schema$ComputeEngineDisk {
667
+ /**
668
+ * Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project\}/zones/{zone\}/disks/disk1 "disk1" is the resource ID for the disk.
669
+ */
670
+ diskId?: string | null;
671
+ /**
672
+ * Required. The disk type to use.
673
+ */
674
+ diskType?: string | null;
675
+ /**
676
+ * Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project\}/locations/{replica-zone\} Currently only one replica zone is supported.
677
+ */
678
+ replicaZones?: string[] | null;
679
+ /**
680
+ * Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project\}/locations/{zone\}
681
+ */
682
+ zone?: string | null;
683
+ }
622
684
  /**
623
685
  * ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
624
686
  */
@@ -665,6 +727,10 @@ export declare namespace vmmigration_v1alpha1 {
665
727
  * ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
666
728
  */
667
729
  export interface Schema$ComputeEngineTargetDefaults {
730
+ /**
731
+ * Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.
732
+ */
733
+ adaptationModifiers?: Schema$AdaptationModifier[];
668
734
  /**
669
735
  * Additional licenses to assign to the VM.
670
736
  */
@@ -766,6 +832,10 @@ export declare namespace vmmigration_v1alpha1 {
766
832
  * ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
767
833
  */
768
834
  export interface Schema$ComputeEngineTargetDetails {
835
+ /**
836
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
837
+ */
838
+ adaptationModifiers?: Schema$AdaptationModifier[];
769
839
  /**
770
840
  * Additional licenses to assign to the VM.
771
841
  */
@@ -885,11 +955,21 @@ export declare namespace vmmigration_v1alpha1 {
885
955
  */
886
956
  restartType?: string | null;
887
957
  }
958
+ /**
959
+ * CopyingSourceDiskSnapshotStep contains specific step details.
960
+ */
961
+ export interface Schema$CopyingSourceDiskSnapshotStep {
962
+ }
888
963
  /**
889
964
  * CreatingImageStep contains specific step details.
890
965
  */
891
966
  export interface Schema$CreatingImageStep {
892
967
  }
968
+ /**
969
+ * CreatingSourceDiskSnapshotStep contains specific step details.
970
+ */
971
+ export interface Schema$CreatingSourceDiskSnapshotStep {
972
+ }
893
973
  /**
894
974
  * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
895
975
  */
@@ -1157,6 +1237,91 @@ export declare namespace vmmigration_v1alpha1 {
1157
1237
  */
1158
1238
  targetProject?: string | null;
1159
1239
  }
1240
+ /**
1241
+ * Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
1242
+ */
1243
+ export interface Schema$DiskMigrationJob {
1244
+ /**
1245
+ * Details of the unattached AWS source disk.
1246
+ */
1247
+ awsSourceDiskDetails?: Schema$AwsSourceDiskDetails;
1248
+ /**
1249
+ * Output only. The time the DiskMigrationJob resource was created.
1250
+ */
1251
+ createTime?: string | null;
1252
+ /**
1253
+ * Output only. Provides details on the errors that led to the disk migration job's state in case of an error.
1254
+ */
1255
+ errors?: Schema$Status[];
1256
+ /**
1257
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
1258
+ */
1259
+ name?: string | null;
1260
+ /**
1261
+ * Output only. State of the DiskMigrationJob.
1262
+ */
1263
+ state?: string | null;
1264
+ /**
1265
+ * Output only. The disk migration steps list representing its progress.
1266
+ */
1267
+ steps?: Schema$DiskMigrationStep[];
1268
+ /**
1269
+ * Required. Details of the target Disk in Compute Engine.
1270
+ */
1271
+ targetDetails?: Schema$DiskMigrationJobTargetDetails;
1272
+ /**
1273
+ * Output only. The last time the DiskMigrationJob resource was updated.
1274
+ */
1275
+ updateTime?: string | null;
1276
+ }
1277
+ /**
1278
+ * Details of the target disk in Compute Engine.
1279
+ */
1280
+ export interface Schema$DiskMigrationJobTargetDetails {
1281
+ /**
1282
+ * Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
1283
+ */
1284
+ encryption?: Schema$Encryption;
1285
+ /**
1286
+ * Optional. A map of labels to associate with the disk.
1287
+ */
1288
+ labels?: {
1289
+ [key: string]: string;
1290
+ } | null;
1291
+ /**
1292
+ * Required. The target disk.
1293
+ */
1294
+ targetDisk?: Schema$ComputeEngineDisk;
1295
+ /**
1296
+ * Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project\}/locations/global/targetProjects/{target-project\}
1297
+ */
1298
+ targetProject?: string | null;
1299
+ }
1300
+ /**
1301
+ * DiskMigrationStep holds information about the disk migration step progress.
1302
+ */
1303
+ export interface Schema$DiskMigrationStep {
1304
+ /**
1305
+ * Copying source disk snapshot step.
1306
+ */
1307
+ copyingSourceDiskSnapshot?: Schema$CopyingSourceDiskSnapshotStep;
1308
+ /**
1309
+ * Creating source disk snapshot step.
1310
+ */
1311
+ creatingSourceDiskSnapshot?: Schema$CreatingSourceDiskSnapshotStep;
1312
+ /**
1313
+ * Output only. The time the step has ended.
1314
+ */
1315
+ endTime?: string | null;
1316
+ /**
1317
+ * Creating target disk step.
1318
+ */
1319
+ provisioningTargetDisk?: Schema$ProvisioningTargetDiskStep;
1320
+ /**
1321
+ * Output only. The time the step has started.
1322
+ */
1323
+ startTime?: string | null;
1324
+ }
1160
1325
  /**
1161
1326
  * Details for a disk only migration.
1162
1327
  */
@@ -1310,6 +1475,23 @@ export declare namespace vmmigration_v1alpha1 {
1310
1475
  */
1311
1476
  vmwareVms?: Schema$VmwareVmsDetails;
1312
1477
  }
1478
+ /**
1479
+ * Response message for fetchStorageInventory.
1480
+ */
1481
+ export interface Schema$FetchStorageInventoryResponse {
1482
+ /**
1483
+ * Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1484
+ */
1485
+ nextPageToken?: string | null;
1486
+ /**
1487
+ * The list of storage resources in the source.
1488
+ */
1489
+ resources?: Schema$SourceStorageResource[];
1490
+ /**
1491
+ * Output only. The timestamp when the source was last queried (if the result is from the cache).
1492
+ */
1493
+ updateTime?: string | null;
1494
+ }
1313
1495
  /**
1314
1496
  * Request message for 'FinalizeMigration' request.
1315
1497
  */
@@ -1430,6 +1612,10 @@ export declare namespace vmmigration_v1alpha1 {
1430
1612
  * Parameters affecting the OS adaptation process.
1431
1613
  */
1432
1614
  export interface Schema$ImageImportOsAdaptationParameters {
1615
+ /**
1616
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
1617
+ */
1618
+ adaptationModifiers?: Schema$AdaptationModifier[];
1433
1619
  /**
1434
1620
  * Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion
1435
1621
  */
@@ -1551,6 +1737,23 @@ export declare namespace vmmigration_v1alpha1 {
1551
1737
  */
1552
1738
  unreachable?: string[] | null;
1553
1739
  }
1740
+ /**
1741
+ * Response message for 'ListDiskMigrationJobs' request.
1742
+ */
1743
+ export interface Schema$ListDiskMigrationJobsResponse {
1744
+ /**
1745
+ * Output only. The list of the disk migration jobs.
1746
+ */
1747
+ diskMigrationJobs?: Schema$DiskMigrationJob[];
1748
+ /**
1749
+ * Optional. Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1750
+ */
1751
+ nextPageToken?: string | null;
1752
+ /**
1753
+ * Output only. Locations that could not be reached.
1754
+ */
1755
+ unreachable?: string[] | null;
1756
+ }
1554
1757
  /**
1555
1758
  * Response message for 'ListGroups' request.
1556
1759
  */
@@ -1644,6 +1847,10 @@ export declare namespace vmmigration_v1alpha1 {
1644
1847
  * A list of operations that matches the specified filter in the request.
1645
1848
  */
1646
1849
  operations?: Schema$Operation[];
1850
+ /**
1851
+ * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
1852
+ */
1853
+ unreachable?: string[] | null;
1647
1854
  }
1648
1855
  /**
1649
1856
  * Response message for 'ListReplicationCycles' request.
@@ -2177,6 +2384,11 @@ export declare namespace vmmigration_v1alpha1 {
2177
2384
  */
2178
2385
  export interface Schema$PreparingVMDisksStep {
2179
2386
  }
2387
+ /**
2388
+ * ProvisioningTargetDiskStep contains specific step details.
2389
+ */
2390
+ export interface Schema$ProvisioningTargetDiskStep {
2391
+ }
2180
2392
  /**
2181
2393
  * Request message for 'RemoveMigration' request.
2182
2394
  */
@@ -2270,6 +2482,11 @@ export declare namespace vmmigration_v1alpha1 {
2270
2482
  */
2271
2483
  export interface Schema$ResumeMigrationRequest {
2272
2484
  }
2485
+ /**
2486
+ * Request message for 'RunDiskMigrationJobRequest' request.
2487
+ */
2488
+ export interface Schema$RunDiskMigrationJobRequest {
2489
+ }
2273
2490
  /**
2274
2491
  * A policy for scheduling replications.
2275
2492
  */
@@ -2387,6 +2604,15 @@ export declare namespace vmmigration_v1alpha1 {
2387
2604
  */
2388
2605
  vmware?: Schema$VmwareSourceDetails;
2389
2606
  }
2607
+ /**
2608
+ * SourceStorageResource describes a storage resource in the source.
2609
+ */
2610
+ export interface Schema$SourceStorageResource {
2611
+ /**
2612
+ * Source AWS volume details.
2613
+ */
2614
+ awsDiskDetails?: Schema$AwsSourceDiskDetails;
2615
+ }
2390
2616
  /**
2391
2617
  * Request message for 'StartMigrationRequest' request.
2392
2618
  */
@@ -2978,7 +3204,7 @@ export declare namespace vmmigration_v1alpha1 {
2978
3204
  *
2979
3205
  * // Do the magic
2980
3206
  * const res = await vmmigration.projects.locations.list({
2981
- * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
3207
+ * // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
2982
3208
  * extraLocationTypes: 'placeholder-value',
2983
3209
  * // 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).
2984
3210
  * filter: 'placeholder-value',
@@ -3025,7 +3251,7 @@ export declare namespace vmmigration_v1alpha1 {
3025
3251
  }
3026
3252
  export interface Params$Resource$Projects$Locations$List extends StandardParameters {
3027
3253
  /**
3028
- * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
3254
+ * Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3029
3255
  */
3030
3256
  extraLocationTypes?: string[];
3031
3257
  /**
@@ -3999,7 +4225,7 @@ export declare namespace vmmigration_v1alpha1 {
3999
4225
  context: APIRequestContext;
4000
4226
  constructor(context: APIRequestContext);
4001
4227
  /**
4002
- * Initiates the cancellation of a running clone job.
4228
+ * Initiates the cancellation of a running ImageImportJob.
4003
4229
  * @example
4004
4230
  * ```js
4005
4231
  * // Before running the sample:
@@ -4479,13 +4705,16 @@ export declare namespace vmmigration_v1alpha1 {
4479
4705
  * pageSize: 'placeholder-value',
4480
4706
  * // The standard list page token.
4481
4707
  * pageToken: 'placeholder-value',
4708
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
4709
+ * returnPartialSuccess: 'placeholder-value',
4482
4710
  * });
4483
4711
  * console.log(res.data);
4484
4712
  *
4485
4713
  * // Example response
4486
4714
  * // {
4487
4715
  * // "nextPageToken": "my_nextPageToken",
4488
- * // "operations": []
4716
+ * // "operations": [],
4717
+ * // "unreachable": []
4489
4718
  * // }
4490
4719
  * }
4491
4720
  *
@@ -4547,10 +4776,15 @@ export declare namespace vmmigration_v1alpha1 {
4547
4776
  * The standard list page token.
4548
4777
  */
4549
4778
  pageToken?: string;
4779
+ /**
4780
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
4781
+ */
4782
+ returnPartialSuccess?: boolean;
4550
4783
  }
4551
4784
  export class Resource$Projects$Locations$Sources {
4552
4785
  context: APIRequestContext;
4553
4786
  datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
4787
+ diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
4554
4788
  migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
4555
4789
  utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
4556
4790
  constructor(context: APIRequestContext);
@@ -4775,6 +5009,77 @@ export declare namespace vmmigration_v1alpha1 {
4775
5009
  fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchInventoryResponse>, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
4776
5010
  fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
4777
5011
  fetchInventory(callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
5012
+ /**
5013
+ * List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
5014
+ * @example
5015
+ * ```js
5016
+ * // Before running the sample:
5017
+ * // - Enable the API at:
5018
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5019
+ * // - Login into gcloud by running:
5020
+ * // ```sh
5021
+ * // $ gcloud auth application-default login
5022
+ * // ```
5023
+ * // - Install the npm module by running:
5024
+ * // ```sh
5025
+ * // $ npm install googleapis
5026
+ * // ```
5027
+ *
5028
+ * const {google} = require('googleapis');
5029
+ * const vmmigration = google.vmmigration('v1alpha1');
5030
+ *
5031
+ * async function main() {
5032
+ * const auth = new google.auth.GoogleAuth({
5033
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5034
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5035
+ * });
5036
+ *
5037
+ * // Acquire an auth client, and bind it to all future calls
5038
+ * const authClient = await auth.getClient();
5039
+ * google.options({auth: authClient});
5040
+ *
5041
+ * // Do the magic
5042
+ * const res =
5043
+ * await vmmigration.projects.locations.sources.fetchStorageInventory({
5044
+ * // Optional. 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.
5045
+ * forceRefresh: 'placeholder-value',
5046
+ * // Optional. The maximum number of VMs to return. The service may return fewer than this value.
5047
+ * pageSize: 'placeholder-value',
5048
+ * // Optional. A page token, received from a previous `FetchStorageInventory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchStorageInventory` must match the call that provided the page token.
5049
+ * pageToken: 'placeholder-value',
5050
+ * // Required. The name of the Source.
5051
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
5052
+ * // Required. The type of the storage inventory to fetch.
5053
+ * type: 'placeholder-value',
5054
+ * });
5055
+ * console.log(res.data);
5056
+ *
5057
+ * // Example response
5058
+ * // {
5059
+ * // "nextPageToken": "my_nextPageToken",
5060
+ * // "resources": [],
5061
+ * // "updateTime": "my_updateTime"
5062
+ * // }
5063
+ * }
5064
+ *
5065
+ * main().catch(e => {
5066
+ * console.error(e);
5067
+ * throw e;
5068
+ * });
5069
+ *
5070
+ * ```
5071
+ *
5072
+ * @param params - Parameters for request
5073
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5074
+ * @param callback - Optional callback that handles the response.
5075
+ * @returns A promise if used with async/await, or void if used with a callback.
5076
+ */
5077
+ fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5078
+ fetchStorageInventory(params?: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>;
5079
+ fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5080
+ fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchStorageInventoryResponse>, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
5081
+ fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
5082
+ fetchStorageInventory(callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
4778
5083
  /**
4779
5084
  * Gets details of a single Source.
4780
5085
  * @example
@@ -5046,6 +5351,28 @@ export declare namespace vmmigration_v1alpha1 {
5046
5351
  */
5047
5352
  source?: string;
5048
5353
  }
5354
+ export interface Params$Resource$Projects$Locations$Sources$Fetchstorageinventory extends StandardParameters {
5355
+ /**
5356
+ * Optional. 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.
5357
+ */
5358
+ forceRefresh?: boolean;
5359
+ /**
5360
+ * Optional. The maximum number of VMs to return. The service may return fewer than this value.
5361
+ */
5362
+ pageSize?: number;
5363
+ /**
5364
+ * Optional. A page token, received from a previous `FetchStorageInventory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchStorageInventory` must match the call that provided the page token.
5365
+ */
5366
+ pageToken?: string;
5367
+ /**
5368
+ * Required. The name of the Source.
5369
+ */
5370
+ source?: string;
5371
+ /**
5372
+ * Required. The type of the storage inventory to fetch.
5373
+ */
5374
+ type?: string;
5375
+ }
5049
5376
  export interface Params$Resource$Projects$Locations$Sources$Get extends StandardParameters {
5050
5377
  /**
5051
5378
  * Required. The Source name.
@@ -5540,6 +5867,614 @@ export declare namespace vmmigration_v1alpha1 {
5540
5867
  */
5541
5868
  requestBody?: Schema$UpgradeApplianceRequest;
5542
5869
  }
5870
+ export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
5871
+ context: APIRequestContext;
5872
+ constructor(context: APIRequestContext);
5873
+ /**
5874
+ * Cancels the disk migration job.
5875
+ * @example
5876
+ * ```js
5877
+ * // Before running the sample:
5878
+ * // - Enable the API at:
5879
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5880
+ * // - Login into gcloud by running:
5881
+ * // ```sh
5882
+ * // $ gcloud auth application-default login
5883
+ * // ```
5884
+ * // - Install the npm module by running:
5885
+ * // ```sh
5886
+ * // $ npm install googleapis
5887
+ * // ```
5888
+ *
5889
+ * const {google} = require('googleapis');
5890
+ * const vmmigration = google.vmmigration('v1alpha1');
5891
+ *
5892
+ * async function main() {
5893
+ * const auth = new google.auth.GoogleAuth({
5894
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5895
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5896
+ * });
5897
+ *
5898
+ * // Acquire an auth client, and bind it to all future calls
5899
+ * const authClient = await auth.getClient();
5900
+ * google.options({auth: authClient});
5901
+ *
5902
+ * // Do the magic
5903
+ * const res =
5904
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.cancel({
5905
+ * // Required. The name of the DiskMigrationJob.
5906
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
5907
+ *
5908
+ * // Request body metadata
5909
+ * requestBody: {
5910
+ * // request body parameters
5911
+ * // {}
5912
+ * },
5913
+ * });
5914
+ * console.log(res.data);
5915
+ *
5916
+ * // Example response
5917
+ * // {
5918
+ * // "done": false,
5919
+ * // "error": {},
5920
+ * // "metadata": {},
5921
+ * // "name": "my_name",
5922
+ * // "response": {}
5923
+ * // }
5924
+ * }
5925
+ *
5926
+ * main().catch(e => {
5927
+ * console.error(e);
5928
+ * throw e;
5929
+ * });
5930
+ *
5931
+ * ```
5932
+ *
5933
+ * @param params - Parameters for request
5934
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5935
+ * @param callback - Optional callback that handles the response.
5936
+ * @returns A promise if used with async/await, or void if used with a callback.
5937
+ */
5938
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5939
+ cancel(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5940
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5941
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5942
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
5943
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
5944
+ /**
5945
+ * Creates a new disk migration job in a given Source.
5946
+ * @example
5947
+ * ```js
5948
+ * // Before running the sample:
5949
+ * // - Enable the API at:
5950
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
5951
+ * // - Login into gcloud by running:
5952
+ * // ```sh
5953
+ * // $ gcloud auth application-default login
5954
+ * // ```
5955
+ * // - Install the npm module by running:
5956
+ * // ```sh
5957
+ * // $ npm install googleapis
5958
+ * // ```
5959
+ *
5960
+ * const {google} = require('googleapis');
5961
+ * const vmmigration = google.vmmigration('v1alpha1');
5962
+ *
5963
+ * async function main() {
5964
+ * const auth = new google.auth.GoogleAuth({
5965
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5966
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5967
+ * });
5968
+ *
5969
+ * // Acquire an auth client, and bind it to all future calls
5970
+ * const authClient = await auth.getClient();
5971
+ * google.options({auth: authClient});
5972
+ *
5973
+ * // Do the magic
5974
+ * const res =
5975
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.create({
5976
+ * // Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.
5977
+ * diskMigrationJobId: 'placeholder-value',
5978
+ * // Required. The DiskMigrationJob's parent.
5979
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
5980
+ * // 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 timed 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).
5981
+ * requestId: 'placeholder-value',
5982
+ *
5983
+ * // Request body metadata
5984
+ * requestBody: {
5985
+ * // request body parameters
5986
+ * // {
5987
+ * // "awsSourceDiskDetails": {},
5988
+ * // "createTime": "my_createTime",
5989
+ * // "errors": [],
5990
+ * // "name": "my_name",
5991
+ * // "state": "my_state",
5992
+ * // "steps": [],
5993
+ * // "targetDetails": {},
5994
+ * // "updateTime": "my_updateTime"
5995
+ * // }
5996
+ * },
5997
+ * });
5998
+ * console.log(res.data);
5999
+ *
6000
+ * // Example response
6001
+ * // {
6002
+ * // "done": false,
6003
+ * // "error": {},
6004
+ * // "metadata": {},
6005
+ * // "name": "my_name",
6006
+ * // "response": {}
6007
+ * // }
6008
+ * }
6009
+ *
6010
+ * main().catch(e => {
6011
+ * console.error(e);
6012
+ * throw e;
6013
+ * });
6014
+ *
6015
+ * ```
6016
+ *
6017
+ * @param params - Parameters for request
6018
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6019
+ * @param callback - Optional callback that handles the response.
6020
+ * @returns A promise if used with async/await, or void if used with a callback.
6021
+ */
6022
+ create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6023
+ create(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6024
+ create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6025
+ create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6026
+ create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
6027
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
6028
+ /**
6029
+ * Deletes a single DiskMigrationJob.
6030
+ * @example
6031
+ * ```js
6032
+ * // Before running the sample:
6033
+ * // - Enable the API at:
6034
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6035
+ * // - Login into gcloud by running:
6036
+ * // ```sh
6037
+ * // $ gcloud auth application-default login
6038
+ * // ```
6039
+ * // - Install the npm module by running:
6040
+ * // ```sh
6041
+ * // $ npm install googleapis
6042
+ * // ```
6043
+ *
6044
+ * const {google} = require('googleapis');
6045
+ * const vmmigration = google.vmmigration('v1alpha1');
6046
+ *
6047
+ * async function main() {
6048
+ * const auth = new google.auth.GoogleAuth({
6049
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6050
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6051
+ * });
6052
+ *
6053
+ * // Acquire an auth client, and bind it to all future calls
6054
+ * const authClient = await auth.getClient();
6055
+ * google.options({auth: authClient});
6056
+ *
6057
+ * // Do the magic
6058
+ * const res =
6059
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.delete({
6060
+ * // Required. The name of the DiskMigrationJob.
6061
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
6062
+ * });
6063
+ * console.log(res.data);
6064
+ *
6065
+ * // Example response
6066
+ * // {
6067
+ * // "done": false,
6068
+ * // "error": {},
6069
+ * // "metadata": {},
6070
+ * // "name": "my_name",
6071
+ * // "response": {}
6072
+ * // }
6073
+ * }
6074
+ *
6075
+ * main().catch(e => {
6076
+ * console.error(e);
6077
+ * throw e;
6078
+ * });
6079
+ *
6080
+ * ```
6081
+ *
6082
+ * @param params - Parameters for request
6083
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6084
+ * @param callback - Optional callback that handles the response.
6085
+ * @returns A promise if used with async/await, or void if used with a callback.
6086
+ */
6087
+ delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6088
+ delete(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6089
+ delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6090
+ delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6091
+ delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
6092
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
6093
+ /**
6094
+ * Gets details of a single DiskMigrationJob.
6095
+ * @example
6096
+ * ```js
6097
+ * // Before running the sample:
6098
+ * // - Enable the API at:
6099
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6100
+ * // - Login into gcloud by running:
6101
+ * // ```sh
6102
+ * // $ gcloud auth application-default login
6103
+ * // ```
6104
+ * // - Install the npm module by running:
6105
+ * // ```sh
6106
+ * // $ npm install googleapis
6107
+ * // ```
6108
+ *
6109
+ * const {google} = require('googleapis');
6110
+ * const vmmigration = google.vmmigration('v1alpha1');
6111
+ *
6112
+ * async function main() {
6113
+ * const auth = new google.auth.GoogleAuth({
6114
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6115
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6116
+ * });
6117
+ *
6118
+ * // Acquire an auth client, and bind it to all future calls
6119
+ * const authClient = await auth.getClient();
6120
+ * google.options({auth: authClient});
6121
+ *
6122
+ * // Do the magic
6123
+ * const res =
6124
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.get({
6125
+ * // Required. The name of the DiskMigrationJob.
6126
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
6127
+ * });
6128
+ * console.log(res.data);
6129
+ *
6130
+ * // Example response
6131
+ * // {
6132
+ * // "awsSourceDiskDetails": {},
6133
+ * // "createTime": "my_createTime",
6134
+ * // "errors": [],
6135
+ * // "name": "my_name",
6136
+ * // "state": "my_state",
6137
+ * // "steps": [],
6138
+ * // "targetDetails": {},
6139
+ * // "updateTime": "my_updateTime"
6140
+ * // }
6141
+ * }
6142
+ *
6143
+ * main().catch(e => {
6144
+ * console.error(e);
6145
+ * throw e;
6146
+ * });
6147
+ *
6148
+ * ```
6149
+ *
6150
+ * @param params - Parameters for request
6151
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6152
+ * @param callback - Optional callback that handles the response.
6153
+ * @returns A promise if used with async/await, or void if used with a callback.
6154
+ */
6155
+ get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6156
+ get(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>;
6157
+ get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6158
+ get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: MethodOptions | BodyResponseCallback<Schema$DiskMigrationJob>, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
6159
+ get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
6160
+ get(callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
6161
+ /**
6162
+ * Lists DiskMigrationJobs in a given Source.
6163
+ * @example
6164
+ * ```js
6165
+ * // Before running the sample:
6166
+ * // - Enable the API at:
6167
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6168
+ * // - Login into gcloud by running:
6169
+ * // ```sh
6170
+ * // $ gcloud auth application-default login
6171
+ * // ```
6172
+ * // - Install the npm module by running:
6173
+ * // ```sh
6174
+ * // $ npm install googleapis
6175
+ * // ```
6176
+ *
6177
+ * const {google} = require('googleapis');
6178
+ * const vmmigration = google.vmmigration('v1alpha1');
6179
+ *
6180
+ * async function main() {
6181
+ * const auth = new google.auth.GoogleAuth({
6182
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6183
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6184
+ * });
6185
+ *
6186
+ * // Acquire an auth client, and bind it to all future calls
6187
+ * const authClient = await auth.getClient();
6188
+ * google.options({auth: authClient});
6189
+ *
6190
+ * // Do the magic
6191
+ * const res =
6192
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.list({
6193
+ * // Optional. The filter request (according to AIP-160).
6194
+ * filter: 'placeholder-value',
6195
+ * // Optional. Ordering of the result list.
6196
+ * orderBy: 'placeholder-value',
6197
+ * // Optional. The maximum number of disk migration jobs to return. The service may return fewer than this value. If unspecified, at most 500 disk migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
6198
+ * pageSize: 'placeholder-value',
6199
+ * // Optional. A page token, received from a previous `ListDiskMigrationJobs` call. Provide this to retrieve the subsequent page. When paginating, all parameters provided to `ListDiskMigrationJobs` except `page_size` must match the call that provided the page token.
6200
+ * pageToken: 'placeholder-value',
6201
+ * // Required. The parent, which owns this collection of DiskMigrationJobs.
6202
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
6203
+ * });
6204
+ * console.log(res.data);
6205
+ *
6206
+ * // Example response
6207
+ * // {
6208
+ * // "diskMigrationJobs": [],
6209
+ * // "nextPageToken": "my_nextPageToken",
6210
+ * // "unreachable": []
6211
+ * // }
6212
+ * }
6213
+ *
6214
+ * main().catch(e => {
6215
+ * console.error(e);
6216
+ * throw e;
6217
+ * });
6218
+ *
6219
+ * ```
6220
+ *
6221
+ * @param params - Parameters for request
6222
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6223
+ * @param callback - Optional callback that handles the response.
6224
+ * @returns A promise if used with async/await, or void if used with a callback.
6225
+ */
6226
+ list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6227
+ list(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>;
6228
+ list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6229
+ list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
6230
+ list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
6231
+ list(callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
6232
+ /**
6233
+ * Updates the parameters of a single DiskMigrationJob.
6234
+ * @example
6235
+ * ```js
6236
+ * // Before running the sample:
6237
+ * // - Enable the API at:
6238
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6239
+ * // - Login into gcloud by running:
6240
+ * // ```sh
6241
+ * // $ gcloud auth application-default login
6242
+ * // ```
6243
+ * // - Install the npm module by running:
6244
+ * // ```sh
6245
+ * // $ npm install googleapis
6246
+ * // ```
6247
+ *
6248
+ * const {google} = require('googleapis');
6249
+ * const vmmigration = google.vmmigration('v1alpha1');
6250
+ *
6251
+ * async function main() {
6252
+ * const auth = new google.auth.GoogleAuth({
6253
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6254
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6255
+ * });
6256
+ *
6257
+ * // Acquire an auth client, and bind it to all future calls
6258
+ * const authClient = await auth.getClient();
6259
+ * google.options({auth: authClient});
6260
+ *
6261
+ * // Do the magic
6262
+ * const res =
6263
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.patch({
6264
+ * // Output only. Identifier. The identifier of the DiskMigrationJob.
6265
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
6266
+ * // 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 timed 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).
6267
+ * requestId: 'placeholder-value',
6268
+ * // Optional. Field mask is used to specify the fields to be overwritten in the DiskMigrationJob 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 a mask equivalent to all fields that are populated (have a non-empty value), will be implied.
6269
+ * updateMask: 'placeholder-value',
6270
+ *
6271
+ * // Request body metadata
6272
+ * requestBody: {
6273
+ * // request body parameters
6274
+ * // {
6275
+ * // "awsSourceDiskDetails": {},
6276
+ * // "createTime": "my_createTime",
6277
+ * // "errors": [],
6278
+ * // "name": "my_name",
6279
+ * // "state": "my_state",
6280
+ * // "steps": [],
6281
+ * // "targetDetails": {},
6282
+ * // "updateTime": "my_updateTime"
6283
+ * // }
6284
+ * },
6285
+ * });
6286
+ * console.log(res.data);
6287
+ *
6288
+ * // Example response
6289
+ * // {
6290
+ * // "done": false,
6291
+ * // "error": {},
6292
+ * // "metadata": {},
6293
+ * // "name": "my_name",
6294
+ * // "response": {}
6295
+ * // }
6296
+ * }
6297
+ *
6298
+ * main().catch(e => {
6299
+ * console.error(e);
6300
+ * throw e;
6301
+ * });
6302
+ *
6303
+ * ```
6304
+ *
6305
+ * @param params - Parameters for request
6306
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6307
+ * @param callback - Optional callback that handles the response.
6308
+ * @returns A promise if used with async/await, or void if used with a callback.
6309
+ */
6310
+ patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6311
+ patch(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6312
+ patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6313
+ patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6314
+ patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
6315
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
6316
+ /**
6317
+ * Runs the disk migration job.
6318
+ * @example
6319
+ * ```js
6320
+ * // Before running the sample:
6321
+ * // - Enable the API at:
6322
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6323
+ * // - Login into gcloud by running:
6324
+ * // ```sh
6325
+ * // $ gcloud auth application-default login
6326
+ * // ```
6327
+ * // - Install the npm module by running:
6328
+ * // ```sh
6329
+ * // $ npm install googleapis
6330
+ * // ```
6331
+ *
6332
+ * const {google} = require('googleapis');
6333
+ * const vmmigration = google.vmmigration('v1alpha1');
6334
+ *
6335
+ * async function main() {
6336
+ * const auth = new google.auth.GoogleAuth({
6337
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6338
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6339
+ * });
6340
+ *
6341
+ * // Acquire an auth client, and bind it to all future calls
6342
+ * const authClient = await auth.getClient();
6343
+ * google.options({auth: authClient});
6344
+ *
6345
+ * // Do the magic
6346
+ * const res =
6347
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.run({
6348
+ * // Required. The name of the DiskMigrationJob.
6349
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
6350
+ *
6351
+ * // Request body metadata
6352
+ * requestBody: {
6353
+ * // request body parameters
6354
+ * // {}
6355
+ * },
6356
+ * });
6357
+ * console.log(res.data);
6358
+ *
6359
+ * // Example response
6360
+ * // {
6361
+ * // "done": false,
6362
+ * // "error": {},
6363
+ * // "metadata": {},
6364
+ * // "name": "my_name",
6365
+ * // "response": {}
6366
+ * // }
6367
+ * }
6368
+ *
6369
+ * main().catch(e => {
6370
+ * console.error(e);
6371
+ * throw e;
6372
+ * });
6373
+ *
6374
+ * ```
6375
+ *
6376
+ * @param params - Parameters for request
6377
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6378
+ * @param callback - Optional callback that handles the response.
6379
+ * @returns A promise if used with async/await, or void if used with a callback.
6380
+ */
6381
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6382
+ run(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6383
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6384
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6385
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, callback: BodyResponseCallback<Schema$Operation>): void;
6386
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
6387
+ }
6388
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel extends StandardParameters {
6389
+ /**
6390
+ * Required. The name of the DiskMigrationJob.
6391
+ */
6392
+ name?: string;
6393
+ /**
6394
+ * Request body metadata
6395
+ */
6396
+ requestBody?: Schema$CancelDiskMigrationJobRequest;
6397
+ }
6398
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create extends StandardParameters {
6399
+ /**
6400
+ * Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.
6401
+ */
6402
+ diskMigrationJobId?: string;
6403
+ /**
6404
+ * Required. The DiskMigrationJob's parent.
6405
+ */
6406
+ parent?: string;
6407
+ /**
6408
+ * 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 timed 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).
6409
+ */
6410
+ requestId?: string;
6411
+ /**
6412
+ * Request body metadata
6413
+ */
6414
+ requestBody?: Schema$DiskMigrationJob;
6415
+ }
6416
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete extends StandardParameters {
6417
+ /**
6418
+ * Required. The name of the DiskMigrationJob.
6419
+ */
6420
+ name?: string;
6421
+ }
6422
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get extends StandardParameters {
6423
+ /**
6424
+ * Required. The name of the DiskMigrationJob.
6425
+ */
6426
+ name?: string;
6427
+ }
6428
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List extends StandardParameters {
6429
+ /**
6430
+ * Optional. The filter request (according to AIP-160).
6431
+ */
6432
+ filter?: string;
6433
+ /**
6434
+ * Optional. Ordering of the result list.
6435
+ */
6436
+ orderBy?: string;
6437
+ /**
6438
+ * Optional. The maximum number of disk migration jobs to return. The service may return fewer than this value. If unspecified, at most 500 disk migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
6439
+ */
6440
+ pageSize?: number;
6441
+ /**
6442
+ * Optional. A page token, received from a previous `ListDiskMigrationJobs` call. Provide this to retrieve the subsequent page. When paginating, all parameters provided to `ListDiskMigrationJobs` except `page_size` must match the call that provided the page token.
6443
+ */
6444
+ pageToken?: string;
6445
+ /**
6446
+ * Required. The parent, which owns this collection of DiskMigrationJobs.
6447
+ */
6448
+ parent?: string;
6449
+ }
6450
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch extends StandardParameters {
6451
+ /**
6452
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
6453
+ */
6454
+ name?: string;
6455
+ /**
6456
+ * 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 timed 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).
6457
+ */
6458
+ requestId?: string;
6459
+ /**
6460
+ * Optional. Field mask is used to specify the fields to be overwritten in the DiskMigrationJob 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 a mask equivalent to all fields that are populated (have a non-empty value), will be implied.
6461
+ */
6462
+ updateMask?: string;
6463
+ /**
6464
+ * Request body metadata
6465
+ */
6466
+ requestBody?: Schema$DiskMigrationJob;
6467
+ }
6468
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run extends StandardParameters {
6469
+ /**
6470
+ * Required. The name of the DiskMigrationJob.
6471
+ */
6472
+ name?: string;
6473
+ /**
6474
+ * Request body metadata
6475
+ */
6476
+ requestBody?: Schema$RunDiskMigrationJobRequest;
6477
+ }
5543
6478
  export class Resource$Projects$Locations$Sources$Migratingvms {
5544
6479
  context: APIRequestContext;
5545
6480
  cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;