@googleapis/vmmigration 8.0.1 → 9.3.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.
@@ -154,15 +154,15 @@ export declare namespace vmmigration_v1alpha1 {
154
154
  */
155
155
  export interface Schema$AwsDiskDetails {
156
156
  /**
157
- * The ordinal number of the disk.
157
+ * Output only. The ordinal number of the disk.
158
158
  */
159
159
  diskNumber?: number | null;
160
160
  /**
161
- * Size in GB.
161
+ * Output only. Size in GB.
162
162
  */
163
163
  sizeGb?: string | null;
164
164
  /**
165
- * AWS volume ID.
165
+ * Output only. AWS volume ID.
166
166
  */
167
167
  volumeId?: string | null;
168
168
  }
@@ -209,6 +209,10 @@ export declare namespace vmmigration_v1alpha1 {
209
209
  migrationResourcesUserTags?: {
210
210
  [key: string]: string;
211
211
  } | null;
212
+ /**
213
+ * Output only. Information about the network coniguration of the source. Only gatherred upon request.
214
+ */
215
+ networkInsights?: Schema$NetworkInsights;
212
216
  /**
213
217
  * Output only. The source's public IP. All communication initiated by this source will originate from this IP.
214
218
  */
@@ -223,15 +227,15 @@ export declare namespace vmmigration_v1alpha1 {
223
227
  */
224
228
  export interface Schema$AwsSourceVmDetails {
225
229
  /**
226
- * The total size of the disks being migrated in bytes.
230
+ * Output only. The total size of the disks being migrated in bytes.
227
231
  */
228
232
  committedStorageBytes?: string | null;
229
233
  /**
230
- * The disks attached to the source VM.
234
+ * Output only. The disks attached to the source VM.
231
235
  */
232
236
  disks?: Schema$AwsDiskDetails[];
233
237
  /**
234
- * The firmware type of the source VM.
238
+ * Output only. The firmware type of the source VM.
235
239
  */
236
240
  firmware?: string | null;
237
241
  /**
@@ -332,15 +336,15 @@ export declare namespace vmmigration_v1alpha1 {
332
336
  */
333
337
  export interface Schema$AzureDiskDetails {
334
338
  /**
335
- * Azure disk ID.
339
+ * Output only. Azure disk ID.
336
340
  */
337
341
  diskId?: string | null;
338
342
  /**
339
- * The ordinal number of the disk.
343
+ * Output only. The ordinal number of the disk.
340
344
  */
341
345
  diskNumber?: number | null;
342
346
  /**
343
- * Size in GB.
347
+ * Output only. Size in GB.
344
348
  */
345
349
  sizeGb?: string | null;
346
350
  }
@@ -384,15 +388,15 @@ export declare namespace vmmigration_v1alpha1 {
384
388
  */
385
389
  export interface Schema$AzureSourceVmDetails {
386
390
  /**
387
- * The total size of the disks being migrated in bytes.
391
+ * Output only. The total size of the disks being migrated in bytes.
388
392
  */
389
393
  committedStorageBytes?: string | null;
390
394
  /**
391
- * The disks attached to the source VM.
395
+ * Output only. The disks attached to the source VM.
392
396
  */
393
397
  disks?: Schema$AzureDiskDetails[];
394
398
  /**
395
- * The firmware type of the source VM.
399
+ * Output only. The firmware type of the source VM.
396
400
  */
397
401
  firmware?: string | null;
398
402
  /**
@@ -503,6 +507,11 @@ export declare namespace vmmigration_v1alpha1 {
503
507
  */
504
508
  export interface Schema$CancelCutoverJobRequest {
505
509
  }
510
+ /**
511
+ * Request message for 'CancelDiskMigrationJob' request.
512
+ */
513
+ export interface Schema$CancelDiskMigrationJobRequest {
514
+ }
506
515
  /**
507
516
  * Request message for 'CancelImageImportJob' request.
508
517
  */
@@ -1068,7 +1077,7 @@ export declare namespace vmmigration_v1alpha1 {
1068
1077
  */
1069
1078
  export interface Schema$DiskImageTargetDetails {
1070
1079
  /**
1071
- * Optional. Additional licenses to assign to the image.
1080
+ * 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
1072
1081
  */
1073
1082
  additionalLicenses?: string[] | null;
1074
1083
  /**
@@ -1287,6 +1296,10 @@ export declare namespace vmmigration_v1alpha1 {
1287
1296
  * Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.
1288
1297
  */
1289
1298
  encryption?: Schema$Encryption;
1299
+ /**
1300
+ * Immutable. Target details for importing a machine image, will be used by ImageImportJob.
1301
+ */
1302
+ machineImageTargetDefaults?: Schema$MachineImageTargetDetails;
1290
1303
  /**
1291
1304
  * Output only. The resource path of the ImageImport.
1292
1305
  */
@@ -1324,6 +1337,10 @@ export declare namespace vmmigration_v1alpha1 {
1324
1337
  * Output only. Provides details on the error that led to the image import state in case of an error.
1325
1338
  */
1326
1339
  errors?: Schema$Status[];
1340
+ /**
1341
+ * Output only. Target details used to import a machine image.
1342
+ */
1343
+ machineImageTargetDetails?: Schema$MachineImageTargetDetails;
1327
1344
  /**
1328
1345
  * Output only. The resource path of the ImageImportJob.
1329
1346
  */
@@ -1671,6 +1688,78 @@ export declare namespace vmmigration_v1alpha1 {
1671
1688
  */
1672
1689
  name?: string | null;
1673
1690
  }
1691
+ /**
1692
+ * Parameters overriding decisions based on the source machine image configurations.
1693
+ */
1694
+ export interface Schema$MachineImageParametersOverrides {
1695
+ /**
1696
+ * 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.
1697
+ */
1698
+ machineType?: string | null;
1699
+ }
1700
+ /**
1701
+ * The target details of the machine image resource that will be created by the image import job.
1702
+ */
1703
+ export interface Schema$MachineImageTargetDetails {
1704
+ /**
1705
+ * 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
1706
+ */
1707
+ additionalLicenses?: string[] | null;
1708
+ /**
1709
+ * Optional. An optional description of the machine image.
1710
+ */
1711
+ description?: string | null;
1712
+ /**
1713
+ * Immutable. The encryption to apply to the machine image.
1714
+ */
1715
+ encryption?: Schema$Encryption;
1716
+ /**
1717
+ * Optional. The labels to apply to the instance created by the machine image.
1718
+ */
1719
+ labels?: {
1720
+ [key: string]: string;
1721
+ } | null;
1722
+ /**
1723
+ * Required. The name of the machine image to be created.
1724
+ */
1725
+ machineImageName?: string | null;
1726
+ /**
1727
+ * Optional. Parameters overriding decisions based on the source machine image configurations.
1728
+ */
1729
+ machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
1730
+ /**
1731
+ * 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.
1732
+ */
1733
+ networkInterfaces?: Schema$NetworkInterface[];
1734
+ /**
1735
+ * Optional. Use to set the parameters relevant for the OS adaptation process.
1736
+ */
1737
+ osAdaptationParameters?: Schema$ImageImportOsAdaptationParameters;
1738
+ /**
1739
+ * Optional. The service account to assign to the instance created by the machine image.
1740
+ */
1741
+ serviceAccount?: Schema$ServiceAccount;
1742
+ /**
1743
+ * Optional. Shielded instance configuration.
1744
+ */
1745
+ shieldedInstanceConfig?: Schema$ShieldedInstanceConfig;
1746
+ /**
1747
+ * 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.
1748
+ */
1749
+ singleRegionStorage?: boolean | null;
1750
+ /**
1751
+ * Optional. Use to skip OS adaptation process.
1752
+ */
1753
+ skipOsAdaptation?: Schema$SkipOsAdaptation;
1754
+ /**
1755
+ * Optional. The tags to apply to the instance created by the machine image.
1756
+ */
1757
+ tags?: string[] | null;
1758
+ /**
1759
+ * Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.
1760
+ */
1761
+ targetProject?: string | null;
1762
+ }
1674
1763
  /**
1675
1764
  * MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
1676
1765
  */
@@ -1808,7 +1897,7 @@ export declare namespace vmmigration_v1alpha1 {
1808
1897
  */
1809
1898
  export interface Schema$MigrationWarning {
1810
1899
  /**
1811
- * Suggested action for solving the warning.
1900
+ * Output only. Suggested action for solving the warning.
1812
1901
  */
1813
1902
  actionItem?: Schema$LocalizedMessage;
1814
1903
  /**
@@ -1816,11 +1905,11 @@ export declare namespace vmmigration_v1alpha1 {
1816
1905
  */
1817
1906
  code?: string | null;
1818
1907
  /**
1819
- * URL(s) pointing to additional information on handling the current warning.
1908
+ * Output only. URL(s) pointing to additional information on handling the current warning.
1820
1909
  */
1821
1910
  helpLinks?: Schema$Link[];
1822
1911
  /**
1823
- * The localized warning message.
1912
+ * Output only. The localized warning message.
1824
1913
  */
1825
1914
  warningMessage?: Schema$LocalizedMessage;
1826
1915
  /**
@@ -1828,16 +1917,29 @@ export declare namespace vmmigration_v1alpha1 {
1828
1917
  */
1829
1918
  warningTime?: string | null;
1830
1919
  }
1920
+ /**
1921
+ * Information about the network coniguration of the source.
1922
+ */
1923
+ export interface Schema$NetworkInsights {
1924
+ /**
1925
+ * Output only. The gathered network configuration of the source. Presented in json format.
1926
+ */
1927
+ sourceNetworkConfig?: string | null;
1928
+ /**
1929
+ * Output only. The gathered network configuration of the source. Presented in terraform format.
1930
+ */
1931
+ sourceNetworkTerraform?: string | null;
1932
+ }
1831
1933
  /**
1832
1934
  * NetworkInterface represents a NIC of a VM.
1833
1935
  */
1834
1936
  export interface Schema$NetworkInterface {
1835
1937
  /**
1836
- * The external IP to define in the NIC.
1938
+ * Optional. The external IP to define in the NIC.
1837
1939
  */
1838
1940
  externalIp?: string | null;
1839
1941
  /**
1840
- * The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1942
+ * Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1841
1943
  */
1842
1944
  internalIp?: string | null;
1843
1945
  /**
@@ -1845,7 +1947,11 @@ export declare namespace vmmigration_v1alpha1 {
1845
1947
  */
1846
1948
  network?: string | null;
1847
1949
  /**
1848
- * The subnetwork to connect the NIC to.
1950
+ * Optional. The networking tier used for configuring network access configuration. If left empty, will default to PREMIUM.
1951
+ */
1952
+ networkTier?: string | null;
1953
+ /**
1954
+ * Optional. The subnetwork to connect the NIC to.
1849
1955
  */
1850
1956
  subnetwork?: string | null;
1851
1957
  }
@@ -1994,7 +2100,7 @@ export declare namespace vmmigration_v1alpha1 {
1994
2100
  */
1995
2101
  sourceDiskNumber?: number | null;
1996
2102
  /**
1997
- * 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.
1998
2104
  */
1999
2105
  vmAttachmentDetails?: Schema$VmAttachmentDetails;
2000
2106
  }
@@ -2051,7 +2157,7 @@ export declare namespace vmmigration_v1alpha1 {
2051
2157
  */
2052
2158
  endTime?: string | null;
2053
2159
  /**
2054
- * Provides details on the state of the cycle in case of an error.
2160
+ * Output only. Provides details on the state of the cycle in case of an error.
2055
2161
  */
2056
2162
  error?: Schema$Status;
2057
2163
  /**
@@ -2101,6 +2207,11 @@ export declare namespace vmmigration_v1alpha1 {
2101
2207
  */
2102
2208
  export interface Schema$ResumeMigrationRequest {
2103
2209
  }
2210
+ /**
2211
+ * Request message for 'RunDiskMigrationJobRequest' request.
2212
+ */
2213
+ export interface Schema$RunDiskMigrationJobRequest {
2214
+ }
2104
2215
  /**
2105
2216
  * A policy for scheduling replications.
2106
2217
  */
@@ -2131,11 +2242,46 @@ export declare namespace vmmigration_v1alpha1 {
2131
2242
  */
2132
2243
  values?: string[] | null;
2133
2244
  }
2245
+ /**
2246
+ * Service account to assign to the instance created by the machine image.
2247
+ */
2248
+ export interface Schema$ServiceAccount {
2249
+ /**
2250
+ * Required. The email address of the service account.
2251
+ */
2252
+ email?: string | null;
2253
+ /**
2254
+ * Optional. The list of scopes to be made available for this service account.
2255
+ */
2256
+ scopes?: string[] | null;
2257
+ }
2258
+ /**
2259
+ * Shielded instance configuration.
2260
+ */
2261
+ export interface Schema$ShieldedInstanceConfig {
2262
+ /**
2263
+ * 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.
2264
+ */
2265
+ enableIntegrityMonitoring?: boolean | null;
2266
+ /**
2267
+ * 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.
2268
+ */
2269
+ enableVtpm?: boolean | null;
2270
+ /**
2271
+ * 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.
2272
+ */
2273
+ secureBoot?: string | null;
2274
+ }
2134
2275
  /**
2135
2276
  * ShuttingDownSourceVMStep contains specific step details.
2136
2277
  */
2137
2278
  export interface Schema$ShuttingDownSourceVMStep {
2138
2279
  }
2280
+ /**
2281
+ * Mentions that the machine image import is not using OS adaptation process.
2282
+ */
2283
+ export interface Schema$SkipOsAdaptation {
2284
+ }
2139
2285
  /**
2140
2286
  * Source message describes a specific vm migration Source resource. It contains the source environment information.
2141
2287
  */
@@ -2212,11 +2358,11 @@ export declare namespace vmmigration_v1alpha1 {
2212
2358
  */
2213
2359
  export interface Schema$Tag {
2214
2360
  /**
2215
- * Key of tag.
2361
+ * Required. Key of tag.
2216
2362
  */
2217
2363
  key?: string | null;
2218
2364
  /**
2219
- * Value of tag.
2365
+ * Required. Value of tag.
2220
2366
  */
2221
2367
  value?: string | null;
2222
2368
  }
@@ -2352,7 +2498,7 @@ export declare namespace vmmigration_v1alpha1 {
2352
2498
  */
2353
2499
  export interface Schema$UpgradeStatus {
2354
2500
  /**
2355
- * Provides details on the state of the upgrade operation in case of an error.
2501
+ * Output only. Provides details on the state of the upgrade operation in case of an error.
2356
2502
  */
2357
2503
  error?: Schema$Status;
2358
2504
  /**
@@ -2534,15 +2680,15 @@ export declare namespace vmmigration_v1alpha1 {
2534
2680
  */
2535
2681
  export interface Schema$VmwareDiskDetails {
2536
2682
  /**
2537
- * The ordinal number of the disk.
2683
+ * Output only. The ordinal number of the disk.
2538
2684
  */
2539
2685
  diskNumber?: number | null;
2540
2686
  /**
2541
- * The disk label.
2687
+ * Output only. The disk label.
2542
2688
  */
2543
2689
  label?: string | null;
2544
2690
  /**
2545
- * Size in GB.
2691
+ * Output only. Size in GB.
2546
2692
  */
2547
2693
  sizeGb?: string | null;
2548
2694
  }
@@ -2576,15 +2722,15 @@ export declare namespace vmmigration_v1alpha1 {
2576
2722
  */
2577
2723
  export interface Schema$VmwareSourceVmDetails {
2578
2724
  /**
2579
- * The total size of the disks being migrated in bytes.
2725
+ * Output only. The total size of the disks being migrated in bytes.
2580
2726
  */
2581
2727
  committedStorageBytes?: string | null;
2582
2728
  /**
2583
- * The disks attached to the source VM.
2729
+ * Output only. The disks attached to the source VM.
2584
2730
  */
2585
2731
  disks?: Schema$VmwareDiskDetails[];
2586
2732
  /**
2587
- * The firmware type of the source VM.
2733
+ * Output only. The firmware type of the source VM.
2588
2734
  */
2589
2735
  firmware?: string | null;
2590
2736
  /**
@@ -3224,6 +3370,7 @@ export declare namespace vmmigration_v1alpha1 {
3224
3370
  export class Resource$Projects$Locations$Sources {
3225
3371
  context: APIRequestContext;
3226
3372
  datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
3373
+ diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
3227
3374
  migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
3228
3375
  utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
3229
3376
  constructor(context: APIRequestContext);
@@ -3544,6 +3691,58 @@ export declare namespace vmmigration_v1alpha1 {
3544
3691
  */
3545
3692
  requestBody?: Schema$UpgradeApplianceRequest;
3546
3693
  }
3694
+ export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
3695
+ context: APIRequestContext;
3696
+ constructor(context: APIRequestContext);
3697
+ /**
3698
+ * Cancels the disk migration job.
3699
+ *
3700
+ * @param params - Parameters for request
3701
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3702
+ * @param callback - Optional callback that handles the response.
3703
+ * @returns A promise if used with async/await, or void if used with a callback.
3704
+ */
3705
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
3706
+ cancel(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3707
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3708
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3709
+ cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
3710
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
3711
+ /**
3712
+ * Runs the disk migration job.
3713
+ *
3714
+ * @param params - Parameters for request
3715
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3716
+ * @param callback - Optional callback that handles the response.
3717
+ * @returns A promise if used with async/await, or void if used with a callback.
3718
+ */
3719
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions): GaxiosPromise<Readable>;
3720
+ run(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3721
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3722
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3723
+ run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, callback: BodyResponseCallback<Schema$Operation>): void;
3724
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
3725
+ }
3726
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel extends StandardParameters {
3727
+ /**
3728
+ * Required. The name of the DiskMigrationJob.
3729
+ */
3730
+ name?: string;
3731
+ /**
3732
+ * Request body metadata
3733
+ */
3734
+ requestBody?: Schema$CancelDiskMigrationJobRequest;
3735
+ }
3736
+ export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run extends StandardParameters {
3737
+ /**
3738
+ * Required. The name of the DiskMigrationJob.
3739
+ */
3740
+ name?: string;
3741
+ /**
3742
+ * Request body metadata
3743
+ */
3744
+ requestBody?: Schema$RunDiskMigrationJobRequest;
3745
+ }
3547
3746
  export class Resource$Projects$Locations$Sources$Migratingvms {
3548
3747
  context: APIRequestContext;
3549
3748
  cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;
package/build/v1alpha1.js CHANGED
@@ -736,6 +736,8 @@ var vmmigration_v1alpha1;
736
736
  this.context = context;
737
737
  this.datacenterConnectors =
738
738
  new Resource$Projects$Locations$Sources$Datacenterconnectors(this.context);
739
+ this.diskMigrationJobs =
740
+ new Resource$Projects$Locations$Sources$Diskmigrationjobs(this.context);
739
741
  this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(this.context);
740
742
  this.utilizationReports =
741
743
  new Resource$Projects$Locations$Sources$Utilizationreports(this.context);
@@ -1106,6 +1108,78 @@ var vmmigration_v1alpha1;
1106
1108
  }
1107
1109
  }
1108
1110
  vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Datacenterconnectors = Resource$Projects$Locations$Sources$Datacenterconnectors;
1111
+ class Resource$Projects$Locations$Sources$Diskmigrationjobs {
1112
+ constructor(context) {
1113
+ this.context = context;
1114
+ }
1115
+ cancel(paramsOrCallback, optionsOrCallback, callback) {
1116
+ let params = (paramsOrCallback ||
1117
+ {});
1118
+ let options = (optionsOrCallback || {});
1119
+ if (typeof paramsOrCallback === 'function') {
1120
+ callback = paramsOrCallback;
1121
+ params =
1122
+ {};
1123
+ options = {};
1124
+ }
1125
+ if (typeof optionsOrCallback === 'function') {
1126
+ callback = optionsOrCallback;
1127
+ options = {};
1128
+ }
1129
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
1130
+ const parameters = {
1131
+ options: Object.assign({
1132
+ url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
1133
+ method: 'POST',
1134
+ apiVersion: '',
1135
+ }, options),
1136
+ params,
1137
+ requiredParams: ['name'],
1138
+ pathParams: ['name'],
1139
+ context: this.context,
1140
+ };
1141
+ if (callback) {
1142
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1143
+ }
1144
+ else {
1145
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1146
+ }
1147
+ }
1148
+ run(paramsOrCallback, optionsOrCallback, callback) {
1149
+ let params = (paramsOrCallback ||
1150
+ {});
1151
+ let options = (optionsOrCallback || {});
1152
+ if (typeof paramsOrCallback === 'function') {
1153
+ callback = paramsOrCallback;
1154
+ params =
1155
+ {};
1156
+ options = {};
1157
+ }
1158
+ if (typeof optionsOrCallback === 'function') {
1159
+ callback = optionsOrCallback;
1160
+ options = {};
1161
+ }
1162
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
1163
+ const parameters = {
1164
+ options: Object.assign({
1165
+ url: (rootUrl + '/v1alpha1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'),
1166
+ method: 'POST',
1167
+ apiVersion: '',
1168
+ }, options),
1169
+ params,
1170
+ requiredParams: ['name'],
1171
+ pathParams: ['name'],
1172
+ context: this.context,
1173
+ };
1174
+ if (callback) {
1175
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1176
+ }
1177
+ else {
1178
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1179
+ }
1180
+ }
1181
+ }
1182
+ vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Diskmigrationjobs = Resource$Projects$Locations$Sources$Diskmigrationjobs;
1109
1183
  class Resource$Projects$Locations$Sources$Migratingvms {
1110
1184
  constructor(context) {
1111
1185
  this.context = context;