@googleapis/vmmigration 8.0.1 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1alpha1.ts CHANGED
@@ -206,15 +206,15 @@ export namespace vmmigration_v1alpha1 {
206
206
  */
207
207
  export interface Schema$AwsDiskDetails {
208
208
  /**
209
- * The ordinal number of the disk.
209
+ * Output only. The ordinal number of the disk.
210
210
  */
211
211
  diskNumber?: number | null;
212
212
  /**
213
- * Size in GB.
213
+ * Output only. Size in GB.
214
214
  */
215
215
  sizeGb?: string | null;
216
216
  /**
217
- * AWS volume ID.
217
+ * Output only. AWS volume ID.
218
218
  */
219
219
  volumeId?: string | null;
220
220
  }
@@ -259,6 +259,10 @@ export namespace vmmigration_v1alpha1 {
259
259
  * User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`.
260
260
  */
261
261
  migrationResourcesUserTags?: {[key: string]: string} | null;
262
+ /**
263
+ * Output only. Information about the network coniguration of the source. Only gatherred upon request.
264
+ */
265
+ networkInsights?: Schema$NetworkInsights;
262
266
  /**
263
267
  * Output only. The source's public IP. All communication initiated by this source will originate from this IP.
264
268
  */
@@ -273,15 +277,15 @@ export namespace vmmigration_v1alpha1 {
273
277
  */
274
278
  export interface Schema$AwsSourceVmDetails {
275
279
  /**
276
- * The total size of the disks being migrated in bytes.
280
+ * Output only. The total size of the disks being migrated in bytes.
277
281
  */
278
282
  committedStorageBytes?: string | null;
279
283
  /**
280
- * The disks attached to the source VM.
284
+ * Output only. The disks attached to the source VM.
281
285
  */
282
286
  disks?: Schema$AwsDiskDetails[];
283
287
  /**
284
- * The firmware type of the source VM.
288
+ * Output only. The firmware type of the source VM.
285
289
  */
286
290
  firmware?: string | null;
287
291
  /**
@@ -380,15 +384,15 @@ export namespace vmmigration_v1alpha1 {
380
384
  */
381
385
  export interface Schema$AzureDiskDetails {
382
386
  /**
383
- * Azure disk ID.
387
+ * Output only. Azure disk ID.
384
388
  */
385
389
  diskId?: string | null;
386
390
  /**
387
- * The ordinal number of the disk.
391
+ * Output only. The ordinal number of the disk.
388
392
  */
389
393
  diskNumber?: number | null;
390
394
  /**
391
- * Size in GB.
395
+ * Output only. Size in GB.
392
396
  */
393
397
  sizeGb?: string | null;
394
398
  }
@@ -430,15 +434,15 @@ export namespace vmmigration_v1alpha1 {
430
434
  */
431
435
  export interface Schema$AzureSourceVmDetails {
432
436
  /**
433
- * The total size of the disks being migrated in bytes.
437
+ * Output only. The total size of the disks being migrated in bytes.
434
438
  */
435
439
  committedStorageBytes?: string | null;
436
440
  /**
437
- * The disks attached to the source VM.
441
+ * Output only. The disks attached to the source VM.
438
442
  */
439
443
  disks?: Schema$AzureDiskDetails[];
440
444
  /**
441
- * The firmware type of the source VM.
445
+ * Output only. The firmware type of the source VM.
442
446
  */
443
447
  firmware?: string | null;
444
448
  /**
@@ -545,6 +549,10 @@ export namespace vmmigration_v1alpha1 {
545
549
  * Request message for 'CancelCutoverJob' request.
546
550
  */
547
551
  export interface Schema$CancelCutoverJobRequest {}
552
+ /**
553
+ * Request message for 'CancelDiskMigrationJob' request.
554
+ */
555
+ export interface Schema$CancelDiskMigrationJobRequest {}
548
556
  /**
549
557
  * Request message for 'CancelImageImportJob' request.
550
558
  */
@@ -1098,7 +1106,7 @@ export namespace vmmigration_v1alpha1 {
1098
1106
  */
1099
1107
  export interface Schema$DiskImageTargetDetails {
1100
1108
  /**
1101
- * Optional. Additional licenses to assign to the image.
1109
+ * Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
1102
1110
  */
1103
1111
  additionalLicenses?: string[] | null;
1104
1112
  /**
@@ -1307,6 +1315,10 @@ export namespace vmmigration_v1alpha1 {
1307
1315
  * Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.
1308
1316
  */
1309
1317
  encryption?: Schema$Encryption;
1318
+ /**
1319
+ * Immutable. Target details for importing a machine image, will be used by ImageImportJob.
1320
+ */
1321
+ machineImageTargetDefaults?: Schema$MachineImageTargetDetails;
1310
1322
  /**
1311
1323
  * Output only. The resource path of the ImageImport.
1312
1324
  */
@@ -1344,6 +1356,10 @@ export namespace vmmigration_v1alpha1 {
1344
1356
  * Output only. Provides details on the error that led to the image import state in case of an error.
1345
1357
  */
1346
1358
  errors?: Schema$Status[];
1359
+ /**
1360
+ * Output only. Target details used to import a machine image.
1361
+ */
1362
+ machineImageTargetDetails?: Schema$MachineImageTargetDetails;
1347
1363
  /**
1348
1364
  * Output only. The resource path of the ImageImportJob.
1349
1365
  */
@@ -1683,6 +1699,76 @@ export namespace vmmigration_v1alpha1 {
1683
1699
  */
1684
1700
  name?: string | null;
1685
1701
  }
1702
+ /**
1703
+ * Parameters overriding decisions based on the source machine image configurations.
1704
+ */
1705
+ export interface Schema$MachineImageParametersOverrides {
1706
+ /**
1707
+ * Optional. The machine type to create the MachineImage with. If empty, the service will choose a relevant machine type based on the information from the source image. For more information about machine types, please refer to https://cloud.google.com/compute/docs/machine-resource.
1708
+ */
1709
+ machineType?: string | null;
1710
+ }
1711
+ /**
1712
+ * The target details of the machine image resource that will be created by the image import job.
1713
+ */
1714
+ export interface Schema$MachineImageTargetDetails {
1715
+ /**
1716
+ * Optional. Additional licenses to assign to the instance created by the machine image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
1717
+ */
1718
+ additionalLicenses?: string[] | null;
1719
+ /**
1720
+ * Optional. An optional description of the machine image.
1721
+ */
1722
+ description?: string | null;
1723
+ /**
1724
+ * Immutable. The encryption to apply to the machine image.
1725
+ */
1726
+ encryption?: Schema$Encryption;
1727
+ /**
1728
+ * Optional. The labels to apply to the instance created by the machine image.
1729
+ */
1730
+ labels?: {[key: string]: string} | null;
1731
+ /**
1732
+ * Required. The name of the machine image to be created.
1733
+ */
1734
+ machineImageName?: string | null;
1735
+ /**
1736
+ * Optional. Parameters overriding decisions based on the source machine image configurations.
1737
+ */
1738
+ machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
1739
+ /**
1740
+ * Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses are ignored for machine image import.
1741
+ */
1742
+ networkInterfaces?: Schema$NetworkInterface[];
1743
+ /**
1744
+ * Optional. Use to set the parameters relevant for the OS adaptation process.
1745
+ */
1746
+ osAdaptationParameters?: Schema$ImageImportOsAdaptationParameters;
1747
+ /**
1748
+ * Optional. The service account to assign to the instance created by the machine image.
1749
+ */
1750
+ serviceAccount?: Schema$ServiceAccount;
1751
+ /**
1752
+ * Optional. Shielded instance configuration.
1753
+ */
1754
+ shieldedInstanceConfig?: Schema$ShieldedInstanceConfig;
1755
+ /**
1756
+ * Optional. Set to true to set the machine image storageLocations to the single region of the import job. When false, the closest multi-region is selected.
1757
+ */
1758
+ singleRegionStorage?: boolean | null;
1759
+ /**
1760
+ * Optional. Use to skip OS adaptation process.
1761
+ */
1762
+ skipOsAdaptation?: Schema$SkipOsAdaptation;
1763
+ /**
1764
+ * Optional. The tags to apply to the instance created by the machine image.
1765
+ */
1766
+ tags?: string[] | null;
1767
+ /**
1768
+ * Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.
1769
+ */
1770
+ targetProject?: string | null;
1771
+ }
1686
1772
  /**
1687
1773
  * MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
1688
1774
  */
@@ -1818,7 +1904,7 @@ export namespace vmmigration_v1alpha1 {
1818
1904
  */
1819
1905
  export interface Schema$MigrationWarning {
1820
1906
  /**
1821
- * Suggested action for solving the warning.
1907
+ * Output only. Suggested action for solving the warning.
1822
1908
  */
1823
1909
  actionItem?: Schema$LocalizedMessage;
1824
1910
  /**
@@ -1826,11 +1912,11 @@ export namespace vmmigration_v1alpha1 {
1826
1912
  */
1827
1913
  code?: string | null;
1828
1914
  /**
1829
- * URL(s) pointing to additional information on handling the current warning.
1915
+ * Output only. URL(s) pointing to additional information on handling the current warning.
1830
1916
  */
1831
1917
  helpLinks?: Schema$Link[];
1832
1918
  /**
1833
- * The localized warning message.
1919
+ * Output only. The localized warning message.
1834
1920
  */
1835
1921
  warningMessage?: Schema$LocalizedMessage;
1836
1922
  /**
@@ -1838,16 +1924,29 @@ export namespace vmmigration_v1alpha1 {
1838
1924
  */
1839
1925
  warningTime?: string | null;
1840
1926
  }
1927
+ /**
1928
+ * Information about the network coniguration of the source.
1929
+ */
1930
+ export interface Schema$NetworkInsights {
1931
+ /**
1932
+ * Output only. The gathered network configuration of the source. Presented in json format.
1933
+ */
1934
+ sourceNetworkConfig?: string | null;
1935
+ /**
1936
+ * Output only. The gathered network configuration of the source. Presented in terraform format.
1937
+ */
1938
+ sourceNetworkTerraform?: string | null;
1939
+ }
1841
1940
  /**
1842
1941
  * NetworkInterface represents a NIC of a VM.
1843
1942
  */
1844
1943
  export interface Schema$NetworkInterface {
1845
1944
  /**
1846
- * The external IP to define in the NIC.
1945
+ * Optional. The external IP to define in the NIC.
1847
1946
  */
1848
1947
  externalIp?: string | null;
1849
1948
  /**
1850
- * The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1949
+ * Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1851
1950
  */
1852
1951
  internalIp?: string | null;
1853
1952
  /**
@@ -1855,7 +1954,11 @@ export namespace vmmigration_v1alpha1 {
1855
1954
  */
1856
1955
  network?: string | null;
1857
1956
  /**
1858
- * The subnetwork to connect the NIC to.
1957
+ * Optional. The networking tier used for configuring network access configuration. If left empty, will default to PREMIUM.
1958
+ */
1959
+ networkTier?: string | null;
1960
+ /**
1961
+ * Optional. The subnetwork to connect the NIC to.
1859
1962
  */
1860
1963
  subnetwork?: string | null;
1861
1964
  }
@@ -1997,7 +2100,7 @@ export namespace vmmigration_v1alpha1 {
1997
2100
  */
1998
2101
  sourceDiskNumber?: number | null;
1999
2102
  /**
2000
- * Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attacked to a target VM.
2103
+ * Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.
2001
2104
  */
2002
2105
  vmAttachmentDetails?: Schema$VmAttachmentDetails;
2003
2106
  }
@@ -2052,7 +2155,7 @@ export namespace vmmigration_v1alpha1 {
2052
2155
  */
2053
2156
  endTime?: string | null;
2054
2157
  /**
2055
- * Provides details on the state of the cycle in case of an error.
2158
+ * Output only. Provides details on the state of the cycle in case of an error.
2056
2159
  */
2057
2160
  error?: Schema$Status;
2058
2161
  /**
@@ -2101,6 +2204,10 @@ export namespace vmmigration_v1alpha1 {
2101
2204
  * Request message for 'ResumeMigration' request.
2102
2205
  */
2103
2206
  export interface Schema$ResumeMigrationRequest {}
2207
+ /**
2208
+ * Request message for 'RunDiskMigrationJobRequest' request.
2209
+ */
2210
+ export interface Schema$RunDiskMigrationJobRequest {}
2104
2211
  /**
2105
2212
  * A policy for scheduling replications.
2106
2213
  */
@@ -2131,10 +2238,44 @@ export namespace vmmigration_v1alpha1 {
2131
2238
  */
2132
2239
  values?: string[] | null;
2133
2240
  }
2241
+ /**
2242
+ * Service account to assign to the instance created by the machine image.
2243
+ */
2244
+ export interface Schema$ServiceAccount {
2245
+ /**
2246
+ * Required. The email address of the service account.
2247
+ */
2248
+ email?: string | null;
2249
+ /**
2250
+ * Optional. The list of scopes to be made available for this service account.
2251
+ */
2252
+ scopes?: string[] | null;
2253
+ }
2254
+ /**
2255
+ * Shielded instance configuration.
2256
+ */
2257
+ export interface Schema$ShieldedInstanceConfig {
2258
+ /**
2259
+ * Optional. Defines whether the instance created by the machine image has integrity monitoring enabled. This can be set to true only if the image boot option is EFI, and vTPM is enabled.
2260
+ */
2261
+ enableIntegrityMonitoring?: boolean | null;
2262
+ /**
2263
+ * Optional. Defines whether the instance created by the machine image has vTPM enabled. This can be set to true only if the image boot option is EFI.
2264
+ */
2265
+ enableVtpm?: boolean | null;
2266
+ /**
2267
+ * Optional. Defines whether the instance created by the machine image has Secure Boot enabled. This can be set to true only if the image boot option is EFI.
2268
+ */
2269
+ secureBoot?: string | null;
2270
+ }
2134
2271
  /**
2135
2272
  * ShuttingDownSourceVMStep contains specific step details.
2136
2273
  */
2137
2274
  export interface Schema$ShuttingDownSourceVMStep {}
2275
+ /**
2276
+ * Mentions that the machine image import is not using OS adaptation process.
2277
+ */
2278
+ export interface Schema$SkipOsAdaptation {}
2138
2279
  /**
2139
2280
  * Source message describes a specific vm migration Source resource. It contains the source environment information.
2140
2281
  */
@@ -2206,11 +2347,11 @@ export namespace vmmigration_v1alpha1 {
2206
2347
  */
2207
2348
  export interface Schema$Tag {
2208
2349
  /**
2209
- * Key of tag.
2350
+ * Required. Key of tag.
2210
2351
  */
2211
2352
  key?: string | null;
2212
2353
  /**
2213
- * Value of tag.
2354
+ * Required. Value of tag.
2214
2355
  */
2215
2356
  value?: string | null;
2216
2357
  }
@@ -2342,7 +2483,7 @@ export namespace vmmigration_v1alpha1 {
2342
2483
  */
2343
2484
  export interface Schema$UpgradeStatus {
2344
2485
  /**
2345
- * Provides details on the state of the upgrade operation in case of an error.
2486
+ * Output only. Provides details on the state of the upgrade operation in case of an error.
2346
2487
  */
2347
2488
  error?: Schema$Status;
2348
2489
  /**
@@ -2524,15 +2665,15 @@ export namespace vmmigration_v1alpha1 {
2524
2665
  */
2525
2666
  export interface Schema$VmwareDiskDetails {
2526
2667
  /**
2527
- * The ordinal number of the disk.
2668
+ * Output only. The ordinal number of the disk.
2528
2669
  */
2529
2670
  diskNumber?: number | null;
2530
2671
  /**
2531
- * The disk label.
2672
+ * Output only. The disk label.
2532
2673
  */
2533
2674
  label?: string | null;
2534
2675
  /**
2535
- * Size in GB.
2676
+ * Output only. Size in GB.
2536
2677
  */
2537
2678
  sizeGb?: string | null;
2538
2679
  }
@@ -2566,15 +2707,15 @@ export namespace vmmigration_v1alpha1 {
2566
2707
  */
2567
2708
  export interface Schema$VmwareSourceVmDetails {
2568
2709
  /**
2569
- * The total size of the disks being migrated in bytes.
2710
+ * Output only. The total size of the disks being migrated in bytes.
2570
2711
  */
2571
2712
  committedStorageBytes?: string | null;
2572
2713
  /**
2573
- * The disks attached to the source VM.
2714
+ * Output only. The disks attached to the source VM.
2574
2715
  */
2575
2716
  disks?: Schema$VmwareDiskDetails[];
2576
2717
  /**
2577
- * The firmware type of the source VM.
2718
+ * Output only. The firmware type of the source VM.
2578
2719
  */
2579
2720
  firmware?: string | null;
2580
2721
  /**
@@ -4766,6 +4907,7 @@ export namespace vmmigration_v1alpha1 {
4766
4907
  export class Resource$Projects$Locations$Sources {
4767
4908
  context: APIRequestContext;
4768
4909
  datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
4910
+ diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
4769
4911
  migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
4770
4912
  utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
4771
4913
  constructor(context: APIRequestContext) {
@@ -4774,6 +4916,8 @@ export namespace vmmigration_v1alpha1 {
4774
4916
  new Resource$Projects$Locations$Sources$Datacenterconnectors(
4775
4917
  this.context
4776
4918
  );
4919
+ this.diskMigrationJobs =
4920
+ new Resource$Projects$Locations$Sources$Diskmigrationjobs(this.context);
4777
4921
  this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(
4778
4922
  this.context
4779
4923
  );
@@ -5946,6 +6090,216 @@ export namespace vmmigration_v1alpha1 {
5946
6090
  requestBody?: Schema$UpgradeApplianceRequest;
5947
6091
  }
5948
6092
 
6093
+ export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
6094
+ context: APIRequestContext;
6095
+ constructor(context: APIRequestContext) {
6096
+ this.context = context;
6097
+ }
6098
+
6099
+ /**
6100
+ * Cancels the disk migration job.
6101
+ *
6102
+ * @param params - Parameters for request
6103
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6104
+ * @param callback - Optional callback that handles the response.
6105
+ * @returns A promise if used with async/await, or void if used with a callback.
6106
+ */
6107
+ cancel(
6108
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
6109
+ options: StreamMethodOptions
6110
+ ): GaxiosPromise<Readable>;
6111
+ cancel(
6112
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
6113
+ options?: MethodOptions
6114
+ ): GaxiosPromise<Schema$Operation>;
6115
+ cancel(
6116
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
6117
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6118
+ callback: BodyResponseCallback<Readable>
6119
+ ): void;
6120
+ cancel(
6121
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
6122
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6123
+ callback: BodyResponseCallback<Schema$Operation>
6124
+ ): void;
6125
+ cancel(
6126
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
6127
+ callback: BodyResponseCallback<Schema$Operation>
6128
+ ): void;
6129
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
6130
+ cancel(
6131
+ paramsOrCallback?:
6132
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
6133
+ | BodyResponseCallback<Schema$Operation>
6134
+ | BodyResponseCallback<Readable>,
6135
+ optionsOrCallback?:
6136
+ | MethodOptions
6137
+ | StreamMethodOptions
6138
+ | BodyResponseCallback<Schema$Operation>
6139
+ | BodyResponseCallback<Readable>,
6140
+ callback?:
6141
+ | BodyResponseCallback<Schema$Operation>
6142
+ | BodyResponseCallback<Readable>
6143
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6144
+ let params = (paramsOrCallback ||
6145
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
6146
+ let options = (optionsOrCallback || {}) as MethodOptions;
6147
+
6148
+ if (typeof paramsOrCallback === 'function') {
6149
+ callback = paramsOrCallback;
6150
+ params =
6151
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
6152
+ options = {};
6153
+ }
6154
+
6155
+ if (typeof optionsOrCallback === 'function') {
6156
+ callback = optionsOrCallback;
6157
+ options = {};
6158
+ }
6159
+
6160
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
6161
+ const parameters = {
6162
+ options: Object.assign(
6163
+ {
6164
+ url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(
6165
+ /([^:]\/)\/+/g,
6166
+ '$1'
6167
+ ),
6168
+ method: 'POST',
6169
+ apiVersion: '',
6170
+ },
6171
+ options
6172
+ ),
6173
+ params,
6174
+ requiredParams: ['name'],
6175
+ pathParams: ['name'],
6176
+ context: this.context,
6177
+ };
6178
+ if (callback) {
6179
+ createAPIRequest<Schema$Operation>(
6180
+ parameters,
6181
+ callback as BodyResponseCallback<unknown>
6182
+ );
6183
+ } else {
6184
+ return createAPIRequest<Schema$Operation>(parameters);
6185
+ }
6186
+ }
6187
+
6188
+ /**
6189
+ * Runs the disk migration job.
6190
+ *
6191
+ * @param params - Parameters for request
6192
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6193
+ * @param callback - Optional callback that handles the response.
6194
+ * @returns A promise if used with async/await, or void if used with a callback.
6195
+ */
6196
+ run(
6197
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
6198
+ options: StreamMethodOptions
6199
+ ): GaxiosPromise<Readable>;
6200
+ run(
6201
+ params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
6202
+ options?: MethodOptions
6203
+ ): GaxiosPromise<Schema$Operation>;
6204
+ run(
6205
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
6206
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6207
+ callback: BodyResponseCallback<Readable>
6208
+ ): void;
6209
+ run(
6210
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
6211
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6212
+ callback: BodyResponseCallback<Schema$Operation>
6213
+ ): void;
6214
+ run(
6215
+ params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
6216
+ callback: BodyResponseCallback<Schema$Operation>
6217
+ ): void;
6218
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
6219
+ run(
6220
+ paramsOrCallback?:
6221
+ | Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
6222
+ | BodyResponseCallback<Schema$Operation>
6223
+ | BodyResponseCallback<Readable>,
6224
+ optionsOrCallback?:
6225
+ | MethodOptions
6226
+ | StreamMethodOptions
6227
+ | BodyResponseCallback<Schema$Operation>
6228
+ | BodyResponseCallback<Readable>,
6229
+ callback?:
6230
+ | BodyResponseCallback<Schema$Operation>
6231
+ | BodyResponseCallback<Readable>
6232
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6233
+ let params = (paramsOrCallback ||
6234
+ {}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
6235
+ let options = (optionsOrCallback || {}) as MethodOptions;
6236
+
6237
+ if (typeof paramsOrCallback === 'function') {
6238
+ callback = paramsOrCallback;
6239
+ params =
6240
+ {} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
6241
+ options = {};
6242
+ }
6243
+
6244
+ if (typeof optionsOrCallback === 'function') {
6245
+ callback = optionsOrCallback;
6246
+ options = {};
6247
+ }
6248
+
6249
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
6250
+ const parameters = {
6251
+ options: Object.assign(
6252
+ {
6253
+ url: (rootUrl + '/v1alpha1/{+name}:run').replace(
6254
+ /([^:]\/)\/+/g,
6255
+ '$1'
6256
+ ),
6257
+ method: 'POST',
6258
+ apiVersion: '',
6259
+ },
6260
+ options
6261
+ ),
6262
+ params,
6263
+ requiredParams: ['name'],
6264
+ pathParams: ['name'],
6265
+ context: this.context,
6266
+ };
6267
+ if (callback) {
6268
+ createAPIRequest<Schema$Operation>(
6269
+ parameters,
6270
+ callback as BodyResponseCallback<unknown>
6271
+ );
6272
+ } else {
6273
+ return createAPIRequest<Schema$Operation>(parameters);
6274
+ }
6275
+ }
6276
+ }
6277
+
6278
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
6279
+ extends StandardParameters {
6280
+ /**
6281
+ * Required. The name of the DiskMigrationJob.
6282
+ */
6283
+ name?: string;
6284
+
6285
+ /**
6286
+ * Request body metadata
6287
+ */
6288
+ requestBody?: Schema$CancelDiskMigrationJobRequest;
6289
+ }
6290
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
6291
+ extends StandardParameters {
6292
+ /**
6293
+ * Required. The name of the DiskMigrationJob.
6294
+ */
6295
+ name?: string;
6296
+
6297
+ /**
6298
+ * Request body metadata
6299
+ */
6300
+ requestBody?: Schema$RunDiskMigrationJobRequest;
6301
+ }
6302
+
5949
6303
  export class Resource$Projects$Locations$Sources$Migratingvms {
5950
6304
  context: APIRequestContext;
5951
6305
  cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;