@googleapis/vmmigration 15.0.0 → 16.1.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 +18 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +939 -4
- package/build/v1.js +274 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha1.d.ts +939 -4
- package/build/v1alpha1.js +274 -0
- package/build/v1alpha1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1640 -75
- package/v1alpha1.ts +1645 -75
package/build/v1.d.ts
CHANGED
|
@@ -87,6 +87,19 @@ export declare namespace vmmigration_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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
|
*/
|
|
@@ -611,6 +652,27 @@ export declare namespace vmmigration_v1 {
|
|
|
611
652
|
*/
|
|
612
653
|
startTime?: string | null;
|
|
613
654
|
}
|
|
655
|
+
/**
|
|
656
|
+
* Compute Engine disk target details.
|
|
657
|
+
*/
|
|
658
|
+
export interface Schema$ComputeEngineDisk {
|
|
659
|
+
/**
|
|
660
|
+
* 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.
|
|
661
|
+
*/
|
|
662
|
+
diskId?: string | null;
|
|
663
|
+
/**
|
|
664
|
+
* Required. The disk type to use.
|
|
665
|
+
*/
|
|
666
|
+
diskType?: string | null;
|
|
667
|
+
/**
|
|
668
|
+
* 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.
|
|
669
|
+
*/
|
|
670
|
+
replicaZones?: string[] | null;
|
|
671
|
+
/**
|
|
672
|
+
* Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project\}/locations/{zone\}
|
|
673
|
+
*/
|
|
674
|
+
zone?: string | null;
|
|
675
|
+
}
|
|
614
676
|
/**
|
|
615
677
|
* ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
|
|
616
678
|
*/
|
|
@@ -657,6 +719,10 @@ export declare namespace vmmigration_v1 {
|
|
|
657
719
|
* ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
|
|
658
720
|
*/
|
|
659
721
|
export interface Schema$ComputeEngineTargetDefaults {
|
|
722
|
+
/**
|
|
723
|
+
* Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.
|
|
724
|
+
*/
|
|
725
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
660
726
|
/**
|
|
661
727
|
* Additional licenses to assign to the VM.
|
|
662
728
|
*/
|
|
@@ -758,6 +824,10 @@ export declare namespace vmmigration_v1 {
|
|
|
758
824
|
* ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
|
|
759
825
|
*/
|
|
760
826
|
export interface Schema$ComputeEngineTargetDetails {
|
|
827
|
+
/**
|
|
828
|
+
* Optional. Modifiers to be used as configuration of the OS adaptation process.
|
|
829
|
+
*/
|
|
830
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
761
831
|
/**
|
|
762
832
|
* Additional licenses to assign to the VM.
|
|
763
833
|
*/
|
|
@@ -876,11 +946,21 @@ export declare namespace vmmigration_v1 {
|
|
|
876
946
|
*/
|
|
877
947
|
restartType?: string | null;
|
|
878
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* CopyingSourceDiskSnapshotStep contains specific step details.
|
|
951
|
+
*/
|
|
952
|
+
export interface Schema$CopyingSourceDiskSnapshotStep {
|
|
953
|
+
}
|
|
879
954
|
/**
|
|
880
955
|
* CreatingImageStep contains specific step details.
|
|
881
956
|
*/
|
|
882
957
|
export interface Schema$CreatingImageStep {
|
|
883
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
* CreatingSourceDiskSnapshotStep contains specific step details.
|
|
961
|
+
*/
|
|
962
|
+
export interface Schema$CreatingSourceDiskSnapshotStep {
|
|
963
|
+
}
|
|
884
964
|
/**
|
|
885
965
|
* CutoverForecast holds information about future CutoverJobs of a MigratingVm.
|
|
886
966
|
*/
|
|
@@ -1136,6 +1216,91 @@ export declare namespace vmmigration_v1 {
|
|
|
1136
1216
|
*/
|
|
1137
1217
|
targetProject?: string | null;
|
|
1138
1218
|
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
|
|
1221
|
+
*/
|
|
1222
|
+
export interface Schema$DiskMigrationJob {
|
|
1223
|
+
/**
|
|
1224
|
+
* Details of the unattached AWS source disk.
|
|
1225
|
+
*/
|
|
1226
|
+
awsSourceDiskDetails?: Schema$AwsSourceDiskDetails;
|
|
1227
|
+
/**
|
|
1228
|
+
* Output only. The time the DiskMigrationJob resource was created.
|
|
1229
|
+
*/
|
|
1230
|
+
createTime?: string | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Output only. Provides details on the errors that led to the disk migration job's state in case of an error.
|
|
1233
|
+
*/
|
|
1234
|
+
errors?: Schema$Status[];
|
|
1235
|
+
/**
|
|
1236
|
+
* Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
1237
|
+
*/
|
|
1238
|
+
name?: string | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* Output only. State of the DiskMigrationJob.
|
|
1241
|
+
*/
|
|
1242
|
+
state?: string | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* Output only. The disk migration steps list representing its progress.
|
|
1245
|
+
*/
|
|
1246
|
+
steps?: Schema$DiskMigrationStep[];
|
|
1247
|
+
/**
|
|
1248
|
+
* Required. Details of the target Disk in Compute Engine.
|
|
1249
|
+
*/
|
|
1250
|
+
targetDetails?: Schema$DiskMigrationJobTargetDetails;
|
|
1251
|
+
/**
|
|
1252
|
+
* Output only. The last time the DiskMigrationJob resource was updated.
|
|
1253
|
+
*/
|
|
1254
|
+
updateTime?: string | null;
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Details of the target disk in Compute Engine.
|
|
1258
|
+
*/
|
|
1259
|
+
export interface Schema$DiskMigrationJobTargetDetails {
|
|
1260
|
+
/**
|
|
1261
|
+
* 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.
|
|
1262
|
+
*/
|
|
1263
|
+
encryption?: Schema$Encryption;
|
|
1264
|
+
/**
|
|
1265
|
+
* Optional. A map of labels to associate with the disk.
|
|
1266
|
+
*/
|
|
1267
|
+
labels?: {
|
|
1268
|
+
[key: string]: string;
|
|
1269
|
+
} | null;
|
|
1270
|
+
/**
|
|
1271
|
+
* Required. The target disk.
|
|
1272
|
+
*/
|
|
1273
|
+
targetDisk?: Schema$ComputeEngineDisk;
|
|
1274
|
+
/**
|
|
1275
|
+
* 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\}
|
|
1276
|
+
*/
|
|
1277
|
+
targetProject?: string | null;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* DiskMigrationStep holds information about the disk migration step progress.
|
|
1281
|
+
*/
|
|
1282
|
+
export interface Schema$DiskMigrationStep {
|
|
1283
|
+
/**
|
|
1284
|
+
* Copying source disk snapshot step.
|
|
1285
|
+
*/
|
|
1286
|
+
copyingSourceDiskSnapshot?: Schema$CopyingSourceDiskSnapshotStep;
|
|
1287
|
+
/**
|
|
1288
|
+
* Creating source disk snapshot step.
|
|
1289
|
+
*/
|
|
1290
|
+
creatingSourceDiskSnapshot?: Schema$CreatingSourceDiskSnapshotStep;
|
|
1291
|
+
/**
|
|
1292
|
+
* Output only. The time the step has ended.
|
|
1293
|
+
*/
|
|
1294
|
+
endTime?: string | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Creating target disk step.
|
|
1297
|
+
*/
|
|
1298
|
+
provisioningTargetDisk?: Schema$ProvisioningTargetDiskStep;
|
|
1299
|
+
/**
|
|
1300
|
+
* Output only. The time the step has started.
|
|
1301
|
+
*/
|
|
1302
|
+
startTime?: string | null;
|
|
1303
|
+
}
|
|
1139
1304
|
/**
|
|
1140
1305
|
* Details for a disk only migration.
|
|
1141
1306
|
*/
|
|
@@ -1289,6 +1454,23 @@ export declare namespace vmmigration_v1 {
|
|
|
1289
1454
|
*/
|
|
1290
1455
|
vmwareVms?: Schema$VmwareVmsDetails;
|
|
1291
1456
|
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Response message for fetchStorageInventory.
|
|
1459
|
+
*/
|
|
1460
|
+
export interface Schema$FetchStorageInventoryResponse {
|
|
1461
|
+
/**
|
|
1462
|
+
* 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.
|
|
1463
|
+
*/
|
|
1464
|
+
nextPageToken?: string | null;
|
|
1465
|
+
/**
|
|
1466
|
+
* The list of storage resources in the source.
|
|
1467
|
+
*/
|
|
1468
|
+
resources?: Schema$SourceStorageResource[];
|
|
1469
|
+
/**
|
|
1470
|
+
* Output only. The timestamp when the source was last queried (if the result is from the cache).
|
|
1471
|
+
*/
|
|
1472
|
+
updateTime?: string | null;
|
|
1473
|
+
}
|
|
1292
1474
|
/**
|
|
1293
1475
|
* Request message for 'FinalizeMigration' request.
|
|
1294
1476
|
*/
|
|
@@ -1409,6 +1591,10 @@ export declare namespace vmmigration_v1 {
|
|
|
1409
1591
|
* Parameters affecting the OS adaptation process.
|
|
1410
1592
|
*/
|
|
1411
1593
|
export interface Schema$ImageImportOsAdaptationParameters {
|
|
1594
|
+
/**
|
|
1595
|
+
* Optional. Modifiers to be used as configuration of the OS adaptation process.
|
|
1596
|
+
*/
|
|
1597
|
+
adaptationModifiers?: Schema$AdaptationModifier[];
|
|
1412
1598
|
/**
|
|
1413
1599
|
* 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
|
|
1414
1600
|
*/
|
|
@@ -1530,6 +1716,23 @@ export declare namespace vmmigration_v1 {
|
|
|
1530
1716
|
*/
|
|
1531
1717
|
unreachable?: string[] | null;
|
|
1532
1718
|
}
|
|
1719
|
+
/**
|
|
1720
|
+
* Response message for 'ListDiskMigrationJobs' request.
|
|
1721
|
+
*/
|
|
1722
|
+
export interface Schema$ListDiskMigrationJobsResponse {
|
|
1723
|
+
/**
|
|
1724
|
+
* Output only. The list of the disk migration jobs.
|
|
1725
|
+
*/
|
|
1726
|
+
diskMigrationJobs?: Schema$DiskMigrationJob[];
|
|
1727
|
+
/**
|
|
1728
|
+
* 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.
|
|
1729
|
+
*/
|
|
1730
|
+
nextPageToken?: string | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* Output only. Locations that could not be reached.
|
|
1733
|
+
*/
|
|
1734
|
+
unreachable?: string[] | null;
|
|
1735
|
+
}
|
|
1533
1736
|
/**
|
|
1534
1737
|
* Response message for 'ListGroups' request.
|
|
1535
1738
|
*/
|
|
@@ -1623,6 +1826,10 @@ export declare namespace vmmigration_v1 {
|
|
|
1623
1826
|
* A list of operations that matches the specified filter in the request.
|
|
1624
1827
|
*/
|
|
1625
1828
|
operations?: Schema$Operation[];
|
|
1829
|
+
/**
|
|
1830
|
+
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
|
|
1831
|
+
*/
|
|
1832
|
+
unreachable?: string[] | null;
|
|
1626
1833
|
}
|
|
1627
1834
|
/**
|
|
1628
1835
|
* Response message for 'ListReplicationCycles' request.
|
|
@@ -2148,6 +2355,11 @@ export declare namespace vmmigration_v1 {
|
|
|
2148
2355
|
*/
|
|
2149
2356
|
export interface Schema$PreparingVMDisksStep {
|
|
2150
2357
|
}
|
|
2358
|
+
/**
|
|
2359
|
+
* ProvisioningTargetDiskStep contains specific step details.
|
|
2360
|
+
*/
|
|
2361
|
+
export interface Schema$ProvisioningTargetDiskStep {
|
|
2362
|
+
}
|
|
2151
2363
|
/**
|
|
2152
2364
|
* Request message for 'RemoveMigration' request.
|
|
2153
2365
|
*/
|
|
@@ -2237,6 +2449,11 @@ export declare namespace vmmigration_v1 {
|
|
|
2237
2449
|
*/
|
|
2238
2450
|
export interface Schema$ResumeMigrationRequest {
|
|
2239
2451
|
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Request message for 'RunDiskMigrationJobRequest' request.
|
|
2454
|
+
*/
|
|
2455
|
+
export interface Schema$RunDiskMigrationJobRequest {
|
|
2456
|
+
}
|
|
2240
2457
|
/**
|
|
2241
2458
|
* A policy for scheduling replications.
|
|
2242
2459
|
*/
|
|
@@ -2350,6 +2567,15 @@ export declare namespace vmmigration_v1 {
|
|
|
2350
2567
|
*/
|
|
2351
2568
|
vmware?: Schema$VmwareSourceDetails;
|
|
2352
2569
|
}
|
|
2570
|
+
/**
|
|
2571
|
+
* SourceStorageResource describes a storage resource in the source.
|
|
2572
|
+
*/
|
|
2573
|
+
export interface Schema$SourceStorageResource {
|
|
2574
|
+
/**
|
|
2575
|
+
* Source AWS volume details.
|
|
2576
|
+
*/
|
|
2577
|
+
awsDiskDetails?: Schema$AwsSourceDiskDetails;
|
|
2578
|
+
}
|
|
2353
2579
|
/**
|
|
2354
2580
|
* Request message for 'StartMigrationRequest' request.
|
|
2355
2581
|
*/
|
|
@@ -2808,7 +3034,7 @@ export declare namespace vmmigration_v1 {
|
|
|
2808
3034
|
*
|
|
2809
3035
|
* // Do the magic
|
|
2810
3036
|
* const res = await vmmigration.projects.locations.list({
|
|
2811
|
-
* // Optional.
|
|
3037
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2812
3038
|
* extraLocationTypes: 'placeholder-value',
|
|
2813
3039
|
* // 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).
|
|
2814
3040
|
* filter: 'placeholder-value',
|
|
@@ -2855,7 +3081,7 @@ export declare namespace vmmigration_v1 {
|
|
|
2855
3081
|
}
|
|
2856
3082
|
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2857
3083
|
/**
|
|
2858
|
-
* Optional.
|
|
3084
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2859
3085
|
*/
|
|
2860
3086
|
extraLocationTypes?: string[];
|
|
2861
3087
|
/**
|
|
@@ -3829,7 +4055,7 @@ export declare namespace vmmigration_v1 {
|
|
|
3829
4055
|
context: APIRequestContext;
|
|
3830
4056
|
constructor(context: APIRequestContext);
|
|
3831
4057
|
/**
|
|
3832
|
-
* Initiates the cancellation of a running
|
|
4058
|
+
* Initiates the cancellation of a running ImageImportJob.
|
|
3833
4059
|
* @example
|
|
3834
4060
|
* ```js
|
|
3835
4061
|
* // Before running the sample:
|
|
@@ -4309,13 +4535,16 @@ export declare namespace vmmigration_v1 {
|
|
|
4309
4535
|
* pageSize: 'placeholder-value',
|
|
4310
4536
|
* // The standard list page token.
|
|
4311
4537
|
* pageToken: 'placeholder-value',
|
|
4538
|
+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
4539
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
4312
4540
|
* });
|
|
4313
4541
|
* console.log(res.data);
|
|
4314
4542
|
*
|
|
4315
4543
|
* // Example response
|
|
4316
4544
|
* // {
|
|
4317
4545
|
* // "nextPageToken": "my_nextPageToken",
|
|
4318
|
-
* // "operations": []
|
|
4546
|
+
* // "operations": [],
|
|
4547
|
+
* // "unreachable": []
|
|
4319
4548
|
* // }
|
|
4320
4549
|
* }
|
|
4321
4550
|
*
|
|
@@ -4377,10 +4606,15 @@ export declare namespace vmmigration_v1 {
|
|
|
4377
4606
|
* The standard list page token.
|
|
4378
4607
|
*/
|
|
4379
4608
|
pageToken?: string;
|
|
4609
|
+
/**
|
|
4610
|
+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
4611
|
+
*/
|
|
4612
|
+
returnPartialSuccess?: boolean;
|
|
4380
4613
|
}
|
|
4381
4614
|
export class Resource$Projects$Locations$Sources {
|
|
4382
4615
|
context: APIRequestContext;
|
|
4383
4616
|
datacenterConnectors: Resource$Projects$Locations$Sources$Datacenterconnectors;
|
|
4617
|
+
diskMigrationJobs: Resource$Projects$Locations$Sources$Diskmigrationjobs;
|
|
4384
4618
|
migratingVms: Resource$Projects$Locations$Sources$Migratingvms;
|
|
4385
4619
|
utilizationReports: Resource$Projects$Locations$Sources$Utilizationreports;
|
|
4386
4620
|
constructor(context: APIRequestContext);
|
|
@@ -4604,6 +4838,77 @@ export declare namespace vmmigration_v1 {
|
|
|
4604
4838
|
fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchInventoryResponse>, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
4605
4839
|
fetchInventory(params: Params$Resource$Projects$Locations$Sources$Fetchinventory, callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
4606
4840
|
fetchInventory(callback: BodyResponseCallback<Schema$FetchInventoryResponse>): void;
|
|
4841
|
+
/**
|
|
4842
|
+
* 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.
|
|
4843
|
+
* @example
|
|
4844
|
+
* ```js
|
|
4845
|
+
* // Before running the sample:
|
|
4846
|
+
* // - Enable the API at:
|
|
4847
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
4848
|
+
* // - Login into gcloud by running:
|
|
4849
|
+
* // ```sh
|
|
4850
|
+
* // $ gcloud auth application-default login
|
|
4851
|
+
* // ```
|
|
4852
|
+
* // - Install the npm module by running:
|
|
4853
|
+
* // ```sh
|
|
4854
|
+
* // $ npm install googleapis
|
|
4855
|
+
* // ```
|
|
4856
|
+
*
|
|
4857
|
+
* const {google} = require('googleapis');
|
|
4858
|
+
* const vmmigration = google.vmmigration('v1');
|
|
4859
|
+
*
|
|
4860
|
+
* async function main() {
|
|
4861
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4862
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4863
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4864
|
+
* });
|
|
4865
|
+
*
|
|
4866
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4867
|
+
* const authClient = await auth.getClient();
|
|
4868
|
+
* google.options({auth: authClient});
|
|
4869
|
+
*
|
|
4870
|
+
* // Do the magic
|
|
4871
|
+
* const res =
|
|
4872
|
+
* await vmmigration.projects.locations.sources.fetchStorageInventory({
|
|
4873
|
+
* // 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.
|
|
4874
|
+
* forceRefresh: 'placeholder-value',
|
|
4875
|
+
* // Optional. The maximum number of VMs to return. The service may return fewer than this value.
|
|
4876
|
+
* pageSize: 'placeholder-value',
|
|
4877
|
+
* // 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.
|
|
4878
|
+
* pageToken: 'placeholder-value',
|
|
4879
|
+
* // Required. The name of the Source.
|
|
4880
|
+
* source: 'projects/my-project/locations/my-location/sources/my-source',
|
|
4881
|
+
* // Required. The type of the storage inventory to fetch.
|
|
4882
|
+
* type: 'placeholder-value',
|
|
4883
|
+
* });
|
|
4884
|
+
* console.log(res.data);
|
|
4885
|
+
*
|
|
4886
|
+
* // Example response
|
|
4887
|
+
* // {
|
|
4888
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4889
|
+
* // "resources": [],
|
|
4890
|
+
* // "updateTime": "my_updateTime"
|
|
4891
|
+
* // }
|
|
4892
|
+
* }
|
|
4893
|
+
*
|
|
4894
|
+
* main().catch(e => {
|
|
4895
|
+
* console.error(e);
|
|
4896
|
+
* throw e;
|
|
4897
|
+
* });
|
|
4898
|
+
*
|
|
4899
|
+
* ```
|
|
4900
|
+
*
|
|
4901
|
+
* @param params - Parameters for request
|
|
4902
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4903
|
+
* @param callback - Optional callback that handles the response.
|
|
4904
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4905
|
+
*/
|
|
4906
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4907
|
+
fetchStorageInventory(params?: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchStorageInventoryResponse>>;
|
|
4908
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4909
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, options: MethodOptions | BodyResponseCallback<Schema$FetchStorageInventoryResponse>, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
4910
|
+
fetchStorageInventory(params: Params$Resource$Projects$Locations$Sources$Fetchstorageinventory, callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
4911
|
+
fetchStorageInventory(callback: BodyResponseCallback<Schema$FetchStorageInventoryResponse>): void;
|
|
4607
4912
|
/**
|
|
4608
4913
|
* Gets details of a single Source.
|
|
4609
4914
|
* @example
|
|
@@ -4873,6 +5178,28 @@ export declare namespace vmmigration_v1 {
|
|
|
4873
5178
|
*/
|
|
4874
5179
|
source?: string;
|
|
4875
5180
|
}
|
|
5181
|
+
export interface Params$Resource$Projects$Locations$Sources$Fetchstorageinventory extends StandardParameters {
|
|
5182
|
+
/**
|
|
5183
|
+
* 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.
|
|
5184
|
+
*/
|
|
5185
|
+
forceRefresh?: boolean;
|
|
5186
|
+
/**
|
|
5187
|
+
* Optional. The maximum number of VMs to return. The service may return fewer than this value.
|
|
5188
|
+
*/
|
|
5189
|
+
pageSize?: number;
|
|
5190
|
+
/**
|
|
5191
|
+
* 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.
|
|
5192
|
+
*/
|
|
5193
|
+
pageToken?: string;
|
|
5194
|
+
/**
|
|
5195
|
+
* Required. The name of the Source.
|
|
5196
|
+
*/
|
|
5197
|
+
source?: string;
|
|
5198
|
+
/**
|
|
5199
|
+
* Required. The type of the storage inventory to fetch.
|
|
5200
|
+
*/
|
|
5201
|
+
type?: string;
|
|
5202
|
+
}
|
|
4876
5203
|
export interface Params$Resource$Projects$Locations$Sources$Get extends StandardParameters {
|
|
4877
5204
|
/**
|
|
4878
5205
|
* Required. The Source name.
|
|
@@ -5367,6 +5694,614 @@ export declare namespace vmmigration_v1 {
|
|
|
5367
5694
|
*/
|
|
5368
5695
|
requestBody?: Schema$UpgradeApplianceRequest;
|
|
5369
5696
|
}
|
|
5697
|
+
export class Resource$Projects$Locations$Sources$Diskmigrationjobs {
|
|
5698
|
+
context: APIRequestContext;
|
|
5699
|
+
constructor(context: APIRequestContext);
|
|
5700
|
+
/**
|
|
5701
|
+
* Cancels the disk migration job.
|
|
5702
|
+
* @example
|
|
5703
|
+
* ```js
|
|
5704
|
+
* // Before running the sample:
|
|
5705
|
+
* // - Enable the API at:
|
|
5706
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5707
|
+
* // - Login into gcloud by running:
|
|
5708
|
+
* // ```sh
|
|
5709
|
+
* // $ gcloud auth application-default login
|
|
5710
|
+
* // ```
|
|
5711
|
+
* // - Install the npm module by running:
|
|
5712
|
+
* // ```sh
|
|
5713
|
+
* // $ npm install googleapis
|
|
5714
|
+
* // ```
|
|
5715
|
+
*
|
|
5716
|
+
* const {google} = require('googleapis');
|
|
5717
|
+
* const vmmigration = google.vmmigration('v1');
|
|
5718
|
+
*
|
|
5719
|
+
* async function main() {
|
|
5720
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5721
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5722
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5723
|
+
* });
|
|
5724
|
+
*
|
|
5725
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5726
|
+
* const authClient = await auth.getClient();
|
|
5727
|
+
* google.options({auth: authClient});
|
|
5728
|
+
*
|
|
5729
|
+
* // Do the magic
|
|
5730
|
+
* const res =
|
|
5731
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.cancel({
|
|
5732
|
+
* // Required. The name of the DiskMigrationJob.
|
|
5733
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
5734
|
+
*
|
|
5735
|
+
* // Request body metadata
|
|
5736
|
+
* requestBody: {
|
|
5737
|
+
* // request body parameters
|
|
5738
|
+
* // {}
|
|
5739
|
+
* },
|
|
5740
|
+
* });
|
|
5741
|
+
* console.log(res.data);
|
|
5742
|
+
*
|
|
5743
|
+
* // Example response
|
|
5744
|
+
* // {
|
|
5745
|
+
* // "done": false,
|
|
5746
|
+
* // "error": {},
|
|
5747
|
+
* // "metadata": {},
|
|
5748
|
+
* // "name": "my_name",
|
|
5749
|
+
* // "response": {}
|
|
5750
|
+
* // }
|
|
5751
|
+
* }
|
|
5752
|
+
*
|
|
5753
|
+
* main().catch(e => {
|
|
5754
|
+
* console.error(e);
|
|
5755
|
+
* throw e;
|
|
5756
|
+
* });
|
|
5757
|
+
*
|
|
5758
|
+
* ```
|
|
5759
|
+
*
|
|
5760
|
+
* @param params - Parameters for request
|
|
5761
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5762
|
+
* @param callback - Optional callback that handles the response.
|
|
5763
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5764
|
+
*/
|
|
5765
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5766
|
+
cancel(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5767
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5768
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5769
|
+
cancel(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5770
|
+
cancel(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5771
|
+
/**
|
|
5772
|
+
* Creates a new disk migration job in a given Source.
|
|
5773
|
+
* @example
|
|
5774
|
+
* ```js
|
|
5775
|
+
* // Before running the sample:
|
|
5776
|
+
* // - Enable the API at:
|
|
5777
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5778
|
+
* // - Login into gcloud by running:
|
|
5779
|
+
* // ```sh
|
|
5780
|
+
* // $ gcloud auth application-default login
|
|
5781
|
+
* // ```
|
|
5782
|
+
* // - Install the npm module by running:
|
|
5783
|
+
* // ```sh
|
|
5784
|
+
* // $ npm install googleapis
|
|
5785
|
+
* // ```
|
|
5786
|
+
*
|
|
5787
|
+
* const {google} = require('googleapis');
|
|
5788
|
+
* const vmmigration = google.vmmigration('v1');
|
|
5789
|
+
*
|
|
5790
|
+
* async function main() {
|
|
5791
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5792
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5793
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5794
|
+
* });
|
|
5795
|
+
*
|
|
5796
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5797
|
+
* const authClient = await auth.getClient();
|
|
5798
|
+
* google.options({auth: authClient});
|
|
5799
|
+
*
|
|
5800
|
+
* // Do the magic
|
|
5801
|
+
* const res =
|
|
5802
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.create({
|
|
5803
|
+
* // 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.
|
|
5804
|
+
* diskMigrationJobId: 'placeholder-value',
|
|
5805
|
+
* // Required. The DiskMigrationJob's parent.
|
|
5806
|
+
* parent: 'projects/my-project/locations/my-location/sources/my-source',
|
|
5807
|
+
* // 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).
|
|
5808
|
+
* requestId: 'placeholder-value',
|
|
5809
|
+
*
|
|
5810
|
+
* // Request body metadata
|
|
5811
|
+
* requestBody: {
|
|
5812
|
+
* // request body parameters
|
|
5813
|
+
* // {
|
|
5814
|
+
* // "awsSourceDiskDetails": {},
|
|
5815
|
+
* // "createTime": "my_createTime",
|
|
5816
|
+
* // "errors": [],
|
|
5817
|
+
* // "name": "my_name",
|
|
5818
|
+
* // "state": "my_state",
|
|
5819
|
+
* // "steps": [],
|
|
5820
|
+
* // "targetDetails": {},
|
|
5821
|
+
* // "updateTime": "my_updateTime"
|
|
5822
|
+
* // }
|
|
5823
|
+
* },
|
|
5824
|
+
* });
|
|
5825
|
+
* console.log(res.data);
|
|
5826
|
+
*
|
|
5827
|
+
* // Example response
|
|
5828
|
+
* // {
|
|
5829
|
+
* // "done": false,
|
|
5830
|
+
* // "error": {},
|
|
5831
|
+
* // "metadata": {},
|
|
5832
|
+
* // "name": "my_name",
|
|
5833
|
+
* // "response": {}
|
|
5834
|
+
* // }
|
|
5835
|
+
* }
|
|
5836
|
+
*
|
|
5837
|
+
* main().catch(e => {
|
|
5838
|
+
* console.error(e);
|
|
5839
|
+
* throw e;
|
|
5840
|
+
* });
|
|
5841
|
+
*
|
|
5842
|
+
* ```
|
|
5843
|
+
*
|
|
5844
|
+
* @param params - Parameters for request
|
|
5845
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5846
|
+
* @param callback - Optional callback that handles the response.
|
|
5847
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5848
|
+
*/
|
|
5849
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5850
|
+
create(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5851
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5852
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5853
|
+
create(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5854
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5855
|
+
/**
|
|
5856
|
+
* Deletes a single DiskMigrationJob.
|
|
5857
|
+
* @example
|
|
5858
|
+
* ```js
|
|
5859
|
+
* // Before running the sample:
|
|
5860
|
+
* // - Enable the API at:
|
|
5861
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5862
|
+
* // - Login into gcloud by running:
|
|
5863
|
+
* // ```sh
|
|
5864
|
+
* // $ gcloud auth application-default login
|
|
5865
|
+
* // ```
|
|
5866
|
+
* // - Install the npm module by running:
|
|
5867
|
+
* // ```sh
|
|
5868
|
+
* // $ npm install googleapis
|
|
5869
|
+
* // ```
|
|
5870
|
+
*
|
|
5871
|
+
* const {google} = require('googleapis');
|
|
5872
|
+
* const vmmigration = google.vmmigration('v1');
|
|
5873
|
+
*
|
|
5874
|
+
* async function main() {
|
|
5875
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5876
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5877
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5878
|
+
* });
|
|
5879
|
+
*
|
|
5880
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5881
|
+
* const authClient = await auth.getClient();
|
|
5882
|
+
* google.options({auth: authClient});
|
|
5883
|
+
*
|
|
5884
|
+
* // Do the magic
|
|
5885
|
+
* const res =
|
|
5886
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.delete({
|
|
5887
|
+
* // Required. The name of the DiskMigrationJob.
|
|
5888
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
5889
|
+
* });
|
|
5890
|
+
* console.log(res.data);
|
|
5891
|
+
*
|
|
5892
|
+
* // Example response
|
|
5893
|
+
* // {
|
|
5894
|
+
* // "done": false,
|
|
5895
|
+
* // "error": {},
|
|
5896
|
+
* // "metadata": {},
|
|
5897
|
+
* // "name": "my_name",
|
|
5898
|
+
* // "response": {}
|
|
5899
|
+
* // }
|
|
5900
|
+
* }
|
|
5901
|
+
*
|
|
5902
|
+
* main().catch(e => {
|
|
5903
|
+
* console.error(e);
|
|
5904
|
+
* throw e;
|
|
5905
|
+
* });
|
|
5906
|
+
*
|
|
5907
|
+
* ```
|
|
5908
|
+
*
|
|
5909
|
+
* @param params - Parameters for request
|
|
5910
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5911
|
+
* @param callback - Optional callback that handles the response.
|
|
5912
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5913
|
+
*/
|
|
5914
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5915
|
+
delete(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5916
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5917
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5918
|
+
delete(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5919
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5920
|
+
/**
|
|
5921
|
+
* Gets details of a single DiskMigrationJob.
|
|
5922
|
+
* @example
|
|
5923
|
+
* ```js
|
|
5924
|
+
* // Before running the sample:
|
|
5925
|
+
* // - Enable the API at:
|
|
5926
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5927
|
+
* // - Login into gcloud by running:
|
|
5928
|
+
* // ```sh
|
|
5929
|
+
* // $ gcloud auth application-default login
|
|
5930
|
+
* // ```
|
|
5931
|
+
* // - Install the npm module by running:
|
|
5932
|
+
* // ```sh
|
|
5933
|
+
* // $ npm install googleapis
|
|
5934
|
+
* // ```
|
|
5935
|
+
*
|
|
5936
|
+
* const {google} = require('googleapis');
|
|
5937
|
+
* const vmmigration = google.vmmigration('v1');
|
|
5938
|
+
*
|
|
5939
|
+
* async function main() {
|
|
5940
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5941
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5942
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5943
|
+
* });
|
|
5944
|
+
*
|
|
5945
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5946
|
+
* const authClient = await auth.getClient();
|
|
5947
|
+
* google.options({auth: authClient});
|
|
5948
|
+
*
|
|
5949
|
+
* // Do the magic
|
|
5950
|
+
* const res =
|
|
5951
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.get({
|
|
5952
|
+
* // Required. The name of the DiskMigrationJob.
|
|
5953
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
5954
|
+
* });
|
|
5955
|
+
* console.log(res.data);
|
|
5956
|
+
*
|
|
5957
|
+
* // Example response
|
|
5958
|
+
* // {
|
|
5959
|
+
* // "awsSourceDiskDetails": {},
|
|
5960
|
+
* // "createTime": "my_createTime",
|
|
5961
|
+
* // "errors": [],
|
|
5962
|
+
* // "name": "my_name",
|
|
5963
|
+
* // "state": "my_state",
|
|
5964
|
+
* // "steps": [],
|
|
5965
|
+
* // "targetDetails": {},
|
|
5966
|
+
* // "updateTime": "my_updateTime"
|
|
5967
|
+
* // }
|
|
5968
|
+
* }
|
|
5969
|
+
*
|
|
5970
|
+
* main().catch(e => {
|
|
5971
|
+
* console.error(e);
|
|
5972
|
+
* throw e;
|
|
5973
|
+
* });
|
|
5974
|
+
*
|
|
5975
|
+
* ```
|
|
5976
|
+
*
|
|
5977
|
+
* @param params - Parameters for request
|
|
5978
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5979
|
+
* @param callback - Optional callback that handles the response.
|
|
5980
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5981
|
+
*/
|
|
5982
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5983
|
+
get(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DiskMigrationJob>>;
|
|
5984
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5985
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, options: MethodOptions | BodyResponseCallback<Schema$DiskMigrationJob>, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
5986
|
+
get(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get, callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
5987
|
+
get(callback: BodyResponseCallback<Schema$DiskMigrationJob>): void;
|
|
5988
|
+
/**
|
|
5989
|
+
* Lists DiskMigrationJobs in a given Source.
|
|
5990
|
+
* @example
|
|
5991
|
+
* ```js
|
|
5992
|
+
* // Before running the sample:
|
|
5993
|
+
* // - Enable the API at:
|
|
5994
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
5995
|
+
* // - Login into gcloud by running:
|
|
5996
|
+
* // ```sh
|
|
5997
|
+
* // $ gcloud auth application-default login
|
|
5998
|
+
* // ```
|
|
5999
|
+
* // - Install the npm module by running:
|
|
6000
|
+
* // ```sh
|
|
6001
|
+
* // $ npm install googleapis
|
|
6002
|
+
* // ```
|
|
6003
|
+
*
|
|
6004
|
+
* const {google} = require('googleapis');
|
|
6005
|
+
* const vmmigration = google.vmmigration('v1');
|
|
6006
|
+
*
|
|
6007
|
+
* async function main() {
|
|
6008
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6009
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6010
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6011
|
+
* });
|
|
6012
|
+
*
|
|
6013
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6014
|
+
* const authClient = await auth.getClient();
|
|
6015
|
+
* google.options({auth: authClient});
|
|
6016
|
+
*
|
|
6017
|
+
* // Do the magic
|
|
6018
|
+
* const res =
|
|
6019
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.list({
|
|
6020
|
+
* // Optional. The filter request (according to AIP-160).
|
|
6021
|
+
* filter: 'placeholder-value',
|
|
6022
|
+
* // Optional. Ordering of the result list.
|
|
6023
|
+
* orderBy: 'placeholder-value',
|
|
6024
|
+
* // 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.
|
|
6025
|
+
* pageSize: 'placeholder-value',
|
|
6026
|
+
* // 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.
|
|
6027
|
+
* pageToken: 'placeholder-value',
|
|
6028
|
+
* // Required. The parent, which owns this collection of DiskMigrationJobs.
|
|
6029
|
+
* parent: 'projects/my-project/locations/my-location/sources/my-source',
|
|
6030
|
+
* });
|
|
6031
|
+
* console.log(res.data);
|
|
6032
|
+
*
|
|
6033
|
+
* // Example response
|
|
6034
|
+
* // {
|
|
6035
|
+
* // "diskMigrationJobs": [],
|
|
6036
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6037
|
+
* // "unreachable": []
|
|
6038
|
+
* // }
|
|
6039
|
+
* }
|
|
6040
|
+
*
|
|
6041
|
+
* main().catch(e => {
|
|
6042
|
+
* console.error(e);
|
|
6043
|
+
* throw e;
|
|
6044
|
+
* });
|
|
6045
|
+
*
|
|
6046
|
+
* ```
|
|
6047
|
+
*
|
|
6048
|
+
* @param params - Parameters for request
|
|
6049
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6050
|
+
* @param callback - Optional callback that handles the response.
|
|
6051
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6052
|
+
*/
|
|
6053
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6054
|
+
list(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDiskMigrationJobsResponse>>;
|
|
6055
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6056
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6057
|
+
list(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List, callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6058
|
+
list(callback: BodyResponseCallback<Schema$ListDiskMigrationJobsResponse>): void;
|
|
6059
|
+
/**
|
|
6060
|
+
* Updates the parameters of a single DiskMigrationJob.
|
|
6061
|
+
* @example
|
|
6062
|
+
* ```js
|
|
6063
|
+
* // Before running the sample:
|
|
6064
|
+
* // - Enable the API at:
|
|
6065
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6066
|
+
* // - Login into gcloud by running:
|
|
6067
|
+
* // ```sh
|
|
6068
|
+
* // $ gcloud auth application-default login
|
|
6069
|
+
* // ```
|
|
6070
|
+
* // - Install the npm module by running:
|
|
6071
|
+
* // ```sh
|
|
6072
|
+
* // $ npm install googleapis
|
|
6073
|
+
* // ```
|
|
6074
|
+
*
|
|
6075
|
+
* const {google} = require('googleapis');
|
|
6076
|
+
* const vmmigration = google.vmmigration('v1');
|
|
6077
|
+
*
|
|
6078
|
+
* async function main() {
|
|
6079
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6080
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6081
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6082
|
+
* });
|
|
6083
|
+
*
|
|
6084
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6085
|
+
* const authClient = await auth.getClient();
|
|
6086
|
+
* google.options({auth: authClient});
|
|
6087
|
+
*
|
|
6088
|
+
* // Do the magic
|
|
6089
|
+
* const res =
|
|
6090
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.patch({
|
|
6091
|
+
* // Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
6092
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6093
|
+
* // 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).
|
|
6094
|
+
* requestId: 'placeholder-value',
|
|
6095
|
+
* // 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.
|
|
6096
|
+
* updateMask: 'placeholder-value',
|
|
6097
|
+
*
|
|
6098
|
+
* // Request body metadata
|
|
6099
|
+
* requestBody: {
|
|
6100
|
+
* // request body parameters
|
|
6101
|
+
* // {
|
|
6102
|
+
* // "awsSourceDiskDetails": {},
|
|
6103
|
+
* // "createTime": "my_createTime",
|
|
6104
|
+
* // "errors": [],
|
|
6105
|
+
* // "name": "my_name",
|
|
6106
|
+
* // "state": "my_state",
|
|
6107
|
+
* // "steps": [],
|
|
6108
|
+
* // "targetDetails": {},
|
|
6109
|
+
* // "updateTime": "my_updateTime"
|
|
6110
|
+
* // }
|
|
6111
|
+
* },
|
|
6112
|
+
* });
|
|
6113
|
+
* console.log(res.data);
|
|
6114
|
+
*
|
|
6115
|
+
* // Example response
|
|
6116
|
+
* // {
|
|
6117
|
+
* // "done": false,
|
|
6118
|
+
* // "error": {},
|
|
6119
|
+
* // "metadata": {},
|
|
6120
|
+
* // "name": "my_name",
|
|
6121
|
+
* // "response": {}
|
|
6122
|
+
* // }
|
|
6123
|
+
* }
|
|
6124
|
+
*
|
|
6125
|
+
* main().catch(e => {
|
|
6126
|
+
* console.error(e);
|
|
6127
|
+
* throw e;
|
|
6128
|
+
* });
|
|
6129
|
+
*
|
|
6130
|
+
* ```
|
|
6131
|
+
*
|
|
6132
|
+
* @param params - Parameters for request
|
|
6133
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6134
|
+
* @param callback - Optional callback that handles the response.
|
|
6135
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6136
|
+
*/
|
|
6137
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6138
|
+
patch(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6139
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6140
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6141
|
+
patch(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6142
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6143
|
+
/**
|
|
6144
|
+
* Runs the disk migration job.
|
|
6145
|
+
* @example
|
|
6146
|
+
* ```js
|
|
6147
|
+
* // Before running the sample:
|
|
6148
|
+
* // - Enable the API at:
|
|
6149
|
+
* // https://console.developers.google.com/apis/api/vmmigration.googleapis.com
|
|
6150
|
+
* // - Login into gcloud by running:
|
|
6151
|
+
* // ```sh
|
|
6152
|
+
* // $ gcloud auth application-default login
|
|
6153
|
+
* // ```
|
|
6154
|
+
* // - Install the npm module by running:
|
|
6155
|
+
* // ```sh
|
|
6156
|
+
* // $ npm install googleapis
|
|
6157
|
+
* // ```
|
|
6158
|
+
*
|
|
6159
|
+
* const {google} = require('googleapis');
|
|
6160
|
+
* const vmmigration = google.vmmigration('v1');
|
|
6161
|
+
*
|
|
6162
|
+
* async function main() {
|
|
6163
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6164
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6165
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
6166
|
+
* });
|
|
6167
|
+
*
|
|
6168
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6169
|
+
* const authClient = await auth.getClient();
|
|
6170
|
+
* google.options({auth: authClient});
|
|
6171
|
+
*
|
|
6172
|
+
* // Do the magic
|
|
6173
|
+
* const res =
|
|
6174
|
+
* await vmmigration.projects.locations.sources.diskMigrationJobs.run({
|
|
6175
|
+
* // Required. The name of the DiskMigrationJob.
|
|
6176
|
+
* name: 'projects/my-project/locations/my-location/sources/my-source/diskMigrationJobs/my-diskMigrationJob',
|
|
6177
|
+
*
|
|
6178
|
+
* // Request body metadata
|
|
6179
|
+
* requestBody: {
|
|
6180
|
+
* // request body parameters
|
|
6181
|
+
* // {}
|
|
6182
|
+
* },
|
|
6183
|
+
* });
|
|
6184
|
+
* console.log(res.data);
|
|
6185
|
+
*
|
|
6186
|
+
* // Example response
|
|
6187
|
+
* // {
|
|
6188
|
+
* // "done": false,
|
|
6189
|
+
* // "error": {},
|
|
6190
|
+
* // "metadata": {},
|
|
6191
|
+
* // "name": "my_name",
|
|
6192
|
+
* // "response": {}
|
|
6193
|
+
* // }
|
|
6194
|
+
* }
|
|
6195
|
+
*
|
|
6196
|
+
* main().catch(e => {
|
|
6197
|
+
* console.error(e);
|
|
6198
|
+
* throw e;
|
|
6199
|
+
* });
|
|
6200
|
+
*
|
|
6201
|
+
* ```
|
|
6202
|
+
*
|
|
6203
|
+
* @param params - Parameters for request
|
|
6204
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6205
|
+
* @param callback - Optional callback that handles the response.
|
|
6206
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6207
|
+
*/
|
|
6208
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6209
|
+
run(params?: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6210
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6211
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6212
|
+
run(params: Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6213
|
+
run(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6214
|
+
}
|
|
6215
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Cancel extends StandardParameters {
|
|
6216
|
+
/**
|
|
6217
|
+
* Required. The name of the DiskMigrationJob.
|
|
6218
|
+
*/
|
|
6219
|
+
name?: string;
|
|
6220
|
+
/**
|
|
6221
|
+
* Request body metadata
|
|
6222
|
+
*/
|
|
6223
|
+
requestBody?: Schema$CancelDiskMigrationJobRequest;
|
|
6224
|
+
}
|
|
6225
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Create extends StandardParameters {
|
|
6226
|
+
/**
|
|
6227
|
+
* 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.
|
|
6228
|
+
*/
|
|
6229
|
+
diskMigrationJobId?: string;
|
|
6230
|
+
/**
|
|
6231
|
+
* Required. The DiskMigrationJob's parent.
|
|
6232
|
+
*/
|
|
6233
|
+
parent?: string;
|
|
6234
|
+
/**
|
|
6235
|
+
* 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).
|
|
6236
|
+
*/
|
|
6237
|
+
requestId?: string;
|
|
6238
|
+
/**
|
|
6239
|
+
* Request body metadata
|
|
6240
|
+
*/
|
|
6241
|
+
requestBody?: Schema$DiskMigrationJob;
|
|
6242
|
+
}
|
|
6243
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Delete extends StandardParameters {
|
|
6244
|
+
/**
|
|
6245
|
+
* Required. The name of the DiskMigrationJob.
|
|
6246
|
+
*/
|
|
6247
|
+
name?: string;
|
|
6248
|
+
}
|
|
6249
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Get extends StandardParameters {
|
|
6250
|
+
/**
|
|
6251
|
+
* Required. The name of the DiskMigrationJob.
|
|
6252
|
+
*/
|
|
6253
|
+
name?: string;
|
|
6254
|
+
}
|
|
6255
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$List extends StandardParameters {
|
|
6256
|
+
/**
|
|
6257
|
+
* Optional. The filter request (according to AIP-160).
|
|
6258
|
+
*/
|
|
6259
|
+
filter?: string;
|
|
6260
|
+
/**
|
|
6261
|
+
* Optional. Ordering of the result list.
|
|
6262
|
+
*/
|
|
6263
|
+
orderBy?: string;
|
|
6264
|
+
/**
|
|
6265
|
+
* 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.
|
|
6266
|
+
*/
|
|
6267
|
+
pageSize?: number;
|
|
6268
|
+
/**
|
|
6269
|
+
* 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.
|
|
6270
|
+
*/
|
|
6271
|
+
pageToken?: string;
|
|
6272
|
+
/**
|
|
6273
|
+
* Required. The parent, which owns this collection of DiskMigrationJobs.
|
|
6274
|
+
*/
|
|
6275
|
+
parent?: string;
|
|
6276
|
+
}
|
|
6277
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Patch extends StandardParameters {
|
|
6278
|
+
/**
|
|
6279
|
+
* Output only. Identifier. The identifier of the DiskMigrationJob.
|
|
6280
|
+
*/
|
|
6281
|
+
name?: string;
|
|
6282
|
+
/**
|
|
6283
|
+
* 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).
|
|
6284
|
+
*/
|
|
6285
|
+
requestId?: string;
|
|
6286
|
+
/**
|
|
6287
|
+
* 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.
|
|
6288
|
+
*/
|
|
6289
|
+
updateMask?: string;
|
|
6290
|
+
/**
|
|
6291
|
+
* Request body metadata
|
|
6292
|
+
*/
|
|
6293
|
+
requestBody?: Schema$DiskMigrationJob;
|
|
6294
|
+
}
|
|
6295
|
+
export interface Params$Resource$Projects$Locations$Sources$Diskmigrationjobs$Run extends StandardParameters {
|
|
6296
|
+
/**
|
|
6297
|
+
* Required. The name of the DiskMigrationJob.
|
|
6298
|
+
*/
|
|
6299
|
+
name?: string;
|
|
6300
|
+
/**
|
|
6301
|
+
* Request body metadata
|
|
6302
|
+
*/
|
|
6303
|
+
requestBody?: Schema$RunDiskMigrationJobRequest;
|
|
6304
|
+
}
|
|
5370
6305
|
export class Resource$Projects$Locations$Sources$Migratingvms {
|
|
5371
6306
|
context: APIRequestContext;
|
|
5372
6307
|
cloneJobs: Resource$Projects$Locations$Sources$Migratingvms$Clonejobs;
|