@googleapis/vmmigration 15.0.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/CHANGELOG.md +11 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +927 -3
- package/build/v1.js +274 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha1.d.ts +927 -3
- package/build/v1alpha1.js +274 -0
- package/build/v1alpha1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1558 -4
- package/v1alpha1.ts +1564 -5
package/build/v1alpha1.d.ts
CHANGED
|
@@ -87,6 +87,19 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
87
87
|
*/
|
|
88
88
|
sessionToken?: string | null;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* AdaptationModifier a modifier to be used for configuration of the OS adaptation process.
|
|
92
|
+
*/
|
|
93
|
+
export interface Schema$AdaptationModifier {
|
|
94
|
+
/**
|
|
95
|
+
* Optional. The modifier name.
|
|
96
|
+
*/
|
|
97
|
+
modifier?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.
|
|
100
|
+
*/
|
|
101
|
+
value?: string | null;
|
|
102
|
+
}
|
|
90
103
|
/**
|
|
91
104
|
* AdaptingOSStep contains specific step details.
|
|
92
105
|
*/
|
|
@@ -217,6 +230,29 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
217
230
|
*/
|
|
218
231
|
state?: string | null;
|
|
219
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Represents the source AWS Disk details.
|
|
235
|
+
*/
|
|
236
|
+
export interface Schema$AwsSourceDiskDetails {
|
|
237
|
+
/**
|
|
238
|
+
* Optional. Output only. Disk type.
|
|
239
|
+
*/
|
|
240
|
+
diskType?: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* Output only. Size in GiB.
|
|
243
|
+
*/
|
|
244
|
+
sizeGib?: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* Optional. Output only. A map of AWS volume tags.
|
|
247
|
+
*/
|
|
248
|
+
tags?: {
|
|
249
|
+
[key: string]: string;
|
|
250
|
+
} | null;
|
|
251
|
+
/**
|
|
252
|
+
* Required. AWS volume ID.
|
|
253
|
+
*/
|
|
254
|
+
volumeId?: string | null;
|
|
255
|
+
}
|
|
220
256
|
/**
|
|
221
257
|
* Represent the source AWS VM details.
|
|
222
258
|
*/
|
|
@@ -518,6 +554,11 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
518
554
|
*/
|
|
519
555
|
export interface Schema$CancelCutoverJobRequest {
|
|
520
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
* Request message for 'CancelDiskMigrationJob' request.
|
|
559
|
+
*/
|
|
560
|
+
export interface Schema$CancelDiskMigrationJobRequest {
|
|
561
|
+
}
|
|
521
562
|
/**
|
|
522
563
|
* Request message for 'CancelImageImportJob' request.
|
|
523
564
|
*/
|
|
@@ -619,6 +660,27 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
619
660
|
*/
|
|
620
661
|
startTime?: string | null;
|
|
621
662
|
}
|
|
663
|
+
/**
|
|
664
|
+
* Compute Engine disk target details.
|
|
665
|
+
*/
|
|
666
|
+
export interface Schema$ComputeEngineDisk {
|
|
667
|
+
/**
|
|
668
|
+
* 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.
|
|
669
|
+
*/
|
|
670
|
+
diskId?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
* Required. The disk type to use.
|
|
673
|
+
*/
|
|
674
|
+
diskType?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
* 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.
|
|
677
|
+
*/
|
|
678
|
+
replicaZones?: string[] | null;
|
|
679
|
+
/**
|
|
680
|
+
* Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project\}/locations/{zone\}
|
|
681
|
+
*/
|
|
682
|
+
zone?: string | null;
|
|
683
|
+
}
|
|
622
684
|
/**
|
|
623
685
|
* ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
|
|
624
686
|
*/
|
|
@@ -665,6 +727,10 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
665
727
|
* ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
|
|
666
728
|
*/
|
|
667
729
|
export interface Schema$ComputeEngineTargetDefaults {
|
|
730
|
+
/**
|
|
731
|
+
* Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.
|
|
732
|
+
*/
|
|
733
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
668
734
|
/**
|
|
669
735
|
* Additional licenses to assign to the VM.
|
|
670
736
|
*/
|
|
@@ -766,6 +832,10 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
766
832
|
* ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
|
|
767
833
|
*/
|
|
768
834
|
export interface Schema$ComputeEngineTargetDetails {
|
|
835
|
+
/**
|
|
836
|
+
* Optional. Modifiers to be used as configuration of the OS adaptation process.
|
|
837
|
+
*/
|
|
838
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
769
839
|
/**
|
|
770
840
|
* Additional licenses to assign to the VM.
|
|
771
841
|
*/
|
|
@@ -885,11 +955,21 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
885
955
|
*/
|
|
886
956
|
restartType?: string | null;
|
|
887
957
|
}
|
|
958
|
+
/**
|
|
959
|
+
* CopyingSourceDiskSnapshotStep contains specific step details.
|
|
960
|
+
*/
|
|
961
|
+
export interface Schema$CopyingSourceDiskSnapshotStep {
|
|
962
|
+
}
|
|
888
963
|
/**
|
|
889
964
|
* CreatingImageStep contains specific step details.
|
|
890
965
|
*/
|
|
891
966
|
export interface Schema$CreatingImageStep {
|
|
892
967
|
}
|
|
968
|
+
/**
|
|
969
|
+
* CreatingSourceDiskSnapshotStep contains specific step details.
|
|
970
|
+
*/
|
|
971
|
+
export interface Schema$CreatingSourceDiskSnapshotStep {
|
|
972
|
+
}
|
|
893
973
|
/**
|
|
894
974
|
* CutoverForecast holds information about future CutoverJobs of a MigratingVm.
|
|
895
975
|
*/
|
|
@@ -1157,6 +1237,91 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
1157
1237
|
*/
|
|
1158
1238
|
targetProject?: string | null;
|
|
1159
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
|
|
1242
|
+
*/
|
|
1243
|
+
export interface Schema$DiskMigrationJob {
|
|
1244
|
+
/**
|
|
1245
|
+
* Details of the unattached AWS source disk.
|
|
1246
|
+
*/
|
|
1247
|
+
awsSourceDiskDetails?: Schema$AwsSourceDiskDetails;
|
|
1248
|
+
/**
|
|
1249
|
+
* Output only. The time the DiskMigrationJob resource was created.
|
|
1250
|
+
*/
|
|
1251
|
+
createTime?: string | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* Output only. Provides details on the errors that led to the disk migration job's state in case of an error.
|
|
1254
|
+
*/
|
|
1255
|
+
errors?: Schema$Status[];
|
|
1256
|
+
/**
|
|
1257
|
+
* Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
1258
|
+
*/
|
|
1259
|
+
name?: string | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Output only. State of the DiskMigrationJob.
|
|
1262
|
+
*/
|
|
1263
|
+
state?: string | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* Output only. The disk migration steps list representing its progress.
|
|
1266
|
+
*/
|
|
1267
|
+
steps?: Schema$DiskMigrationStep[];
|
|
1268
|
+
/**
|
|
1269
|
+
* Required. Details of the target Disk in Compute Engine.
|
|
1270
|
+
*/
|
|
1271
|
+
targetDetails?: Schema$DiskMigrationJobTargetDetails;
|
|
1272
|
+
/**
|
|
1273
|
+
* Output only. The last time the DiskMigrationJob resource was updated.
|
|
1274
|
+
*/
|
|
1275
|
+
updateTime?: string | null;
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Details of the target disk in Compute Engine.
|
|
1279
|
+
*/
|
|
1280
|
+
export interface Schema$DiskMigrationJobTargetDetails {
|
|
1281
|
+
/**
|
|
1282
|
+
* 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.
|
|
1283
|
+
*/
|
|
1284
|
+
encryption?: Schema$Encryption;
|
|
1285
|
+
/**
|
|
1286
|
+
* Optional. A map of labels to associate with the disk.
|
|
1287
|
+
*/
|
|
1288
|
+
labels?: {
|
|
1289
|
+
[key: string]: string;
|
|
1290
|
+
} | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Required. The target disk.
|
|
1293
|
+
*/
|
|
1294
|
+
targetDisk?: Schema$ComputeEngineDisk;
|
|
1295
|
+
/**
|
|
1296
|
+
* 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\}
|
|
1297
|
+
*/
|
|
1298
|
+
targetProject?: string | null;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* DiskMigrationStep holds information about the disk migration step progress.
|
|
1302
|
+
*/
|
|
1303
|
+
export interface Schema$DiskMigrationStep {
|
|
1304
|
+
/**
|
|
1305
|
+
* Copying source disk snapshot step.
|
|
1306
|
+
*/
|
|
1307
|
+
copyingSourceDiskSnapshot?: Schema$CopyingSourceDiskSnapshotStep;
|
|
1308
|
+
/**
|
|
1309
|
+
* Creating source disk snapshot step.
|
|
1310
|
+
*/
|
|
1311
|
+
creatingSourceDiskSnapshot?: Schema$CreatingSourceDiskSnapshotStep;
|
|
1312
|
+
/**
|
|
1313
|
+
* Output only. The time the step has ended.
|
|
1314
|
+
*/
|
|
1315
|
+
endTime?: string | null;
|
|
1316
|
+
/**
|
|
1317
|
+
* Creating target disk step.
|
|
1318
|
+
*/
|
|
1319
|
+
provisioningTargetDisk?: Schema$ProvisioningTargetDiskStep;
|
|
1320
|
+
/**
|
|
1321
|
+
* Output only. The time the step has started.
|
|
1322
|
+
*/
|
|
1323
|
+
startTime?: string | null;
|
|
1324
|
+
}
|
|
1160
1325
|
/**
|
|
1161
1326
|
* Details for a disk only migration.
|
|
1162
1327
|
*/
|
|
@@ -1310,6 +1475,23 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
1310
1475
|
*/
|
|
1311
1476
|
vmwareVms?: Schema$VmwareVmsDetails;
|
|
1312
1477
|
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Response message for fetchStorageInventory.
|
|
1480
|
+
*/
|
|
1481
|
+
export interface Schema$FetchStorageInventoryResponse {
|
|
1482
|
+
/**
|
|
1483
|
+
* 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.
|
|
1484
|
+
*/
|
|
1485
|
+
nextPageToken?: string | null;
|
|
1486
|
+
/**
|
|
1487
|
+
* The list of storage resources in the source.
|
|
1488
|
+
*/
|
|
1489
|
+
resources?: Schema$SourceStorageResource[];
|
|
1490
|
+
/**
|
|
1491
|
+
* Output only. The timestamp when the source was last queried (if the result is from the cache).
|
|
1492
|
+
*/
|
|
1493
|
+
updateTime?: string | null;
|
|
1494
|
+
}
|
|
1313
1495
|
/**
|
|
1314
1496
|
* Request message for 'FinalizeMigration' request.
|
|
1315
1497
|
*/
|
|
@@ -1430,6 +1612,10 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
1430
1612
|
* Parameters affecting the OS adaptation process.
|
|
1431
1613
|
*/
|
|
1432
1614
|
export interface Schema$ImageImportOsAdaptationParameters {
|
|
1615
|
+
/**
|
|
1616
|
+
* Optional. Modifiers to be used as configuration of the OS adaptation process.
|
|
1617
|
+
*/
|
|
1618
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
1433
1619
|
/**
|
|
1434
1620
|
* 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
|
|
1435
1621
|
*/
|
|
@@ -1551,6 +1737,23 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
1551
1737
|
*/
|
|
1552
1738
|
unreachable?: string[] | null;
|
|
1553
1739
|
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Response message for 'ListDiskMigrationJobs' request.
|
|
1742
|
+
*/
|
|
1743
|
+
export interface Schema$ListDiskMigrationJobsResponse {
|
|
1744
|
+
/**
|
|
1745
|
+
* Output only. The list of the disk migration jobs.
|
|
1746
|
+
*/
|
|
1747
|
+
diskMigrationJobs?: Schema$DiskMigrationJob[];
|
|
1748
|
+
/**
|
|
1749
|
+
* 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.
|
|
1750
|
+
*/
|
|
1751
|
+
nextPageToken?: string | null;
|
|
1752
|
+
/**
|
|
1753
|
+
* Output only. Locations that could not be reached.
|
|
1754
|
+
*/
|
|
1755
|
+
unreachable?: string[] | null;
|
|
1756
|
+
}
|
|
1554
1757
|
/**
|
|
1555
1758
|
* Response message for 'ListGroups' request.
|
|
1556
1759
|
*/
|
|
@@ -2177,6 +2380,11 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
2177
2380
|
*/
|
|
2178
2381
|
export interface Schema$PreparingVMDisksStep {
|
|
2179
2382
|
}
|
|
2383
|
+
/**
|
|
2384
|
+
* ProvisioningTargetDiskStep contains specific step details.
|
|
2385
|
+
*/
|
|
2386
|
+
export interface Schema$ProvisioningTargetDiskStep {
|
|
2387
|
+
}
|
|
2180
2388
|
/**
|
|
2181
2389
|
* Request message for 'RemoveMigration' request.
|
|
2182
2390
|
*/
|
|
@@ -2270,6 +2478,11 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
2270
2478
|
*/
|
|
2271
2479
|
export interface Schema$ResumeMigrationRequest {
|
|
2272
2480
|
}
|
|
2481
|
+
/**
|
|
2482
|
+
* Request message for 'RunDiskMigrationJobRequest' request.
|
|
2483
|
+
*/
|
|
2484
|
+
export interface Schema$RunDiskMigrationJobRequest {
|
|
2485
|
+
}
|
|
2273
2486
|
/**
|
|
2274
2487
|
* A policy for scheduling replications.
|
|
2275
2488
|
*/
|
|
@@ -2387,6 +2600,15 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
2387
2600
|
*/
|
|
2388
2601
|
vmware?: Schema$VmwareSourceDetails;
|
|
2389
2602
|
}
|
|
2603
|
+
/**
|
|
2604
|
+
* SourceStorageResource describes a storage resource in the source.
|
|
2605
|
+
*/
|
|
2606
|
+
export interface Schema$SourceStorageResource {
|
|
2607
|
+
/**
|
|
2608
|
+
* Source AWS volume details.
|
|
2609
|
+
*/
|
|
2610
|
+
awsDiskDetails?: Schema$AwsSourceDiskDetails;
|
|
2611
|
+
}
|
|
2390
2612
|
/**
|
|
2391
2613
|
* Request message for 'StartMigrationRequest' request.
|
|
2392
2614
|
*/
|
|
@@ -2978,7 +3200,7 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
2978
3200
|
*
|
|
2979
3201
|
* // Do the magic
|
|
2980
3202
|
* const res = await vmmigration.projects.locations.list({
|
|
2981
|
-
* // Optional.
|
|
3203
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2982
3204
|
* extraLocationTypes: 'placeholder-value',
|
|
2983
3205
|
* // 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).
|
|
2984
3206
|
* filter: 'placeholder-value',
|
|
@@ -3025,7 +3247,7 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
3025
3247
|
}
|
|
3026
3248
|
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
3027
3249
|
/**
|
|
3028
|
-
* Optional.
|
|
3250
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
3029
3251
|
*/
|
|
3030
3252
|
extraLocationTypes?: string[];
|
|
3031
3253
|
/**
|
|
@@ -3999,7 +4221,7 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
3999
4221
|
context: APIRequestContext;
|
|
4000
4222
|
constructor(context: APIRequestContext);
|
|
4001
4223
|
/**
|
|
4002
|
-
* Initiates the cancellation of a running
|
|
4224
|
+
* Initiates the cancellation of a running ImageImportJob.
|
|
4003
4225
|
* @example
|
|
4004
4226
|
* ```js
|
|
4005
4227
|
* // Before running the sample:
|
|
@@ -4551,6 +4773,7 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
4551
4773
|
export class Resource$Projects$Locations$Sources {
|
|
4552
4774
|
context: APIRequestContext;
|
|
4553
4775
|
datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
|
|
4776
|
+
diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
|
|
4554
4777
|
migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
|
|
4555
4778
|
utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
|
|
4556
4779
|
constructor(context: APIRequestContext);
|
|
@@ -4775,6 +4998,77 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
4775
4998
|
fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchInventoryResponse>, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
4776
4999
|
fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
4777
5000
|
fetchInventory(callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
5001
|
+
/**
|
|
5002
|
+
* 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.
|
|
5003
|
+
* @example
|
|
5004
|
+
* ```js
|
|
5005
|
+
* // Before running the sample:
|
|
5006
|
+
* // - Enable the API at:
|
|
5007
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5008
|
+
* // - Login into gcloud by running:
|
|
5009
|
+
* // ```sh
|
|
5010
|
+
* // $ gcloud auth application-default login
|
|
5011
|
+
* // ```
|
|
5012
|
+
* // - Install the npm module by running:
|
|
5013
|
+
* // ```sh
|
|
5014
|
+
* // $ npm install googleapis
|
|
5015
|
+
* // ```
|
|
5016
|
+
*
|
|
5017
|
+
* const {google} = require('googleapis');
|
|
5018
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
5019
|
+
*
|
|
5020
|
+
* async function main() {
|
|
5021
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5022
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5023
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5024
|
+
* });
|
|
5025
|
+
*
|
|
5026
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5027
|
+
* const authClient = await auth.getClient();
|
|
5028
|
+
* google.options({auth: authClient});
|
|
5029
|
+
*
|
|
5030
|
+
* // Do the magic
|
|
5031
|
+
* const res =
|
|
5032
|
+
* await vmmigration.projects.locations.sources.fetchStorageInventory({
|
|
5033
|
+
* // 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.
|
|
5034
|
+
* forceRefresh: 'placeholder-value',
|
|
5035
|
+
* // Optional. The maximum number of VMs to return. The service may return fewer than this value.
|
|
5036
|
+
* pageSize: 'placeholder-value',
|
|
5037
|
+
* // 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.
|
|
5038
|
+
* pageToken: 'placeholder-value',
|
|
5039
|
+
* // Required. The name of the Source.
|
|
5040
|
+
* source: 'projects/my-project/locations/my-location/sources/my-source',
|
|
5041
|
+
* // Required. The type of the storage inventory to fetch.
|
|
5042
|
+
* type: 'placeholder-value',
|
|
5043
|
+
* });
|
|
5044
|
+
* console.log(res.data);
|
|
5045
|
+
*
|
|
5046
|
+
* // Example response
|
|
5047
|
+
* // {
|
|
5048
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5049
|
+
* // "resources": [],
|
|
5050
|
+
* // "updateTime": "my_updateTime"
|
|
5051
|
+
* // }
|
|
5052
|
+
* }
|
|
5053
|
+
*
|
|
5054
|
+
* main().catch(e => {
|
|
5055
|
+
* console.error(e);
|
|
5056
|
+
* throw e;
|
|
5057
|
+
* });
|
|
5058
|
+
*
|
|
5059
|
+
* ```
|
|
5060
|
+
*
|
|
5061
|
+
* @param params - Parameters for request
|
|
5062
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5063
|
+
* @param callback - Optional callback that handles the response.
|
|
5064
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5065
|
+
*/
|
|
5066
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5067
|
+
fetchStorageInventory(params?: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>;
|
|
5068
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5069
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchStorageInventoryResponse>, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
5070
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
5071
|
+
fetchStorageInventory(callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
4778
5072
|
/**
|
|
4779
5073
|
* Gets details of a single Source.
|
|
4780
5074
|
* @example
|
|
@@ -5046,6 +5340,28 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
5046
5340
|
*/
|
|
5047
5341
|
source?: string;
|
|
5048
5342
|
}
|
|
5343
|
+
export interface Params$Resource$Projects$Locations$Sources$Fetchstorageinventory extends StandardParameters {
|
|
5344
|
+
/**
|
|
5345
|
+
* 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.
|
|
5346
|
+
*/
|
|
5347
|
+
forceRefresh?: boolean;
|
|
5348
|
+
/**
|
|
5349
|
+
* Optional. The maximum number of VMs to return. The service may return fewer than this value.
|
|
5350
|
+
*/
|
|
5351
|
+
pageSize?: number;
|
|
5352
|
+
/**
|
|
5353
|
+
* 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.
|
|
5354
|
+
*/
|
|
5355
|
+
pageToken?: string;
|
|
5356
|
+
/**
|
|
5357
|
+
* Required. The name of the Source.
|
|
5358
|
+
*/
|
|
5359
|
+
source?: string;
|
|
5360
|
+
/**
|
|
5361
|
+
* Required. The type of the storage inventory to fetch.
|
|
5362
|
+
*/
|
|
5363
|
+
type?: string;
|
|
5364
|
+
}
|
|
5049
5365
|
export interface Params$Resource$Projects$Locations$Sources$Get extends StandardParameters {
|
|
5050
5366
|
/**
|
|
5051
5367
|
* Required. The Source name.
|
|
@@ -5540,6 +5856,614 @@ export declare namespace vmmigration_v1alpha1 {
|
|
|
5540
5856
|
*/
|
|
5541
5857
|
requestBody?: Schema$UpgradeApplianceRequest;
|
|
5542
5858
|
}
|
|
5859
|
+
export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
|
|
5860
|
+
context: APIRequestContext;
|
|
5861
|
+
constructor(context: APIRequestContext);
|
|
5862
|
+
/**
|
|
5863
|
+
* Cancels the disk migration job.
|
|
5864
|
+
* @example
|
|
5865
|
+
* ```js
|
|
5866
|
+
* // Before running the sample:
|
|
5867
|
+
* // - Enable the API at:
|
|
5868
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5869
|
+
* // - Login into gcloud by running:
|
|
5870
|
+
* // ```sh
|
|
5871
|
+
* // $ gcloud auth application-default login
|
|
5872
|
+
* // ```
|
|
5873
|
+
* // - Install the npm module by running:
|
|
5874
|
+
* // ```sh
|
|
5875
|
+
* // $ npm install googleapis
|
|
5876
|
+
* // ```
|
|
5877
|
+
*
|
|
5878
|
+
* const {google} = require('googleapis');
|
|
5879
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
5880
|
+
*
|
|
5881
|
+
* async function main() {
|
|
5882
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5883
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5884
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5885
|
+
* });
|
|
5886
|
+
*
|
|
5887
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5888
|
+
* const authClient = await auth.getClient();
|
|
5889
|
+
* google.options({auth: authClient});
|
|
5890
|
+
*
|
|
5891
|
+
* // Do the magic
|
|
5892
|
+
* const res =
|
|
5893
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.cancel({
|
|
5894
|
+
* // Required. The name of the DiskMigrationJob.
|
|
5895
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
5896
|
+
*
|
|
5897
|
+
* // Request body metadata
|
|
5898
|
+
* requestBody: {
|
|
5899
|
+
* // request body parameters
|
|
5900
|
+
* // {}
|
|
5901
|
+
* },
|
|
5902
|
+
* });
|
|
5903
|
+
* console.log(res.data);
|
|
5904
|
+
*
|
|
5905
|
+
* // Example response
|
|
5906
|
+
* // {
|
|
5907
|
+
* // "done": false,
|
|
5908
|
+
* // "error": {},
|
|
5909
|
+
* // "metadata": {},
|
|
5910
|
+
* // "name": "my_name",
|
|
5911
|
+
* // "response": {}
|
|
5912
|
+
* // }
|
|
5913
|
+
* }
|
|
5914
|
+
*
|
|
5915
|
+
* main().catch(e => {
|
|
5916
|
+
* console.error(e);
|
|
5917
|
+
* throw e;
|
|
5918
|
+
* });
|
|
5919
|
+
*
|
|
5920
|
+
* ```
|
|
5921
|
+
*
|
|
5922
|
+
* @param params - Parameters for request
|
|
5923
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5924
|
+
* @param callback - Optional callback that handles the response.
|
|
5925
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5926
|
+
*/
|
|
5927
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5928
|
+
cancel(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5929
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5930
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5931
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5932
|
+
cancel(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5933
|
+
/**
|
|
5934
|
+
* Creates a new disk migration job in a given Source.
|
|
5935
|
+
* @example
|
|
5936
|
+
* ```js
|
|
5937
|
+
* // Before running the sample:
|
|
5938
|
+
* // - Enable the API at:
|
|
5939
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5940
|
+
* // - Login into gcloud by running:
|
|
5941
|
+
* // ```sh
|
|
5942
|
+
* // $ gcloud auth application-default login
|
|
5943
|
+
* // ```
|
|
5944
|
+
* // - Install the npm module by running:
|
|
5945
|
+
* // ```sh
|
|
5946
|
+
* // $ npm install googleapis
|
|
5947
|
+
* // ```
|
|
5948
|
+
*
|
|
5949
|
+
* const {google} = require('googleapis');
|
|
5950
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
5951
|
+
*
|
|
5952
|
+
* async function main() {
|
|
5953
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5954
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5955
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5956
|
+
* });
|
|
5957
|
+
*
|
|
5958
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5959
|
+
* const authClient = await auth.getClient();
|
|
5960
|
+
* google.options({auth: authClient});
|
|
5961
|
+
*
|
|
5962
|
+
* // Do the magic
|
|
5963
|
+
* const res =
|
|
5964
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.create({
|
|
5965
|
+
* // 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.
|
|
5966
|
+
* diskMigrationJobId: 'placeholder-value',
|
|
5967
|
+
* // Required. The DiskMigrationJob's parent.
|
|
5968
|
+
* parent: 'projects/my-project/locations/my-location/sources/my-source',
|
|
5969
|
+
* // 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).
|
|
5970
|
+
* requestId: 'placeholder-value',
|
|
5971
|
+
*
|
|
5972
|
+
* // Request body metadata
|
|
5973
|
+
* requestBody: {
|
|
5974
|
+
* // request body parameters
|
|
5975
|
+
* // {
|
|
5976
|
+
* // "awsSourceDiskDetails": {},
|
|
5977
|
+
* // "createTime": "my_createTime",
|
|
5978
|
+
* // "errors": [],
|
|
5979
|
+
* // "name": "my_name",
|
|
5980
|
+
* // "state": "my_state",
|
|
5981
|
+
* // "steps": [],
|
|
5982
|
+
* // "targetDetails": {},
|
|
5983
|
+
* // "updateTime": "my_updateTime"
|
|
5984
|
+
* // }
|
|
5985
|
+
* },
|
|
5986
|
+
* });
|
|
5987
|
+
* console.log(res.data);
|
|
5988
|
+
*
|
|
5989
|
+
* // Example response
|
|
5990
|
+
* // {
|
|
5991
|
+
* // "done": false,
|
|
5992
|
+
* // "error": {},
|
|
5993
|
+
* // "metadata": {},
|
|
5994
|
+
* // "name": "my_name",
|
|
5995
|
+
* // "response": {}
|
|
5996
|
+
* // }
|
|
5997
|
+
* }
|
|
5998
|
+
*
|
|
5999
|
+
* main().catch(e => {
|
|
6000
|
+
* console.error(e);
|
|
6001
|
+
* throw e;
|
|
6002
|
+
* });
|
|
6003
|
+
*
|
|
6004
|
+
* ```
|
|
6005
|
+
*
|
|
6006
|
+
* @param params - Parameters for request
|
|
6007
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6008
|
+
* @param callback - Optional callback that handles the response.
|
|
6009
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6010
|
+
*/
|
|
6011
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6012
|
+
create(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6013
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6014
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6015
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6016
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6017
|
+
/**
|
|
6018
|
+
* Deletes a single DiskMigrationJob.
|
|
6019
|
+
* @example
|
|
6020
|
+
* ```js
|
|
6021
|
+
* // Before running the sample:
|
|
6022
|
+
* // - Enable the API at:
|
|
6023
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6024
|
+
* // - Login into gcloud by running:
|
|
6025
|
+
* // ```sh
|
|
6026
|
+
* // $ gcloud auth application-default login
|
|
6027
|
+
* // ```
|
|
6028
|
+
* // - Install the npm module by running:
|
|
6029
|
+
* // ```sh
|
|
6030
|
+
* // $ npm install googleapis
|
|
6031
|
+
* // ```
|
|
6032
|
+
*
|
|
6033
|
+
* const {google} = require('googleapis');
|
|
6034
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
6035
|
+
*
|
|
6036
|
+
* async function main() {
|
|
6037
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6038
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6039
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6040
|
+
* });
|
|
6041
|
+
*
|
|
6042
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6043
|
+
* const authClient = await auth.getClient();
|
|
6044
|
+
* google.options({auth: authClient});
|
|
6045
|
+
*
|
|
6046
|
+
* // Do the magic
|
|
6047
|
+
* const res =
|
|
6048
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.delete({
|
|
6049
|
+
* // Required. The name of the DiskMigrationJob.
|
|
6050
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6051
|
+
* });
|
|
6052
|
+
* console.log(res.data);
|
|
6053
|
+
*
|
|
6054
|
+
* // Example response
|
|
6055
|
+
* // {
|
|
6056
|
+
* // "done": false,
|
|
6057
|
+
* // "error": {},
|
|
6058
|
+
* // "metadata": {},
|
|
6059
|
+
* // "name": "my_name",
|
|
6060
|
+
* // "response": {}
|
|
6061
|
+
* // }
|
|
6062
|
+
* }
|
|
6063
|
+
*
|
|
6064
|
+
* main().catch(e => {
|
|
6065
|
+
* console.error(e);
|
|
6066
|
+
* throw e;
|
|
6067
|
+
* });
|
|
6068
|
+
*
|
|
6069
|
+
* ```
|
|
6070
|
+
*
|
|
6071
|
+
* @param params - Parameters for request
|
|
6072
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6073
|
+
* @param callback - Optional callback that handles the response.
|
|
6074
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6075
|
+
*/
|
|
6076
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6077
|
+
delete(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6078
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6079
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6080
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6081
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6082
|
+
/**
|
|
6083
|
+
* Gets details of a single DiskMigrationJob.
|
|
6084
|
+
* @example
|
|
6085
|
+
* ```js
|
|
6086
|
+
* // Before running the sample:
|
|
6087
|
+
* // - Enable the API at:
|
|
6088
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6089
|
+
* // - Login into gcloud by running:
|
|
6090
|
+
* // ```sh
|
|
6091
|
+
* // $ gcloud auth application-default login
|
|
6092
|
+
* // ```
|
|
6093
|
+
* // - Install the npm module by running:
|
|
6094
|
+
* // ```sh
|
|
6095
|
+
* // $ npm install googleapis
|
|
6096
|
+
* // ```
|
|
6097
|
+
*
|
|
6098
|
+
* const {google} = require('googleapis');
|
|
6099
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
6100
|
+
*
|
|
6101
|
+
* async function main() {
|
|
6102
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6103
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6104
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6105
|
+
* });
|
|
6106
|
+
*
|
|
6107
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6108
|
+
* const authClient = await auth.getClient();
|
|
6109
|
+
* google.options({auth: authClient});
|
|
6110
|
+
*
|
|
6111
|
+
* // Do the magic
|
|
6112
|
+
* const res =
|
|
6113
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.get({
|
|
6114
|
+
* // Required. The name of the DiskMigrationJob.
|
|
6115
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6116
|
+
* });
|
|
6117
|
+
* console.log(res.data);
|
|
6118
|
+
*
|
|
6119
|
+
* // Example response
|
|
6120
|
+
* // {
|
|
6121
|
+
* // "awsSourceDiskDetails": {},
|
|
6122
|
+
* // "createTime": "my_createTime",
|
|
6123
|
+
* // "errors": [],
|
|
6124
|
+
* // "name": "my_name",
|
|
6125
|
+
* // "state": "my_state",
|
|
6126
|
+
* // "steps": [],
|
|
6127
|
+
* // "targetDetails": {},
|
|
6128
|
+
* // "updateTime": "my_updateTime"
|
|
6129
|
+
* // }
|
|
6130
|
+
* }
|
|
6131
|
+
*
|
|
6132
|
+
* main().catch(e => {
|
|
6133
|
+
* console.error(e);
|
|
6134
|
+
* throw e;
|
|
6135
|
+
* });
|
|
6136
|
+
*
|
|
6137
|
+
* ```
|
|
6138
|
+
*
|
|
6139
|
+
* @param params - Parameters for request
|
|
6140
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6141
|
+
* @param callback - Optional callback that handles the response.
|
|
6142
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6143
|
+
*/
|
|
6144
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6145
|
+
get(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>;
|
|
6146
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6147
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: MethodOptions | BodyResponseCallback<Schema$DiskMigrationJob>, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
6148
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
6149
|
+
get(callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
6150
|
+
/**
|
|
6151
|
+
* Lists DiskMigrationJobs in a given Source.
|
|
6152
|
+
* @example
|
|
6153
|
+
* ```js
|
|
6154
|
+
* // Before running the sample:
|
|
6155
|
+
* // - Enable the API at:
|
|
6156
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6157
|
+
* // - Login into gcloud by running:
|
|
6158
|
+
* // ```sh
|
|
6159
|
+
* // $ gcloud auth application-default login
|
|
6160
|
+
* // ```
|
|
6161
|
+
* // - Install the npm module by running:
|
|
6162
|
+
* // ```sh
|
|
6163
|
+
* // $ npm install googleapis
|
|
6164
|
+
* // ```
|
|
6165
|
+
*
|
|
6166
|
+
* const {google} = require('googleapis');
|
|
6167
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
6168
|
+
*
|
|
6169
|
+
* async function main() {
|
|
6170
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6171
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6172
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6173
|
+
* });
|
|
6174
|
+
*
|
|
6175
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6176
|
+
* const authClient = await auth.getClient();
|
|
6177
|
+
* google.options({auth: authClient});
|
|
6178
|
+
*
|
|
6179
|
+
* // Do the magic
|
|
6180
|
+
* const res =
|
|
6181
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.list({
|
|
6182
|
+
* // Optional. The filter request (according to AIP-160).
|
|
6183
|
+
* filter: 'placeholder-value',
|
|
6184
|
+
* // Optional. Ordering of the result list.
|
|
6185
|
+
* orderBy: 'placeholder-value',
|
|
6186
|
+
* // 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.
|
|
6187
|
+
* pageSize: 'placeholder-value',
|
|
6188
|
+
* // 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.
|
|
6189
|
+
* pageToken: 'placeholder-value',
|
|
6190
|
+
* // Required. The parent, which owns this collection of DiskMigrationJobs.
|
|
6191
|
+
* parent: 'projects/my-project/locations/my-location/sources/my-source',
|
|
6192
|
+
* });
|
|
6193
|
+
* console.log(res.data);
|
|
6194
|
+
*
|
|
6195
|
+
* // Example response
|
|
6196
|
+
* // {
|
|
6197
|
+
* // "diskMigrationJobs": [],
|
|
6198
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6199
|
+
* // "unreachable": []
|
|
6200
|
+
* // }
|
|
6201
|
+
* }
|
|
6202
|
+
*
|
|
6203
|
+
* main().catch(e => {
|
|
6204
|
+
* console.error(e);
|
|
6205
|
+
* throw e;
|
|
6206
|
+
* });
|
|
6207
|
+
*
|
|
6208
|
+
* ```
|
|
6209
|
+
*
|
|
6210
|
+
* @param params - Parameters for request
|
|
6211
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6212
|
+
* @param callback - Optional callback that handles the response.
|
|
6213
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6214
|
+
*/
|
|
6215
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6216
|
+
list(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>;
|
|
6217
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6218
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6219
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6220
|
+
list(callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6221
|
+
/**
|
|
6222
|
+
* Updates the parameters of a single DiskMigrationJob.
|
|
6223
|
+
* @example
|
|
6224
|
+
* ```js
|
|
6225
|
+
* // Before running the sample:
|
|
6226
|
+
* // - Enable the API at:
|
|
6227
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6228
|
+
* // - Login into gcloud by running:
|
|
6229
|
+
* // ```sh
|
|
6230
|
+
* // $ gcloud auth application-default login
|
|
6231
|
+
* // ```
|
|
6232
|
+
* // - Install the npm module by running:
|
|
6233
|
+
* // ```sh
|
|
6234
|
+
* // $ npm install googleapis
|
|
6235
|
+
* // ```
|
|
6236
|
+
*
|
|
6237
|
+
* const {google} = require('googleapis');
|
|
6238
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
6239
|
+
*
|
|
6240
|
+
* async function main() {
|
|
6241
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6242
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6243
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6244
|
+
* });
|
|
6245
|
+
*
|
|
6246
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6247
|
+
* const authClient = await auth.getClient();
|
|
6248
|
+
* google.options({auth: authClient});
|
|
6249
|
+
*
|
|
6250
|
+
* // Do the magic
|
|
6251
|
+
* const res =
|
|
6252
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.patch({
|
|
6253
|
+
* // Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
6254
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6255
|
+
* // 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).
|
|
6256
|
+
* requestId: 'placeholder-value',
|
|
6257
|
+
* // 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.
|
|
6258
|
+
* updateMask: 'placeholder-value',
|
|
6259
|
+
*
|
|
6260
|
+
* // Request body metadata
|
|
6261
|
+
* requestBody: {
|
|
6262
|
+
* // request body parameters
|
|
6263
|
+
* // {
|
|
6264
|
+
* // "awsSourceDiskDetails": {},
|
|
6265
|
+
* // "createTime": "my_createTime",
|
|
6266
|
+
* // "errors": [],
|
|
6267
|
+
* // "name": "my_name",
|
|
6268
|
+
* // "state": "my_state",
|
|
6269
|
+
* // "steps": [],
|
|
6270
|
+
* // "targetDetails": {},
|
|
6271
|
+
* // "updateTime": "my_updateTime"
|
|
6272
|
+
* // }
|
|
6273
|
+
* },
|
|
6274
|
+
* });
|
|
6275
|
+
* console.log(res.data);
|
|
6276
|
+
*
|
|
6277
|
+
* // Example response
|
|
6278
|
+
* // {
|
|
6279
|
+
* // "done": false,
|
|
6280
|
+
* // "error": {},
|
|
6281
|
+
* // "metadata": {},
|
|
6282
|
+
* // "name": "my_name",
|
|
6283
|
+
* // "response": {}
|
|
6284
|
+
* // }
|
|
6285
|
+
* }
|
|
6286
|
+
*
|
|
6287
|
+
* main().catch(e => {
|
|
6288
|
+
* console.error(e);
|
|
6289
|
+
* throw e;
|
|
6290
|
+
* });
|
|
6291
|
+
*
|
|
6292
|
+
* ```
|
|
6293
|
+
*
|
|
6294
|
+
* @param params - Parameters for request
|
|
6295
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6296
|
+
* @param callback - Optional callback that handles the response.
|
|
6297
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6298
|
+
*/
|
|
6299
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6300
|
+
patch(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6301
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6302
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6303
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6304
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6305
|
+
/**
|
|
6306
|
+
* Runs the disk migration job.
|
|
6307
|
+
* @example
|
|
6308
|
+
* ```js
|
|
6309
|
+
* // Before running the sample:
|
|
6310
|
+
* // - Enable the API at:
|
|
6311
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6312
|
+
* // - Login into gcloud by running:
|
|
6313
|
+
* // ```sh
|
|
6314
|
+
* // $ gcloud auth application-default login
|
|
6315
|
+
* // ```
|
|
6316
|
+
* // - Install the npm module by running:
|
|
6317
|
+
* // ```sh
|
|
6318
|
+
* // $ npm install googleapis
|
|
6319
|
+
* // ```
|
|
6320
|
+
*
|
|
6321
|
+
* const {google} = require('googleapis');
|
|
6322
|
+
* const vmmigration = google.vmmigration('v1alpha1');
|
|
6323
|
+
*
|
|
6324
|
+
* async function main() {
|
|
6325
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6326
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6327
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6328
|
+
* });
|
|
6329
|
+
*
|
|
6330
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6331
|
+
* const authClient = await auth.getClient();
|
|
6332
|
+
* google.options({auth: authClient});
|
|
6333
|
+
*
|
|
6334
|
+
* // Do the magic
|
|
6335
|
+
* const res =
|
|
6336
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.run({
|
|
6337
|
+
* // Required. The name of the DiskMigrationJob.
|
|
6338
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6339
|
+
*
|
|
6340
|
+
* // Request body metadata
|
|
6341
|
+
* requestBody: {
|
|
6342
|
+
* // request body parameters
|
|
6343
|
+
* // {}
|
|
6344
|
+
* },
|
|
6345
|
+
* });
|
|
6346
|
+
* console.log(res.data);
|
|
6347
|
+
*
|
|
6348
|
+
* // Example response
|
|
6349
|
+
* // {
|
|
6350
|
+
* // "done": false,
|
|
6351
|
+
* // "error": {},
|
|
6352
|
+
* // "metadata": {},
|
|
6353
|
+
* // "name": "my_name",
|
|
6354
|
+
* // "response": {}
|
|
6355
|
+
* // }
|
|
6356
|
+
* }
|
|
6357
|
+
*
|
|
6358
|
+
* main().catch(e => {
|
|
6359
|
+
* console.error(e);
|
|
6360
|
+
* throw e;
|
|
6361
|
+
* });
|
|
6362
|
+
*
|
|
6363
|
+
* ```
|
|
6364
|
+
*
|
|
6365
|
+
* @param params - Parameters for request
|
|
6366
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6367
|
+
* @param callback - Optional callback that handles the response.
|
|
6368
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6369
|
+
*/
|
|
6370
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6371
|
+
run(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6372
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6373
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6374
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6375
|
+
run(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6376
|
+
}
|
|
6377
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel extends StandardParameters {
|
|
6378
|
+
/**
|
|
6379
|
+
* Required. The name of the DiskMigrationJob.
|
|
6380
|
+
*/
|
|
6381
|
+
name?: string;
|
|
6382
|
+
/**
|
|
6383
|
+
* Request body metadata
|
|
6384
|
+
*/
|
|
6385
|
+
requestBody?: Schema$CancelDiskMigrationJobRequest;
|
|
6386
|
+
}
|
|
6387
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create extends StandardParameters {
|
|
6388
|
+
/**
|
|
6389
|
+
* 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.
|
|
6390
|
+
*/
|
|
6391
|
+
diskMigrationJobId?: string;
|
|
6392
|
+
/**
|
|
6393
|
+
* Required. The DiskMigrationJob's parent.
|
|
6394
|
+
*/
|
|
6395
|
+
parent?: string;
|
|
6396
|
+
/**
|
|
6397
|
+
* 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).
|
|
6398
|
+
*/
|
|
6399
|
+
requestId?: string;
|
|
6400
|
+
/**
|
|
6401
|
+
* Request body metadata
|
|
6402
|
+
*/
|
|
6403
|
+
requestBody?: Schema$DiskMigrationJob;
|
|
6404
|
+
}
|
|
6405
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete extends StandardParameters {
|
|
6406
|
+
/**
|
|
6407
|
+
* Required. The name of the DiskMigrationJob.
|
|
6408
|
+
*/
|
|
6409
|
+
name?: string;
|
|
6410
|
+
}
|
|
6411
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get extends StandardParameters {
|
|
6412
|
+
/**
|
|
6413
|
+
* Required. The name of the DiskMigrationJob.
|
|
6414
|
+
*/
|
|
6415
|
+
name?: string;
|
|
6416
|
+
}
|
|
6417
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List extends StandardParameters {
|
|
6418
|
+
/**
|
|
6419
|
+
* Optional. The filter request (according to AIP-160).
|
|
6420
|
+
*/
|
|
6421
|
+
filter?: string;
|
|
6422
|
+
/**
|
|
6423
|
+
* Optional. Ordering of the result list.
|
|
6424
|
+
*/
|
|
6425
|
+
orderBy?: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* 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.
|
|
6428
|
+
*/
|
|
6429
|
+
pageSize?: number;
|
|
6430
|
+
/**
|
|
6431
|
+
* 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.
|
|
6432
|
+
*/
|
|
6433
|
+
pageToken?: string;
|
|
6434
|
+
/**
|
|
6435
|
+
* Required. The parent, which owns this collection of DiskMigrationJobs.
|
|
6436
|
+
*/
|
|
6437
|
+
parent?: string;
|
|
6438
|
+
}
|
|
6439
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch extends StandardParameters {
|
|
6440
|
+
/**
|
|
6441
|
+
* Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
6442
|
+
*/
|
|
6443
|
+
name?: string;
|
|
6444
|
+
/**
|
|
6445
|
+
* 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).
|
|
6446
|
+
*/
|
|
6447
|
+
requestId?: string;
|
|
6448
|
+
/**
|
|
6449
|
+
* 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.
|
|
6450
|
+
*/
|
|
6451
|
+
updateMask?: string;
|
|
6452
|
+
/**
|
|
6453
|
+
* Request body metadata
|
|
6454
|
+
*/
|
|
6455
|
+
requestBody?: Schema$DiskMigrationJob;
|
|
6456
|
+
}
|
|
6457
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run extends StandardParameters {
|
|
6458
|
+
/**
|
|
6459
|
+
* Required. The name of the DiskMigrationJob.
|
|
6460
|
+
*/
|
|
6461
|
+
name?: string;
|
|
6462
|
+
/**
|
|
6463
|
+
* Request body metadata
|
|
6464
|
+
*/
|
|
6465
|
+
requestBody?: Schema$RunDiskMigrationJobRequest;
|
|
6466
|
+
}
|
|
5543
6467
|
export class Resource$Projects$Locations$Sources$Migratingvms {
|
|
5544
6468
|
context: APIRequestContext;
|
|
5545
6469
|
cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;
|