@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/CHANGELOG.md +18 -0
- package/build/v1.d.ts +425 -1
- package/build/v1.js +235 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha1.d.ts +425 -1
- package/build/v1alpha1.js +235 -0
- package/build/v1alpha1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +956 -1
- package/v1alpha1.ts +959 -1
package/v1.ts
CHANGED
|
@@ -447,7 +447,7 @@ export namespace vmmigration_v1 {
|
|
|
447
447
|
vmCapabilitiesInfo?: Schema$VmCapabilities;
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* AzureVmDetails describes a VM in Azure.
|
|
451
451
|
*/
|
|
452
452
|
export interface Schema$AzureVmDetails {
|
|
453
453
|
/**
|
|
@@ -545,6 +545,10 @@ export namespace vmmigration_v1 {
|
|
|
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
|
*/
|
|
@@ -857,6 +861,10 @@ export namespace vmmigration_v1 {
|
|
|
857
861
|
*/
|
|
858
862
|
restartType?: string | null;
|
|
859
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* CreatingImageStep contains specific step details.
|
|
866
|
+
*/
|
|
867
|
+
export interface Schema$CreatingImageStep {}
|
|
860
868
|
/**
|
|
861
869
|
* CutoverForecast holds information about future CutoverJobs of a MigratingVm.
|
|
862
870
|
*/
|
|
@@ -1034,6 +1042,10 @@ export namespace vmmigration_v1 {
|
|
|
1034
1042
|
*/
|
|
1035
1043
|
version?: string | null;
|
|
1036
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Mentions that the image import is not using OS adaptation process.
|
|
1047
|
+
*/
|
|
1048
|
+
export interface Schema$DataDiskImageImport {}
|
|
1037
1049
|
/**
|
|
1038
1050
|
* A message describing a data disk.
|
|
1039
1051
|
*/
|
|
@@ -1060,6 +1072,51 @@ export namespace vmmigration_v1 {
|
|
|
1060
1072
|
*/
|
|
1061
1073
|
sourceImage?: string | null;
|
|
1062
1074
|
}
|
|
1075
|
+
/**
|
|
1076
|
+
* The target details of the image resource that will be created by the import job.
|
|
1077
|
+
*/
|
|
1078
|
+
export interface Schema$DiskImageTargetDetails {
|
|
1079
|
+
/**
|
|
1080
|
+
* Optional. Additional licenses to assign to the image.
|
|
1081
|
+
*/
|
|
1082
|
+
additionalLicenses?: string[] | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Optional. Use to skip OS adaptation process.
|
|
1085
|
+
*/
|
|
1086
|
+
dataDiskImageImport?: Schema$DataDiskImageImport;
|
|
1087
|
+
/**
|
|
1088
|
+
* Optional. An optional description of the image.
|
|
1089
|
+
*/
|
|
1090
|
+
description?: string | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Optional. Immutable. The encryption to apply to the image.
|
|
1093
|
+
*/
|
|
1094
|
+
encryption?: Schema$Encryption;
|
|
1095
|
+
/**
|
|
1096
|
+
* Optional. The name of the image family to which the new image belongs.
|
|
1097
|
+
*/
|
|
1098
|
+
familyName?: string | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Required. The name of the image to be created.
|
|
1101
|
+
*/
|
|
1102
|
+
imageName?: string | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Optional. A map of labels to associate with the image.
|
|
1105
|
+
*/
|
|
1106
|
+
labels?: {[key: string]: string} | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Optional. Use to set the parameters relevant for the OS adaptation process.
|
|
1109
|
+
*/
|
|
1110
|
+
osAdaptationParameters?: Schema$ImageImportOsAdaptationParameters;
|
|
1111
|
+
/**
|
|
1112
|
+
* 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.
|
|
1113
|
+
*/
|
|
1114
|
+
singleRegionStorage?: boolean | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.
|
|
1117
|
+
*/
|
|
1118
|
+
targetProject?: string | null;
|
|
1119
|
+
}
|
|
1063
1120
|
/**
|
|
1064
1121
|
* Details for a disk only migration.
|
|
1065
1122
|
*/
|
|
@@ -1209,6 +1266,126 @@ export namespace vmmigration_v1 {
|
|
|
1209
1266
|
*/
|
|
1210
1267
|
updateTime?: string | null;
|
|
1211
1268
|
}
|
|
1269
|
+
/**
|
|
1270
|
+
* ImageImport describes the configuration of the image import to run.
|
|
1271
|
+
*/
|
|
1272
|
+
export interface Schema$ImageImport {
|
|
1273
|
+
/**
|
|
1274
|
+
* Immutable. The path to the Cloud Storage file from which the image should be imported.
|
|
1275
|
+
*/
|
|
1276
|
+
cloudStorageUri?: string | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Output only. The time the image import was created.
|
|
1279
|
+
*/
|
|
1280
|
+
createTime?: string | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Immutable. Target details for importing a disk image, will be used by ImageImportJob.
|
|
1283
|
+
*/
|
|
1284
|
+
diskImageTargetDefaults?: Schema$DiskImageTargetDetails;
|
|
1285
|
+
/**
|
|
1286
|
+
* Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.
|
|
1287
|
+
*/
|
|
1288
|
+
encryption?: Schema$Encryption;
|
|
1289
|
+
/**
|
|
1290
|
+
* Output only. The resource path of the ImageImport.
|
|
1291
|
+
*/
|
|
1292
|
+
name?: string | null;
|
|
1293
|
+
/**
|
|
1294
|
+
* Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.
|
|
1295
|
+
*/
|
|
1296
|
+
recentImageImportJobs?: Schema$ImageImportJob[];
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* ImageImportJob describes the progress and result of an image import.
|
|
1300
|
+
*/
|
|
1301
|
+
export interface Schema$ImageImportJob {
|
|
1302
|
+
/**
|
|
1303
|
+
* Output only. The path to the Cloud Storage file from which the image should be imported.
|
|
1304
|
+
*/
|
|
1305
|
+
cloudStorageUri?: string | null;
|
|
1306
|
+
/**
|
|
1307
|
+
* Output only. The resource paths of the resources created by the image import job.
|
|
1308
|
+
*/
|
|
1309
|
+
createdResources?: string[] | null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Output only. The time the image import was created (as an API call, not when it was actually created in the target).
|
|
1312
|
+
*/
|
|
1313
|
+
createTime?: string | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Output only. Target details used to import a disk image.
|
|
1316
|
+
*/
|
|
1317
|
+
diskImageTargetDetails?: Schema$DiskImageTargetDetails;
|
|
1318
|
+
/**
|
|
1319
|
+
* Output only. The time the image import was ended.
|
|
1320
|
+
*/
|
|
1321
|
+
endTime?: string | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Output only. Provides details on the error that led to the image import state in case of an error.
|
|
1324
|
+
*/
|
|
1325
|
+
errors?: Schema$Status[];
|
|
1326
|
+
/**
|
|
1327
|
+
* Output only. The resource path of the ImageImportJob.
|
|
1328
|
+
*/
|
|
1329
|
+
name?: string | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* Output only. The state of the image import.
|
|
1332
|
+
*/
|
|
1333
|
+
state?: string | null;
|
|
1334
|
+
/**
|
|
1335
|
+
* Output only. The image import steps list representing its progress.
|
|
1336
|
+
*/
|
|
1337
|
+
steps?: Schema$ImageImportStep[];
|
|
1338
|
+
/**
|
|
1339
|
+
* Output only. Warnings that occurred during the image import.
|
|
1340
|
+
*/
|
|
1341
|
+
warnings?: Schema$MigrationWarning[];
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Parameters affecting the OS adaptation process.
|
|
1345
|
+
*/
|
|
1346
|
+
export interface Schema$ImageImportOsAdaptationParameters {
|
|
1347
|
+
/**
|
|
1348
|
+
* 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).
|
|
1349
|
+
*/
|
|
1350
|
+
generalize?: boolean | null;
|
|
1351
|
+
/**
|
|
1352
|
+
* Optional. Choose which type of license to apply to the imported image.
|
|
1353
|
+
*/
|
|
1354
|
+
licenseType?: string | null;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* ImageImportStep holds information about the image import step progress.
|
|
1358
|
+
*/
|
|
1359
|
+
export interface Schema$ImageImportStep {
|
|
1360
|
+
/**
|
|
1361
|
+
* Adapting OS step.
|
|
1362
|
+
*/
|
|
1363
|
+
adaptingOs?: Schema$AdaptingOSStep;
|
|
1364
|
+
/**
|
|
1365
|
+
* Creating image step.
|
|
1366
|
+
*/
|
|
1367
|
+
creatingImage?: Schema$CreatingImageStep;
|
|
1368
|
+
/**
|
|
1369
|
+
* Output only. The time the step has ended.
|
|
1370
|
+
*/
|
|
1371
|
+
endTime?: string | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* Initializing step.
|
|
1374
|
+
*/
|
|
1375
|
+
initializing?: Schema$InitializingImageImportStep;
|
|
1376
|
+
/**
|
|
1377
|
+
* Loading source files step.
|
|
1378
|
+
*/
|
|
1379
|
+
loadingSourceFiles?: Schema$LoadingImageSourceFilesStep;
|
|
1380
|
+
/**
|
|
1381
|
+
* Output only. The time the step has started.
|
|
1382
|
+
*/
|
|
1383
|
+
startTime?: string | null;
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* InitializingImageImportStep contains specific step details.
|
|
1387
|
+
*/
|
|
1388
|
+
export interface Schema$InitializingImageImportStep {}
|
|
1212
1389
|
/**
|
|
1213
1390
|
* InitializingReplicationStep contains specific step details.
|
|
1214
1391
|
*/
|
|
@@ -1298,6 +1475,40 @@ export namespace vmmigration_v1 {
|
|
|
1298
1475
|
*/
|
|
1299
1476
|
unreachable?: string[] | null;
|
|
1300
1477
|
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Response message for 'ListImageImportJobs' call.
|
|
1480
|
+
*/
|
|
1481
|
+
export interface Schema$ListImageImportJobsResponse {
|
|
1482
|
+
/**
|
|
1483
|
+
* Output only. The list of target response.
|
|
1484
|
+
*/
|
|
1485
|
+
imageImportJobs?: Schema$ImageImportJob[];
|
|
1486
|
+
/**
|
|
1487
|
+
* 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.
|
|
1488
|
+
*/
|
|
1489
|
+
nextPageToken?: string | null;
|
|
1490
|
+
/**
|
|
1491
|
+
* Output only. Locations that could not be reached.
|
|
1492
|
+
*/
|
|
1493
|
+
unreachable?: string[] | null;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Response message for 'ListImageImports' call.
|
|
1497
|
+
*/
|
|
1498
|
+
export interface Schema$ListImageImportsResponse {
|
|
1499
|
+
/**
|
|
1500
|
+
* Output only. The list of target response.
|
|
1501
|
+
*/
|
|
1502
|
+
imageImports?: Schema$ImageImport[];
|
|
1503
|
+
/**
|
|
1504
|
+
* 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.
|
|
1505
|
+
*/
|
|
1506
|
+
nextPageToken?: string | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* Output only. Locations that could not be reached.
|
|
1509
|
+
*/
|
|
1510
|
+
unreachable?: string[] | null;
|
|
1511
|
+
}
|
|
1301
1512
|
/**
|
|
1302
1513
|
* The response message for Locations.ListLocations.
|
|
1303
1514
|
*/
|
|
@@ -1409,6 +1620,10 @@ export namespace vmmigration_v1 {
|
|
|
1409
1620
|
*/
|
|
1410
1621
|
utilizationReports?: Schema$UtilizationReport[];
|
|
1411
1622
|
}
|
|
1623
|
+
/**
|
|
1624
|
+
* LoadingImageSourceFilesStep contains specific step details.
|
|
1625
|
+
*/
|
|
1626
|
+
export interface Schema$LoadingImageSourceFilesStep {}
|
|
1412
1627
|
/**
|
|
1413
1628
|
* Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
|
|
1414
1629
|
*/
|
|
@@ -2280,12 +2495,16 @@ export namespace vmmigration_v1 {
|
|
|
2280
2495
|
export class Resource$Projects$Locations {
|
|
2281
2496
|
context: APIRequestContext;
|
|
2282
2497
|
groups: Resource$Projects$Locations$Groups;
|
|
2498
|
+
imageImports: Resource$Projects$Locations$Imageimports;
|
|
2283
2499
|
operations: Resource$Projects$Locations$Operations;
|
|
2284
2500
|
sources: Resource$Projects$Locations$Sources;
|
|
2285
2501
|
targetProjects: Resource$Projects$Locations$Targetprojects;
|
|
2286
2502
|
constructor(context: APIRequestContext) {
|
|
2287
2503
|
this.context = context;
|
|
2288
2504
|
this.groups = new Resource$Projects$Locations$Groups(this.context);
|
|
2505
|
+
this.imageImports = new Resource$Projects$Locations$Imageimports(
|
|
2506
|
+
this.context
|
|
2507
|
+
);
|
|
2289
2508
|
this.operations = new Resource$Projects$Locations$Operations(
|
|
2290
2509
|
this.context
|
|
2291
2510
|
);
|
|
@@ -3219,6 +3438,742 @@ export namespace vmmigration_v1 {
|
|
|
3219
3438
|
requestBody?: Schema$RemoveGroupMigrationRequest;
|
|
3220
3439
|
}
|
|
3221
3440
|
|
|
3441
|
+
export class Resource$Projects$Locations$Imageimports {
|
|
3442
|
+
context: APIRequestContext;
|
|
3443
|
+
imageImportJobs: Resource$Projects$Locations$Imageimports$Imageimportjobs;
|
|
3444
|
+
constructor(context: APIRequestContext) {
|
|
3445
|
+
this.context = context;
|
|
3446
|
+
this.imageImportJobs =
|
|
3447
|
+
new Resource$Projects$Locations$Imageimports$Imageimportjobs(
|
|
3448
|
+
this.context
|
|
3449
|
+
);
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* Creates a new ImageImport in a given project.
|
|
3454
|
+
*
|
|
3455
|
+
* @param params - Parameters for request
|
|
3456
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3457
|
+
* @param callback - Optional callback that handles the response.
|
|
3458
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3459
|
+
*/
|
|
3460
|
+
create(
|
|
3461
|
+
params: Params$Resource$Projects$Locations$Imageimports$Create,
|
|
3462
|
+
options: StreamMethodOptions
|
|
3463
|
+
): GaxiosPromise<Readable>;
|
|
3464
|
+
create(
|
|
3465
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Create,
|
|
3466
|
+
options?: MethodOptions
|
|
3467
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3468
|
+
create(
|
|
3469
|
+
params: Params$Resource$Projects$Locations$Imageimports$Create,
|
|
3470
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3471
|
+
callback: BodyResponseCallback<Readable>
|
|
3472
|
+
): void;
|
|
3473
|
+
create(
|
|
3474
|
+
params: Params$Resource$Projects$Locations$Imageimports$Create,
|
|
3475
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3476
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3477
|
+
): void;
|
|
3478
|
+
create(
|
|
3479
|
+
params: Params$Resource$Projects$Locations$Imageimports$Create,
|
|
3480
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3481
|
+
): void;
|
|
3482
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3483
|
+
create(
|
|
3484
|
+
paramsOrCallback?:
|
|
3485
|
+
| Params$Resource$Projects$Locations$Imageimports$Create
|
|
3486
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3487
|
+
| BodyResponseCallback<Readable>,
|
|
3488
|
+
optionsOrCallback?:
|
|
3489
|
+
| MethodOptions
|
|
3490
|
+
| StreamMethodOptions
|
|
3491
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3492
|
+
| BodyResponseCallback<Readable>,
|
|
3493
|
+
callback?:
|
|
3494
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3495
|
+
| BodyResponseCallback<Readable>
|
|
3496
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3497
|
+
let params = (paramsOrCallback ||
|
|
3498
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Create;
|
|
3499
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3500
|
+
|
|
3501
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3502
|
+
callback = paramsOrCallback;
|
|
3503
|
+
params = {} as Params$Resource$Projects$Locations$Imageimports$Create;
|
|
3504
|
+
options = {};
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3508
|
+
callback = optionsOrCallback;
|
|
3509
|
+
options = {};
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
3513
|
+
const parameters = {
|
|
3514
|
+
options: Object.assign(
|
|
3515
|
+
{
|
|
3516
|
+
url: (rootUrl + '/v1/{+parent}/imageImports').replace(
|
|
3517
|
+
/([^:]\/)\/+/g,
|
|
3518
|
+
'$1'
|
|
3519
|
+
),
|
|
3520
|
+
method: 'POST',
|
|
3521
|
+
},
|
|
3522
|
+
options
|
|
3523
|
+
),
|
|
3524
|
+
params,
|
|
3525
|
+
requiredParams: ['parent'],
|
|
3526
|
+
pathParams: ['parent'],
|
|
3527
|
+
context: this.context,
|
|
3528
|
+
};
|
|
3529
|
+
if (callback) {
|
|
3530
|
+
createAPIRequest<Schema$Operation>(
|
|
3531
|
+
parameters,
|
|
3532
|
+
callback as BodyResponseCallback<unknown>
|
|
3533
|
+
);
|
|
3534
|
+
} else {
|
|
3535
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* Deletes a single ImageImport.
|
|
3541
|
+
*
|
|
3542
|
+
* @param params - Parameters for request
|
|
3543
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3544
|
+
* @param callback - Optional callback that handles the response.
|
|
3545
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3546
|
+
*/
|
|
3547
|
+
delete(
|
|
3548
|
+
params: Params$Resource$Projects$Locations$Imageimports$Delete,
|
|
3549
|
+
options: StreamMethodOptions
|
|
3550
|
+
): GaxiosPromise<Readable>;
|
|
3551
|
+
delete(
|
|
3552
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Delete,
|
|
3553
|
+
options?: MethodOptions
|
|
3554
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3555
|
+
delete(
|
|
3556
|
+
params: Params$Resource$Projects$Locations$Imageimports$Delete,
|
|
3557
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3558
|
+
callback: BodyResponseCallback<Readable>
|
|
3559
|
+
): void;
|
|
3560
|
+
delete(
|
|
3561
|
+
params: Params$Resource$Projects$Locations$Imageimports$Delete,
|
|
3562
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3563
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3564
|
+
): void;
|
|
3565
|
+
delete(
|
|
3566
|
+
params: Params$Resource$Projects$Locations$Imageimports$Delete,
|
|
3567
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3568
|
+
): void;
|
|
3569
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3570
|
+
delete(
|
|
3571
|
+
paramsOrCallback?:
|
|
3572
|
+
| Params$Resource$Projects$Locations$Imageimports$Delete
|
|
3573
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3574
|
+
| BodyResponseCallback<Readable>,
|
|
3575
|
+
optionsOrCallback?:
|
|
3576
|
+
| MethodOptions
|
|
3577
|
+
| StreamMethodOptions
|
|
3578
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3579
|
+
| BodyResponseCallback<Readable>,
|
|
3580
|
+
callback?:
|
|
3581
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3582
|
+
| BodyResponseCallback<Readable>
|
|
3583
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3584
|
+
let params = (paramsOrCallback ||
|
|
3585
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Delete;
|
|
3586
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3587
|
+
|
|
3588
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3589
|
+
callback = paramsOrCallback;
|
|
3590
|
+
params = {} as Params$Resource$Projects$Locations$Imageimports$Delete;
|
|
3591
|
+
options = {};
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3595
|
+
callback = optionsOrCallback;
|
|
3596
|
+
options = {};
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
3600
|
+
const parameters = {
|
|
3601
|
+
options: Object.assign(
|
|
3602
|
+
{
|
|
3603
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3604
|
+
method: 'DELETE',
|
|
3605
|
+
},
|
|
3606
|
+
options
|
|
3607
|
+
),
|
|
3608
|
+
params,
|
|
3609
|
+
requiredParams: ['name'],
|
|
3610
|
+
pathParams: ['name'],
|
|
3611
|
+
context: this.context,
|
|
3612
|
+
};
|
|
3613
|
+
if (callback) {
|
|
3614
|
+
createAPIRequest<Schema$Operation>(
|
|
3615
|
+
parameters,
|
|
3616
|
+
callback as BodyResponseCallback<unknown>
|
|
3617
|
+
);
|
|
3618
|
+
} else {
|
|
3619
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Gets details of a single ImageImport.
|
|
3625
|
+
*
|
|
3626
|
+
* @param params - Parameters for request
|
|
3627
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3628
|
+
* @param callback - Optional callback that handles the response.
|
|
3629
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3630
|
+
*/
|
|
3631
|
+
get(
|
|
3632
|
+
params: Params$Resource$Projects$Locations$Imageimports$Get,
|
|
3633
|
+
options: StreamMethodOptions
|
|
3634
|
+
): GaxiosPromise<Readable>;
|
|
3635
|
+
get(
|
|
3636
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Get,
|
|
3637
|
+
options?: MethodOptions
|
|
3638
|
+
): GaxiosPromise<Schema$ImageImport>;
|
|
3639
|
+
get(
|
|
3640
|
+
params: Params$Resource$Projects$Locations$Imageimports$Get,
|
|
3641
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3642
|
+
callback: BodyResponseCallback<Readable>
|
|
3643
|
+
): void;
|
|
3644
|
+
get(
|
|
3645
|
+
params: Params$Resource$Projects$Locations$Imageimports$Get,
|
|
3646
|
+
options: MethodOptions | BodyResponseCallback<Schema$ImageImport>,
|
|
3647
|
+
callback: BodyResponseCallback<Schema$ImageImport>
|
|
3648
|
+
): void;
|
|
3649
|
+
get(
|
|
3650
|
+
params: Params$Resource$Projects$Locations$Imageimports$Get,
|
|
3651
|
+
callback: BodyResponseCallback<Schema$ImageImport>
|
|
3652
|
+
): void;
|
|
3653
|
+
get(callback: BodyResponseCallback<Schema$ImageImport>): void;
|
|
3654
|
+
get(
|
|
3655
|
+
paramsOrCallback?:
|
|
3656
|
+
| Params$Resource$Projects$Locations$Imageimports$Get
|
|
3657
|
+
| BodyResponseCallback<Schema$ImageImport>
|
|
3658
|
+
| BodyResponseCallback<Readable>,
|
|
3659
|
+
optionsOrCallback?:
|
|
3660
|
+
| MethodOptions
|
|
3661
|
+
| StreamMethodOptions
|
|
3662
|
+
| BodyResponseCallback<Schema$ImageImport>
|
|
3663
|
+
| BodyResponseCallback<Readable>,
|
|
3664
|
+
callback?:
|
|
3665
|
+
| BodyResponseCallback<Schema$ImageImport>
|
|
3666
|
+
| BodyResponseCallback<Readable>
|
|
3667
|
+
): void | GaxiosPromise<Schema$ImageImport> | GaxiosPromise<Readable> {
|
|
3668
|
+
let params = (paramsOrCallback ||
|
|
3669
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Get;
|
|
3670
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3671
|
+
|
|
3672
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3673
|
+
callback = paramsOrCallback;
|
|
3674
|
+
params = {} as Params$Resource$Projects$Locations$Imageimports$Get;
|
|
3675
|
+
options = {};
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3679
|
+
callback = optionsOrCallback;
|
|
3680
|
+
options = {};
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
3684
|
+
const parameters = {
|
|
3685
|
+
options: Object.assign(
|
|
3686
|
+
{
|
|
3687
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3688
|
+
method: 'GET',
|
|
3689
|
+
},
|
|
3690
|
+
options
|
|
3691
|
+
),
|
|
3692
|
+
params,
|
|
3693
|
+
requiredParams: ['name'],
|
|
3694
|
+
pathParams: ['name'],
|
|
3695
|
+
context: this.context,
|
|
3696
|
+
};
|
|
3697
|
+
if (callback) {
|
|
3698
|
+
createAPIRequest<Schema$ImageImport>(
|
|
3699
|
+
parameters,
|
|
3700
|
+
callback as BodyResponseCallback<unknown>
|
|
3701
|
+
);
|
|
3702
|
+
} else {
|
|
3703
|
+
return createAPIRequest<Schema$ImageImport>(parameters);
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* Lists ImageImports in a given project.
|
|
3709
|
+
*
|
|
3710
|
+
* @param params - Parameters for request
|
|
3711
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3712
|
+
* @param callback - Optional callback that handles the response.
|
|
3713
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3714
|
+
*/
|
|
3715
|
+
list(
|
|
3716
|
+
params: Params$Resource$Projects$Locations$Imageimports$List,
|
|
3717
|
+
options: StreamMethodOptions
|
|
3718
|
+
): GaxiosPromise<Readable>;
|
|
3719
|
+
list(
|
|
3720
|
+
params?: Params$Resource$Projects$Locations$Imageimports$List,
|
|
3721
|
+
options?: MethodOptions
|
|
3722
|
+
): GaxiosPromise<Schema$ListImageImportsResponse>;
|
|
3723
|
+
list(
|
|
3724
|
+
params: Params$Resource$Projects$Locations$Imageimports$List,
|
|
3725
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3726
|
+
callback: BodyResponseCallback<Readable>
|
|
3727
|
+
): void;
|
|
3728
|
+
list(
|
|
3729
|
+
params: Params$Resource$Projects$Locations$Imageimports$List,
|
|
3730
|
+
options:
|
|
3731
|
+
| MethodOptions
|
|
3732
|
+
| BodyResponseCallback<Schema$ListImageImportsResponse>,
|
|
3733
|
+
callback: BodyResponseCallback<Schema$ListImageImportsResponse>
|
|
3734
|
+
): void;
|
|
3735
|
+
list(
|
|
3736
|
+
params: Params$Resource$Projects$Locations$Imageimports$List,
|
|
3737
|
+
callback: BodyResponseCallback<Schema$ListImageImportsResponse>
|
|
3738
|
+
): void;
|
|
3739
|
+
list(callback: BodyResponseCallback<Schema$ListImageImportsResponse>): void;
|
|
3740
|
+
list(
|
|
3741
|
+
paramsOrCallback?:
|
|
3742
|
+
| Params$Resource$Projects$Locations$Imageimports$List
|
|
3743
|
+
| BodyResponseCallback<Schema$ListImageImportsResponse>
|
|
3744
|
+
| BodyResponseCallback<Readable>,
|
|
3745
|
+
optionsOrCallback?:
|
|
3746
|
+
| MethodOptions
|
|
3747
|
+
| StreamMethodOptions
|
|
3748
|
+
| BodyResponseCallback<Schema$ListImageImportsResponse>
|
|
3749
|
+
| BodyResponseCallback<Readable>,
|
|
3750
|
+
callback?:
|
|
3751
|
+
| BodyResponseCallback<Schema$ListImageImportsResponse>
|
|
3752
|
+
| BodyResponseCallback<Readable>
|
|
3753
|
+
):
|
|
3754
|
+
| void
|
|
3755
|
+
| GaxiosPromise<Schema$ListImageImportsResponse>
|
|
3756
|
+
| GaxiosPromise<Readable> {
|
|
3757
|
+
let params = (paramsOrCallback ||
|
|
3758
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$List;
|
|
3759
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3760
|
+
|
|
3761
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3762
|
+
callback = paramsOrCallback;
|
|
3763
|
+
params = {} as Params$Resource$Projects$Locations$Imageimports$List;
|
|
3764
|
+
options = {};
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3768
|
+
callback = optionsOrCallback;
|
|
3769
|
+
options = {};
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
3773
|
+
const parameters = {
|
|
3774
|
+
options: Object.assign(
|
|
3775
|
+
{
|
|
3776
|
+
url: (rootUrl + '/v1/{+parent}/imageImports').replace(
|
|
3777
|
+
/([^:]\/)\/+/g,
|
|
3778
|
+
'$1'
|
|
3779
|
+
),
|
|
3780
|
+
method: 'GET',
|
|
3781
|
+
},
|
|
3782
|
+
options
|
|
3783
|
+
),
|
|
3784
|
+
params,
|
|
3785
|
+
requiredParams: ['parent'],
|
|
3786
|
+
pathParams: ['parent'],
|
|
3787
|
+
context: this.context,
|
|
3788
|
+
};
|
|
3789
|
+
if (callback) {
|
|
3790
|
+
createAPIRequest<Schema$ListImageImportsResponse>(
|
|
3791
|
+
parameters,
|
|
3792
|
+
callback as BodyResponseCallback<unknown>
|
|
3793
|
+
);
|
|
3794
|
+
} else {
|
|
3795
|
+
return createAPIRequest<Schema$ListImageImportsResponse>(parameters);
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Create
|
|
3801
|
+
extends StandardParameters {
|
|
3802
|
+
/**
|
|
3803
|
+
* 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.
|
|
3804
|
+
*/
|
|
3805
|
+
imageImportId?: string;
|
|
3806
|
+
/**
|
|
3807
|
+
* Required. The ImageImport's parent.
|
|
3808
|
+
*/
|
|
3809
|
+
parent?: string;
|
|
3810
|
+
/**
|
|
3811
|
+
* 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).
|
|
3812
|
+
*/
|
|
3813
|
+
requestId?: string;
|
|
3814
|
+
|
|
3815
|
+
/**
|
|
3816
|
+
* Request body metadata
|
|
3817
|
+
*/
|
|
3818
|
+
requestBody?: Schema$ImageImport;
|
|
3819
|
+
}
|
|
3820
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Delete
|
|
3821
|
+
extends StandardParameters {
|
|
3822
|
+
/**
|
|
3823
|
+
* Required. The ImageImport name.
|
|
3824
|
+
*/
|
|
3825
|
+
name?: string;
|
|
3826
|
+
/**
|
|
3827
|
+
* 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).
|
|
3828
|
+
*/
|
|
3829
|
+
requestId?: string;
|
|
3830
|
+
}
|
|
3831
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Get
|
|
3832
|
+
extends StandardParameters {
|
|
3833
|
+
/**
|
|
3834
|
+
* Required. The ImageImport name.
|
|
3835
|
+
*/
|
|
3836
|
+
name?: string;
|
|
3837
|
+
}
|
|
3838
|
+
export interface Params$Resource$Projects$Locations$Imageimports$List
|
|
3839
|
+
extends StandardParameters {
|
|
3840
|
+
/**
|
|
3841
|
+
* Optional. The filter request (according to https://google.aip.dev/160).
|
|
3842
|
+
*/
|
|
3843
|
+
filter?: string;
|
|
3844
|
+
/**
|
|
3845
|
+
* Optional. The order by fields for the result (according to https://google.aip.dev/132#ordering). Currently ordering is only possible by "name" field.
|
|
3846
|
+
*/
|
|
3847
|
+
orderBy?: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* 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.
|
|
3850
|
+
*/
|
|
3851
|
+
pageSize?: number;
|
|
3852
|
+
/**
|
|
3853
|
+
* 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.
|
|
3854
|
+
*/
|
|
3855
|
+
pageToken?: string;
|
|
3856
|
+
/**
|
|
3857
|
+
* Required. The parent, which owns this collection of targets.
|
|
3858
|
+
*/
|
|
3859
|
+
parent?: string;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
export class Resource$Projects$Locations$Imageimports$Imageimportjobs {
|
|
3863
|
+
context: APIRequestContext;
|
|
3864
|
+
constructor(context: APIRequestContext) {
|
|
3865
|
+
this.context = context;
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
/**
|
|
3869
|
+
* Initiates the cancellation of a running clone job.
|
|
3870
|
+
*
|
|
3871
|
+
* @param params - Parameters for request
|
|
3872
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3873
|
+
* @param callback - Optional callback that handles the response.
|
|
3874
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3875
|
+
*/
|
|
3876
|
+
cancel(
|
|
3877
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
|
|
3878
|
+
options: StreamMethodOptions
|
|
3879
|
+
): GaxiosPromise<Readable>;
|
|
3880
|
+
cancel(
|
|
3881
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
|
|
3882
|
+
options?: MethodOptions
|
|
3883
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3884
|
+
cancel(
|
|
3885
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
|
|
3886
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3887
|
+
callback: BodyResponseCallback<Readable>
|
|
3888
|
+
): void;
|
|
3889
|
+
cancel(
|
|
3890
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
|
|
3891
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3892
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3893
|
+
): void;
|
|
3894
|
+
cancel(
|
|
3895
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel,
|
|
3896
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3897
|
+
): void;
|
|
3898
|
+
cancel(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3899
|
+
cancel(
|
|
3900
|
+
paramsOrCallback?:
|
|
3901
|
+
| Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel
|
|
3902
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3903
|
+
| BodyResponseCallback<Readable>,
|
|
3904
|
+
optionsOrCallback?:
|
|
3905
|
+
| MethodOptions
|
|
3906
|
+
| StreamMethodOptions
|
|
3907
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3908
|
+
| BodyResponseCallback<Readable>,
|
|
3909
|
+
callback?:
|
|
3910
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3911
|
+
| BodyResponseCallback<Readable>
|
|
3912
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3913
|
+
let params = (paramsOrCallback ||
|
|
3914
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel;
|
|
3915
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3916
|
+
|
|
3917
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3918
|
+
callback = paramsOrCallback;
|
|
3919
|
+
params =
|
|
3920
|
+
{} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel;
|
|
3921
|
+
options = {};
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3925
|
+
callback = optionsOrCallback;
|
|
3926
|
+
options = {};
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
3930
|
+
const parameters = {
|
|
3931
|
+
options: Object.assign(
|
|
3932
|
+
{
|
|
3933
|
+
url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
|
|
3934
|
+
method: 'POST',
|
|
3935
|
+
},
|
|
3936
|
+
options
|
|
3937
|
+
),
|
|
3938
|
+
params,
|
|
3939
|
+
requiredParams: ['name'],
|
|
3940
|
+
pathParams: ['name'],
|
|
3941
|
+
context: this.context,
|
|
3942
|
+
};
|
|
3943
|
+
if (callback) {
|
|
3944
|
+
createAPIRequest<Schema$Operation>(
|
|
3945
|
+
parameters,
|
|
3946
|
+
callback as BodyResponseCallback<unknown>
|
|
3947
|
+
);
|
|
3948
|
+
} else {
|
|
3949
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
/**
|
|
3954
|
+
* Gets details of a single ImageImportJob.
|
|
3955
|
+
*
|
|
3956
|
+
* @param params - Parameters for request
|
|
3957
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3958
|
+
* @param callback - Optional callback that handles the response.
|
|
3959
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3960
|
+
*/
|
|
3961
|
+
get(
|
|
3962
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
|
|
3963
|
+
options: StreamMethodOptions
|
|
3964
|
+
): GaxiosPromise<Readable>;
|
|
3965
|
+
get(
|
|
3966
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
|
|
3967
|
+
options?: MethodOptions
|
|
3968
|
+
): GaxiosPromise<Schema$ImageImportJob>;
|
|
3969
|
+
get(
|
|
3970
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
|
|
3971
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3972
|
+
callback: BodyResponseCallback<Readable>
|
|
3973
|
+
): void;
|
|
3974
|
+
get(
|
|
3975
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
|
|
3976
|
+
options: MethodOptions | BodyResponseCallback<Schema$ImageImportJob>,
|
|
3977
|
+
callback: BodyResponseCallback<Schema$ImageImportJob>
|
|
3978
|
+
): void;
|
|
3979
|
+
get(
|
|
3980
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get,
|
|
3981
|
+
callback: BodyResponseCallback<Schema$ImageImportJob>
|
|
3982
|
+
): void;
|
|
3983
|
+
get(callback: BodyResponseCallback<Schema$ImageImportJob>): void;
|
|
3984
|
+
get(
|
|
3985
|
+
paramsOrCallback?:
|
|
3986
|
+
| Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get
|
|
3987
|
+
| BodyResponseCallback<Schema$ImageImportJob>
|
|
3988
|
+
| BodyResponseCallback<Readable>,
|
|
3989
|
+
optionsOrCallback?:
|
|
3990
|
+
| MethodOptions
|
|
3991
|
+
| StreamMethodOptions
|
|
3992
|
+
| BodyResponseCallback<Schema$ImageImportJob>
|
|
3993
|
+
| BodyResponseCallback<Readable>,
|
|
3994
|
+
callback?:
|
|
3995
|
+
| BodyResponseCallback<Schema$ImageImportJob>
|
|
3996
|
+
| BodyResponseCallback<Readable>
|
|
3997
|
+
): void | GaxiosPromise<Schema$ImageImportJob> | GaxiosPromise<Readable> {
|
|
3998
|
+
let params = (paramsOrCallback ||
|
|
3999
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get;
|
|
4000
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4001
|
+
|
|
4002
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4003
|
+
callback = paramsOrCallback;
|
|
4004
|
+
params =
|
|
4005
|
+
{} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get;
|
|
4006
|
+
options = {};
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4010
|
+
callback = optionsOrCallback;
|
|
4011
|
+
options = {};
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
4015
|
+
const parameters = {
|
|
4016
|
+
options: Object.assign(
|
|
4017
|
+
{
|
|
4018
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4019
|
+
method: 'GET',
|
|
4020
|
+
},
|
|
4021
|
+
options
|
|
4022
|
+
),
|
|
4023
|
+
params,
|
|
4024
|
+
requiredParams: ['name'],
|
|
4025
|
+
pathParams: ['name'],
|
|
4026
|
+
context: this.context,
|
|
4027
|
+
};
|
|
4028
|
+
if (callback) {
|
|
4029
|
+
createAPIRequest<Schema$ImageImportJob>(
|
|
4030
|
+
parameters,
|
|
4031
|
+
callback as BodyResponseCallback<unknown>
|
|
4032
|
+
);
|
|
4033
|
+
} else {
|
|
4034
|
+
return createAPIRequest<Schema$ImageImportJob>(parameters);
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
/**
|
|
4039
|
+
* Lists ImageImportJobs in a given project.
|
|
4040
|
+
*
|
|
4041
|
+
* @param params - Parameters for request
|
|
4042
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4043
|
+
* @param callback - Optional callback that handles the response.
|
|
4044
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4045
|
+
*/
|
|
4046
|
+
list(
|
|
4047
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
|
|
4048
|
+
options: StreamMethodOptions
|
|
4049
|
+
): GaxiosPromise<Readable>;
|
|
4050
|
+
list(
|
|
4051
|
+
params?: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
|
|
4052
|
+
options?: MethodOptions
|
|
4053
|
+
): GaxiosPromise<Schema$ListImageImportJobsResponse>;
|
|
4054
|
+
list(
|
|
4055
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
|
|
4056
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4057
|
+
callback: BodyResponseCallback<Readable>
|
|
4058
|
+
): void;
|
|
4059
|
+
list(
|
|
4060
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
|
|
4061
|
+
options:
|
|
4062
|
+
| MethodOptions
|
|
4063
|
+
| BodyResponseCallback<Schema$ListImageImportJobsResponse>,
|
|
4064
|
+
callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4065
|
+
): void;
|
|
4066
|
+
list(
|
|
4067
|
+
params: Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List,
|
|
4068
|
+
callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4069
|
+
): void;
|
|
4070
|
+
list(
|
|
4071
|
+
callback: BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4072
|
+
): void;
|
|
4073
|
+
list(
|
|
4074
|
+
paramsOrCallback?:
|
|
4075
|
+
| Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List
|
|
4076
|
+
| BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4077
|
+
| BodyResponseCallback<Readable>,
|
|
4078
|
+
optionsOrCallback?:
|
|
4079
|
+
| MethodOptions
|
|
4080
|
+
| StreamMethodOptions
|
|
4081
|
+
| BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4082
|
+
| BodyResponseCallback<Readable>,
|
|
4083
|
+
callback?:
|
|
4084
|
+
| BodyResponseCallback<Schema$ListImageImportJobsResponse>
|
|
4085
|
+
| BodyResponseCallback<Readable>
|
|
4086
|
+
):
|
|
4087
|
+
| void
|
|
4088
|
+
| GaxiosPromise<Schema$ListImageImportJobsResponse>
|
|
4089
|
+
| GaxiosPromise<Readable> {
|
|
4090
|
+
let params = (paramsOrCallback ||
|
|
4091
|
+
{}) as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List;
|
|
4092
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4093
|
+
|
|
4094
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4095
|
+
callback = paramsOrCallback;
|
|
4096
|
+
params =
|
|
4097
|
+
{} as Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List;
|
|
4098
|
+
options = {};
|
|
4099
|
+
}
|
|
4100
|
+
|
|
4101
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4102
|
+
callback = optionsOrCallback;
|
|
4103
|
+
options = {};
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/';
|
|
4107
|
+
const parameters = {
|
|
4108
|
+
options: Object.assign(
|
|
4109
|
+
{
|
|
4110
|
+
url: (rootUrl + '/v1/{+parent}/imageImportJobs').replace(
|
|
4111
|
+
/([^:]\/)\/+/g,
|
|
4112
|
+
'$1'
|
|
4113
|
+
),
|
|
4114
|
+
method: 'GET',
|
|
4115
|
+
},
|
|
4116
|
+
options
|
|
4117
|
+
),
|
|
4118
|
+
params,
|
|
4119
|
+
requiredParams: ['parent'],
|
|
4120
|
+
pathParams: ['parent'],
|
|
4121
|
+
context: this.context,
|
|
4122
|
+
};
|
|
4123
|
+
if (callback) {
|
|
4124
|
+
createAPIRequest<Schema$ListImageImportJobsResponse>(
|
|
4125
|
+
parameters,
|
|
4126
|
+
callback as BodyResponseCallback<unknown>
|
|
4127
|
+
);
|
|
4128
|
+
} else {
|
|
4129
|
+
return createAPIRequest<Schema$ListImageImportJobsResponse>(parameters);
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Cancel
|
|
4135
|
+
extends StandardParameters {
|
|
4136
|
+
/**
|
|
4137
|
+
* Required. The image import job id.
|
|
4138
|
+
*/
|
|
4139
|
+
name?: string;
|
|
4140
|
+
|
|
4141
|
+
/**
|
|
4142
|
+
* Request body metadata
|
|
4143
|
+
*/
|
|
4144
|
+
requestBody?: Schema$CancelImageImportJobRequest;
|
|
4145
|
+
}
|
|
4146
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$Get
|
|
4147
|
+
extends StandardParameters {
|
|
4148
|
+
/**
|
|
4149
|
+
* Required. The ImageImportJob name.
|
|
4150
|
+
*/
|
|
4151
|
+
name?: string;
|
|
4152
|
+
}
|
|
4153
|
+
export interface Params$Resource$Projects$Locations$Imageimports$Imageimportjobs$List
|
|
4154
|
+
extends StandardParameters {
|
|
4155
|
+
/**
|
|
4156
|
+
* Optional. The filter request (according to https://google.aip.dev/160).
|
|
4157
|
+
*/
|
|
4158
|
+
filter?: string;
|
|
4159
|
+
/**
|
|
4160
|
+
* Optional. The order by fields for the result (according to https://google.aip.dev/132#ordering). Currently ordering is only possible by "name" field.
|
|
4161
|
+
*/
|
|
4162
|
+
orderBy?: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* 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.
|
|
4165
|
+
*/
|
|
4166
|
+
pageSize?: number;
|
|
4167
|
+
/**
|
|
4168
|
+
* 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.
|
|
4169
|
+
*/
|
|
4170
|
+
pageToken?: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Required. The parent, which owns this collection of targets.
|
|
4173
|
+
*/
|
|
4174
|
+
parent?: string;
|
|
4175
|
+
}
|
|
4176
|
+
|
|
3222
4177
|
export class Resource$Projects$Locations$Operations {
|
|
3223
4178
|
context: APIRequestContext;
|
|
3224
4179
|
constructor(context: APIRequestContext) {
|