@googleapis/vmmigration 6.0.0 → 7.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/v1alpha1.ts CHANGED
@@ -447,7 +447,7 @@ export namespace vmmigration_v1alpha1 {
447
447
  vmCapabilitiesInfo?: Schema$VmCapabilities;
448
448
  }
449
449
  /**
450
- * AwsVmDetails describes a VM in AWS.
450
+ * AzureVmDetails describes a VM in Azure.
451
451
  */
452
452
  export interface Schema$AzureVmDetails {
453
453
  /**
@@ -545,6 +545,10 @@ export namespace vmmigration_v1alpha1 {
545
545
  * Request message for 'CancelCutoverJob' request.
546
546
  */
547
547
  export interface Schema$CancelCutoverJobRequest {}
548
+ /**
549
+ * Request message for 'CancelImageImportJob' request.
550
+ */
551
+ export interface Schema$CancelImageImportJobRequest {}
548
552
  /**
549
553
  * The request message for Operations.CancelOperation.
550
554
  */
@@ -866,6 +870,10 @@ export namespace vmmigration_v1alpha1 {
866
870
  */
867
871
  restartType?: string | null;
868
872
  }
873
+ /**
874
+ * CreatingImageStep contains specific step details.
875
+ */
876
+ export interface Schema$CreatingImageStep {}
869
877
  /**
870
878
  * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
871
879
  */
@@ -1055,6 +1063,10 @@ export namespace vmmigration_v1alpha1 {
1055
1063
  */
1056
1064
  version?: string | null;
1057
1065
  }
1066
+ /**
1067
+ * Mentions that the image import is not using OS adaptation process.
1068
+ */
1069
+ export interface Schema$DataDiskImageImport {}
1058
1070
  /**
1059
1071
  * A message describing a data disk.
1060
1072
  */
@@ -1081,6 +1093,51 @@ export namespace vmmigration_v1alpha1 {
1081
1093
  */
1082
1094
  sourceImage?: string | null;
1083
1095
  }
1096
+ /**
1097
+ * The target details of the image resource that will be created by the import job.
1098
+ */
1099
+ export interface Schema$DiskImageTargetDetails {
1100
+ /**
1101
+ * Optional. Additional licenses to assign to the image.
1102
+ */
1103
+ additionalLicenses?: string[] | null;
1104
+ /**
1105
+ * Optional. Use to skip OS adaptation process.
1106
+ */
1107
+ dataDiskImageImport?: Schema$DataDiskImageImport;
1108
+ /**
1109
+ * Optional. An optional description of the image.
1110
+ */
1111
+ description?: string | null;
1112
+ /**
1113
+ * Optional. Immutable. The encryption to apply to the image.
1114
+ */
1115
+ encryption?: Schema$Encryption;
1116
+ /**
1117
+ * Optional. The name of the image family to which the new image belongs.
1118
+ */
1119
+ familyName?: string | null;
1120
+ /**
1121
+ * Required. The name of the image to be created.
1122
+ */
1123
+ imageName?: string | null;
1124
+ /**
1125
+ * Optional. A map of labels to associate with the image.
1126
+ */
1127
+ labels?: {[key: string]: string} | null;
1128
+ /**
1129
+ * Optional. Use to set the parameters relevant for the OS adaptation process.
1130
+ */
1131
+ osAdaptationParameters?: Schema$ImageImportOsAdaptationParameters;
1132
+ /**
1133
+ * Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected.
1134
+ */
1135
+ singleRegionStorage?: boolean | null;
1136
+ /**
1137
+ * Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.
1138
+ */
1139
+ targetProject?: string | null;
1140
+ }
1084
1141
  /**
1085
1142
  * Details for a disk only migration.
1086
1143
  */
@@ -1230,6 +1287,126 @@ export namespace vmmigration_v1alpha1 {
1230
1287
  */
1231
1288
  updateTime?: string | null;
1232
1289
  }
1290
+ /**
1291
+ * ImageImport describes the configuration of the image import to run.
1292
+ */
1293
+ export interface Schema$ImageImport {
1294
+ /**
1295
+ * Immutable. The path to the Cloud Storage file from which the image should be imported.
1296
+ */
1297
+ cloudStorageUri?: string | null;
1298
+ /**
1299
+ * Output only. The time the image import was created.
1300
+ */
1301
+ createTime?: string | null;
1302
+ /**
1303
+ * Immutable. Target details for importing a disk image, will be used by ImageImportJob.
1304
+ */
1305
+ diskImageTargetDefaults?: Schema$DiskImageTargetDetails;
1306
+ /**
1307
+ * Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.
1308
+ */
1309
+ encryption?: Schema$Encryption;
1310
+ /**
1311
+ * Output only. The resource path of the ImageImport.
1312
+ */
1313
+ name?: string | null;
1314
+ /**
1315
+ * Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.
1316
+ */
1317
+ recentImageImportJobs?: Schema$ImageImportJob[];
1318
+ }
1319
+ /**
1320
+ * ImageImportJob describes the progress and result of an image import.
1321
+ */
1322
+ export interface Schema$ImageImportJob {
1323
+ /**
1324
+ * Output only. The path to the Cloud Storage file from which the image should be imported.
1325
+ */
1326
+ cloudStorageUri?: string | null;
1327
+ /**
1328
+ * Output only. The resource paths of the resources created by the image import job.
1329
+ */
1330
+ createdResources?: string[] | null;
1331
+ /**
1332
+ * Output only. The time the image import was created (as an API call, not when it was actually created in the target).
1333
+ */
1334
+ createTime?: string | null;
1335
+ /**
1336
+ * Output only. Target details used to import a disk image.
1337
+ */
1338
+ diskImageTargetDetails?: Schema$DiskImageTargetDetails;
1339
+ /**
1340
+ * Output only. The time the image import was ended.
1341
+ */
1342
+ endTime?: string | null;
1343
+ /**
1344
+ * Output only. Provides details on the error that led to the image import state in case of an error.
1345
+ */
1346
+ errors?: Schema$Status[];
1347
+ /**
1348
+ * Output only. The resource path of the ImageImportJob.
1349
+ */
1350
+ name?: string | null;
1351
+ /**
1352
+ * Output only. The state of the image import.
1353
+ */
1354
+ state?: string | null;
1355
+ /**
1356
+ * Output only. The image import steps list representing its progress.
1357
+ */
1358
+ steps?: Schema$ImageImportStep[];
1359
+ /**
1360
+ * Output only. Warnings that occurred during the image import.
1361
+ */
1362
+ warnings?: Schema$MigrationWarning[];
1363
+ }
1364
+ /**
1365
+ * Parameters affecting the OS adaptation process.
1366
+ */
1367
+ export interface Schema$ImageImportOsAdaptationParameters {
1368
+ /**
1369
+ * Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID).
1370
+ */
1371
+ generalize?: boolean | null;
1372
+ /**
1373
+ * Optional. Choose which type of license to apply to the imported image.
1374
+ */
1375
+ licenseType?: string | null;
1376
+ }
1377
+ /**
1378
+ * ImageImportStep holds information about the image import step progress.
1379
+ */
1380
+ export interface Schema$ImageImportStep {
1381
+ /**
1382
+ * Adapting OS step.
1383
+ */
1384
+ adaptingOs?: Schema$AdaptingOSStep;
1385
+ /**
1386
+ * Creating image step.
1387
+ */
1388
+ creatingImage?: Schema$CreatingImageStep;
1389
+ /**
1390
+ * Output only. The time the step has ended.
1391
+ */
1392
+ endTime?: string | null;
1393
+ /**
1394
+ * Initializing step.
1395
+ */
1396
+ initializing?: Schema$InitializingImageImportStep;
1397
+ /**
1398
+ * Loading source files step.
1399
+ */
1400
+ loadingSourceFiles?: Schema$LoadingImageSourceFilesStep;
1401
+ /**
1402
+ * Output only. The time the step has started.
1403
+ */
1404
+ startTime?: string | null;
1405
+ }
1406
+ /**
1407
+ * InitializingImageImportStep contains specific step details.
1408
+ */
1409
+ export interface Schema$InitializingImageImportStep {}
1233
1410
  /**
1234
1411
  * InitializingReplicationStep contains specific step details.
1235
1412
  */
@@ -1319,6 +1496,40 @@ export namespace vmmigration_v1alpha1 {
1319
1496
  */
1320
1497
  unreachable?: string[] | null;
1321
1498
  }
1499
+ /**
1500
+ * Response message for 'ListImageImportJobs' call.
1501
+ */
1502
+ export interface Schema$ListImageImportJobsResponse {
1503
+ /**
1504
+ * Output only. The list of target response.
1505
+ */
1506
+ imageImportJobs?: Schema$ImageImportJob[];
1507
+ /**
1508
+ * 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.
1509
+ */
1510
+ nextPageToken?: string | null;
1511
+ /**
1512
+ * Output only. Locations that could not be reached.
1513
+ */
1514
+ unreachable?: string[] | null;
1515
+ }
1516
+ /**
1517
+ * Response message for 'ListImageImports' call.
1518
+ */
1519
+ export interface Schema$ListImageImportsResponse {
1520
+ /**
1521
+ * Output only. The list of target response.
1522
+ */
1523
+ imageImports?: Schema$ImageImport[];
1524
+ /**
1525
+ * 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.
1526
+ */
1527
+ nextPageToken?: string | null;
1528
+ /**
1529
+ * Output only. Locations that could not be reached.
1530
+ */
1531
+ unreachable?: string[] | null;
1532
+ }
1322
1533
  /**
1323
1534
  * The response message for Locations.ListLocations.
1324
1535
  */
@@ -1430,6 +1641,10 @@ export namespace vmmigration_v1alpha1 {
1430
1641
  */
1431
1642
  utilizationReports?: Schema$UtilizationReport[];
1432
1643
  }
1644
+ /**
1645
+ * LoadingImageSourceFilesStep contains specific step details.
1646
+ */
1647
+ export interface Schema$LoadingImageSourceFilesStep {}
1433
1648
  /**
1434
1649
  * Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
1435
1650
  */
@@ -2446,12 +2661,16 @@ export namespace vmmigration_v1alpha1 {
2446
2661
  export class Resource$Projects$Locations {
2447
2662
  context: APIRequestContext;
2448
2663
  groups: Resource$Projects$Locations$Groups;
2664
+ imageImports: Resource$Projects$Locations$Imageimports;
2449
2665
  operations: Resource$Projects$Locations$Operations;
2450
2666
  sources: Resource$Projects$Locations$Sources;
2451
2667
  targetProjects: Resource$Projects$Locations$Targetprojects;
2452
2668
  constructor(context: APIRequestContext) {
2453
2669
  this.context = context;
2454
2670
  this.groups = new Resource$Projects$Locations$Groups(this.context);
2671
+ this.imageImports = new Resource$Projects$Locations$Imageimports(
2672
+ this.context
2673
+ );
2455
2674
  this.operations = new Resource$Projects$Locations$Operations(
2456
2675
  this.context
2457
2676
  );
@@ -3385,6 +3604,745 @@ export namespace vmmigration_v1alpha1 {
3385
3604
  requestBody?: Schema$RemoveGroupMigrationRequest;
3386
3605
  }
3387
3606
 
3607
+ export class Resource$Projects$Locations$Imageimports {
3608
+ context: APIRequestContext;
3609
+ imageImportJobs: Resource$Projects$Locations$Imageimports$Imageimportjobs;
3610
+ constructor(context: APIRequestContext) {
3611
+ this.context = context;
3612
+ this.imageImportJobs =
3613
+ new Resource$Projects$Locations$Imageimports$Imageimportjobs(
3614
+ this.context
3615
+ );
3616
+ }
3617
+
3618
+ /**
3619
+ * Creates a new ImageImport in a given project.
3620
+ *
3621
+ * @param params - Parameters for request
3622
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3623
+ * @param callback - Optional callback that handles the response.
3624
+ * @returns A promise if used with async/await, or void if used with a callback.
3625
+ */
3626
+ create(
3627
+ params: Params$Resource$Projects$Locations$Imageimports$Create,
3628
+ options: StreamMethodOptions
3629
+ ): GaxiosPromise<Readable>;
3630
+ create(
3631
+ params?: Params$Resource$Projects$Locations$Imageimports$Create,
3632
+ options?: MethodOptions
3633
+ ): GaxiosPromise<Schema$Operation>;
3634
+ create(
3635
+ params: Params$Resource$Projects$Locations$Imageimports$Create,
3636
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3637
+ callback: BodyResponseCallback<Readable>
3638
+ ): void;
3639
+ create(
3640
+ params: Params$Resource$Projects$Locations$Imageimports$Create,
3641
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3642
+ callback: BodyResponseCallback<Schema$Operation>
3643
+ ): void;
3644
+ create(
3645
+ params: Params$Resource$Projects$Locations$Imageimports$Create,
3646
+ callback: BodyResponseCallback<Schema$Operation>
3647
+ ): void;
3648
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
3649
+ create(
3650
+ paramsOrCallback?:
3651
+ | Params$Resource$Projects$Locations$Imageimports$Create
3652
+ | BodyResponseCallback<Schema$Operation>
3653
+ | BodyResponseCallback<Readable>,
3654
+ optionsOrCallback?:
3655
+ | MethodOptions
3656
+ | StreamMethodOptions
3657
+ | BodyResponseCallback<Schema$Operation>
3658
+ | BodyResponseCallback<Readable>,
3659
+ callback?:
3660
+ | BodyResponseCallback<Schema$Operation>
3661
+ | BodyResponseCallback<Readable>
3662
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3663
+ let params = (paramsOrCallback ||
3664
+ {}) as Params$Resource$Projects$Locations$Imageimports$Create;
3665
+ let options = (optionsOrCallback || {}) as MethodOptions;
3666
+
3667
+ if (typeof paramsOrCallback === 'function') {
3668
+ callback = paramsOrCallback;
3669
+ params = {} as Params$Resource$Projects$Locations$Imageimports$Create;
3670
+ options = {};
3671
+ }
3672
+
3673
+ if (typeof optionsOrCallback === 'function') {
3674
+ callback = optionsOrCallback;
3675
+ options = {};
3676
+ }
3677
+
3678
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
3679
+ const parameters = {
3680
+ options: Object.assign(
3681
+ {
3682
+ url: (rootUrl + '/v1alpha1/{+parent}/imageImports').replace(
3683
+ /([^:]\/)\/+/g,
3684
+ '$1'
3685
+ ),
3686
+ method: 'POST',
3687
+ },
3688
+ options
3689
+ ),
3690
+ params,
3691
+ requiredParams: ['parent'],
3692
+ pathParams: ['parent'],
3693
+ context: this.context,
3694
+ };
3695
+ if (callback) {
3696
+ createAPIRequest<Schema$Operation>(
3697
+ parameters,
3698
+ callback as BodyResponseCallback<unknown>
3699
+ );
3700
+ } else {
3701
+ return createAPIRequest<Schema$Operation>(parameters);
3702
+ }
3703
+ }
3704
+
3705
+ /**
3706
+ * Deletes a single ImageImport.
3707
+ *
3708
+ * @param params - Parameters for request
3709
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3710
+ * @param callback - Optional callback that handles the response.
3711
+ * @returns A promise if used with async/await, or void if used with a callback.
3712
+ */
3713
+ delete(
3714
+ params: Params$Resource$Projects$Locations$Imageimports$Delete,
3715
+ options: StreamMethodOptions
3716
+ ): GaxiosPromise<Readable>;
3717
+ delete(
3718
+ params?: Params$Resource$Projects$Locations$Imageimports$Delete,
3719
+ options?: MethodOptions
3720
+ ): GaxiosPromise<Schema$Operation>;
3721
+ delete(
3722
+ params: Params$Resource$Projects$Locations$Imageimports$Delete,
3723
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3724
+ callback: BodyResponseCallback<Readable>
3725
+ ): void;
3726
+ delete(
3727
+ params: Params$Resource$Projects$Locations$Imageimports$Delete,
3728
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3729
+ callback: BodyResponseCallback<Schema$Operation>
3730
+ ): void;
3731
+ delete(
3732
+ params: Params$Resource$Projects$Locations$Imageimports$Delete,
3733
+ callback: BodyResponseCallback<Schema$Operation>
3734
+ ): void;
3735
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
3736
+ delete(
3737
+ paramsOrCallback?:
3738
+ | Params$Resource$Projects$Locations$Imageimports$Delete
3739
+ | BodyResponseCallback<Schema$Operation>
3740
+ | BodyResponseCallback<Readable>,
3741
+ optionsOrCallback?:
3742
+ | MethodOptions
3743
+ | StreamMethodOptions
3744
+ | BodyResponseCallback<Schema$Operation>
3745
+ | BodyResponseCallback<Readable>,
3746
+ callback?:
3747
+ | BodyResponseCallback<Schema$Operation>
3748
+ | BodyResponseCallback<Readable>
3749
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3750
+ let params = (paramsOrCallback ||
3751
+ {}) as Params$Resource$Projects$Locations$Imageimports$Delete;
3752
+ let options = (optionsOrCallback || {}) as MethodOptions;
3753
+
3754
+ if (typeof paramsOrCallback === 'function') {
3755
+ callback = paramsOrCallback;
3756
+ params = {} as Params$Resource$Projects$Locations$Imageimports$Delete;
3757
+ options = {};
3758
+ }
3759
+
3760
+ if (typeof optionsOrCallback === 'function') {
3761
+ callback = optionsOrCallback;
3762
+ options = {};
3763
+ }
3764
+
3765
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
3766
+ const parameters = {
3767
+ options: Object.assign(
3768
+ {
3769
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3770
+ method: 'DELETE',
3771
+ },
3772
+ options
3773
+ ),
3774
+ params,
3775
+ requiredParams: ['name'],
3776
+ pathParams: ['name'],
3777
+ context: this.context,
3778
+ };
3779
+ if (callback) {
3780
+ createAPIRequest<Schema$Operation>(
3781
+ parameters,
3782
+ callback as BodyResponseCallback<unknown>
3783
+ );
3784
+ } else {
3785
+ return createAPIRequest<Schema$Operation>(parameters);
3786
+ }
3787
+ }
3788
+
3789
+ /**
3790
+ * Gets details of a single ImageImport.
3791
+ *
3792
+ * @param params - Parameters for request
3793
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3794
+ * @param callback - Optional callback that handles the response.
3795
+ * @returns A promise if used with async/await, or void if used with a callback.
3796
+ */
3797
+ get(
3798
+ params: Params$Resource$Projects$Locations$Imageimports$Get,
3799
+ options: StreamMethodOptions
3800
+ ): GaxiosPromise<Readable>;
3801
+ get(
3802
+ params?: Params$Resource$Projects$Locations$Imageimports$Get,
3803
+ options?: MethodOptions
3804
+ ): GaxiosPromise<Schema$ImageImport>;
3805
+ get(
3806
+ params: Params$Resource$Projects$Locations$Imageimports$Get,
3807
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3808
+ callback: BodyResponseCallback<Readable>
3809
+ ): void;
3810
+ get(
3811
+ params: Params$Resource$Projects$Locations$Imageimports$Get,
3812
+ options: MethodOptions | BodyResponseCallback<Schema$ImageImport>,
3813
+ callback: BodyResponseCallback<Schema$ImageImport>
3814
+ ): void;
3815
+ get(
3816
+ params: Params$Resource$Projects$Locations$Imageimports$Get,
3817
+ callback: BodyResponseCallback<Schema$ImageImport>
3818
+ ): void;
3819
+ get(callback: BodyResponseCallback<Schema$ImageImport>): void;
3820
+ get(
3821
+ paramsOrCallback?:
3822
+ | Params$Resource$Projects$Locations$Imageimports$Get
3823
+ | BodyResponseCallback<Schema$ImageImport>
3824
+ | BodyResponseCallback<Readable>,
3825
+ optionsOrCallback?:
3826
+ | MethodOptions
3827
+ | StreamMethodOptions
3828
+ | BodyResponseCallback<Schema$ImageImport>
3829
+ | BodyResponseCallback<Readable>,
3830
+ callback?:
3831
+ | BodyResponseCallback<Schema$ImageImport>
3832
+ | BodyResponseCallback<Readable>
3833
+ ): void | GaxiosPromise<Schema$ImageImport> | GaxiosPromise<Readable> {
3834
+ let params = (paramsOrCallback ||
3835
+ {}) as Params$Resource$Projects$Locations$Imageimports$Get;
3836
+ let options = (optionsOrCallback || {}) as MethodOptions;
3837
+
3838
+ if (typeof paramsOrCallback === 'function') {
3839
+ callback = paramsOrCallback;
3840
+ params = {} as Params$Resource$Projects$Locations$Imageimports$Get;
3841
+ options = {};
3842
+ }
3843
+
3844
+ if (typeof optionsOrCallback === 'function') {
3845
+ callback = optionsOrCallback;
3846
+ options = {};
3847
+ }
3848
+
3849
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
3850
+ const parameters = {
3851
+ options: Object.assign(
3852
+ {
3853
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3854
+ method: 'GET',
3855
+ },
3856
+ options
3857
+ ),
3858
+ params,
3859
+ requiredParams: ['name'],
3860
+ pathParams: ['name'],
3861
+ context: this.context,
3862
+ };
3863
+ if (callback) {
3864
+ createAPIRequest<Schema$ImageImport>(
3865
+ parameters,
3866
+ callback as BodyResponseCallback<unknown>
3867
+ );
3868
+ } else {
3869
+ return createAPIRequest<Schema$ImageImport>(parameters);
3870
+ }
3871
+ }
3872
+
3873
+ /**
3874
+ * Lists ImageImports in a given project.
3875
+ *
3876
+ * @param params - Parameters for request
3877
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3878
+ * @param callback - Optional callback that handles the response.
3879
+ * @returns A promise if used with async/await, or void if used with a callback.
3880
+ */
3881
+ list(
3882
+ params: Params$Resource$Projects$Locations$Imageimports$List,
3883
+ options: StreamMethodOptions
3884
+ ): GaxiosPromise<Readable>;
3885
+ list(
3886
+ params?: Params$Resource$Projects$Locations$Imageimports$List,
3887
+ options?: MethodOptions
3888
+ ): GaxiosPromise<Schema$ListImageImportsResponse>;
3889
+ list(
3890
+ params: Params$Resource$Projects$Locations$Imageimports$List,
3891
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3892
+ callback: BodyResponseCallback<Readable>
3893
+ ): void;
3894
+ list(
3895
+ params: Params$Resource$Projects$Locations$Imageimports$List,
3896
+ options:
3897
+ | MethodOptions
3898
+ | BodyResponseCallback<Schema$ListImageImportsResponse>,
3899
+ callback: BodyResponseCallback<Schema$ListImageImportsResponse>
3900
+ ): void;
3901
+ list(
3902
+ params: Params$Resource$Projects$Locations$Imageimports$List,
3903
+ callback: BodyResponseCallback<Schema$ListImageImportsResponse>
3904
+ ): void;
3905
+ list(callback: BodyResponseCallback<Schema$ListImageImportsResponse>): void;
3906
+ list(
3907
+ paramsOrCallback?:
3908
+ | Params$Resource$Projects$Locations$Imageimports$List
3909
+ | BodyResponseCallback<Schema$ListImageImportsResponse>
3910
+ | BodyResponseCallback<Readable>,
3911
+ optionsOrCallback?:
3912
+ | MethodOptions
3913
+ | StreamMethodOptions
3914
+ | BodyResponseCallback<Schema$ListImageImportsResponse>
3915
+ | BodyResponseCallback<Readable>,
3916
+ callback?:
3917
+ | BodyResponseCallback<Schema$ListImageImportsResponse>
3918
+ | BodyResponseCallback<Readable>
3919
+ ):
3920
+ | void
3921
+ | GaxiosPromise<Schema$ListImageImportsResponse>
3922
+ | GaxiosPromise<Readable> {
3923
+ let params = (paramsOrCallback ||
3924
+ {}) as Params$Resource$Projects$Locations$Imageimports$List;
3925
+ let options = (optionsOrCallback || {}) as MethodOptions;
3926
+
3927
+ if (typeof paramsOrCallback === 'function') {
3928
+ callback = paramsOrCallback;
3929
+ params = {} as Params$Resource$Projects$Locations$Imageimports$List;
3930
+ options = {};
3931
+ }
3932
+
3933
+ if (typeof optionsOrCallback === 'function') {
3934
+ callback = optionsOrCallback;
3935
+ options = {};
3936
+ }
3937
+
3938
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
3939
+ const parameters = {
3940
+ options: Object.assign(
3941
+ {
3942
+ url: (rootUrl + '/v1alpha1/{+parent}/imageImports').replace(
3943
+ /([^:]\/)\/+/g,
3944
+ '$1'
3945
+ ),
3946
+ method: 'GET',
3947
+ },
3948
+ options
3949
+ ),
3950
+ params,
3951
+ requiredParams: ['parent'],
3952
+ pathParams: ['parent'],
3953
+ context: this.context,
3954
+ };
3955
+ if (callback) {
3956
+ createAPIRequest<Schema$ListImageImportsResponse>(
3957
+ parameters,
3958
+ callback as BodyResponseCallback<unknown>
3959
+ );
3960
+ } else {
3961
+ return createAPIRequest<Schema$ListImageImportsResponse>(parameters);
3962
+ }
3963
+ }
3964
+ }
3965
+
3966
+ export interface Params$Resource$Projects$Locations$Imageimports$Create
3967
+ extends StandardParameters {
3968
+ /**
3969
+ * Required. The image import identifier. This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.
3970
+ */
3971
+ imageImportId?: string;
3972
+ /**
3973
+ * Required. The ImageImport's parent.
3974
+ */
3975
+ parent?: string;
3976
+ /**
3977
+ * 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 times 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).
3978
+ */
3979
+ requestId?: string;
3980
+
3981
+ /**
3982
+ * Request body metadata
3983
+ */
3984
+ requestBody?: Schema$ImageImport;
3985
+ }
3986
+ export interface Params$Resource$Projects$Locations$Imageimports$Delete
3987
+ extends StandardParameters {
3988
+ /**
3989
+ * Required. The ImageImport name.
3990
+ */
3991
+ name?: string;
3992
+ /**
3993
+ * 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 after the first request. For example, consider a situation where you make an initial request and t he request times 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).
3994
+ */
3995
+ requestId?: string;
3996
+ }
3997
+ export interface Params$Resource$Projects$Locations$Imageimports$Get
3998
+ extends StandardParameters {
3999
+ /**
4000
+ * Required. The ImageImport name.
4001
+ */
4002
+ name?: string;
4003
+ }
4004
+ export interface Params$Resource$Projects$Locations$Imageimports$List
4005
+ extends StandardParameters {
4006
+ /**
4007
+ * Optional. The filter request (according to https://google.aip.dev/160).
4008
+ */
4009
+ filter?: string;
4010
+ /**
4011
+ * Optional. The order by fields for the result (according to https://google.aip.dev/132#ordering). Currently ordering is only possible by "name" field.
4012
+ */
4013
+ orderBy?: string;
4014
+ /**
4015
+ * Optional. The maximum number of targets to return. The service may return fewer than this value. If unspecified, at most 500 targets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
4016
+ */
4017
+ pageSize?: number;
4018
+ /**
4019
+ * Optional. A page token, received from a previous `ListImageImports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListImageImports` must match the call that provided the page token.
4020
+ */
4021
+ pageToken?: string;
4022
+ /**
4023
+ * Required. The parent, which owns this collection of targets.
4024
+ */
4025
+ parent?: string;
4026
+ }
4027
+
4028
+ export class Resource$Projects$Locations$Imageimports$Imageimportjobs {
4029
+ context: APIRequestContext;
4030
+ constructor(context: APIRequestContext) {
4031
+ this.context = context;
4032
+ }
4033
+
4034
+ /**
4035
+ * Initiates the cancellation of a running clone job.
4036
+ *
4037
+ * @param params - Parameters for request
4038
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4039
+ * @param callback - Optional callback that handles the response.
4040
+ * @returns A promise if used with async/await, or void if used with a callback.
4041
+ */
4042
+ cancel(
4043
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
4044
+ options: StreamMethodOptions
4045
+ ): GaxiosPromise<Readable>;
4046
+ cancel(
4047
+ params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
4048
+ options?: MethodOptions
4049
+ ): GaxiosPromise<Schema$Operation>;
4050
+ cancel(
4051
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
4052
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4053
+ callback: BodyResponseCallback<Readable>
4054
+ ): void;
4055
+ cancel(
4056
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
4057
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
4058
+ callback: BodyResponseCallback<Schema$Operation>
4059
+ ): void;
4060
+ cancel(
4061
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
4062
+ callback: BodyResponseCallback<Schema$Operation>
4063
+ ): void;
4064
+ cancel(callback: BodyResponseCallback<Schema$Operation>): void;
4065
+ cancel(
4066
+ paramsOrCallback?:
4067
+ | Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel
4068
+ | BodyResponseCallback<Schema$Operation>
4069
+ | BodyResponseCallback<Readable>,
4070
+ optionsOrCallback?:
4071
+ | MethodOptions
4072
+ | StreamMethodOptions
4073
+ | BodyResponseCallback<Schema$Operation>
4074
+ | BodyResponseCallback<Readable>,
4075
+ callback?:
4076
+ | BodyResponseCallback<Schema$Operation>
4077
+ | BodyResponseCallback<Readable>
4078
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
4079
+ let params = (paramsOrCallback ||
4080
+ {}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel;
4081
+ let options = (optionsOrCallback || {}) as MethodOptions;
4082
+
4083
+ if (typeof paramsOrCallback === 'function') {
4084
+ callback = paramsOrCallback;
4085
+ params =
4086
+ {} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel;
4087
+ options = {};
4088
+ }
4089
+
4090
+ if (typeof optionsOrCallback === 'function') {
4091
+ callback = optionsOrCallback;
4092
+ options = {};
4093
+ }
4094
+
4095
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
4096
+ const parameters = {
4097
+ options: Object.assign(
4098
+ {
4099
+ url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(
4100
+ /([^:]\/)\/+/g,
4101
+ '$1'
4102
+ ),
4103
+ method: 'POST',
4104
+ },
4105
+ options
4106
+ ),
4107
+ params,
4108
+ requiredParams: ['name'],
4109
+ pathParams: ['name'],
4110
+ context: this.context,
4111
+ };
4112
+ if (callback) {
4113
+ createAPIRequest<Schema$Operation>(
4114
+ parameters,
4115
+ callback as BodyResponseCallback<unknown>
4116
+ );
4117
+ } else {
4118
+ return createAPIRequest<Schema$Operation>(parameters);
4119
+ }
4120
+ }
4121
+
4122
+ /**
4123
+ * Gets details of a single ImageImportJob.
4124
+ *
4125
+ * @param params - Parameters for request
4126
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4127
+ * @param callback - Optional callback that handles the response.
4128
+ * @returns A promise if used with async/await, or void if used with a callback.
4129
+ */
4130
+ get(
4131
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
4132
+ options: StreamMethodOptions
4133
+ ): GaxiosPromise<Readable>;
4134
+ get(
4135
+ params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
4136
+ options?: MethodOptions
4137
+ ): GaxiosPromise<Schema$ImageImportJob>;
4138
+ get(
4139
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
4140
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4141
+ callback: BodyResponseCallback<Readable>
4142
+ ): void;
4143
+ get(
4144
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
4145
+ options: MethodOptions | BodyResponseCallback<Schema$ImageImportJob>,
4146
+ callback: BodyResponseCallback<Schema$ImageImportJob>
4147
+ ): void;
4148
+ get(
4149
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
4150
+ callback: BodyResponseCallback<Schema$ImageImportJob>
4151
+ ): void;
4152
+ get(callback: BodyResponseCallback<Schema$ImageImportJob>): void;
4153
+ get(
4154
+ paramsOrCallback?:
4155
+ | Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get
4156
+ | BodyResponseCallback<Schema$ImageImportJob>
4157
+ | BodyResponseCallback<Readable>,
4158
+ optionsOrCallback?:
4159
+ | MethodOptions
4160
+ | StreamMethodOptions
4161
+ | BodyResponseCallback<Schema$ImageImportJob>
4162
+ | BodyResponseCallback<Readable>,
4163
+ callback?:
4164
+ | BodyResponseCallback<Schema$ImageImportJob>
4165
+ | BodyResponseCallback<Readable>
4166
+ ): void | GaxiosPromise<Schema$ImageImportJob> | GaxiosPromise<Readable> {
4167
+ let params = (paramsOrCallback ||
4168
+ {}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get;
4169
+ let options = (optionsOrCallback || {}) as MethodOptions;
4170
+
4171
+ if (typeof paramsOrCallback === 'function') {
4172
+ callback = paramsOrCallback;
4173
+ params =
4174
+ {} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get;
4175
+ options = {};
4176
+ }
4177
+
4178
+ if (typeof optionsOrCallback === 'function') {
4179
+ callback = optionsOrCallback;
4180
+ options = {};
4181
+ }
4182
+
4183
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
4184
+ const parameters = {
4185
+ options: Object.assign(
4186
+ {
4187
+ url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4188
+ method: 'GET',
4189
+ },
4190
+ options
4191
+ ),
4192
+ params,
4193
+ requiredParams: ['name'],
4194
+ pathParams: ['name'],
4195
+ context: this.context,
4196
+ };
4197
+ if (callback) {
4198
+ createAPIRequest<Schema$ImageImportJob>(
4199
+ parameters,
4200
+ callback as BodyResponseCallback<unknown>
4201
+ );
4202
+ } else {
4203
+ return createAPIRequest<Schema$ImageImportJob>(parameters);
4204
+ }
4205
+ }
4206
+
4207
+ /**
4208
+ * Lists ImageImportJobs in a given project.
4209
+ *
4210
+ * @param params - Parameters for request
4211
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4212
+ * @param callback - Optional callback that handles the response.
4213
+ * @returns A promise if used with async/await, or void if used with a callback.
4214
+ */
4215
+ list(
4216
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
4217
+ options: StreamMethodOptions
4218
+ ): GaxiosPromise<Readable>;
4219
+ list(
4220
+ params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
4221
+ options?: MethodOptions
4222
+ ): GaxiosPromise<Schema$ListImageImportJobsResponse>;
4223
+ list(
4224
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
4225
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4226
+ callback: BodyResponseCallback<Readable>
4227
+ ): void;
4228
+ list(
4229
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
4230
+ options:
4231
+ | MethodOptions
4232
+ | BodyResponseCallback<Schema$ListImageImportJobsResponse>,
4233
+ callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
4234
+ ): void;
4235
+ list(
4236
+ params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
4237
+ callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
4238
+ ): void;
4239
+ list(
4240
+ callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
4241
+ ): void;
4242
+ list(
4243
+ paramsOrCallback?:
4244
+ | Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List
4245
+ | BodyResponseCallback<Schema$ListImageImportJobsResponse>
4246
+ | BodyResponseCallback<Readable>,
4247
+ optionsOrCallback?:
4248
+ | MethodOptions
4249
+ | StreamMethodOptions
4250
+ | BodyResponseCallback<Schema$ListImageImportJobsResponse>
4251
+ | BodyResponseCallback<Readable>,
4252
+ callback?:
4253
+ | BodyResponseCallback<Schema$ListImageImportJobsResponse>
4254
+ | BodyResponseCallback<Readable>
4255
+ ):
4256
+ | void
4257
+ | GaxiosPromise<Schema$ListImageImportJobsResponse>
4258
+ | GaxiosPromise<Readable> {
4259
+ let params = (paramsOrCallback ||
4260
+ {}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List;
4261
+ let options = (optionsOrCallback || {}) as MethodOptions;
4262
+
4263
+ if (typeof paramsOrCallback === 'function') {
4264
+ callback = paramsOrCallback;
4265
+ params =
4266
+ {} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List;
4267
+ options = {};
4268
+ }
4269
+
4270
+ if (typeof optionsOrCallback === 'function') {
4271
+ callback = optionsOrCallback;
4272
+ options = {};
4273
+ }
4274
+
4275
+ const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
4276
+ const parameters = {
4277
+ options: Object.assign(
4278
+ {
4279
+ url: (rootUrl + '/v1alpha1/{+parent}/imageImportJobs').replace(
4280
+ /([^:]\/)\/+/g,
4281
+ '$1'
4282
+ ),
4283
+ method: 'GET',
4284
+ },
4285
+ options
4286
+ ),
4287
+ params,
4288
+ requiredParams: ['parent'],
4289
+ pathParams: ['parent'],
4290
+ context: this.context,
4291
+ };
4292
+ if (callback) {
4293
+ createAPIRequest<Schema$ListImageImportJobsResponse>(
4294
+ parameters,
4295
+ callback as BodyResponseCallback<unknown>
4296
+ );
4297
+ } else {
4298
+ return createAPIRequest<Schema$ListImageImportJobsResponse>(parameters);
4299
+ }
4300
+ }
4301
+ }
4302
+
4303
+ export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel
4304
+ extends StandardParameters {
4305
+ /**
4306
+ * Required. The image import job id.
4307
+ */
4308
+ name?: string;
4309
+
4310
+ /**
4311
+ * Request body metadata
4312
+ */
4313
+ requestBody?: Schema$CancelImageImportJobRequest;
4314
+ }
4315
+ export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get
4316
+ extends StandardParameters {
4317
+ /**
4318
+ * Required. The ImageImportJob name.
4319
+ */
4320
+ name?: string;
4321
+ }
4322
+ export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List
4323
+ extends StandardParameters {
4324
+ /**
4325
+ * Optional. The filter request (according to https://google.aip.dev/160).
4326
+ */
4327
+ filter?: string;
4328
+ /**
4329
+ * Optional. The order by fields for the result (according to https://google.aip.dev/132#ordering). Currently ordering is only possible by "name" field.
4330
+ */
4331
+ orderBy?: string;
4332
+ /**
4333
+ * Optional. The maximum number of targets to return. The service may return fewer than this value. If unspecified, at most 500 targets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
4334
+ */
4335
+ pageSize?: number;
4336
+ /**
4337
+ * Optional. A page token, received from a previous `ListImageImportJobs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListImageImportJobs` must match the call that provided the page token.
4338
+ */
4339
+ pageToken?: string;
4340
+ /**
4341
+ * Required. The parent, which owns this collection of targets.
4342
+ */
4343
+ parent?: string;
4344
+ }
4345
+
3388
4346
  export class Resource$Projects$Locations$Operations {
3389
4347
  context: APIRequestContext;
3390
4348
  constructor(context: APIRequestContext) {