@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/v1.ts CHANGED
@@ -141,6 +141,19 @@ export namespace vmmigration_v1 {
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_v1 {
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_v1 {
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
  */
@@ -652,6 +690,27 @@ export namespace vmmigration_v1 {
652
690
  */
653
691
  startTime?: string | null;
654
692
  }
693
+ /**
694
+ * Compute Engine disk target details.
695
+ */
696
+ export interface Schema$ComputeEngineDisk {
697
+ /**
698
+ * 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.
699
+ */
700
+ diskId?: string | null;
701
+ /**
702
+ * Required. The disk type to use.
703
+ */
704
+ diskType?: string | null;
705
+ /**
706
+ * 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.
707
+ */
708
+ replicaZones?: string[] | null;
709
+ /**
710
+ * Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project\}/locations/{zone\}
711
+ */
712
+ zone?: string | null;
713
+ }
655
714
  /**
656
715
  * ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
657
716
  */
@@ -698,6 +757,10 @@ export namespace vmmigration_v1 {
698
757
  * ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
699
758
  */
700
759
  export interface Schema$ComputeEngineTargetDefaults {
760
+ /**
761
+ * Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.
762
+ */
763
+ adaptationModifiers?: Schema$AdaptationModifier[];
701
764
  /**
702
765
  * Additional licenses to assign to the VM.
703
766
  */
@@ -795,6 +858,10 @@ export namespace vmmigration_v1 {
795
858
  * ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
796
859
  */
797
860
  export interface Schema$ComputeEngineTargetDetails {
861
+ /**
862
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
863
+ */
864
+ adaptationModifiers?: Schema$AdaptationModifier[];
798
865
  /**
799
866
  * Additional licenses to assign to the VM.
800
867
  */
@@ -909,10 +976,18 @@ export namespace vmmigration_v1 {
909
976
  */
910
977
  restartType?: string | null;
911
978
  }
979
+ /**
980
+ * CopyingSourceDiskSnapshotStep contains specific step details.
981
+ */
982
+ export interface Schema$CopyingSourceDiskSnapshotStep {}
912
983
  /**
913
984
  * CreatingImageStep contains specific step details.
914
985
  */
915
986
  export interface Schema$CreatingImageStep {}
987
+ /**
988
+ * CreatingSourceDiskSnapshotStep contains specific step details.
989
+ */
990
+ export interface Schema$CreatingSourceDiskSnapshotStep {}
916
991
  /**
917
992
  * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
918
993
  */
@@ -1165,6 +1240,89 @@ export namespace vmmigration_v1 {
1165
1240
  */
1166
1241
  targetProject?: string | null;
1167
1242
  }
1243
+ /**
1244
+ * Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
1245
+ */
1246
+ export interface Schema$DiskMigrationJob {
1247
+ /**
1248
+ * Details of the unattached AWS source disk.
1249
+ */
1250
+ awsSourceDiskDetails?: Schema$AwsSourceDiskDetails;
1251
+ /**
1252
+ * Output only. The time the DiskMigrationJob resource was created.
1253
+ */
1254
+ createTime?: string | null;
1255
+ /**
1256
+ * Output only. Provides details on the errors that led to the disk migration job's state in case of an error.
1257
+ */
1258
+ errors?: Schema$Status[];
1259
+ /**
1260
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
1261
+ */
1262
+ name?: string | null;
1263
+ /**
1264
+ * Output only. State of the DiskMigrationJob.
1265
+ */
1266
+ state?: string | null;
1267
+ /**
1268
+ * Output only. The disk migration steps list representing its progress.
1269
+ */
1270
+ steps?: Schema$DiskMigrationStep[];
1271
+ /**
1272
+ * Required. Details of the target Disk in Compute Engine.
1273
+ */
1274
+ targetDetails?: Schema$DiskMigrationJobTargetDetails;
1275
+ /**
1276
+ * Output only. The last time the DiskMigrationJob resource was updated.
1277
+ */
1278
+ updateTime?: string | null;
1279
+ }
1280
+ /**
1281
+ * Details of the target disk in Compute Engine.
1282
+ */
1283
+ export interface Schema$DiskMigrationJobTargetDetails {
1284
+ /**
1285
+ * 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.
1286
+ */
1287
+ encryption?: Schema$Encryption;
1288
+ /**
1289
+ * Optional. A map of labels to associate with the disk.
1290
+ */
1291
+ labels?: {[key: string]: string} | null;
1292
+ /**
1293
+ * Required. The target disk.
1294
+ */
1295
+ targetDisk?: Schema$ComputeEngineDisk;
1296
+ /**
1297
+ * 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\}
1298
+ */
1299
+ targetProject?: string | null;
1300
+ }
1301
+ /**
1302
+ * DiskMigrationStep holds information about the disk migration step progress.
1303
+ */
1304
+ export interface Schema$DiskMigrationStep {
1305
+ /**
1306
+ * Copying source disk snapshot step.
1307
+ */
1308
+ copyingSourceDiskSnapshot?: Schema$CopyingSourceDiskSnapshotStep;
1309
+ /**
1310
+ * Creating source disk snapshot step.
1311
+ */
1312
+ creatingSourceDiskSnapshot?: Schema$CreatingSourceDiskSnapshotStep;
1313
+ /**
1314
+ * Output only. The time the step has ended.
1315
+ */
1316
+ endTime?: string | null;
1317
+ /**
1318
+ * Creating target disk step.
1319
+ */
1320
+ provisioningTargetDisk?: Schema$ProvisioningTargetDiskStep;
1321
+ /**
1322
+ * Output only. The time the step has started.
1323
+ */
1324
+ startTime?: string | null;
1325
+ }
1168
1326
  /**
1169
1327
  * Details for a disk only migration.
1170
1328
  */
@@ -1310,6 +1468,23 @@ export namespace vmmigration_v1 {
1310
1468
  */
1311
1469
  vmwareVms?: Schema$VmwareVmsDetails;
1312
1470
  }
1471
+ /**
1472
+ * Response message for fetchStorageInventory.
1473
+ */
1474
+ export interface Schema$FetchStorageInventoryResponse {
1475
+ /**
1476
+ * 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.
1477
+ */
1478
+ nextPageToken?: string | null;
1479
+ /**
1480
+ * The list of storage resources in the source.
1481
+ */
1482
+ resources?: Schema$SourceStorageResource[];
1483
+ /**
1484
+ * Output only. The timestamp when the source was last queried (if the result is from the cache).
1485
+ */
1486
+ updateTime?: string | null;
1487
+ }
1313
1488
  /**
1314
1489
  * Request message for 'FinalizeMigration' request.
1315
1490
  */
@@ -1429,6 +1604,10 @@ export namespace vmmigration_v1 {
1429
1604
  * Parameters affecting the OS adaptation process.
1430
1605
  */
1431
1606
  export interface Schema$ImageImportOsAdaptationParameters {
1607
+ /**
1608
+ * Optional. Modifiers to be used as configuration of the OS adaptation process.
1609
+ */
1610
+ adaptationModifiers?: Schema$AdaptationModifier[];
1432
1611
  /**
1433
1612
  * 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
1434
1613
  */
@@ -1547,6 +1726,23 @@ export namespace vmmigration_v1 {
1547
1726
  */
1548
1727
  unreachable?: string[] | null;
1549
1728
  }
1729
+ /**
1730
+ * Response message for 'ListDiskMigrationJobs' request.
1731
+ */
1732
+ export interface Schema$ListDiskMigrationJobsResponse {
1733
+ /**
1734
+ * Output only. The list of the disk migration jobs.
1735
+ */
1736
+ diskMigrationJobs?: Schema$DiskMigrationJob[];
1737
+ /**
1738
+ * 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.
1739
+ */
1740
+ nextPageToken?: string | null;
1741
+ /**
1742
+ * Output only. Locations that could not be reached.
1743
+ */
1744
+ unreachable?: string[] | null;
1745
+ }
1550
1746
  /**
1551
1747
  * Response message for 'ListGroups' request.
1552
1748
  */
@@ -1985,7 +2181,7 @@ export namespace vmmigration_v1 {
1985
2181
  */
1986
2182
  internalIp?: string | null;
1987
2183
  /**
1988
- * The network to connect the NIC to.
2184
+ * Optional. The network to connect the NIC to.
1989
2185
  */
1990
2186
  network?: string | null;
1991
2187
  /**
@@ -2147,6 +2343,10 @@ export namespace vmmigration_v1 {
2147
2343
  * PreparingVMDisksStep contains specific step details.
2148
2344
  */
2149
2345
  export interface Schema$PreparingVMDisksStep {}
2346
+ /**
2347
+ * ProvisioningTargetDiskStep contains specific step details.
2348
+ */
2349
+ export interface Schema$ProvisioningTargetDiskStep {}
2150
2350
  /**
2151
2351
  * Request message for 'RemoveMigration' request.
2152
2352
  */
@@ -2235,6 +2435,10 @@ export namespace vmmigration_v1 {
2235
2435
  * Request message for 'ResumeMigration' request.
2236
2436
  */
2237
2437
  export interface Schema$ResumeMigrationRequest {}
2438
+ /**
2439
+ * Request message for 'RunDiskMigrationJobRequest' request.
2440
+ */
2441
+ export interface Schema$RunDiskMigrationJobRequest {}
2238
2442
  /**
2239
2443
  * A policy for scheduling replications.
2240
2444
  */
@@ -2344,6 +2548,15 @@ export namespace vmmigration_v1 {
2344
2548
  */
2345
2549
  vmware?: Schema$VmwareSourceDetails;
2346
2550
  }
2551
+ /**
2552
+ * SourceStorageResource describes a storage resource in the source.
2553
+ */
2554
+ export interface Schema$SourceStorageResource {
2555
+ /**
2556
+ * Source AWS volume details.
2557
+ */
2558
+ awsDiskDetails?: Schema$AwsSourceDiskDetails;
2559
+ }
2347
2560
  /**
2348
2561
  * Request message for 'StartMigrationRequest' request.
2349
2562
  */
@@ -2892,7 +3105,7 @@ export namespace vmmigration_v1 {
2892
3105
  *
2893
3106
  * // Do the magic
2894
3107
  * const res = await vmmigration.projects.locations.list({
2895
- * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3108
+ * // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
2896
3109
  * extraLocationTypes: 'placeholder-value',
2897
3110
  * // 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).
2898
3111
  * filter: 'placeholder-value',
@@ -3020,7 +3233,7 @@ export namespace vmmigration_v1 {
3020
3233
  export interface Params$Resource$Projects$Locations$List
3021
3234
  extends StandardParameters {
3022
3235
  /**
3023
- * Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3236
+ * Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3024
3237
  */
3025
3238
  extraLocationTypes?: string[];
3026
3239
  /**
@@ -4864,7 +5077,7 @@ export namespace vmmigration_v1 {
4864
5077
  }
4865
5078
 
4866
5079
  /**
4867
- * Initiates the cancellation of a running clone job.
5080
+ * Initiates the cancellation of a running ImageImportJob.
4868
5081
  * @example
4869
5082
  * ```js
4870
5083
  * // Before running the sample:
@@ -5963,6 +6176,7 @@ export namespace vmmigration_v1 {
5963
6176
  export class Resource$Projects$Locations$Sources {
5964
6177
  context: APIRequestContext;
5965
6178
  datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
6179
+ diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
5966
6180
  migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
5967
6181
  utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
5968
6182
  constructor(context: APIRequestContext) {
@@ -5971,6 +6185,8 @@ export namespace vmmigration_v1 {
5971
6185
  new Resource$Projects$Locations$Sources$Datacenterconnectors(
5972
6186
  this.context
5973
6187
  );
6188
+ this.diskMigrationJobs =
6189
+ new Resource$Projects$Locations$Sources$Diskmigrationjobs(this.context);
5974
6190
  this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(
5975
6191
  this.context
5976
6192
  );
@@ -6433,6 +6649,161 @@ export namespace vmmigration_v1 {
6433
6649
  }
6434
6650
  }
6435
6651
 
6652
+ /**
6653
+ * 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.
6654
+ * @example
6655
+ * ```js
6656
+ * // Before running the sample:
6657
+ * // - Enable the API at:
6658
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
6659
+ * // - Login into gcloud by running:
6660
+ * // ```sh
6661
+ * // $ gcloud auth application-default login
6662
+ * // ```
6663
+ * // - Install the npm module by running:
6664
+ * // ```sh
6665
+ * // $ npm install googleapis
6666
+ * // ```
6667
+ *
6668
+ * const {google} = require('googleapis');
6669
+ * const vmmigration = google.vmmigration('v1');
6670
+ *
6671
+ * async function main() {
6672
+ * const auth = new google.auth.GoogleAuth({
6673
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6674
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6675
+ * });
6676
+ *
6677
+ * // Acquire an auth client, and bind it to all future calls
6678
+ * const authClient = await auth.getClient();
6679
+ * google.options({auth: authClient});
6680
+ *
6681
+ * // Do the magic
6682
+ * const res =
6683
+ * await vmmigration.projects.locations.sources.fetchStorageInventory({
6684
+ * // 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.
6685
+ * forceRefresh: 'placeholder-value',
6686
+ * // Optional. The maximum number of VMs to return. The service may return fewer than this value.
6687
+ * pageSize: 'placeholder-value',
6688
+ * // 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.
6689
+ * pageToken: 'placeholder-value',
6690
+ * // Required. The name of the Source.
6691
+ * source: 'projects/my-project/locations/my-location/sources/my-source',
6692
+ * // Required. The type of the storage inventory to fetch.
6693
+ * type: 'placeholder-value',
6694
+ * });
6695
+ * console.log(res.data);
6696
+ *
6697
+ * // Example response
6698
+ * // {
6699
+ * // "nextPageToken": "my_nextPageToken",
6700
+ * // "resources": [],
6701
+ * // "updateTime": "my_updateTime"
6702
+ * // }
6703
+ * }
6704
+ *
6705
+ * main().catch(e => {
6706
+ * console.error(e);
6707
+ * throw e;
6708
+ * });
6709
+ *
6710
+ * ```
6711
+ *
6712
+ * @param params - Parameters for request
6713
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6714
+ * @param callback - Optional callback that handles the response.
6715
+ * @returns A promise if used with async/await, or void if used with a callback.
6716
+ */
6717
+ fetchStorageInventory(
6718
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6719
+ options: StreamMethodOptions
6720
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6721
+ fetchStorageInventory(
6722
+ params?: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6723
+ options?: MethodOptions
6724
+ ): Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>;
6725
+ fetchStorageInventory(
6726
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6727
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6728
+ callback: BodyResponseCallback<Readable>
6729
+ ): void;
6730
+ fetchStorageInventory(
6731
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6732
+ options:
6733
+ | MethodOptions
6734
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>,
6735
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6736
+ ): void;
6737
+ fetchStorageInventory(
6738
+ params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory,
6739
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6740
+ ): void;
6741
+ fetchStorageInventory(
6742
+ callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6743
+ ): void;
6744
+ fetchStorageInventory(
6745
+ paramsOrCallback?:
6746
+ | Params$Resource$Projects$Locations$Sources$Fetchstorageinventory
6747
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6748
+ | BodyResponseCallback<Readable>,
6749
+ optionsOrCallback?:
6750
+ | MethodOptions
6751
+ | StreamMethodOptions
6752
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6753
+ | BodyResponseCallback<Readable>,
6754
+ callback?:
6755
+ | BodyResponseCallback<Schema$FetchStorageInventoryResponse>
6756
+ | BodyResponseCallback<Readable>
6757
+ ):
6758
+ | void
6759
+ | Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>
6760
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6761
+ let params = (paramsOrCallback ||
6762
+ {}) as Params$Resource$Projects$Locations$Sources$Fetchstorageinventory;
6763
+ let options = (optionsOrCallback || {}) as MethodOptions;
6764
+
6765
+ if (typeof paramsOrCallback === 'function') {
6766
+ callback = paramsOrCallback;
6767
+ params =
6768
+ {} as Params$Resource$Projects$Locations$Sources$Fetchstorageinventory;
6769
+ options = {};
6770
+ }
6771
+
6772
+ if (typeof optionsOrCallback === 'function') {
6773
+ callback = optionsOrCallback;
6774
+ options = {};
6775
+ }
6776
+
6777
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
6778
+ const parameters = {
6779
+ options: Object.assign(
6780
+ {
6781
+ url: (rootUrl + '/v1/{+source}:fetchStorageInventory').replace(
6782
+ /([^:]\/)\/+/g,
6783
+ '$1'
6784
+ ),
6785
+ method: 'GET',
6786
+ apiVersion: '',
6787
+ },
6788
+ options
6789
+ ),
6790
+ params,
6791
+ requiredParams: ['source'],
6792
+ pathParams: ['source'],
6793
+ context: this.context,
6794
+ };
6795
+ if (callback) {
6796
+ createAPIRequest<Schema$FetchStorageInventoryResponse>(
6797
+ parameters,
6798
+ callback as BodyResponseCallback<unknown>
6799
+ );
6800
+ } else {
6801
+ return createAPIRequest<Schema$FetchStorageInventoryResponse>(
6802
+ parameters
6803
+ );
6804
+ }
6805
+ }
6806
+
6436
6807
  /**
6437
6808
  * Gets details of a single Source.
6438
6809
  * @example
@@ -6931,7 +7302,30 @@ export namespace vmmigration_v1 {
6931
7302
  */
6932
7303
  source?: string;
6933
7304
  }
6934
- export interface Params$Resource$Projects$Locations$Sources$Get
7305
+ export interface Params$Resource$Projects$Locations$Sources$Fetchstorageinventory
7306
+ extends StandardParameters {
7307
+ /**
7308
+ * 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.
7309
+ */
7310
+ forceRefresh?: boolean;
7311
+ /**
7312
+ * Optional. The maximum number of VMs to return. The service may return fewer than this value.
7313
+ */
7314
+ pageSize?: number;
7315
+ /**
7316
+ * 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.
7317
+ */
7318
+ pageToken?: string;
7319
+ /**
7320
+ * Required. The name of the Source.
7321
+ */
7322
+ source?: string;
7323
+ /**
7324
+ * Required. The type of the storage inventory to fetch.
7325
+ */
7326
+ type?: string;
7327
+ }
7328
+ export interface Params$Resource$Projects$Locations$Sources$Get
6935
7329
  extends StandardParameters {
6936
7330
  /**
6937
7331
  * Required. The Source name.
@@ -7834,6 +8228,1166 @@ export namespace vmmigration_v1 {
7834
8228
  requestBody?: Schema$UpgradeApplianceRequest;
7835
8229
  }
7836
8230
 
8231
+ export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
8232
+ context: APIRequestContext;
8233
+ constructor(context: APIRequestContext) {
8234
+ this.context = context;
8235
+ }
8236
+
8237
+ /**
8238
+ * Cancels the disk migration job.
8239
+ * @example
8240
+ * ```js
8241
+ * // Before running the sample:
8242
+ * // - Enable the API at:
8243
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8244
+ * // - Login into gcloud by running:
8245
+ * // ```sh
8246
+ * // $ gcloud auth application-default login
8247
+ * // ```
8248
+ * // - Install the npm module by running:
8249
+ * // ```sh
8250
+ * // $ npm install googleapis
8251
+ * // ```
8252
+ *
8253
+ * const {google} = require('googleapis');
8254
+ * const vmmigration = google.vmmigration('v1');
8255
+ *
8256
+ * async function main() {
8257
+ * const auth = new google.auth.GoogleAuth({
8258
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8259
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8260
+ * });
8261
+ *
8262
+ * // Acquire an auth client, and bind it to all future calls
8263
+ * const authClient = await auth.getClient();
8264
+ * google.options({auth: authClient});
8265
+ *
8266
+ * // Do the magic
8267
+ * const res =
8268
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.cancel({
8269
+ * // Required. The name of the DiskMigrationJob.
8270
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8271
+ *
8272
+ * // Request body metadata
8273
+ * requestBody: {
8274
+ * // request body parameters
8275
+ * // {}
8276
+ * },
8277
+ * });
8278
+ * console.log(res.data);
8279
+ *
8280
+ * // Example response
8281
+ * // {
8282
+ * // "done": false,
8283
+ * // "error": {},
8284
+ * // "metadata": {},
8285
+ * // "name": "my_name",
8286
+ * // "response": {}
8287
+ * // }
8288
+ * }
8289
+ *
8290
+ * main().catch(e => {
8291
+ * console.error(e);
8292
+ * throw e;
8293
+ * });
8294
+ *
8295
+ * ```
8296
+ *
8297
+ * @param params - Parameters for request
8298
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8299
+ * @param callback - Optional callback that handles the response.
8300
+ * @returns A promise if used with async/await, or void if used with a callback.
8301
+ */
8302
+ cancel(
8303
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8304
+ options: StreamMethodOptions
8305
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8306
+ cancel(
8307
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8308
+ options?: MethodOptions
8309
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8310
+ cancel(
8311
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8312
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8313
+ callback: BodyResponseCallback<Readable>
8314
+ ): void;
8315
+ cancel(
8316
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8317
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8318
+ callback: BodyResponseCallback<Schema$Operation>
8319
+ ): void;
8320
+ cancel(
8321
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
8322
+ callback: BodyResponseCallback<Schema$Operation>
8323
+ ): void;
8324
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
8325
+ cancel(
8326
+ paramsOrCallback?:
8327
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
8328
+ | BodyResponseCallback<Schema$Operation>
8329
+ | BodyResponseCallback<Readable>,
8330
+ optionsOrCallback?:
8331
+ | MethodOptions
8332
+ | StreamMethodOptions
8333
+ | BodyResponseCallback<Schema$Operation>
8334
+ | BodyResponseCallback<Readable>,
8335
+ callback?:
8336
+ | BodyResponseCallback<Schema$Operation>
8337
+ | BodyResponseCallback<Readable>
8338
+ ):
8339
+ | void
8340
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8341
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8342
+ let params = (paramsOrCallback ||
8343
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
8344
+ let options = (optionsOrCallback || {}) as MethodOptions;
8345
+
8346
+ if (typeof paramsOrCallback === 'function') {
8347
+ callback = paramsOrCallback;
8348
+ params =
8349
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
8350
+ options = {};
8351
+ }
8352
+
8353
+ if (typeof optionsOrCallback === 'function') {
8354
+ callback = optionsOrCallback;
8355
+ options = {};
8356
+ }
8357
+
8358
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8359
+ const parameters = {
8360
+ options: Object.assign(
8361
+ {
8362
+ url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
8363
+ method: 'POST',
8364
+ apiVersion: '',
8365
+ },
8366
+ options
8367
+ ),
8368
+ params,
8369
+ requiredParams: ['name'],
8370
+ pathParams: ['name'],
8371
+ context: this.context,
8372
+ };
8373
+ if (callback) {
8374
+ createAPIRequest<Schema$Operation>(
8375
+ parameters,
8376
+ callback as BodyResponseCallback<unknown>
8377
+ );
8378
+ } else {
8379
+ return createAPIRequest<Schema$Operation>(parameters);
8380
+ }
8381
+ }
8382
+
8383
+ /**
8384
+ * Creates a new disk migration job in a given Source.
8385
+ * @example
8386
+ * ```js
8387
+ * // Before running the sample:
8388
+ * // - Enable the API at:
8389
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8390
+ * // - Login into gcloud by running:
8391
+ * // ```sh
8392
+ * // $ gcloud auth application-default login
8393
+ * // ```
8394
+ * // - Install the npm module by running:
8395
+ * // ```sh
8396
+ * // $ npm install googleapis
8397
+ * // ```
8398
+ *
8399
+ * const {google} = require('googleapis');
8400
+ * const vmmigration = google.vmmigration('v1');
8401
+ *
8402
+ * async function main() {
8403
+ * const auth = new google.auth.GoogleAuth({
8404
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8405
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8406
+ * });
8407
+ *
8408
+ * // Acquire an auth client, and bind it to all future calls
8409
+ * const authClient = await auth.getClient();
8410
+ * google.options({auth: authClient});
8411
+ *
8412
+ * // Do the magic
8413
+ * const res =
8414
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.create({
8415
+ * // 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.
8416
+ * diskMigrationJobId: 'placeholder-value',
8417
+ * // Required. The DiskMigrationJob's parent.
8418
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
8419
+ * // 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).
8420
+ * requestId: 'placeholder-value',
8421
+ *
8422
+ * // Request body metadata
8423
+ * requestBody: {
8424
+ * // request body parameters
8425
+ * // {
8426
+ * // "awsSourceDiskDetails": {},
8427
+ * // "createTime": "my_createTime",
8428
+ * // "errors": [],
8429
+ * // "name": "my_name",
8430
+ * // "state": "my_state",
8431
+ * // "steps": [],
8432
+ * // "targetDetails": {},
8433
+ * // "updateTime": "my_updateTime"
8434
+ * // }
8435
+ * },
8436
+ * });
8437
+ * console.log(res.data);
8438
+ *
8439
+ * // Example response
8440
+ * // {
8441
+ * // "done": false,
8442
+ * // "error": {},
8443
+ * // "metadata": {},
8444
+ * // "name": "my_name",
8445
+ * // "response": {}
8446
+ * // }
8447
+ * }
8448
+ *
8449
+ * main().catch(e => {
8450
+ * console.error(e);
8451
+ * throw e;
8452
+ * });
8453
+ *
8454
+ * ```
8455
+ *
8456
+ * @param params - Parameters for request
8457
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8458
+ * @param callback - Optional callback that handles the response.
8459
+ * @returns A promise if used with async/await, or void if used with a callback.
8460
+ */
8461
+ create(
8462
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8463
+ options: StreamMethodOptions
8464
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8465
+ create(
8466
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8467
+ options?: MethodOptions
8468
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8469
+ create(
8470
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8471
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8472
+ callback: BodyResponseCallback<Readable>
8473
+ ): void;
8474
+ create(
8475
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8476
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8477
+ callback: BodyResponseCallback<Schema$Operation>
8478
+ ): void;
8479
+ create(
8480
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create,
8481
+ callback: BodyResponseCallback<Schema$Operation>
8482
+ ): void;
8483
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
8484
+ create(
8485
+ paramsOrCallback?:
8486
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create
8487
+ | BodyResponseCallback<Schema$Operation>
8488
+ | BodyResponseCallback<Readable>,
8489
+ optionsOrCallback?:
8490
+ | MethodOptions
8491
+ | StreamMethodOptions
8492
+ | BodyResponseCallback<Schema$Operation>
8493
+ | BodyResponseCallback<Readable>,
8494
+ callback?:
8495
+ | BodyResponseCallback<Schema$Operation>
8496
+ | BodyResponseCallback<Readable>
8497
+ ):
8498
+ | void
8499
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8500
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8501
+ let params = (paramsOrCallback ||
8502
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create;
8503
+ let options = (optionsOrCallback || {}) as MethodOptions;
8504
+
8505
+ if (typeof paramsOrCallback === 'function') {
8506
+ callback = paramsOrCallback;
8507
+ params =
8508
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create;
8509
+ options = {};
8510
+ }
8511
+
8512
+ if (typeof optionsOrCallback === 'function') {
8513
+ callback = optionsOrCallback;
8514
+ options = {};
8515
+ }
8516
+
8517
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8518
+ const parameters = {
8519
+ options: Object.assign(
8520
+ {
8521
+ url: (rootUrl + '/v1/{+parent}/diskMigrationJobs').replace(
8522
+ /([^:]\/)\/+/g,
8523
+ '$1'
8524
+ ),
8525
+ method: 'POST',
8526
+ apiVersion: '',
8527
+ },
8528
+ options
8529
+ ),
8530
+ params,
8531
+ requiredParams: ['parent'],
8532
+ pathParams: ['parent'],
8533
+ context: this.context,
8534
+ };
8535
+ if (callback) {
8536
+ createAPIRequest<Schema$Operation>(
8537
+ parameters,
8538
+ callback as BodyResponseCallback<unknown>
8539
+ );
8540
+ } else {
8541
+ return createAPIRequest<Schema$Operation>(parameters);
8542
+ }
8543
+ }
8544
+
8545
+ /**
8546
+ * Deletes a single DiskMigrationJob.
8547
+ * @example
8548
+ * ```js
8549
+ * // Before running the sample:
8550
+ * // - Enable the API at:
8551
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8552
+ * // - Login into gcloud by running:
8553
+ * // ```sh
8554
+ * // $ gcloud auth application-default login
8555
+ * // ```
8556
+ * // - Install the npm module by running:
8557
+ * // ```sh
8558
+ * // $ npm install googleapis
8559
+ * // ```
8560
+ *
8561
+ * const {google} = require('googleapis');
8562
+ * const vmmigration = google.vmmigration('v1');
8563
+ *
8564
+ * async function main() {
8565
+ * const auth = new google.auth.GoogleAuth({
8566
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8567
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8568
+ * });
8569
+ *
8570
+ * // Acquire an auth client, and bind it to all future calls
8571
+ * const authClient = await auth.getClient();
8572
+ * google.options({auth: authClient});
8573
+ *
8574
+ * // Do the magic
8575
+ * const res =
8576
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.delete({
8577
+ * // Required. The name of the DiskMigrationJob.
8578
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8579
+ * });
8580
+ * console.log(res.data);
8581
+ *
8582
+ * // Example response
8583
+ * // {
8584
+ * // "done": false,
8585
+ * // "error": {},
8586
+ * // "metadata": {},
8587
+ * // "name": "my_name",
8588
+ * // "response": {}
8589
+ * // }
8590
+ * }
8591
+ *
8592
+ * main().catch(e => {
8593
+ * console.error(e);
8594
+ * throw e;
8595
+ * });
8596
+ *
8597
+ * ```
8598
+ *
8599
+ * @param params - Parameters for request
8600
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8601
+ * @param callback - Optional callback that handles the response.
8602
+ * @returns A promise if used with async/await, or void if used with a callback.
8603
+ */
8604
+ delete(
8605
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8606
+ options: StreamMethodOptions
8607
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8608
+ delete(
8609
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8610
+ options?: MethodOptions
8611
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8612
+ delete(
8613
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8614
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8615
+ callback: BodyResponseCallback<Readable>
8616
+ ): void;
8617
+ delete(
8618
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8619
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8620
+ callback: BodyResponseCallback<Schema$Operation>
8621
+ ): void;
8622
+ delete(
8623
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete,
8624
+ callback: BodyResponseCallback<Schema$Operation>
8625
+ ): void;
8626
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
8627
+ delete(
8628
+ paramsOrCallback?:
8629
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete
8630
+ | BodyResponseCallback<Schema$Operation>
8631
+ | BodyResponseCallback<Readable>,
8632
+ optionsOrCallback?:
8633
+ | MethodOptions
8634
+ | StreamMethodOptions
8635
+ | BodyResponseCallback<Schema$Operation>
8636
+ | BodyResponseCallback<Readable>,
8637
+ callback?:
8638
+ | BodyResponseCallback<Schema$Operation>
8639
+ | BodyResponseCallback<Readable>
8640
+ ):
8641
+ | void
8642
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8643
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8644
+ let params = (paramsOrCallback ||
8645
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete;
8646
+ let options = (optionsOrCallback || {}) as MethodOptions;
8647
+
8648
+ if (typeof paramsOrCallback === 'function') {
8649
+ callback = paramsOrCallback;
8650
+ params =
8651
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete;
8652
+ options = {};
8653
+ }
8654
+
8655
+ if (typeof optionsOrCallback === 'function') {
8656
+ callback = optionsOrCallback;
8657
+ options = {};
8658
+ }
8659
+
8660
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8661
+ const parameters = {
8662
+ options: Object.assign(
8663
+ {
8664
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8665
+ method: 'DELETE',
8666
+ apiVersion: '',
8667
+ },
8668
+ options
8669
+ ),
8670
+ params,
8671
+ requiredParams: ['name'],
8672
+ pathParams: ['name'],
8673
+ context: this.context,
8674
+ };
8675
+ if (callback) {
8676
+ createAPIRequest<Schema$Operation>(
8677
+ parameters,
8678
+ callback as BodyResponseCallback<unknown>
8679
+ );
8680
+ } else {
8681
+ return createAPIRequest<Schema$Operation>(parameters);
8682
+ }
8683
+ }
8684
+
8685
+ /**
8686
+ * Gets details of a single DiskMigrationJob.
8687
+ * @example
8688
+ * ```js
8689
+ * // Before running the sample:
8690
+ * // - Enable the API at:
8691
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8692
+ * // - Login into gcloud by running:
8693
+ * // ```sh
8694
+ * // $ gcloud auth application-default login
8695
+ * // ```
8696
+ * // - Install the npm module by running:
8697
+ * // ```sh
8698
+ * // $ npm install googleapis
8699
+ * // ```
8700
+ *
8701
+ * const {google} = require('googleapis');
8702
+ * const vmmigration = google.vmmigration('v1');
8703
+ *
8704
+ * async function main() {
8705
+ * const auth = new google.auth.GoogleAuth({
8706
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8707
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8708
+ * });
8709
+ *
8710
+ * // Acquire an auth client, and bind it to all future calls
8711
+ * const authClient = await auth.getClient();
8712
+ * google.options({auth: authClient});
8713
+ *
8714
+ * // Do the magic
8715
+ * const res =
8716
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.get({
8717
+ * // Required. The name of the DiskMigrationJob.
8718
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
8719
+ * });
8720
+ * console.log(res.data);
8721
+ *
8722
+ * // Example response
8723
+ * // {
8724
+ * // "awsSourceDiskDetails": {},
8725
+ * // "createTime": "my_createTime",
8726
+ * // "errors": [],
8727
+ * // "name": "my_name",
8728
+ * // "state": "my_state",
8729
+ * // "steps": [],
8730
+ * // "targetDetails": {},
8731
+ * // "updateTime": "my_updateTime"
8732
+ * // }
8733
+ * }
8734
+ *
8735
+ * main().catch(e => {
8736
+ * console.error(e);
8737
+ * throw e;
8738
+ * });
8739
+ *
8740
+ * ```
8741
+ *
8742
+ * @param params - Parameters for request
8743
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8744
+ * @param callback - Optional callback that handles the response.
8745
+ * @returns A promise if used with async/await, or void if used with a callback.
8746
+ */
8747
+ get(
8748
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8749
+ options: StreamMethodOptions
8750
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8751
+ get(
8752
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8753
+ options?: MethodOptions
8754
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>;
8755
+ get(
8756
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8757
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8758
+ callback: BodyResponseCallback<Readable>
8759
+ ): void;
8760
+ get(
8761
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8762
+ options: MethodOptions | BodyResponseCallback<Schema$DiskMigrationJob>,
8763
+ callback: BodyResponseCallback<Schema$DiskMigrationJob>
8764
+ ): void;
8765
+ get(
8766
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get,
8767
+ callback: BodyResponseCallback<Schema$DiskMigrationJob>
8768
+ ): void;
8769
+ get(callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
8770
+ get(
8771
+ paramsOrCallback?:
8772
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get
8773
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8774
+ | BodyResponseCallback<Readable>,
8775
+ optionsOrCallback?:
8776
+ | MethodOptions
8777
+ | StreamMethodOptions
8778
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8779
+ | BodyResponseCallback<Readable>,
8780
+ callback?:
8781
+ | BodyResponseCallback<Schema$DiskMigrationJob>
8782
+ | BodyResponseCallback<Readable>
8783
+ ):
8784
+ | void
8785
+ | Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>
8786
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8787
+ let params = (paramsOrCallback ||
8788
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get;
8789
+ let options = (optionsOrCallback || {}) as MethodOptions;
8790
+
8791
+ if (typeof paramsOrCallback === 'function') {
8792
+ callback = paramsOrCallback;
8793
+ params =
8794
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get;
8795
+ options = {};
8796
+ }
8797
+
8798
+ if (typeof optionsOrCallback === 'function') {
8799
+ callback = optionsOrCallback;
8800
+ options = {};
8801
+ }
8802
+
8803
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8804
+ const parameters = {
8805
+ options: Object.assign(
8806
+ {
8807
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
8808
+ method: 'GET',
8809
+ apiVersion: '',
8810
+ },
8811
+ options
8812
+ ),
8813
+ params,
8814
+ requiredParams: ['name'],
8815
+ pathParams: ['name'],
8816
+ context: this.context,
8817
+ };
8818
+ if (callback) {
8819
+ createAPIRequest<Schema$DiskMigrationJob>(
8820
+ parameters,
8821
+ callback as BodyResponseCallback<unknown>
8822
+ );
8823
+ } else {
8824
+ return createAPIRequest<Schema$DiskMigrationJob>(parameters);
8825
+ }
8826
+ }
8827
+
8828
+ /**
8829
+ * Lists DiskMigrationJobs in a given Source.
8830
+ * @example
8831
+ * ```js
8832
+ * // Before running the sample:
8833
+ * // - Enable the API at:
8834
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8835
+ * // - Login into gcloud by running:
8836
+ * // ```sh
8837
+ * // $ gcloud auth application-default login
8838
+ * // ```
8839
+ * // - Install the npm module by running:
8840
+ * // ```sh
8841
+ * // $ npm install googleapis
8842
+ * // ```
8843
+ *
8844
+ * const {google} = require('googleapis');
8845
+ * const vmmigration = google.vmmigration('v1');
8846
+ *
8847
+ * async function main() {
8848
+ * const auth = new google.auth.GoogleAuth({
8849
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8850
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8851
+ * });
8852
+ *
8853
+ * // Acquire an auth client, and bind it to all future calls
8854
+ * const authClient = await auth.getClient();
8855
+ * google.options({auth: authClient});
8856
+ *
8857
+ * // Do the magic
8858
+ * const res =
8859
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.list({
8860
+ * // Optional. The filter request (according to AIP-160).
8861
+ * filter: 'placeholder-value',
8862
+ * // Optional. Ordering of the result list.
8863
+ * orderBy: 'placeholder-value',
8864
+ * // 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.
8865
+ * pageSize: 'placeholder-value',
8866
+ * // 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.
8867
+ * pageToken: 'placeholder-value',
8868
+ * // Required. The parent, which owns this collection of DiskMigrationJobs.
8869
+ * parent: 'projects/my-project/locations/my-location/sources/my-source',
8870
+ * });
8871
+ * console.log(res.data);
8872
+ *
8873
+ * // Example response
8874
+ * // {
8875
+ * // "diskMigrationJobs": [],
8876
+ * // "nextPageToken": "my_nextPageToken",
8877
+ * // "unreachable": []
8878
+ * // }
8879
+ * }
8880
+ *
8881
+ * main().catch(e => {
8882
+ * console.error(e);
8883
+ * throw e;
8884
+ * });
8885
+ *
8886
+ * ```
8887
+ *
8888
+ * @param params - Parameters for request
8889
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8890
+ * @param callback - Optional callback that handles the response.
8891
+ * @returns A promise if used with async/await, or void if used with a callback.
8892
+ */
8893
+ list(
8894
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
8895
+ options: StreamMethodOptions
8896
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8897
+ list(
8898
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
8899
+ options?: MethodOptions
8900
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>;
8901
+ list(
8902
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
8903
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8904
+ callback: BodyResponseCallback<Readable>
8905
+ ): void;
8906
+ list(
8907
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
8908
+ options:
8909
+ | MethodOptions
8910
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>,
8911
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8912
+ ): void;
8913
+ list(
8914
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List,
8915
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8916
+ ): void;
8917
+ list(
8918
+ callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8919
+ ): void;
8920
+ list(
8921
+ paramsOrCallback?:
8922
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List
8923
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8924
+ | BodyResponseCallback<Readable>,
8925
+ optionsOrCallback?:
8926
+ | MethodOptions
8927
+ | StreamMethodOptions
8928
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8929
+ | BodyResponseCallback<Readable>,
8930
+ callback?:
8931
+ | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>
8932
+ | BodyResponseCallback<Readable>
8933
+ ):
8934
+ | void
8935
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>
8936
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8937
+ let params = (paramsOrCallback ||
8938
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List;
8939
+ let options = (optionsOrCallback || {}) as MethodOptions;
8940
+
8941
+ if (typeof paramsOrCallback === 'function') {
8942
+ callback = paramsOrCallback;
8943
+ params =
8944
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List;
8945
+ options = {};
8946
+ }
8947
+
8948
+ if (typeof optionsOrCallback === 'function') {
8949
+ callback = optionsOrCallback;
8950
+ options = {};
8951
+ }
8952
+
8953
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
8954
+ const parameters = {
8955
+ options: Object.assign(
8956
+ {
8957
+ url: (rootUrl + '/v1/{+parent}/diskMigrationJobs').replace(
8958
+ /([^:]\/)\/+/g,
8959
+ '$1'
8960
+ ),
8961
+ method: 'GET',
8962
+ apiVersion: '',
8963
+ },
8964
+ options
8965
+ ),
8966
+ params,
8967
+ requiredParams: ['parent'],
8968
+ pathParams: ['parent'],
8969
+ context: this.context,
8970
+ };
8971
+ if (callback) {
8972
+ createAPIRequest<Schema$ListDiskMigrationJobsResponse>(
8973
+ parameters,
8974
+ callback as BodyResponseCallback<unknown>
8975
+ );
8976
+ } else {
8977
+ return createAPIRequest<Schema$ListDiskMigrationJobsResponse>(
8978
+ parameters
8979
+ );
8980
+ }
8981
+ }
8982
+
8983
+ /**
8984
+ * Updates the parameters of a single DiskMigrationJob.
8985
+ * @example
8986
+ * ```js
8987
+ * // Before running the sample:
8988
+ * // - Enable the API at:
8989
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
8990
+ * // - Login into gcloud by running:
8991
+ * // ```sh
8992
+ * // $ gcloud auth application-default login
8993
+ * // ```
8994
+ * // - Install the npm module by running:
8995
+ * // ```sh
8996
+ * // $ npm install googleapis
8997
+ * // ```
8998
+ *
8999
+ * const {google} = require('googleapis');
9000
+ * const vmmigration = google.vmmigration('v1');
9001
+ *
9002
+ * async function main() {
9003
+ * const auth = new google.auth.GoogleAuth({
9004
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9005
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9006
+ * });
9007
+ *
9008
+ * // Acquire an auth client, and bind it to all future calls
9009
+ * const authClient = await auth.getClient();
9010
+ * google.options({auth: authClient});
9011
+ *
9012
+ * // Do the magic
9013
+ * const res =
9014
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.patch({
9015
+ * // Output only. Identifier. The identifier of the DiskMigrationJob.
9016
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
9017
+ * // 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).
9018
+ * requestId: 'placeholder-value',
9019
+ * // 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.
9020
+ * updateMask: 'placeholder-value',
9021
+ *
9022
+ * // Request body metadata
9023
+ * requestBody: {
9024
+ * // request body parameters
9025
+ * // {
9026
+ * // "awsSourceDiskDetails": {},
9027
+ * // "createTime": "my_createTime",
9028
+ * // "errors": [],
9029
+ * // "name": "my_name",
9030
+ * // "state": "my_state",
9031
+ * // "steps": [],
9032
+ * // "targetDetails": {},
9033
+ * // "updateTime": "my_updateTime"
9034
+ * // }
9035
+ * },
9036
+ * });
9037
+ * console.log(res.data);
9038
+ *
9039
+ * // Example response
9040
+ * // {
9041
+ * // "done": false,
9042
+ * // "error": {},
9043
+ * // "metadata": {},
9044
+ * // "name": "my_name",
9045
+ * // "response": {}
9046
+ * // }
9047
+ * }
9048
+ *
9049
+ * main().catch(e => {
9050
+ * console.error(e);
9051
+ * throw e;
9052
+ * });
9053
+ *
9054
+ * ```
9055
+ *
9056
+ * @param params - Parameters for request
9057
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9058
+ * @param callback - Optional callback that handles the response.
9059
+ * @returns A promise if used with async/await, or void if used with a callback.
9060
+ */
9061
+ patch(
9062
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9063
+ options: StreamMethodOptions
9064
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9065
+ patch(
9066
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9067
+ options?: MethodOptions
9068
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9069
+ patch(
9070
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9071
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9072
+ callback: BodyResponseCallback<Readable>
9073
+ ): void;
9074
+ patch(
9075
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9076
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9077
+ callback: BodyResponseCallback<Schema$Operation>
9078
+ ): void;
9079
+ patch(
9080
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch,
9081
+ callback: BodyResponseCallback<Schema$Operation>
9082
+ ): void;
9083
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
9084
+ patch(
9085
+ paramsOrCallback?:
9086
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch
9087
+ | BodyResponseCallback<Schema$Operation>
9088
+ | BodyResponseCallback<Readable>,
9089
+ optionsOrCallback?:
9090
+ | MethodOptions
9091
+ | StreamMethodOptions
9092
+ | BodyResponseCallback<Schema$Operation>
9093
+ | BodyResponseCallback<Readable>,
9094
+ callback?:
9095
+ | BodyResponseCallback<Schema$Operation>
9096
+ | BodyResponseCallback<Readable>
9097
+ ):
9098
+ | void
9099
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9100
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9101
+ let params = (paramsOrCallback ||
9102
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch;
9103
+ let options = (optionsOrCallback || {}) as MethodOptions;
9104
+
9105
+ if (typeof paramsOrCallback === 'function') {
9106
+ callback = paramsOrCallback;
9107
+ params =
9108
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch;
9109
+ options = {};
9110
+ }
9111
+
9112
+ if (typeof optionsOrCallback === 'function') {
9113
+ callback = optionsOrCallback;
9114
+ options = {};
9115
+ }
9116
+
9117
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
9118
+ const parameters = {
9119
+ options: Object.assign(
9120
+ {
9121
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9122
+ method: 'PATCH',
9123
+ apiVersion: '',
9124
+ },
9125
+ options
9126
+ ),
9127
+ params,
9128
+ requiredParams: ['name'],
9129
+ pathParams: ['name'],
9130
+ context: this.context,
9131
+ };
9132
+ if (callback) {
9133
+ createAPIRequest<Schema$Operation>(
9134
+ parameters,
9135
+ callback as BodyResponseCallback<unknown>
9136
+ );
9137
+ } else {
9138
+ return createAPIRequest<Schema$Operation>(parameters);
9139
+ }
9140
+ }
9141
+
9142
+ /**
9143
+ * Runs the disk migration job.
9144
+ * @example
9145
+ * ```js
9146
+ * // Before running the sample:
9147
+ * // - Enable the API at:
9148
+ * // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
9149
+ * // - Login into gcloud by running:
9150
+ * // ```sh
9151
+ * // $ gcloud auth application-default login
9152
+ * // ```
9153
+ * // - Install the npm module by running:
9154
+ * // ```sh
9155
+ * // $ npm install googleapis
9156
+ * // ```
9157
+ *
9158
+ * const {google} = require('googleapis');
9159
+ * const vmmigration = google.vmmigration('v1');
9160
+ *
9161
+ * async function main() {
9162
+ * const auth = new google.auth.GoogleAuth({
9163
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9164
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9165
+ * });
9166
+ *
9167
+ * // Acquire an auth client, and bind it to all future calls
9168
+ * const authClient = await auth.getClient();
9169
+ * google.options({auth: authClient});
9170
+ *
9171
+ * // Do the magic
9172
+ * const res =
9173
+ * await vmmigration.projects.locations.sources.diskMigrationJobs.run({
9174
+ * // Required. The name of the DiskMigrationJob.
9175
+ * name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
9176
+ *
9177
+ * // Request body metadata
9178
+ * requestBody: {
9179
+ * // request body parameters
9180
+ * // {}
9181
+ * },
9182
+ * });
9183
+ * console.log(res.data);
9184
+ *
9185
+ * // Example response
9186
+ * // {
9187
+ * // "done": false,
9188
+ * // "error": {},
9189
+ * // "metadata": {},
9190
+ * // "name": "my_name",
9191
+ * // "response": {}
9192
+ * // }
9193
+ * }
9194
+ *
9195
+ * main().catch(e => {
9196
+ * console.error(e);
9197
+ * throw e;
9198
+ * });
9199
+ *
9200
+ * ```
9201
+ *
9202
+ * @param params - Parameters for request
9203
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9204
+ * @param callback - Optional callback that handles the response.
9205
+ * @returns A promise if used with async/await, or void if used with a callback.
9206
+ */
9207
+ run(
9208
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9209
+ options: StreamMethodOptions
9210
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9211
+ run(
9212
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9213
+ options?: MethodOptions
9214
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9215
+ run(
9216
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9217
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9218
+ callback: BodyResponseCallback<Readable>
9219
+ ): void;
9220
+ run(
9221
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9222
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9223
+ callback: BodyResponseCallback<Schema$Operation>
9224
+ ): void;
9225
+ run(
9226
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
9227
+ callback: BodyResponseCallback<Schema$Operation>
9228
+ ): void;
9229
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
9230
+ run(
9231
+ paramsOrCallback?:
9232
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
9233
+ | BodyResponseCallback<Schema$Operation>
9234
+ | BodyResponseCallback<Readable>,
9235
+ optionsOrCallback?:
9236
+ | MethodOptions
9237
+ | StreamMethodOptions
9238
+ | BodyResponseCallback<Schema$Operation>
9239
+ | BodyResponseCallback<Readable>,
9240
+ callback?:
9241
+ | BodyResponseCallback<Schema$Operation>
9242
+ | BodyResponseCallback<Readable>
9243
+ ):
9244
+ | void
9245
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9246
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9247
+ let params = (paramsOrCallback ||
9248
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
9249
+ let options = (optionsOrCallback || {}) as MethodOptions;
9250
+
9251
+ if (typeof paramsOrCallback === 'function') {
9252
+ callback = paramsOrCallback;
9253
+ params =
9254
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
9255
+ options = {};
9256
+ }
9257
+
9258
+ if (typeof optionsOrCallback === 'function') {
9259
+ callback = optionsOrCallback;
9260
+ options = {};
9261
+ }
9262
+
9263
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
9264
+ const parameters = {
9265
+ options: Object.assign(
9266
+ {
9267
+ url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'),
9268
+ method: 'POST',
9269
+ apiVersion: '',
9270
+ },
9271
+ options
9272
+ ),
9273
+ params,
9274
+ requiredParams: ['name'],
9275
+ pathParams: ['name'],
9276
+ context: this.context,
9277
+ };
9278
+ if (callback) {
9279
+ createAPIRequest<Schema$Operation>(
9280
+ parameters,
9281
+ callback as BodyResponseCallback<unknown>
9282
+ );
9283
+ } else {
9284
+ return createAPIRequest<Schema$Operation>(parameters);
9285
+ }
9286
+ }
9287
+ }
9288
+
9289
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
9290
+ extends StandardParameters {
9291
+ /**
9292
+ * Required. The name of the DiskMigrationJob.
9293
+ */
9294
+ name?: string;
9295
+
9296
+ /**
9297
+ * Request body metadata
9298
+ */
9299
+ requestBody?: Schema$CancelDiskMigrationJobRequest;
9300
+ }
9301
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create
9302
+ extends StandardParameters {
9303
+ /**
9304
+ * 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.
9305
+ */
9306
+ diskMigrationJobId?: string;
9307
+ /**
9308
+ * Required. The DiskMigrationJob's parent.
9309
+ */
9310
+ parent?: string;
9311
+ /**
9312
+ * 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).
9313
+ */
9314
+ requestId?: string;
9315
+
9316
+ /**
9317
+ * Request body metadata
9318
+ */
9319
+ requestBody?: Schema$DiskMigrationJob;
9320
+ }
9321
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete
9322
+ extends StandardParameters {
9323
+ /**
9324
+ * Required. The name of the DiskMigrationJob.
9325
+ */
9326
+ name?: string;
9327
+ }
9328
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get
9329
+ extends StandardParameters {
9330
+ /**
9331
+ * Required. The name of the DiskMigrationJob.
9332
+ */
9333
+ name?: string;
9334
+ }
9335
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List
9336
+ extends StandardParameters {
9337
+ /**
9338
+ * Optional. The filter request (according to AIP-160).
9339
+ */
9340
+ filter?: string;
9341
+ /**
9342
+ * Optional. Ordering of the result list.
9343
+ */
9344
+ orderBy?: string;
9345
+ /**
9346
+ * 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.
9347
+ */
9348
+ pageSize?: number;
9349
+ /**
9350
+ * 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.
9351
+ */
9352
+ pageToken?: string;
9353
+ /**
9354
+ * Required. The parent, which owns this collection of DiskMigrationJobs.
9355
+ */
9356
+ parent?: string;
9357
+ }
9358
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch
9359
+ extends StandardParameters {
9360
+ /**
9361
+ * Output only. Identifier. The identifier of the DiskMigrationJob.
9362
+ */
9363
+ name?: string;
9364
+ /**
9365
+ * 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).
9366
+ */
9367
+ requestId?: string;
9368
+ /**
9369
+ * 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.
9370
+ */
9371
+ updateMask?: string;
9372
+
9373
+ /**
9374
+ * Request body metadata
9375
+ */
9376
+ requestBody?: Schema$DiskMigrationJob;
9377
+ }
9378
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
9379
+ extends StandardParameters {
9380
+ /**
9381
+ * Required. The name of the DiskMigrationJob.
9382
+ */
9383
+ name?: string;
9384
+
9385
+ /**
9386
+ * Request body metadata
9387
+ */
9388
+ requestBody?: Schema$RunDiskMigrationJobRequest;
9389
+ }
9390
+
7837
9391
  export class Resource$Projects$Locations$Sources$Migratingvms {
7838
9392
  context: APIRequestContext;
7839
9393
  cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;