@googleapis/vmmigration 9.0.0 → 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/CHANGELOG.md +20 -0
- package/build/v1.d.ts +229 -30
- package/build/v1.js +74 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha1.d.ts +229 -30
- package/build/v1alpha1.js +74 -0
- package/build/v1alpha1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +378 -30
- package/v1alpha1.ts +384 -30
package/v1.ts
CHANGED
|
@@ -206,15 +206,15 @@ export namespace vmmigration_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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
|
*/
|
|
@@ -1077,7 +1085,7 @@ export namespace vmmigration_v1 {
|
|
|
1077
1085
|
*/
|
|
1078
1086
|
export interface Schema$DiskImageTargetDetails {
|
|
1079
1087
|
/**
|
|
1080
|
-
* Optional. Additional licenses to assign to the image.
|
|
1088
|
+
* 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
|
|
1081
1089
|
*/
|
|
1082
1090
|
additionalLicenses?: string[] | null;
|
|
1083
1091
|
/**
|
|
@@ -1286,6 +1294,10 @@ export namespace vmmigration_v1 {
|
|
|
1286
1294
|
* Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.
|
|
1287
1295
|
*/
|
|
1288
1296
|
encryption?: Schema$Encryption;
|
|
1297
|
+
/**
|
|
1298
|
+
* Immutable. Target details for importing a machine image, will be used by ImageImportJob.
|
|
1299
|
+
*/
|
|
1300
|
+
machineImageTargetDefaults?: Schema$MachineImageTargetDetails;
|
|
1289
1301
|
/**
|
|
1290
1302
|
* Output only. The resource path of the ImageImport.
|
|
1291
1303
|
*/
|
|
@@ -1323,6 +1335,10 @@ export namespace vmmigration_v1 {
|
|
|
1323
1335
|
* Output only. Provides details on the error that led to the image import state in case of an error.
|
|
1324
1336
|
*/
|
|
1325
1337
|
errors?: Schema$Status[];
|
|
1338
|
+
/**
|
|
1339
|
+
* Output only. Target details used to import a machine image.
|
|
1340
|
+
*/
|
|
1341
|
+
machineImageTargetDetails?: Schema$MachineImageTargetDetails;
|
|
1326
1342
|
/**
|
|
1327
1343
|
* Output only. The resource path of the ImageImportJob.
|
|
1328
1344
|
*/
|
|
@@ -1662,6 +1678,76 @@ export namespace vmmigration_v1 {
|
|
|
1662
1678
|
*/
|
|
1663
1679
|
name?: string | null;
|
|
1664
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Parameters overriding decisions based on the source machine image configurations.
|
|
1683
|
+
*/
|
|
1684
|
+
export interface Schema$MachineImageParametersOverrides {
|
|
1685
|
+
/**
|
|
1686
|
+
* 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.
|
|
1687
|
+
*/
|
|
1688
|
+
machineType?: string | null;
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* The target details of the machine image resource that will be created by the image import job.
|
|
1692
|
+
*/
|
|
1693
|
+
export interface Schema$MachineImageTargetDetails {
|
|
1694
|
+
/**
|
|
1695
|
+
* 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
|
|
1696
|
+
*/
|
|
1697
|
+
additionalLicenses?: string[] | null;
|
|
1698
|
+
/**
|
|
1699
|
+
* Optional. An optional description of the machine image.
|
|
1700
|
+
*/
|
|
1701
|
+
description?: string | null;
|
|
1702
|
+
/**
|
|
1703
|
+
* Immutable. The encryption to apply to the machine image.
|
|
1704
|
+
*/
|
|
1705
|
+
encryption?: Schema$Encryption;
|
|
1706
|
+
/**
|
|
1707
|
+
* Optional. The labels to apply to the instance created by the machine image.
|
|
1708
|
+
*/
|
|
1709
|
+
labels?: {[key: string]: string} | null;
|
|
1710
|
+
/**
|
|
1711
|
+
* Required. The name of the machine image to be created.
|
|
1712
|
+
*/
|
|
1713
|
+
machineImageName?: string | null;
|
|
1714
|
+
/**
|
|
1715
|
+
* Optional. Parameters overriding decisions based on the source machine image configurations.
|
|
1716
|
+
*/
|
|
1717
|
+
machineImageParametersOverrides?: Schema$MachineImageParametersOverrides;
|
|
1718
|
+
/**
|
|
1719
|
+
* 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.
|
|
1720
|
+
*/
|
|
1721
|
+
networkInterfaces?: Schema$NetworkInterface[];
|
|
1722
|
+
/**
|
|
1723
|
+
* Optional. Use to set the parameters relevant for the OS adaptation process.
|
|
1724
|
+
*/
|
|
1725
|
+
osAdaptationParameters?: Schema$ImageImportOsAdaptationParameters;
|
|
1726
|
+
/**
|
|
1727
|
+
* Optional. The service account to assign to the instance created by the machine image.
|
|
1728
|
+
*/
|
|
1729
|
+
serviceAccount?: Schema$ServiceAccount;
|
|
1730
|
+
/**
|
|
1731
|
+
* Optional. Shielded instance configuration.
|
|
1732
|
+
*/
|
|
1733
|
+
shieldedInstanceConfig?: Schema$ShieldedInstanceConfig;
|
|
1734
|
+
/**
|
|
1735
|
+
* 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.
|
|
1736
|
+
*/
|
|
1737
|
+
singleRegionStorage?: boolean | null;
|
|
1738
|
+
/**
|
|
1739
|
+
* Optional. Use to skip OS adaptation process.
|
|
1740
|
+
*/
|
|
1741
|
+
skipOsAdaptation?: Schema$SkipOsAdaptation;
|
|
1742
|
+
/**
|
|
1743
|
+
* Optional. The tags to apply to the instance created by the machine image.
|
|
1744
|
+
*/
|
|
1745
|
+
tags?: string[] | null;
|
|
1746
|
+
/**
|
|
1747
|
+
* Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.
|
|
1748
|
+
*/
|
|
1749
|
+
targetProject?: string | null;
|
|
1750
|
+
}
|
|
1665
1751
|
/**
|
|
1666
1752
|
* MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
|
|
1667
1753
|
*/
|
|
@@ -1789,7 +1875,7 @@ export namespace vmmigration_v1 {
|
|
|
1789
1875
|
*/
|
|
1790
1876
|
export interface Schema$MigrationWarning {
|
|
1791
1877
|
/**
|
|
1792
|
-
* Suggested action for solving the warning.
|
|
1878
|
+
* Output only. Suggested action for solving the warning.
|
|
1793
1879
|
*/
|
|
1794
1880
|
actionItem?: Schema$LocalizedMessage;
|
|
1795
1881
|
/**
|
|
@@ -1797,11 +1883,11 @@ export namespace vmmigration_v1 {
|
|
|
1797
1883
|
*/
|
|
1798
1884
|
code?: string | null;
|
|
1799
1885
|
/**
|
|
1800
|
-
* URL(s) pointing to additional information on handling the current warning.
|
|
1886
|
+
* Output only. URL(s) pointing to additional information on handling the current warning.
|
|
1801
1887
|
*/
|
|
1802
1888
|
helpLinks?: Schema$Link[];
|
|
1803
1889
|
/**
|
|
1804
|
-
* The localized warning message.
|
|
1890
|
+
* Output only. The localized warning message.
|
|
1805
1891
|
*/
|
|
1806
1892
|
warningMessage?: Schema$LocalizedMessage;
|
|
1807
1893
|
/**
|
|
@@ -1809,16 +1895,29 @@ export namespace vmmigration_v1 {
|
|
|
1809
1895
|
*/
|
|
1810
1896
|
warningTime?: string | null;
|
|
1811
1897
|
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Information about the network coniguration of the source.
|
|
1900
|
+
*/
|
|
1901
|
+
export interface Schema$NetworkInsights {
|
|
1902
|
+
/**
|
|
1903
|
+
* Output only. The gathered network configuration of the source. Presented in json format.
|
|
1904
|
+
*/
|
|
1905
|
+
sourceNetworkConfig?: string | null;
|
|
1906
|
+
/**
|
|
1907
|
+
* Output only. The gathered network configuration of the source. Presented in terraform format.
|
|
1908
|
+
*/
|
|
1909
|
+
sourceNetworkTerraform?: string | null;
|
|
1910
|
+
}
|
|
1812
1911
|
/**
|
|
1813
1912
|
* NetworkInterface represents a NIC of a VM.
|
|
1814
1913
|
*/
|
|
1815
1914
|
export interface Schema$NetworkInterface {
|
|
1816
1915
|
/**
|
|
1817
|
-
* The external IP to define in the NIC.
|
|
1916
|
+
* Optional. The external IP to define in the NIC.
|
|
1818
1917
|
*/
|
|
1819
1918
|
externalIp?: string | null;
|
|
1820
1919
|
/**
|
|
1821
|
-
* The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
|
|
1920
|
+
* Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
|
|
1822
1921
|
*/
|
|
1823
1922
|
internalIp?: string | null;
|
|
1824
1923
|
/**
|
|
@@ -1826,7 +1925,11 @@ export namespace vmmigration_v1 {
|
|
|
1826
1925
|
*/
|
|
1827
1926
|
network?: string | null;
|
|
1828
1927
|
/**
|
|
1829
|
-
* The
|
|
1928
|
+
* Optional. The networking tier used for configuring network access configuration. If left empty, will default to PREMIUM.
|
|
1929
|
+
*/
|
|
1930
|
+
networkTier?: string | null;
|
|
1931
|
+
/**
|
|
1932
|
+
* Optional. The subnetwork to connect the NIC to.
|
|
1830
1933
|
*/
|
|
1831
1934
|
subnetwork?: string | null;
|
|
1832
1935
|
}
|
|
@@ -1968,7 +2071,7 @@ export namespace vmmigration_v1 {
|
|
|
1968
2071
|
*/
|
|
1969
2072
|
sourceDiskNumber?: number | null;
|
|
1970
2073
|
/**
|
|
1971
|
-
* Optional. Details for attachment of the disk to a VM. Used when the disk is set to be
|
|
2074
|
+
* Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.
|
|
1972
2075
|
*/
|
|
1973
2076
|
vmAttachmentDetails?: Schema$VmAttachmentDetails;
|
|
1974
2077
|
}
|
|
@@ -2023,7 +2126,7 @@ export namespace vmmigration_v1 {
|
|
|
2023
2126
|
*/
|
|
2024
2127
|
endTime?: string | null;
|
|
2025
2128
|
/**
|
|
2026
|
-
* Provides details on the state of the cycle in case of an error.
|
|
2129
|
+
* Output only. Provides details on the state of the cycle in case of an error.
|
|
2027
2130
|
*/
|
|
2028
2131
|
error?: Schema$Status;
|
|
2029
2132
|
/**
|
|
@@ -2068,6 +2171,10 @@ export namespace vmmigration_v1 {
|
|
|
2068
2171
|
* Request message for 'ResumeMigration' request.
|
|
2069
2172
|
*/
|
|
2070
2173
|
export interface Schema$ResumeMigrationRequest {}
|
|
2174
|
+
/**
|
|
2175
|
+
* Request message for 'RunDiskMigrationJobRequest' request.
|
|
2176
|
+
*/
|
|
2177
|
+
export interface Schema$RunDiskMigrationJobRequest {}
|
|
2071
2178
|
/**
|
|
2072
2179
|
* A policy for scheduling replications.
|
|
2073
2180
|
*/
|
|
@@ -2098,10 +2205,44 @@ export namespace vmmigration_v1 {
|
|
|
2098
2205
|
*/
|
|
2099
2206
|
values?: string[] | null;
|
|
2100
2207
|
}
|
|
2208
|
+
/**
|
|
2209
|
+
* Service account to assign to the instance created by the machine image.
|
|
2210
|
+
*/
|
|
2211
|
+
export interface Schema$ServiceAccount {
|
|
2212
|
+
/**
|
|
2213
|
+
* Required. The email address of the service account.
|
|
2214
|
+
*/
|
|
2215
|
+
email?: string | null;
|
|
2216
|
+
/**
|
|
2217
|
+
* Optional. The list of scopes to be made available for this service account.
|
|
2218
|
+
*/
|
|
2219
|
+
scopes?: string[] | null;
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* Shielded instance configuration.
|
|
2223
|
+
*/
|
|
2224
|
+
export interface Schema$ShieldedInstanceConfig {
|
|
2225
|
+
/**
|
|
2226
|
+
* 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.
|
|
2227
|
+
*/
|
|
2228
|
+
enableIntegrityMonitoring?: boolean | null;
|
|
2229
|
+
/**
|
|
2230
|
+
* 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.
|
|
2231
|
+
*/
|
|
2232
|
+
enableVtpm?: boolean | null;
|
|
2233
|
+
/**
|
|
2234
|
+
* 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.
|
|
2235
|
+
*/
|
|
2236
|
+
secureBoot?: string | null;
|
|
2237
|
+
}
|
|
2101
2238
|
/**
|
|
2102
2239
|
* ShuttingDownSourceVMStep contains specific step details.
|
|
2103
2240
|
*/
|
|
2104
2241
|
export interface Schema$ShuttingDownSourceVMStep {}
|
|
2242
|
+
/**
|
|
2243
|
+
* Mentions that the machine image import is not using OS adaptation process.
|
|
2244
|
+
*/
|
|
2245
|
+
export interface Schema$SkipOsAdaptation {}
|
|
2105
2246
|
/**
|
|
2106
2247
|
* Source message describes a specific vm migration Source resource. It contains the source environment information.
|
|
2107
2248
|
*/
|
|
@@ -2169,11 +2310,11 @@ export namespace vmmigration_v1 {
|
|
|
2169
2310
|
*/
|
|
2170
2311
|
export interface Schema$Tag {
|
|
2171
2312
|
/**
|
|
2172
|
-
* Key of tag.
|
|
2313
|
+
* Required. Key of tag.
|
|
2173
2314
|
*/
|
|
2174
2315
|
key?: string | null;
|
|
2175
2316
|
/**
|
|
2176
|
-
* Value of tag.
|
|
2317
|
+
* Required. Value of tag.
|
|
2177
2318
|
*/
|
|
2178
2319
|
value?: string | null;
|
|
2179
2320
|
}
|
|
@@ -2216,7 +2357,7 @@ export namespace vmmigration_v1 {
|
|
|
2216
2357
|
*/
|
|
2217
2358
|
export interface Schema$UpgradeStatus {
|
|
2218
2359
|
/**
|
|
2219
|
-
* Provides details on the state of the upgrade operation in case of an error.
|
|
2360
|
+
* Output only. Provides details on the state of the upgrade operation in case of an error.
|
|
2220
2361
|
*/
|
|
2221
2362
|
error?: Schema$Status;
|
|
2222
2363
|
/**
|
|
@@ -2362,15 +2503,15 @@ export namespace vmmigration_v1 {
|
|
|
2362
2503
|
*/
|
|
2363
2504
|
export interface Schema$VmwareDiskDetails {
|
|
2364
2505
|
/**
|
|
2365
|
-
* The ordinal number of the disk.
|
|
2506
|
+
* Output only. The ordinal number of the disk.
|
|
2366
2507
|
*/
|
|
2367
2508
|
diskNumber?: number | null;
|
|
2368
2509
|
/**
|
|
2369
|
-
* The disk label.
|
|
2510
|
+
* Output only. The disk label.
|
|
2370
2511
|
*/
|
|
2371
2512
|
label?: string | null;
|
|
2372
2513
|
/**
|
|
2373
|
-
* Size in GB.
|
|
2514
|
+
* Output only. Size in GB.
|
|
2374
2515
|
*/
|
|
2375
2516
|
sizeGb?: string | null;
|
|
2376
2517
|
}
|
|
@@ -2404,15 +2545,15 @@ export namespace vmmigration_v1 {
|
|
|
2404
2545
|
*/
|
|
2405
2546
|
export interface Schema$VmwareSourceVmDetails {
|
|
2406
2547
|
/**
|
|
2407
|
-
* The total size of the disks being migrated in bytes.
|
|
2548
|
+
* Output only. The total size of the disks being migrated in bytes.
|
|
2408
2549
|
*/
|
|
2409
2550
|
committedStorageBytes?: string | null;
|
|
2410
2551
|
/**
|
|
2411
|
-
* The disks attached to the source VM.
|
|
2552
|
+
* Output only. The disks attached to the source VM.
|
|
2412
2553
|
*/
|
|
2413
2554
|
disks?: Schema$VmwareDiskDetails[];
|
|
2414
2555
|
/**
|
|
2415
|
-
* The firmware type of the source VM.
|
|
2556
|
+
* Output only. The firmware type of the source VM.
|
|
2416
2557
|
*/
|
|
2417
2558
|
firmware?: string | null;
|
|
2418
2559
|
/**
|
|
@@ -4594,6 +4735,7 @@ export namespace vmmigration_v1 {
|
|
|
4594
4735
|
export class Resource$Projects$Locations$Sources {
|
|
4595
4736
|
context: APIRequestContext;
|
|
4596
4737
|
datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
|
|
4738
|
+
diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
|
|
4597
4739
|
migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
|
|
4598
4740
|
utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
|
|
4599
4741
|
constructor(context: APIRequestContext) {
|
|
@@ -4602,6 +4744,8 @@ export namespace vmmigration_v1 {
|
|
|
4602
4744
|
new Resource$Projects$Locations$Sources$Datacenterconnectors(
|
|
4603
4745
|
this.context
|
|
4604
4746
|
);
|
|
4747
|
+
this.diskMigrationJobs =
|
|
4748
|
+
new Resource$Projects$Locations$Sources$Diskmigrationjobs(this.context);
|
|
4605
4749
|
this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(
|
|
4606
4750
|
this.context
|
|
4607
4751
|
);
|
|
@@ -5774,6 +5918,210 @@ export namespace vmmigration_v1 {
|
|
|
5774
5918
|
requestBody?: Schema$UpgradeApplianceRequest;
|
|
5775
5919
|
}
|
|
5776
5920
|
|
|
5921
|
+
export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
|
|
5922
|
+
context: APIRequestContext;
|
|
5923
|
+
constructor(context: APIRequestContext) {
|
|
5924
|
+
this.context = context;
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5927
|
+
/**
|
|
5928
|
+
* Cancels the disk migration job.
|
|
5929
|
+
*
|
|
5930
|
+
* @param params - Parameters for request
|
|
5931
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5932
|
+
* @param callback - Optional callback that handles the response.
|
|
5933
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5934
|
+
*/
|
|
5935
|
+
cancel(
|
|
5936
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
|
|
5937
|
+
options: StreamMethodOptions
|
|
5938
|
+
): GaxiosPromise<Readable>;
|
|
5939
|
+
cancel(
|
|
5940
|
+
params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
|
|
5941
|
+
options?: MethodOptions
|
|
5942
|
+
): GaxiosPromise<Schema$Operation>;
|
|
5943
|
+
cancel(
|
|
5944
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
|
|
5945
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5946
|
+
callback: BodyResponseCallback<Readable>
|
|
5947
|
+
): void;
|
|
5948
|
+
cancel(
|
|
5949
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
|
|
5950
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5951
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5952
|
+
): void;
|
|
5953
|
+
cancel(
|
|
5954
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel,
|
|
5955
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5956
|
+
): void;
|
|
5957
|
+
cancel(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5958
|
+
cancel(
|
|
5959
|
+
paramsOrCallback?:
|
|
5960
|
+
| Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
|
|
5961
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5962
|
+
| BodyResponseCallback<Readable>,
|
|
5963
|
+
optionsOrCallback?:
|
|
5964
|
+
| MethodOptions
|
|
5965
|
+
| StreamMethodOptions
|
|
5966
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5967
|
+
| BodyResponseCallback<Readable>,
|
|
5968
|
+
callback?:
|
|
5969
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5970
|
+
| BodyResponseCallback<Readable>
|
|
5971
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
5972
|
+
let params = (paramsOrCallback ||
|
|
5973
|
+
{}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
|
|
5974
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5975
|
+
|
|
5976
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5977
|
+
callback = paramsOrCallback;
|
|
5978
|
+
params =
|
|
5979
|
+
{} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel;
|
|
5980
|
+
options = {};
|
|
5981
|
+
}
|
|
5982
|
+
|
|
5983
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5984
|
+
callback = optionsOrCallback;
|
|
5985
|
+
options = {};
|
|
5986
|
+
}
|
|
5987
|
+
|
|
5988
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
5989
|
+
const parameters = {
|
|
5990
|
+
options: Object.assign(
|
|
5991
|
+
{
|
|
5992
|
+
url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
|
|
5993
|
+
method: 'POST',
|
|
5994
|
+
apiVersion: '',
|
|
5995
|
+
},
|
|
5996
|
+
options
|
|
5997
|
+
),
|
|
5998
|
+
params,
|
|
5999
|
+
requiredParams: ['name'],
|
|
6000
|
+
pathParams: ['name'],
|
|
6001
|
+
context: this.context,
|
|
6002
|
+
};
|
|
6003
|
+
if (callback) {
|
|
6004
|
+
createAPIRequest<Schema$Operation>(
|
|
6005
|
+
parameters,
|
|
6006
|
+
callback as BodyResponseCallback<unknown>
|
|
6007
|
+
);
|
|
6008
|
+
} else {
|
|
6009
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
* Runs the disk migration job.
|
|
6015
|
+
*
|
|
6016
|
+
* @param params - Parameters for request
|
|
6017
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6018
|
+
* @param callback - Optional callback that handles the response.
|
|
6019
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6020
|
+
*/
|
|
6021
|
+
run(
|
|
6022
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
|
|
6023
|
+
options: StreamMethodOptions
|
|
6024
|
+
): GaxiosPromise<Readable>;
|
|
6025
|
+
run(
|
|
6026
|
+
params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
|
|
6027
|
+
options?: MethodOptions
|
|
6028
|
+
): GaxiosPromise<Schema$Operation>;
|
|
6029
|
+
run(
|
|
6030
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
|
|
6031
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6032
|
+
callback: BodyResponseCallback<Readable>
|
|
6033
|
+
): void;
|
|
6034
|
+
run(
|
|
6035
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
|
|
6036
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6037
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6038
|
+
): void;
|
|
6039
|
+
run(
|
|
6040
|
+
params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run,
|
|
6041
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6042
|
+
): void;
|
|
6043
|
+
run(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6044
|
+
run(
|
|
6045
|
+
paramsOrCallback?:
|
|
6046
|
+
| Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
|
|
6047
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6048
|
+
| BodyResponseCallback<Readable>,
|
|
6049
|
+
optionsOrCallback?:
|
|
6050
|
+
| MethodOptions
|
|
6051
|
+
| StreamMethodOptions
|
|
6052
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6053
|
+
| BodyResponseCallback<Readable>,
|
|
6054
|
+
callback?:
|
|
6055
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6056
|
+
| BodyResponseCallback<Readable>
|
|
6057
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
6058
|
+
let params = (paramsOrCallback ||
|
|
6059
|
+
{}) as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
|
|
6060
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6061
|
+
|
|
6062
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6063
|
+
callback = paramsOrCallback;
|
|
6064
|
+
params =
|
|
6065
|
+
{} as Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run;
|
|
6066
|
+
options = {};
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6070
|
+
callback = optionsOrCallback;
|
|
6071
|
+
options = {};
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6074
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
6075
|
+
const parameters = {
|
|
6076
|
+
options: Object.assign(
|
|
6077
|
+
{
|
|
6078
|
+
url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'),
|
|
6079
|
+
method: 'POST',
|
|
6080
|
+
apiVersion: '',
|
|
6081
|
+
},
|
|
6082
|
+
options
|
|
6083
|
+
),
|
|
6084
|
+
params,
|
|
6085
|
+
requiredParams: ['name'],
|
|
6086
|
+
pathParams: ['name'],
|
|
6087
|
+
context: this.context,
|
|
6088
|
+
};
|
|
6089
|
+
if (callback) {
|
|
6090
|
+
createAPIRequest<Schema$Operation>(
|
|
6091
|
+
parameters,
|
|
6092
|
+
callback as BodyResponseCallback<unknown>
|
|
6093
|
+
);
|
|
6094
|
+
} else {
|
|
6095
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6098
|
+
}
|
|
6099
|
+
|
|
6100
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel
|
|
6101
|
+
extends StandardParameters {
|
|
6102
|
+
/**
|
|
6103
|
+
* Required. The name of the DiskMigrationJob.
|
|
6104
|
+
*/
|
|
6105
|
+
name?: string;
|
|
6106
|
+
|
|
6107
|
+
/**
|
|
6108
|
+
* Request body metadata
|
|
6109
|
+
*/
|
|
6110
|
+
requestBody?: Schema$CancelDiskMigrationJobRequest;
|
|
6111
|
+
}
|
|
6112
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run
|
|
6113
|
+
extends StandardParameters {
|
|
6114
|
+
/**
|
|
6115
|
+
* Required. The name of the DiskMigrationJob.
|
|
6116
|
+
*/
|
|
6117
|
+
name?: string;
|
|
6118
|
+
|
|
6119
|
+
/**
|
|
6120
|
+
* Request body metadata
|
|
6121
|
+
*/
|
|
6122
|
+
requestBody?: Schema$RunDiskMigrationJobRequest;
|
|
6123
|
+
}
|
|
6124
|
+
|
|
5777
6125
|
export class Resource$Projects$Locations$Sources$Migratingvms {
|
|
5778
6126
|
context: APIRequestContext;
|
|
5779
6127
|
cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;
|