@googleapis/vmmigration 14.3.0 → 16.0.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/v1alpha1.ts CHANGED
@@ -141,6 +141,19 @@ export namespace vmmigration_v1alpha1 {
141
141
  */
142
142
  sessionToken?: string | null;
143
143
  }
144
+ /**
145
+ * AdaptationModifier a modifier to be used for configuration of the OS adaptation process.
146
+ */
147
+ export interface Schema$AdaptationModifier {
148
+ /**
149
+ * Optional. The modifier name.
150
+ */
151
+ modifier?: string | null;
152
+ /**
153
+ * Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.
154
+ */
155
+ value?: string | null;
156
+ }
144
157
  /**
145
158
  * AdaptingOSStep contains specific step details.
146
159
  */
@@ -268,6 +281,27 @@ export namespace vmmigration_v1alpha1 {
268
281
  */
269
282
  state?: string | null;
270
283
  }
284
+ /**
285
+ * Represents the source AWS Disk details.
286
+ */
287
+ export interface Schema$AwsSourceDiskDetails {
288
+ /**
289
+ * Optional. Output only. Disk type.
290
+ */
291
+ diskType?: string | null;
292
+ /**
293
+ * Output only. Size in GiB.
294
+ */
295
+ sizeGib?: string | null;
296
+ /**
297
+ * Optional. Output only. A map of AWS volume tags.
298
+ */
299
+ tags?: {[key: string]: string} | null;
300
+ /**
301
+ * Required. AWS volume ID.
302
+ */
303
+ volumeId?: string | null;
304
+ }
271
305
  /**
272
306
  * Represent the source AWS VM details.
273
307
  */
@@ -561,6 +595,10 @@ export namespace vmmigration_v1alpha1 {
561
595
  * Request message for 'CancelCutoverJob' request.
562
596
  */
563
597
  export interface Schema$CancelCutoverJobRequest {}
598
+ /**
599
+ * Request message for 'CancelDiskMigrationJob' request.
600
+ */
601
+ export interface Schema$CancelDiskMigrationJobRequest {}
564
602
  /**
565
603
  * Request message for 'CancelImageImportJob' request.
566
604
  */
@@ -660,6 +698,27 @@ export namespace vmmigration_v1alpha1 {
660
698
  */
661
699
  startTime?: string | null;
662
700
  }
701
+ /**
702
+ * Compute Engine disk target details.
703
+ */
704
+ export interface Schema$ComputeEngineDisk {
705
+ /**
706
+ * 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.
707
+ */
708
+ diskId?: string | null;
709
+ /**
710
+ * Required. The disk type to use.
711
+ */
712
+ diskType?: string | null;
713
+ /**
714
+ * 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.
715
+ */
716
+ replicaZones?: string[] | null;
717
+ /**
718
+ * Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project\}/locations/{zone\}
719
+ */
720
+ zone?: string | null;
721
+ }
663
722
  /**
664
723
  * ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
665
724
  */
@@ -706,6 +765,10 @@ export namespace vmmigration_v1alpha1 {
706
765
  * ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
707
766
  */
708
767
  export interface Schema$ComputeEngineTargetDefaults {
768
+ /**
769
+ * Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.
770
+ */
771
+ adaptationModifiers?: Schema$AdaptationModifier[];
709
772
  /**
710
773
  * Additional licenses to assign to the VM.
711
774
  */
@@ -803,6 +866,10 @@ export namespace vmmigration_v1alpha1 {
803
866
  * ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
804
867
  */
805
868
  export interface Schema$ComputeEngineTargetDetails {
869
+ /**
870
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
871
+ */
872
+ adaptationModifiers?: Schema$AdaptationModifier[];
806
873
  /**
807
874
  * Additional licenses to assign to the VM.
808
875
  */
@@ -918,10 +985,18 @@ export namespace vmmigration_v1alpha1 {
918
985
  */
919
986
  restartType?: string | null;
920
987
  }
988
+ /**
989
+ * CopyingSourceDiskSnapshotStep contains specific step details.
990
+ */
991
+ export interface Schema$CopyingSourceDiskSnapshotStep {}
921
992
  /**
922
993
  * CreatingImageStep contains specific step details.
923
994
  */
924
995
  export interface Schema$CreatingImageStep {}
996
+ /**
997
+ * CreatingSourceDiskSnapshotStep contains specific step details.
998
+ */
999
+ export interface Schema$CreatingSourceDiskSnapshotStep {}
925
1000
  /**
926
1001
  * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
927
1002
  */
@@ -1186,6 +1261,89 @@ export namespace vmmigration_v1alpha1 {
1186
1261
  */
1187
1262
  targetProject?: string | null;
1188
1263
  }
1264
+ /**
1265
+ * Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
1266
+ */
1267
+ export interface Schema$DiskMigrationJob {
1268
+ /**
1269
+ * Details of the unattached AWS source disk.
1270
+ */
1271
+ awsSourceDiskDetails?: Schema$AwsSourceDiskDetails;
1272
+ /**
1273
+ * Output only. The time the DiskMigrationJob resource was created.
1274
+ */
1275
+ createTime?: string | null;
1276
+ /**
1277
+ * Output only. Provides details on the errors that led to the disk migration job's state in case of an error.
1278
+ */
1279
+ errors?: Schema$Status[];
1280
+ /**
1281
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
1282
+ */
1283
+ name?: string | null;
1284
+ /**
1285
+ * Output only. State of the DiskMigrationJob.
1286
+ */
1287
+ state?: string | null;
1288
+ /**
1289
+ * Output only. The disk migration steps list representing its progress.
1290
+ */
1291
+ steps?: Schema$DiskMigrationStep[];
1292
+ /**
1293
+ * Required. Details of the target Disk in Compute Engine.
1294
+ */
1295
+ targetDetails?: Schema$DiskMigrationJobTargetDetails;
1296
+ /**
1297
+ * Output only. The last time the DiskMigrationJob resource was updated.
1298
+ */
1299
+ updateTime?: string | null;
1300
+ }
1301
+ /**
1302
+ * Details of the target disk in Compute Engine.
1303
+ */
1304
+ export interface Schema$DiskMigrationJobTargetDetails {
1305
+ /**
1306
+ * 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.
1307
+ */
1308
+ encryption?: Schema$Encryption;
1309
+ /**
1310
+ * Optional. A map of labels to associate with the disk.
1311
+ */
1312
+ labels?: {[key: string]: string} | null;
1313
+ /**
1314
+ * Required. The target disk.
1315
+ */
1316
+ targetDisk?: Schema$ComputeEngineDisk;
1317
+ /**
1318
+ * 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\}
1319
+ */
1320
+ targetProject?: string | null;
1321
+ }
1322
+ /**
1323
+ * DiskMigrationStep holds information about the disk migration step progress.
1324
+ */
1325
+ export interface Schema$DiskMigrationStep {
1326
+ /**
1327
+ * Copying source disk snapshot step.
1328
+ */
1329
+ copyingSourceDiskSnapshot?: Schema$CopyingSourceDiskSnapshotStep;
1330
+ /**
1331
+ * Creating source disk snapshot step.
1332
+ */
1333
+ creatingSourceDiskSnapshot?: Schema$CreatingSourceDiskSnapshotStep;
1334
+ /**
1335
+ * Output only. The time the step has ended.
1336
+ */
1337
+ endTime?: string | null;
1338
+ /**
1339
+ * Creating target disk step.
1340
+ */
1341
+ provisioningTargetDisk?: Schema$ProvisioningTargetDiskStep;
1342
+ /**
1343
+ * Output only. The time the step has started.
1344
+ */
1345
+ startTime?: string | null;
1346
+ }
1189
1347
  /**
1190
1348
  * Details for a disk only migration.
1191
1349
  */
@@ -1331,6 +1489,23 @@ export namespace vmmigration_v1alpha1 {
1331
1489
  */
1332
1490
  vmwareVms?: Schema$VmwareVmsDetails;
1333
1491
  }
1492
+ /**
1493
+ * Response message for fetchStorageInventory.
1494
+ */
1495
+ export interface Schema$FetchStorageInventoryResponse {
1496
+ /**
1497
+ * 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.
1498
+ */
1499
+ nextPageToken?: string | null;
1500
+ /**
1501
+ * The list of storage resources in the source.
1502
+ */
1503
+ resources?: Schema$SourceStorageResource[];
1504
+ /**
1505
+ * Output only. The timestamp when the source was last queried (if the result is from the cache).
1506
+ */
1507
+ updateTime?: string | null;
1508
+ }
1334
1509
  /**
1335
1510
  * Request message for 'FinalizeMigration' request.
1336
1511
  */
@@ -1450,6 +1625,10 @@ export namespace vmmigration_v1alpha1 {
1450
1625
  * Parameters affecting the OS adaptation process.
1451
1626
  */
1452
1627
  export interface Schema$ImageImportOsAdaptationParameters {
1628
+ /**
1629
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
1630
+ */
1631
+ adaptationModifiers?: Schema$AdaptationModifier[];
1453
1632
  /**
1454
1633
  * 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
1455
1634
  */
@@ -1568,6 +1747,23 @@ export namespace vmmigration_v1alpha1 {
1568
1747
  */
1569
1748
  unreachable?: string[] | null;
1570
1749
  }
1750
+ /**
1751
+ * Response message for 'ListDiskMigrationJobs' request.
1752
+ */
1753
+ export interface Schema$ListDiskMigrationJobsResponse {
1754
+ /**
1755
+ * Output only. The list of the disk migration jobs.
1756
+ */
1757
+ diskMigrationJobs?: Schema$DiskMigrationJob[];
1758
+ /**
1759
+ * 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.
1760
+ */
1761
+ nextPageToken?: string | null;
1762
+ /**
1763
+ * Output only. Locations that could not be reached.
1764
+ */
1765
+ unreachable?: string[] | null;
1766
+ }
1571
1767
  /**
1572
1768
  * Response message for 'ListGroups' request.
1573
1769
  */
@@ -2014,7 +2210,7 @@ export namespace vmmigration_v1alpha1 {
2014
2210
  */
2015
2211
  internalIp?: string | null;
2016
2212
  /**
2017
- * The network to connect the NIC to.
2213
+ * Optional. The network to connect the NIC to.
2018
2214
  */
2019
2215
  network?: string | null;
2020
2216
  /**
@@ -2176,6 +2372,10 @@ export namespace vmmigration_v1alpha1 {
2176
2372
  * PreparingVMDisksStep contains specific step details.
2177
2373
  */
2178
2374
  export interface Schema$PreparingVMDisksStep {}
2375
+ /**
2376
+ * ProvisioningTargetDiskStep contains specific step details.
2377
+ */
2378
+ export interface Schema$ProvisioningTargetDiskStep {}
2179
2379
  /**
2180
2380
  * Request message for 'RemoveMigration' request.
2181
2381
  */
@@ -2268,6 +2468,10 @@ export namespace vmmigration_v1alpha1 {
2268
2468
  * Request message for 'ResumeMigration' request.
2269
2469
  */
2270
2470
  export interface Schema$ResumeMigrationRequest {}
2471
+ /**
2472
+ * Request message for 'RunDiskMigrationJobRequest' request.
2473
+ */
2474
+ export interface Schema$RunDiskMigrationJobRequest {}
2271
2475
  /**
2272
2476
  * A policy for scheduling replications.
2273
2477
  */
@@ -2381,6 +2585,15 @@ export namespace vmmigration_v1alpha1 {
2381
2585
  */
2382
2586
  vmware?: Schema$VmwareSourceDetails;
2383
2587
  }
2588
+ /**
2589
+ * SourceStorageResource describes a storage resource in the source.
2590
+ */
2591
+ export interface Schema$SourceStorageResource {
2592
+ /**
2593
+ * Source AWS volume details.
2594
+ */
2595
+ awsDiskDetails?: Schema$AwsSourceDiskDetails;
2596
+ }
2384
2597
  /**
2385
2598
  * Request message for 'StartMigrationRequest' request.
2386
2599
  */
@@ -3058,7 +3271,7 @@ export namespace vmmigration_v1alpha1 {
3058
3271
  *
3059
3272
  * // Do the magic
3060
3273
  * const res = await vmmigration.projects.locations.list({
3061
- * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3274
+ * // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3062
3275
  * extraLocationTypes: 'placeholder-value',
3063
3276
  * // 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).
3064
3277
  * filter: 'placeholder-value',
@@ -3186,7 +3399,7 @@ export namespace vmmigration_v1alpha1 {
3186
3399
  export interface Params$Resource$Projects$Locations$List
3187
3400
  extends StandardParameters {
3188
3401
  /**
3189
- * Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3402
+ * Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3190
3403
  */
3191
3404
  extraLocationTypes?: string[];
3192
3405
  /**
@@ -5030,7 +5243,7 @@ export namespace vmmigration_v1alpha1 {
5030
5243
  }
5031
5244
 
5032
5245
  /**
5033
- * Initiates the cancellation of a running clone job.
5246
+ * Initiates the cancellation of a running ImageImportJob.
5034
5247
  * @example
5035
5248
  * ```js
5036
5249
  * // Before running the sample:
@@ -6135,6 +6348,7 @@ export namespace vmmigration_v1alpha1 {
6135
6348
  export class Resource$Projects$Locations$Sources {
6136
6349
  context: APIRequestContext;
6137
6350
  datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
6351
+ diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
6138
6352
  migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
6139
6353
  utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
6140
6354
  constructor(context: APIRequestContext) {
@@ -6143,6 +6357,8 @@ export namespace vmmigration_v1alpha1 {
6143
6357
  new Resource$Projects$Locations$Sources$Datacenterconnectors(
6144
6358
  this.context
6145
6359
  );
6360
+ this.diskMigrationJobs =
6361
+ new Resource$Projects$Locations$Sources$Diskmigrationjobs(this.context);
6146
6362
  this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(
6147
6363
  this.context
6148
6364
  );
@@ -6606,6 +6822,160 @@ export namespace vmmigration_v1alpha1 {
6606
6822
  }
6607
6823
  }
6608
6824
 
6825
+ /**
6826
+ * 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.
6827
+ * @example
6828
+ * ```js
6829
+ * // Before running the sample:
6830
+ * // - Enable the API at:
6831
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6832
+ * // - Login into gcloud by running:
6833
+ * // ```sh
6834
+ * // $ gcloud auth application-default login
6835
+ * // ```
6836
+ * // - Install the npm module by running:
6837
+ * // ```sh
6838
+ * // $ npm install googleapis
6839
+ * // ```
6840
+ *
6841
+ * const {google} = require('googleapis');
6842
+ * const vmmigration = google.vmmigration('v1alpha1');
6843
+ *
6844
+ * async function main() {
6845
+ * const auth = new google.auth.GoogleAuth({
6846
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6847
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6848
+ * });
6849
+ *
6850
+ * // Acquire an auth client, and bind it to all future calls
6851
+ * const authClient = await auth.getClient();
6852
+ * google.options({auth: authClient});
6853
+ *
6854
+ * // Do the magic
6855
+ * const res =
6856
+ * await vmmigration.projects.locations.sources.fetchStorageInventory({
6857
+ * // 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.
6858
+ * forceRefresh: 'placeholder-value',
6859
+ * // Optional. The maximum number of VMs to return. The service may return fewer than this value.
6860
+ * pageSize: 'placeholder-value',
6861
+ * // 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.
6862
+ * pageToken: 'placeholder-value',
6863
+ * // Required. The name of the Source.
6864
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
6865
+ * // Required. The type of the storage inventory to fetch.
6866
+ * type: 'placeholder-value',
6867
+ * });
6868
+ * console.log(res.data);
6869
+ *
6870
+ * // Example response
6871
+ * // {
6872
+ * // "nextPageToken": "my_nextPageToken",
6873
+ * // "resources": [],
6874
+ * // "updateTime": "my_updateTime"
6875
+ * // }
6876
+ * }
6877
+ *
6878
+ * main().catch(e => {
6879
+ * console.error(e);
6880
+ * throw e;
6881
+ * });
6882
+ *
6883
+ * ```
6884
+ *
6885
+ * @param params - Parameters for request
6886
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6887
+ * @param callback - Optional callback that handles the response.
6888
+ * @returns A promise if used with async/await, or void if used with a callback.
6889
+ */
6890
+ fetchStorageInventory(
6891
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6892
+ options: StreamMethodOptions
6893
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6894
+ fetchStorageInventory(
6895
+ params?: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6896
+ options?: MethodOptions
6897
+ ): Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>;
6898
+ fetchStorageInventory(
6899
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6900
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6901
+ callback: BodyResponseCallback<Readable>
6902
+ ): void;
6903
+ fetchStorageInventory(
6904
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6905
+ options:
6906
+ | MethodOptions
6907
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>,
6908
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6909
+ ): void;
6910
+ fetchStorageInventory(
6911
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6912
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6913
+ ): void;
6914
+ fetchStorageInventory(
6915
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6916
+ ): void;
6917
+ fetchStorageInventory(
6918
+ paramsOrCallback?:
6919
+ | Params$Resource$Projects$Locations$Sources$Fetchstorageinventory
6920
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6921
+ | BodyResponseCallback<Readable>,
6922
+ optionsOrCallback?:
6923
+ | MethodOptions
6924
+ | StreamMethodOptions
6925
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6926
+ | BodyResponseCallback<Readable>,
6927
+ callback?:
6928
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6929
+ | BodyResponseCallback<Readable>
6930
+ ):
6931
+ | void
6932
+ | Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>
6933
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6934
+ let params = (paramsOrCallback ||
6935
+ {}) as Params$Resource$Projects$Locations$Sources$Fetchstorageinventory;
6936
+ let options = (optionsOrCallback || {}) as MethodOptions;
6937
+
6938
+ if (typeof paramsOrCallback === 'function') {
6939
+ callback = paramsOrCallback;
6940
+ params =
6941
+ {} as Params$Resource$Projects$Locations$Sources$Fetchstorageinventory;
6942
+ options = {};
6943
+ }
6944
+
6945
+ if (typeof optionsOrCallback === 'function') {
6946
+ callback = optionsOrCallback;
6947
+ options = {};
6948
+ }
6949
+
6950
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
6951
+ const parameters = {
6952
+ options: Object.assign(
6953
+ {
6954
+ url: (
6955
+ rootUrl + '/v1alpha1/{+source}:fetchStorageInventory'
6956
+ ).replace(/([^:]\/)\/+/g, '$1'),
6957
+ method: 'GET',
6958
+ apiVersion: '',
6959
+ },
6960
+ options
6961
+ ),
6962
+ params,
6963
+ requiredParams: ['source'],
6964
+ pathParams: ['source'],
6965
+ context: this.context,
6966
+ };
6967
+ if (callback) {
6968
+ createAPIRequest<Schema$FetchStorageInventoryResponse>(
6969
+ parameters,
6970
+ callback as BodyResponseCallback<unknown>
6971
+ );
6972
+ } else {
6973
+ return createAPIRequest<Schema$FetchStorageInventoryResponse>(
6974
+ parameters
6975
+ );
6976
+ }
6977
+ }
6978
+
6609
6979
  /**
6610
6980
  * Gets details of a single Source.
6611
6981
  * @example
@@ -7106,10 +7476,33 @@ export namespace vmmigration_v1alpha1 {
7106
7476
  */
7107
7477
  source?: string;
7108
7478
  }
7109
- export interface Params$Resource$Projects$Locations$Sources$Get
7479
+ export interface Params$Resource$Projects$Locations$Sources$Fetchstorageinventory
7110
7480
  extends StandardParameters {
7111
7481
  /**
7112
- * Required. The Source name.
7482
+ * 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.
7483
+ */
7484
+ forceRefresh?: boolean;
7485
+ /**
7486
+ * Optional. The maximum number of VMs to return. The service may return fewer than this value.
7487
+ */
7488
+ pageSize?: number;
7489
+ /**
7490
+ * 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.
7491
+ */
7492
+ pageToken?: string;
7493
+ /**
7494
+ * Required. The name of the Source.
7495
+ */
7496
+ source?: string;
7497
+ /**
7498
+ * Required. The type of the storage inventory to fetch.
7499
+ */
7500
+ type?: string;
7501
+ }
7502
+ export interface Params$Resource$Projects$Locations$Sources$Get
7503
+ extends StandardParameters {
7504
+ /**
7505
+ * Required. The Source name.
7113
7506
  */
7114
7507
  name?: string;
7115
7508
  }
@@ -8009,6 +8402,1172 @@ export namespace vmmigration_v1alpha1 {
8009
8402
  requestBody?: Schema$UpgradeApplianceRequest;
8010
8403
  }
8011
8404
 
8405
+ export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
8406
+ context: APIRequestContext;
8407
+ constructor(context: APIRequestContext) {
8408
+ this.context = context;
8409
+ }
8410
+
8411
+ /**
8412
+ * Cancels the disk migration job.
8413
+ * @example
8414
+ * ```js
8415
+ * // Before running the sample:
8416
+ * // - Enable the API at:
8417
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8418
+ * // - Login into gcloud by running:
8419
+ * // ```sh
8420
+ * // $ gcloud auth application-default login
8421
+ * // ```
8422
+ * // - Install the npm module by running:
8423
+ * // ```sh
8424
+ * // $ npm install googleapis
8425
+ * // ```
8426
+ *
8427
+ * const {google} = require('googleapis');
8428
+ * const vmmigration = google.vmmigration('v1alpha1');
8429
+ *
8430
+ * async function main() {
8431
+ * const auth = new google.auth.GoogleAuth({
8432
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8433
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8434
+ * });
8435
+ *
8436
+ * // Acquire an auth client, and bind it to all future calls
8437
+ * const authClient = await auth.getClient();
8438
+ * google.options({auth: authClient});
8439
+ *
8440
+ * // Do the magic
8441
+ * const res =
8442
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.cancel({
8443
+ * // Required. The name of the DiskMigrationJob.
8444
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8445
+ *
8446
+ * // Request body metadata
8447
+ * requestBody: {
8448
+ * // request body parameters
8449
+ * // {}
8450
+ * },
8451
+ * });
8452
+ * console.log(res.data);
8453
+ *
8454
+ * // Example response
8455
+ * // {
8456
+ * // "done": false,
8457
+ * // "error": {},
8458
+ * // "metadata": {},
8459
+ * // "name": "my_name",
8460
+ * // "response": {}
8461
+ * // }
8462
+ * }
8463
+ *
8464
+ * main().catch(e => {
8465
+ * console.error(e);
8466
+ * throw e;
8467
+ * });
8468
+ *
8469
+ * ```
8470
+ *
8471
+ * @param params - Parameters for request
8472
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8473
+ * @param callback - Optional callback that handles the response.
8474
+ * @returns A promise if used with async/await, or void if used with a callback.
8475
+ */
8476
+ cancel(
8477
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8478
+ options: StreamMethodOptions
8479
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8480
+ cancel(
8481
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8482
+ options?: MethodOptions
8483
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8484
+ cancel(
8485
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8486
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8487
+ callback: BodyResponseCallback<Readable>
8488
+ ): void;
8489
+ cancel(
8490
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8491
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8492
+ callback: BodyResponseCallback<Schema$Operation>
8493
+ ): void;
8494
+ cancel(
8495
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8496
+ callback: BodyResponseCallback<Schema$Operation>
8497
+ ): void;
8498
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
8499
+ cancel(
8500
+ paramsOrCallback?:
8501
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
8502
+ | BodyResponseCallback<Schema$Operation>
8503
+ | BodyResponseCallback<Readable>,
8504
+ optionsOrCallback?:
8505
+ | MethodOptions
8506
+ | StreamMethodOptions
8507
+ | BodyResponseCallback<Schema$Operation>
8508
+ | BodyResponseCallback<Readable>,
8509
+ callback?:
8510
+ | BodyResponseCallback<Schema$Operation>
8511
+ | BodyResponseCallback<Readable>
8512
+ ):
8513
+ | void
8514
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8515
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8516
+ let params = (paramsOrCallback ||
8517
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
8518
+ let options = (optionsOrCallback || {}) as MethodOptions;
8519
+
8520
+ if (typeof paramsOrCallback === 'function') {
8521
+ callback = paramsOrCallback;
8522
+ params =
8523
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
8524
+ options = {};
8525
+ }
8526
+
8527
+ if (typeof optionsOrCallback === 'function') {
8528
+ callback = optionsOrCallback;
8529
+ options = {};
8530
+ }
8531
+
8532
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8533
+ const parameters = {
8534
+ options: Object.assign(
8535
+ {
8536
+ url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(
8537
+ /([^:]\/)\/+/g,
8538
+ '$1'
8539
+ ),
8540
+ method: 'POST',
8541
+ apiVersion: '',
8542
+ },
8543
+ options
8544
+ ),
8545
+ params,
8546
+ requiredParams: ['name'],
8547
+ pathParams: ['name'],
8548
+ context: this.context,
8549
+ };
8550
+ if (callback) {
8551
+ createAPIRequest<Schema$Operation>(
8552
+ parameters,
8553
+ callback as BodyResponseCallback<unknown>
8554
+ );
8555
+ } else {
8556
+ return createAPIRequest<Schema$Operation>(parameters);
8557
+ }
8558
+ }
8559
+
8560
+ /**
8561
+ * Creates a new disk migration job in a given Source.
8562
+ * @example
8563
+ * ```js
8564
+ * // Before running the sample:
8565
+ * // - Enable the API at:
8566
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8567
+ * // - Login into gcloud by running:
8568
+ * // ```sh
8569
+ * // $ gcloud auth application-default login
8570
+ * // ```
8571
+ * // - Install the npm module by running:
8572
+ * // ```sh
8573
+ * // $ npm install googleapis
8574
+ * // ```
8575
+ *
8576
+ * const {google} = require('googleapis');
8577
+ * const vmmigration = google.vmmigration('v1alpha1');
8578
+ *
8579
+ * async function main() {
8580
+ * const auth = new google.auth.GoogleAuth({
8581
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8582
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8583
+ * });
8584
+ *
8585
+ * // Acquire an auth client, and bind it to all future calls
8586
+ * const authClient = await auth.getClient();
8587
+ * google.options({auth: authClient});
8588
+ *
8589
+ * // Do the magic
8590
+ * const res =
8591
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.create({
8592
+ * // 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.
8593
+ * diskMigrationJobId: 'placeholder-value',
8594
+ * // Required. The DiskMigrationJob's parent.
8595
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
8596
+ * // 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).
8597
+ * requestId: 'placeholder-value',
8598
+ *
8599
+ * // Request body metadata
8600
+ * requestBody: {
8601
+ * // request body parameters
8602
+ * // {
8603
+ * // "awsSourceDiskDetails": {},
8604
+ * // "createTime": "my_createTime",
8605
+ * // "errors": [],
8606
+ * // "name": "my_name",
8607
+ * // "state": "my_state",
8608
+ * // "steps": [],
8609
+ * // "targetDetails": {},
8610
+ * // "updateTime": "my_updateTime"
8611
+ * // }
8612
+ * },
8613
+ * });
8614
+ * console.log(res.data);
8615
+ *
8616
+ * // Example response
8617
+ * // {
8618
+ * // "done": false,
8619
+ * // "error": {},
8620
+ * // "metadata": {},
8621
+ * // "name": "my_name",
8622
+ * // "response": {}
8623
+ * // }
8624
+ * }
8625
+ *
8626
+ * main().catch(e => {
8627
+ * console.error(e);
8628
+ * throw e;
8629
+ * });
8630
+ *
8631
+ * ```
8632
+ *
8633
+ * @param params - Parameters for request
8634
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8635
+ * @param callback - Optional callback that handles the response.
8636
+ * @returns A promise if used with async/await, or void if used with a callback.
8637
+ */
8638
+ create(
8639
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8640
+ options: StreamMethodOptions
8641
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8642
+ create(
8643
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8644
+ options?: MethodOptions
8645
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8646
+ create(
8647
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8648
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8649
+ callback: BodyResponseCallback<Readable>
8650
+ ): void;
8651
+ create(
8652
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8653
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8654
+ callback: BodyResponseCallback<Schema$Operation>
8655
+ ): void;
8656
+ create(
8657
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8658
+ callback: BodyResponseCallback<Schema$Operation>
8659
+ ): void;
8660
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
8661
+ create(
8662
+ paramsOrCallback?:
8663
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create
8664
+ | BodyResponseCallback<Schema$Operation>
8665
+ | BodyResponseCallback<Readable>,
8666
+ optionsOrCallback?:
8667
+ | MethodOptions
8668
+ | StreamMethodOptions
8669
+ | BodyResponseCallback<Schema$Operation>
8670
+ | BodyResponseCallback<Readable>,
8671
+ callback?:
8672
+ | BodyResponseCallback<Schema$Operation>
8673
+ | BodyResponseCallback<Readable>
8674
+ ):
8675
+ | void
8676
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8677
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8678
+ let params = (paramsOrCallback ||
8679
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create;
8680
+ let options = (optionsOrCallback || {}) as MethodOptions;
8681
+
8682
+ if (typeof paramsOrCallback === 'function') {
8683
+ callback = paramsOrCallback;
8684
+ params =
8685
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create;
8686
+ options = {};
8687
+ }
8688
+
8689
+ if (typeof optionsOrCallback === 'function') {
8690
+ callback = optionsOrCallback;
8691
+ options = {};
8692
+ }
8693
+
8694
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8695
+ const parameters = {
8696
+ options: Object.assign(
8697
+ {
8698
+ url: (rootUrl + '/v1alpha1/{+parent}/diskMigrationJobs').replace(
8699
+ /([^:]\/)\/+/g,
8700
+ '$1'
8701
+ ),
8702
+ method: 'POST',
8703
+ apiVersion: '',
8704
+ },
8705
+ options
8706
+ ),
8707
+ params,
8708
+ requiredParams: ['parent'],
8709
+ pathParams: ['parent'],
8710
+ context: this.context,
8711
+ };
8712
+ if (callback) {
8713
+ createAPIRequest<Schema$Operation>(
8714
+ parameters,
8715
+ callback as BodyResponseCallback<unknown>
8716
+ );
8717
+ } else {
8718
+ return createAPIRequest<Schema$Operation>(parameters);
8719
+ }
8720
+ }
8721
+
8722
+ /**
8723
+ * Deletes a single DiskMigrationJob.
8724
+ * @example
8725
+ * ```js
8726
+ * // Before running the sample:
8727
+ * // - Enable the API at:
8728
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8729
+ * // - Login into gcloud by running:
8730
+ * // ```sh
8731
+ * // $ gcloud auth application-default login
8732
+ * // ```
8733
+ * // - Install the npm module by running:
8734
+ * // ```sh
8735
+ * // $ npm install googleapis
8736
+ * // ```
8737
+ *
8738
+ * const {google} = require('googleapis');
8739
+ * const vmmigration = google.vmmigration('v1alpha1');
8740
+ *
8741
+ * async function main() {
8742
+ * const auth = new google.auth.GoogleAuth({
8743
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8744
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8745
+ * });
8746
+ *
8747
+ * // Acquire an auth client, and bind it to all future calls
8748
+ * const authClient = await auth.getClient();
8749
+ * google.options({auth: authClient});
8750
+ *
8751
+ * // Do the magic
8752
+ * const res =
8753
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.delete({
8754
+ * // Required. The name of the DiskMigrationJob.
8755
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8756
+ * });
8757
+ * console.log(res.data);
8758
+ *
8759
+ * // Example response
8760
+ * // {
8761
+ * // "done": false,
8762
+ * // "error": {},
8763
+ * // "metadata": {},
8764
+ * // "name": "my_name",
8765
+ * // "response": {}
8766
+ * // }
8767
+ * }
8768
+ *
8769
+ * main().catch(e => {
8770
+ * console.error(e);
8771
+ * throw e;
8772
+ * });
8773
+ *
8774
+ * ```
8775
+ *
8776
+ * @param params - Parameters for request
8777
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8778
+ * @param callback - Optional callback that handles the response.
8779
+ * @returns A promise if used with async/await, or void if used with a callback.
8780
+ */
8781
+ delete(
8782
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8783
+ options: StreamMethodOptions
8784
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8785
+ delete(
8786
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8787
+ options?: MethodOptions
8788
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8789
+ delete(
8790
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8791
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8792
+ callback: BodyResponseCallback<Readable>
8793
+ ): void;
8794
+ delete(
8795
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8796
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8797
+ callback: BodyResponseCallback<Schema$Operation>
8798
+ ): void;
8799
+ delete(
8800
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8801
+ callback: BodyResponseCallback<Schema$Operation>
8802
+ ): void;
8803
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
8804
+ delete(
8805
+ paramsOrCallback?:
8806
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete
8807
+ | BodyResponseCallback<Schema$Operation>
8808
+ | BodyResponseCallback<Readable>,
8809
+ optionsOrCallback?:
8810
+ | MethodOptions
8811
+ | StreamMethodOptions
8812
+ | BodyResponseCallback<Schema$Operation>
8813
+ | BodyResponseCallback<Readable>,
8814
+ callback?:
8815
+ | BodyResponseCallback<Schema$Operation>
8816
+ | BodyResponseCallback<Readable>
8817
+ ):
8818
+ | void
8819
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8820
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8821
+ let params = (paramsOrCallback ||
8822
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete;
8823
+ let options = (optionsOrCallback || {}) as MethodOptions;
8824
+
8825
+ if (typeof paramsOrCallback === 'function') {
8826
+ callback = paramsOrCallback;
8827
+ params =
8828
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete;
8829
+ options = {};
8830
+ }
8831
+
8832
+ if (typeof optionsOrCallback === 'function') {
8833
+ callback = optionsOrCallback;
8834
+ options = {};
8835
+ }
8836
+
8837
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8838
+ const parameters = {
8839
+ options: Object.assign(
8840
+ {
8841
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8842
+ method: 'DELETE',
8843
+ apiVersion: '',
8844
+ },
8845
+ options
8846
+ ),
8847
+ params,
8848
+ requiredParams: ['name'],
8849
+ pathParams: ['name'],
8850
+ context: this.context,
8851
+ };
8852
+ if (callback) {
8853
+ createAPIRequest<Schema$Operation>(
8854
+ parameters,
8855
+ callback as BodyResponseCallback<unknown>
8856
+ );
8857
+ } else {
8858
+ return createAPIRequest<Schema$Operation>(parameters);
8859
+ }
8860
+ }
8861
+
8862
+ /**
8863
+ * Gets details of a single DiskMigrationJob.
8864
+ * @example
8865
+ * ```js
8866
+ * // Before running the sample:
8867
+ * // - Enable the API at:
8868
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8869
+ * // - Login into gcloud by running:
8870
+ * // ```sh
8871
+ * // $ gcloud auth application-default login
8872
+ * // ```
8873
+ * // - Install the npm module by running:
8874
+ * // ```sh
8875
+ * // $ npm install googleapis
8876
+ * // ```
8877
+ *
8878
+ * const {google} = require('googleapis');
8879
+ * const vmmigration = google.vmmigration('v1alpha1');
8880
+ *
8881
+ * async function main() {
8882
+ * const auth = new google.auth.GoogleAuth({
8883
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8884
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8885
+ * });
8886
+ *
8887
+ * // Acquire an auth client, and bind it to all future calls
8888
+ * const authClient = await auth.getClient();
8889
+ * google.options({auth: authClient});
8890
+ *
8891
+ * // Do the magic
8892
+ * const res =
8893
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.get({
8894
+ * // Required. The name of the DiskMigrationJob.
8895
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8896
+ * });
8897
+ * console.log(res.data);
8898
+ *
8899
+ * // Example response
8900
+ * // {
8901
+ * // "awsSourceDiskDetails": {},
8902
+ * // "createTime": "my_createTime",
8903
+ * // "errors": [],
8904
+ * // "name": "my_name",
8905
+ * // "state": "my_state",
8906
+ * // "steps": [],
8907
+ * // "targetDetails": {},
8908
+ * // "updateTime": "my_updateTime"
8909
+ * // }
8910
+ * }
8911
+ *
8912
+ * main().catch(e => {
8913
+ * console.error(e);
8914
+ * throw e;
8915
+ * });
8916
+ *
8917
+ * ```
8918
+ *
8919
+ * @param params - Parameters for request
8920
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8921
+ * @param callback - Optional callback that handles the response.
8922
+ * @returns A promise if used with async/await, or void if used with a callback.
8923
+ */
8924
+ get(
8925
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8926
+ options: StreamMethodOptions
8927
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8928
+ get(
8929
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8930
+ options?: MethodOptions
8931
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>;
8932
+ get(
8933
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8934
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8935
+ callback: BodyResponseCallback<Readable>
8936
+ ): void;
8937
+ get(
8938
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8939
+ options: MethodOptions | BodyResponseCallback<Schema$DiskMigrationJob>,
8940
+ callback: BodyResponseCallback<Schema$DiskMigrationJob>
8941
+ ): void;
8942
+ get(
8943
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8944
+ callback: BodyResponseCallback<Schema$DiskMigrationJob>
8945
+ ): void;
8946
+ get(callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
8947
+ get(
8948
+ paramsOrCallback?:
8949
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get
8950
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8951
+ | BodyResponseCallback<Readable>,
8952
+ optionsOrCallback?:
8953
+ | MethodOptions
8954
+ | StreamMethodOptions
8955
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8956
+ | BodyResponseCallback<Readable>,
8957
+ callback?:
8958
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8959
+ | BodyResponseCallback<Readable>
8960
+ ):
8961
+ | void
8962
+ | Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>
8963
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8964
+ let params = (paramsOrCallback ||
8965
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get;
8966
+ let options = (optionsOrCallback || {}) as MethodOptions;
8967
+
8968
+ if (typeof paramsOrCallback === 'function') {
8969
+ callback = paramsOrCallback;
8970
+ params =
8971
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get;
8972
+ options = {};
8973
+ }
8974
+
8975
+ if (typeof optionsOrCallback === 'function') {
8976
+ callback = optionsOrCallback;
8977
+ options = {};
8978
+ }
8979
+
8980
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8981
+ const parameters = {
8982
+ options: Object.assign(
8983
+ {
8984
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8985
+ method: 'GET',
8986
+ apiVersion: '',
8987
+ },
8988
+ options
8989
+ ),
8990
+ params,
8991
+ requiredParams: ['name'],
8992
+ pathParams: ['name'],
8993
+ context: this.context,
8994
+ };
8995
+ if (callback) {
8996
+ createAPIRequest<Schema$DiskMigrationJob>(
8997
+ parameters,
8998
+ callback as BodyResponseCallback<unknown>
8999
+ );
9000
+ } else {
9001
+ return createAPIRequest<Schema$DiskMigrationJob>(parameters);
9002
+ }
9003
+ }
9004
+
9005
+ /**
9006
+ * Lists DiskMigrationJobs in a given Source.
9007
+ * @example
9008
+ * ```js
9009
+ * // Before running the sample:
9010
+ * // - Enable the API at:
9011
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9012
+ * // - Login into gcloud by running:
9013
+ * // ```sh
9014
+ * // $ gcloud auth application-default login
9015
+ * // ```
9016
+ * // - Install the npm module by running:
9017
+ * // ```sh
9018
+ * // $ npm install googleapis
9019
+ * // ```
9020
+ *
9021
+ * const {google} = require('googleapis');
9022
+ * const vmmigration = google.vmmigration('v1alpha1');
9023
+ *
9024
+ * async function main() {
9025
+ * const auth = new google.auth.GoogleAuth({
9026
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9027
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9028
+ * });
9029
+ *
9030
+ * // Acquire an auth client, and bind it to all future calls
9031
+ * const authClient = await auth.getClient();
9032
+ * google.options({auth: authClient});
9033
+ *
9034
+ * // Do the magic
9035
+ * const res =
9036
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.list({
9037
+ * // Optional. The filter request (according to AIP-160).
9038
+ * filter: 'placeholder-value',
9039
+ * // Optional. Ordering of the result list.
9040
+ * orderBy: 'placeholder-value',
9041
+ * // 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.
9042
+ * pageSize: 'placeholder-value',
9043
+ * // 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.
9044
+ * pageToken: 'placeholder-value',
9045
+ * // Required. The parent, which owns this collection of DiskMigrationJobs.
9046
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
9047
+ * });
9048
+ * console.log(res.data);
9049
+ *
9050
+ * // Example response
9051
+ * // {
9052
+ * // "diskMigrationJobs": [],
9053
+ * // "nextPageToken": "my_nextPageToken",
9054
+ * // "unreachable": []
9055
+ * // }
9056
+ * }
9057
+ *
9058
+ * main().catch(e => {
9059
+ * console.error(e);
9060
+ * throw e;
9061
+ * });
9062
+ *
9063
+ * ```
9064
+ *
9065
+ * @param params - Parameters for request
9066
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9067
+ * @param callback - Optional callback that handles the response.
9068
+ * @returns A promise if used with async/await, or void if used with a callback.
9069
+ */
9070
+ list(
9071
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
9072
+ options: StreamMethodOptions
9073
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9074
+ list(
9075
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
9076
+ options?: MethodOptions
9077
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>;
9078
+ list(
9079
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
9080
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9081
+ callback: BodyResponseCallback<Readable>
9082
+ ): void;
9083
+ list(
9084
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
9085
+ options:
9086
+ | MethodOptions
9087
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>,
9088
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9089
+ ): void;
9090
+ list(
9091
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
9092
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9093
+ ): void;
9094
+ list(
9095
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9096
+ ): void;
9097
+ list(
9098
+ paramsOrCallback?:
9099
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List
9100
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9101
+ | BodyResponseCallback<Readable>,
9102
+ optionsOrCallback?:
9103
+ | MethodOptions
9104
+ | StreamMethodOptions
9105
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9106
+ | BodyResponseCallback<Readable>,
9107
+ callback?:
9108
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
9109
+ | BodyResponseCallback<Readable>
9110
+ ):
9111
+ | void
9112
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>
9113
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9114
+ let params = (paramsOrCallback ||
9115
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List;
9116
+ let options = (optionsOrCallback || {}) as MethodOptions;
9117
+
9118
+ if (typeof paramsOrCallback === 'function') {
9119
+ callback = paramsOrCallback;
9120
+ params =
9121
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List;
9122
+ options = {};
9123
+ }
9124
+
9125
+ if (typeof optionsOrCallback === 'function') {
9126
+ callback = optionsOrCallback;
9127
+ options = {};
9128
+ }
9129
+
9130
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
9131
+ const parameters = {
9132
+ options: Object.assign(
9133
+ {
9134
+ url: (rootUrl + '/v1alpha1/{+parent}/diskMigrationJobs').replace(
9135
+ /([^:]\/)\/+/g,
9136
+ '$1'
9137
+ ),
9138
+ method: 'GET',
9139
+ apiVersion: '',
9140
+ },
9141
+ options
9142
+ ),
9143
+ params,
9144
+ requiredParams: ['parent'],
9145
+ pathParams: ['parent'],
9146
+ context: this.context,
9147
+ };
9148
+ if (callback) {
9149
+ createAPIRequest<Schema$ListDiskMigrationJobsResponse>(
9150
+ parameters,
9151
+ callback as BodyResponseCallback<unknown>
9152
+ );
9153
+ } else {
9154
+ return createAPIRequest<Schema$ListDiskMigrationJobsResponse>(
9155
+ parameters
9156
+ );
9157
+ }
9158
+ }
9159
+
9160
+ /**
9161
+ * Updates the parameters of a single DiskMigrationJob.
9162
+ * @example
9163
+ * ```js
9164
+ * // Before running the sample:
9165
+ * // - Enable the API at:
9166
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9167
+ * // - Login into gcloud by running:
9168
+ * // ```sh
9169
+ * // $ gcloud auth application-default login
9170
+ * // ```
9171
+ * // - Install the npm module by running:
9172
+ * // ```sh
9173
+ * // $ npm install googleapis
9174
+ * // ```
9175
+ *
9176
+ * const {google} = require('googleapis');
9177
+ * const vmmigration = google.vmmigration('v1alpha1');
9178
+ *
9179
+ * async function main() {
9180
+ * const auth = new google.auth.GoogleAuth({
9181
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9182
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9183
+ * });
9184
+ *
9185
+ * // Acquire an auth client, and bind it to all future calls
9186
+ * const authClient = await auth.getClient();
9187
+ * google.options({auth: authClient});
9188
+ *
9189
+ * // Do the magic
9190
+ * const res =
9191
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.patch({
9192
+ * // Output only. Identifier. The identifier of the DiskMigrationJob.
9193
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
9194
+ * // 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).
9195
+ * requestId: 'placeholder-value',
9196
+ * // 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.
9197
+ * updateMask: 'placeholder-value',
9198
+ *
9199
+ * // Request body metadata
9200
+ * requestBody: {
9201
+ * // request body parameters
9202
+ * // {
9203
+ * // "awsSourceDiskDetails": {},
9204
+ * // "createTime": "my_createTime",
9205
+ * // "errors": [],
9206
+ * // "name": "my_name",
9207
+ * // "state": "my_state",
9208
+ * // "steps": [],
9209
+ * // "targetDetails": {},
9210
+ * // "updateTime": "my_updateTime"
9211
+ * // }
9212
+ * },
9213
+ * });
9214
+ * console.log(res.data);
9215
+ *
9216
+ * // Example response
9217
+ * // {
9218
+ * // "done": false,
9219
+ * // "error": {},
9220
+ * // "metadata": {},
9221
+ * // "name": "my_name",
9222
+ * // "response": {}
9223
+ * // }
9224
+ * }
9225
+ *
9226
+ * main().catch(e => {
9227
+ * console.error(e);
9228
+ * throw e;
9229
+ * });
9230
+ *
9231
+ * ```
9232
+ *
9233
+ * @param params - Parameters for request
9234
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9235
+ * @param callback - Optional callback that handles the response.
9236
+ * @returns A promise if used with async/await, or void if used with a callback.
9237
+ */
9238
+ patch(
9239
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9240
+ options: StreamMethodOptions
9241
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9242
+ patch(
9243
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9244
+ options?: MethodOptions
9245
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9246
+ patch(
9247
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9248
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9249
+ callback: BodyResponseCallback<Readable>
9250
+ ): void;
9251
+ patch(
9252
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9253
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9254
+ callback: BodyResponseCallback<Schema$Operation>
9255
+ ): void;
9256
+ patch(
9257
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9258
+ callback: BodyResponseCallback<Schema$Operation>
9259
+ ): void;
9260
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
9261
+ patch(
9262
+ paramsOrCallback?:
9263
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch
9264
+ | BodyResponseCallback<Schema$Operation>
9265
+ | BodyResponseCallback<Readable>,
9266
+ optionsOrCallback?:
9267
+ | MethodOptions
9268
+ | StreamMethodOptions
9269
+ | BodyResponseCallback<Schema$Operation>
9270
+ | BodyResponseCallback<Readable>,
9271
+ callback?:
9272
+ | BodyResponseCallback<Schema$Operation>
9273
+ | BodyResponseCallback<Readable>
9274
+ ):
9275
+ | void
9276
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9277
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9278
+ let params = (paramsOrCallback ||
9279
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch;
9280
+ let options = (optionsOrCallback || {}) as MethodOptions;
9281
+
9282
+ if (typeof paramsOrCallback === 'function') {
9283
+ callback = paramsOrCallback;
9284
+ params =
9285
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch;
9286
+ options = {};
9287
+ }
9288
+
9289
+ if (typeof optionsOrCallback === 'function') {
9290
+ callback = optionsOrCallback;
9291
+ options = {};
9292
+ }
9293
+
9294
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
9295
+ const parameters = {
9296
+ options: Object.assign(
9297
+ {
9298
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9299
+ method: 'PATCH',
9300
+ apiVersion: '',
9301
+ },
9302
+ options
9303
+ ),
9304
+ params,
9305
+ requiredParams: ['name'],
9306
+ pathParams: ['name'],
9307
+ context: this.context,
9308
+ };
9309
+ if (callback) {
9310
+ createAPIRequest<Schema$Operation>(
9311
+ parameters,
9312
+ callback as BodyResponseCallback<unknown>
9313
+ );
9314
+ } else {
9315
+ return createAPIRequest<Schema$Operation>(parameters);
9316
+ }
9317
+ }
9318
+
9319
+ /**
9320
+ * Runs the disk migration job.
9321
+ * @example
9322
+ * ```js
9323
+ * // Before running the sample:
9324
+ * // - Enable the API at:
9325
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9326
+ * // - Login into gcloud by running:
9327
+ * // ```sh
9328
+ * // $ gcloud auth application-default login
9329
+ * // ```
9330
+ * // - Install the npm module by running:
9331
+ * // ```sh
9332
+ * // $ npm install googleapis
9333
+ * // ```
9334
+ *
9335
+ * const {google} = require('googleapis');
9336
+ * const vmmigration = google.vmmigration('v1alpha1');
9337
+ *
9338
+ * async function main() {
9339
+ * const auth = new google.auth.GoogleAuth({
9340
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9341
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9342
+ * });
9343
+ *
9344
+ * // Acquire an auth client, and bind it to all future calls
9345
+ * const authClient = await auth.getClient();
9346
+ * google.options({auth: authClient});
9347
+ *
9348
+ * // Do the magic
9349
+ * const res =
9350
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.run({
9351
+ * // Required. The name of the DiskMigrationJob.
9352
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
9353
+ *
9354
+ * // Request body metadata
9355
+ * requestBody: {
9356
+ * // request body parameters
9357
+ * // {}
9358
+ * },
9359
+ * });
9360
+ * console.log(res.data);
9361
+ *
9362
+ * // Example response
9363
+ * // {
9364
+ * // "done": false,
9365
+ * // "error": {},
9366
+ * // "metadata": {},
9367
+ * // "name": "my_name",
9368
+ * // "response": {}
9369
+ * // }
9370
+ * }
9371
+ *
9372
+ * main().catch(e => {
9373
+ * console.error(e);
9374
+ * throw e;
9375
+ * });
9376
+ *
9377
+ * ```
9378
+ *
9379
+ * @param params - Parameters for request
9380
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9381
+ * @param callback - Optional callback that handles the response.
9382
+ * @returns A promise if used with async/await, or void if used with a callback.
9383
+ */
9384
+ run(
9385
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9386
+ options: StreamMethodOptions
9387
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9388
+ run(
9389
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9390
+ options?: MethodOptions
9391
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9392
+ run(
9393
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9394
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9395
+ callback: BodyResponseCallback<Readable>
9396
+ ): void;
9397
+ run(
9398
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9399
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9400
+ callback: BodyResponseCallback<Schema$Operation>
9401
+ ): void;
9402
+ run(
9403
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9404
+ callback: BodyResponseCallback<Schema$Operation>
9405
+ ): void;
9406
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
9407
+ run(
9408
+ paramsOrCallback?:
9409
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
9410
+ | BodyResponseCallback<Schema$Operation>
9411
+ | BodyResponseCallback<Readable>,
9412
+ optionsOrCallback?:
9413
+ | MethodOptions
9414
+ | StreamMethodOptions
9415
+ | BodyResponseCallback<Schema$Operation>
9416
+ | BodyResponseCallback<Readable>,
9417
+ callback?:
9418
+ | BodyResponseCallback<Schema$Operation>
9419
+ | BodyResponseCallback<Readable>
9420
+ ):
9421
+ | void
9422
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9423
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9424
+ let params = (paramsOrCallback ||
9425
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
9426
+ let options = (optionsOrCallback || {}) as MethodOptions;
9427
+
9428
+ if (typeof paramsOrCallback === 'function') {
9429
+ callback = paramsOrCallback;
9430
+ params =
9431
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
9432
+ options = {};
9433
+ }
9434
+
9435
+ if (typeof optionsOrCallback === 'function') {
9436
+ callback = optionsOrCallback;
9437
+ options = {};
9438
+ }
9439
+
9440
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
9441
+ const parameters = {
9442
+ options: Object.assign(
9443
+ {
9444
+ url: (rootUrl + '/v1alpha1/{+name}:run').replace(
9445
+ /([^:]\/)\/+/g,
9446
+ '$1'
9447
+ ),
9448
+ method: 'POST',
9449
+ apiVersion: '',
9450
+ },
9451
+ options
9452
+ ),
9453
+ params,
9454
+ requiredParams: ['name'],
9455
+ pathParams: ['name'],
9456
+ context: this.context,
9457
+ };
9458
+ if (callback) {
9459
+ createAPIRequest<Schema$Operation>(
9460
+ parameters,
9461
+ callback as BodyResponseCallback<unknown>
9462
+ );
9463
+ } else {
9464
+ return createAPIRequest<Schema$Operation>(parameters);
9465
+ }
9466
+ }
9467
+ }
9468
+
9469
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
9470
+ extends StandardParameters {
9471
+ /**
9472
+ * Required. The name of the DiskMigrationJob.
9473
+ */
9474
+ name?: string;
9475
+
9476
+ /**
9477
+ * Request body metadata
9478
+ */
9479
+ requestBody?: Schema$CancelDiskMigrationJobRequest;
9480
+ }
9481
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create
9482
+ extends StandardParameters {
9483
+ /**
9484
+ * 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.
9485
+ */
9486
+ diskMigrationJobId?: string;
9487
+ /**
9488
+ * Required. The DiskMigrationJob's parent.
9489
+ */
9490
+ parent?: string;
9491
+ /**
9492
+ * 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).
9493
+ */
9494
+ requestId?: string;
9495
+
9496
+ /**
9497
+ * Request body metadata
9498
+ */
9499
+ requestBody?: Schema$DiskMigrationJob;
9500
+ }
9501
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete
9502
+ extends StandardParameters {
9503
+ /**
9504
+ * Required. The name of the DiskMigrationJob.
9505
+ */
9506
+ name?: string;
9507
+ }
9508
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get
9509
+ extends StandardParameters {
9510
+ /**
9511
+ * Required. The name of the DiskMigrationJob.
9512
+ */
9513
+ name?: string;
9514
+ }
9515
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List
9516
+ extends StandardParameters {
9517
+ /**
9518
+ * Optional. The filter request (according to AIP-160).
9519
+ */
9520
+ filter?: string;
9521
+ /**
9522
+ * Optional. Ordering of the result list.
9523
+ */
9524
+ orderBy?: string;
9525
+ /**
9526
+ * 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.
9527
+ */
9528
+ pageSize?: number;
9529
+ /**
9530
+ * 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.
9531
+ */
9532
+ pageToken?: string;
9533
+ /**
9534
+ * Required. The parent, which owns this collection of DiskMigrationJobs.
9535
+ */
9536
+ parent?: string;
9537
+ }
9538
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch
9539
+ extends StandardParameters {
9540
+ /**
9541
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
9542
+ */
9543
+ name?: string;
9544
+ /**
9545
+ * 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).
9546
+ */
9547
+ requestId?: string;
9548
+ /**
9549
+ * 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.
9550
+ */
9551
+ updateMask?: string;
9552
+
9553
+ /**
9554
+ * Request body metadata
9555
+ */
9556
+ requestBody?: Schema$DiskMigrationJob;
9557
+ }
9558
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
9559
+ extends StandardParameters {
9560
+ /**
9561
+ * Required. The name of the DiskMigrationJob.
9562
+ */
9563
+ name?: string;
9564
+
9565
+ /**
9566
+ * Request body metadata
9567
+ */
9568
+ requestBody?: Schema$RunDiskMigrationJobRequest;
9569
+ }
9570
+
8012
9571
  export class Resource$Projects$Locations$Sources$Migratingvms {
8013
9572
  context: APIRequestContext;
8014
9573
  cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;