@alicloud/eas20210701 6.4.1 → 6.5.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/dist/client.d.ts +485 -2
- package/dist/client.js +432 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +858 -76
package/src/client.ts
CHANGED
|
@@ -5,6 +5,32 @@ import OpenApi from '@alicloud/openapi-core';
|
|
|
5
5
|
import { OpenApiUtil, $OpenApiUtil } from '@alicloud/openapi-core';
|
|
6
6
|
import * as $dara from '@darabonba/typescript';
|
|
7
7
|
|
|
8
|
+
export class ResourceInstanceLabels extends $dara.Model {
|
|
9
|
+
labelKey?: string;
|
|
10
|
+
labelValue?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
labelKey: 'LabelKey',
|
|
14
|
+
labelValue: 'LabelValue',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
labelKey: 'string',
|
|
21
|
+
labelValue: 'string',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
super.validate();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
constructor(map?: { [key: string]: any }) {
|
|
30
|
+
super(map);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
8
34
|
export class ServiceLabels extends $dara.Model {
|
|
9
35
|
labelKey?: string;
|
|
10
36
|
labelValue?: string;
|
|
@@ -3200,6 +3226,7 @@ export class ResourceInstance extends $dara.Model {
|
|
|
3200
3226
|
instanceUsedGpu?: number;
|
|
3201
3227
|
instanceUsedGpuMemory?: string;
|
|
3202
3228
|
instanceUsedMemory?: string;
|
|
3229
|
+
labels?: ResourceInstanceLabels[];
|
|
3203
3230
|
region?: string;
|
|
3204
3231
|
resourceId?: string;
|
|
3205
3232
|
zone?: string;
|
|
@@ -3225,6 +3252,7 @@ export class ResourceInstance extends $dara.Model {
|
|
|
3225
3252
|
instanceUsedGpu: 'InstanceUsedGpu',
|
|
3226
3253
|
instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
|
|
3227
3254
|
instanceUsedMemory: 'InstanceUsedMemory',
|
|
3255
|
+
labels: 'Labels',
|
|
3228
3256
|
region: 'Region',
|
|
3229
3257
|
resourceId: 'ResourceId',
|
|
3230
3258
|
zone: 'Zone',
|
|
@@ -3253,6 +3281,7 @@ export class ResourceInstance extends $dara.Model {
|
|
|
3253
3281
|
instanceUsedGpu: 'number',
|
|
3254
3282
|
instanceUsedGpuMemory: 'string',
|
|
3255
3283
|
instanceUsedMemory: 'string',
|
|
3284
|
+
labels: { 'type': 'array', 'itemType': ResourceInstanceLabels },
|
|
3256
3285
|
region: 'string',
|
|
3257
3286
|
resourceId: 'string',
|
|
3258
3287
|
zone: 'string',
|
|
@@ -3260,6 +3289,9 @@ export class ResourceInstance extends $dara.Model {
|
|
|
3260
3289
|
}
|
|
3261
3290
|
|
|
3262
3291
|
validate() {
|
|
3292
|
+
if(Array.isArray(this.labels)) {
|
|
3293
|
+
$dara.Model.validateArray(this.labels);
|
|
3294
|
+
}
|
|
3263
3295
|
super.validate();
|
|
3264
3296
|
}
|
|
3265
3297
|
|
|
@@ -4999,6 +5031,7 @@ export class CreateResourceRequest extends $dara.Model {
|
|
|
4999
5031
|
* ecs.c6.8xlarge
|
|
5000
5032
|
*/
|
|
5001
5033
|
ecsInstanceType?: string;
|
|
5034
|
+
labels?: { [key: string]: string };
|
|
5002
5035
|
/**
|
|
5003
5036
|
* @remarks
|
|
5004
5037
|
* The type of the resource group. Valid values:
|
|
@@ -5039,6 +5072,7 @@ export class CreateResourceRequest extends $dara.Model {
|
|
|
5039
5072
|
chargeType: 'ChargeType',
|
|
5040
5073
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
5041
5074
|
ecsInstanceType: 'EcsInstanceType',
|
|
5075
|
+
labels: 'Labels',
|
|
5042
5076
|
resourceType: 'ResourceType',
|
|
5043
5077
|
selfManagedResourceOptions: 'SelfManagedResourceOptions',
|
|
5044
5078
|
systemDiskSize: 'SystemDiskSize',
|
|
@@ -5052,6 +5086,7 @@ export class CreateResourceRequest extends $dara.Model {
|
|
|
5052
5086
|
chargeType: 'string',
|
|
5053
5087
|
ecsInstanceCount: 'number',
|
|
5054
5088
|
ecsInstanceType: 'string',
|
|
5089
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5055
5090
|
resourceType: 'string',
|
|
5056
5091
|
selfManagedResourceOptions: CreateResourceRequestSelfManagedResourceOptions,
|
|
5057
5092
|
systemDiskSize: 'number',
|
|
@@ -5060,6 +5095,9 @@ export class CreateResourceRequest extends $dara.Model {
|
|
|
5060
5095
|
}
|
|
5061
5096
|
|
|
5062
5097
|
validate() {
|
|
5098
|
+
if(this.labels) {
|
|
5099
|
+
$dara.Model.validateMap(this.labels);
|
|
5100
|
+
}
|
|
5063
5101
|
if(this.selfManagedResourceOptions && typeof (this.selfManagedResourceOptions as any).validate === 'function') {
|
|
5064
5102
|
(this.selfManagedResourceOptions as any).validate();
|
|
5065
5103
|
}
|
|
@@ -5231,6 +5269,7 @@ export class CreateResourceInstancesRequest extends $dara.Model {
|
|
|
5231
5269
|
* ecs.s6-c1m2.xlarge
|
|
5232
5270
|
*/
|
|
5233
5271
|
ecsInstanceType?: string;
|
|
5272
|
+
labels?: { [key: string]: string };
|
|
5234
5273
|
/**
|
|
5235
5274
|
* @remarks
|
|
5236
5275
|
* The size of the system disk. Unit: GiB. Valid values: 200 to 2000. Default value: 200.
|
|
@@ -5261,6 +5300,7 @@ export class CreateResourceInstancesRequest extends $dara.Model {
|
|
|
5261
5300
|
chargeType: 'ChargeType',
|
|
5262
5301
|
ecsInstanceCount: 'EcsInstanceCount',
|
|
5263
5302
|
ecsInstanceType: 'EcsInstanceType',
|
|
5303
|
+
labels: 'Labels',
|
|
5264
5304
|
systemDiskSize: 'SystemDiskSize',
|
|
5265
5305
|
userData: 'UserData',
|
|
5266
5306
|
zone: 'Zone',
|
|
@@ -5273,6 +5313,7 @@ export class CreateResourceInstancesRequest extends $dara.Model {
|
|
|
5273
5313
|
chargeType: 'string',
|
|
5274
5314
|
ecsInstanceCount: 'number',
|
|
5275
5315
|
ecsInstanceType: 'string',
|
|
5316
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5276
5317
|
systemDiskSize: 'number',
|
|
5277
5318
|
userData: 'string',
|
|
5278
5319
|
zone: 'string',
|
|
@@ -5280,6 +5321,9 @@ export class CreateResourceInstancesRequest extends $dara.Model {
|
|
|
5280
5321
|
}
|
|
5281
5322
|
|
|
5282
5323
|
validate() {
|
|
5324
|
+
if(this.labels) {
|
|
5325
|
+
$dara.Model.validateMap(this.labels);
|
|
5326
|
+
}
|
|
5283
5327
|
super.validate();
|
|
5284
5328
|
}
|
|
5285
5329
|
|
|
@@ -7170,6 +7214,139 @@ export class DeleteResourceDLinkResponse extends $dara.Model {
|
|
|
7170
7214
|
}
|
|
7171
7215
|
}
|
|
7172
7216
|
|
|
7217
|
+
export class DeleteResourceInstanceLabelRequest extends $dara.Model {
|
|
7218
|
+
allInstances?: boolean;
|
|
7219
|
+
instanceIds?: string[];
|
|
7220
|
+
keys?: string[];
|
|
7221
|
+
static names(): { [key: string]: string } {
|
|
7222
|
+
return {
|
|
7223
|
+
allInstances: 'AllInstances',
|
|
7224
|
+
instanceIds: 'InstanceIds',
|
|
7225
|
+
keys: 'Keys',
|
|
7226
|
+
};
|
|
7227
|
+
}
|
|
7228
|
+
|
|
7229
|
+
static types(): { [key: string]: any } {
|
|
7230
|
+
return {
|
|
7231
|
+
allInstances: 'boolean',
|
|
7232
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
7233
|
+
keys: { 'type': 'array', 'itemType': 'string' },
|
|
7234
|
+
};
|
|
7235
|
+
}
|
|
7236
|
+
|
|
7237
|
+
validate() {
|
|
7238
|
+
if(Array.isArray(this.instanceIds)) {
|
|
7239
|
+
$dara.Model.validateArray(this.instanceIds);
|
|
7240
|
+
}
|
|
7241
|
+
if(Array.isArray(this.keys)) {
|
|
7242
|
+
$dara.Model.validateArray(this.keys);
|
|
7243
|
+
}
|
|
7244
|
+
super.validate();
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
constructor(map?: { [key: string]: any }) {
|
|
7248
|
+
super(map);
|
|
7249
|
+
}
|
|
7250
|
+
}
|
|
7251
|
+
|
|
7252
|
+
export class DeleteResourceInstanceLabelShrinkRequest extends $dara.Model {
|
|
7253
|
+
allInstances?: boolean;
|
|
7254
|
+
instanceIdsShrink?: string;
|
|
7255
|
+
keysShrink?: string;
|
|
7256
|
+
static names(): { [key: string]: string } {
|
|
7257
|
+
return {
|
|
7258
|
+
allInstances: 'AllInstances',
|
|
7259
|
+
instanceIdsShrink: 'InstanceIds',
|
|
7260
|
+
keysShrink: 'Keys',
|
|
7261
|
+
};
|
|
7262
|
+
}
|
|
7263
|
+
|
|
7264
|
+
static types(): { [key: string]: any } {
|
|
7265
|
+
return {
|
|
7266
|
+
allInstances: 'boolean',
|
|
7267
|
+
instanceIdsShrink: 'string',
|
|
7268
|
+
keysShrink: 'string',
|
|
7269
|
+
};
|
|
7270
|
+
}
|
|
7271
|
+
|
|
7272
|
+
validate() {
|
|
7273
|
+
super.validate();
|
|
7274
|
+
}
|
|
7275
|
+
|
|
7276
|
+
constructor(map?: { [key: string]: any }) {
|
|
7277
|
+
super(map);
|
|
7278
|
+
}
|
|
7279
|
+
}
|
|
7280
|
+
|
|
7281
|
+
export class DeleteResourceInstanceLabelResponseBody extends $dara.Model {
|
|
7282
|
+
/**
|
|
7283
|
+
* @example
|
|
7284
|
+
* success
|
|
7285
|
+
*/
|
|
7286
|
+
message?: string;
|
|
7287
|
+
/**
|
|
7288
|
+
* @example
|
|
7289
|
+
* 40325405-579C-4D82********
|
|
7290
|
+
*/
|
|
7291
|
+
requestId?: string;
|
|
7292
|
+
static names(): { [key: string]: string } {
|
|
7293
|
+
return {
|
|
7294
|
+
message: 'Message',
|
|
7295
|
+
requestId: 'RequestId',
|
|
7296
|
+
};
|
|
7297
|
+
}
|
|
7298
|
+
|
|
7299
|
+
static types(): { [key: string]: any } {
|
|
7300
|
+
return {
|
|
7301
|
+
message: 'string',
|
|
7302
|
+
requestId: 'string',
|
|
7303
|
+
};
|
|
7304
|
+
}
|
|
7305
|
+
|
|
7306
|
+
validate() {
|
|
7307
|
+
super.validate();
|
|
7308
|
+
}
|
|
7309
|
+
|
|
7310
|
+
constructor(map?: { [key: string]: any }) {
|
|
7311
|
+
super(map);
|
|
7312
|
+
}
|
|
7313
|
+
}
|
|
7314
|
+
|
|
7315
|
+
export class DeleteResourceInstanceLabelResponse extends $dara.Model {
|
|
7316
|
+
headers?: { [key: string]: string };
|
|
7317
|
+
statusCode?: number;
|
|
7318
|
+
body?: DeleteResourceInstanceLabelResponseBody;
|
|
7319
|
+
static names(): { [key: string]: string } {
|
|
7320
|
+
return {
|
|
7321
|
+
headers: 'headers',
|
|
7322
|
+
statusCode: 'statusCode',
|
|
7323
|
+
body: 'body',
|
|
7324
|
+
};
|
|
7325
|
+
}
|
|
7326
|
+
|
|
7327
|
+
static types(): { [key: string]: any } {
|
|
7328
|
+
return {
|
|
7329
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7330
|
+
statusCode: 'number',
|
|
7331
|
+
body: DeleteResourceInstanceLabelResponseBody,
|
|
7332
|
+
};
|
|
7333
|
+
}
|
|
7334
|
+
|
|
7335
|
+
validate() {
|
|
7336
|
+
if(this.headers) {
|
|
7337
|
+
$dara.Model.validateMap(this.headers);
|
|
7338
|
+
}
|
|
7339
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
7340
|
+
(this.body as any).validate();
|
|
7341
|
+
}
|
|
7342
|
+
super.validate();
|
|
7343
|
+
}
|
|
7344
|
+
|
|
7345
|
+
constructor(map?: { [key: string]: any }) {
|
|
7346
|
+
super(map);
|
|
7347
|
+
}
|
|
7348
|
+
}
|
|
7349
|
+
|
|
7173
7350
|
export class DeleteResourceInstancesRequest extends $dara.Model {
|
|
7174
7351
|
/**
|
|
7175
7352
|
* @remarks
|
|
@@ -12153,6 +12330,7 @@ export class ListResourceInstancesRequest extends $dara.Model {
|
|
|
12153
12330
|
* Ready
|
|
12154
12331
|
*/
|
|
12155
12332
|
instanceStatus?: string;
|
|
12333
|
+
label?: { [key: string]: string };
|
|
12156
12334
|
/**
|
|
12157
12335
|
* @remarks
|
|
12158
12336
|
* The sorting order.
|
|
@@ -12271,6 +12449,7 @@ export class ListResourceInstancesRequest extends $dara.Model {
|
|
|
12271
12449
|
instanceId: 'InstanceId',
|
|
12272
12450
|
instanceName: 'InstanceName',
|
|
12273
12451
|
instanceStatus: 'InstanceStatus',
|
|
12452
|
+
label: 'Label',
|
|
12274
12453
|
order: 'Order',
|
|
12275
12454
|
pageNumber: 'PageNumber',
|
|
12276
12455
|
pageSize: 'PageSize',
|
|
@@ -12286,6 +12465,7 @@ export class ListResourceInstancesRequest extends $dara.Model {
|
|
|
12286
12465
|
instanceId: 'string',
|
|
12287
12466
|
instanceName: 'string',
|
|
12288
12467
|
instanceStatus: 'string',
|
|
12468
|
+
label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12289
12469
|
order: 'string',
|
|
12290
12470
|
pageNumber: 'number',
|
|
12291
12471
|
pageSize: 'number',
|
|
@@ -12294,6 +12474,9 @@ export class ListResourceInstancesRequest extends $dara.Model {
|
|
|
12294
12474
|
}
|
|
12295
12475
|
|
|
12296
12476
|
validate() {
|
|
12477
|
+
if(this.label) {
|
|
12478
|
+
$dara.Model.validateMap(this.label);
|
|
12479
|
+
}
|
|
12297
12480
|
super.validate();
|
|
12298
12481
|
}
|
|
12299
12482
|
|
|
@@ -12302,102 +12485,402 @@ export class ListResourceInstancesRequest extends $dara.Model {
|
|
|
12302
12485
|
}
|
|
12303
12486
|
}
|
|
12304
12487
|
|
|
12305
|
-
export class
|
|
12488
|
+
export class ListResourceInstancesShrinkRequest extends $dara.Model {
|
|
12306
12489
|
/**
|
|
12307
12490
|
* @remarks
|
|
12308
|
-
* The
|
|
12491
|
+
* The billing method of the instance. Valid values:
|
|
12492
|
+
*
|
|
12493
|
+
* * PrePaid: subscription.
|
|
12494
|
+
* * PostPaid: pay-as-you-go.
|
|
12495
|
+
*
|
|
12496
|
+
* @example
|
|
12497
|
+
* PrePaid
|
|
12309
12498
|
*/
|
|
12310
|
-
|
|
12499
|
+
chargeType?: string;
|
|
12311
12500
|
/**
|
|
12312
12501
|
* @remarks
|
|
12313
|
-
* The
|
|
12502
|
+
* The keyword used to query instances. Instances can be queried by instance ID or instance IP address.
|
|
12314
12503
|
*
|
|
12315
12504
|
* @example
|
|
12316
|
-
*
|
|
12505
|
+
* 10.224.xx.xx
|
|
12317
12506
|
*/
|
|
12318
|
-
|
|
12507
|
+
filter?: string;
|
|
12319
12508
|
/**
|
|
12320
12509
|
* @remarks
|
|
12321
|
-
* The
|
|
12510
|
+
* The IP address of the instance.
|
|
12322
12511
|
*
|
|
12323
12512
|
* @example
|
|
12324
|
-
*
|
|
12513
|
+
* 10.224.xx.xx
|
|
12325
12514
|
*/
|
|
12326
|
-
|
|
12515
|
+
instanceIP?: string;
|
|
12327
12516
|
/**
|
|
12328
12517
|
* @remarks
|
|
12329
|
-
* The
|
|
12518
|
+
* The instance ID. For more information about how to query the instance ID, see [ListResourceInstances](https://help.aliyun.com/document_detail/412129.html).
|
|
12330
12519
|
*
|
|
12331
12520
|
* @example
|
|
12332
|
-
*
|
|
12521
|
+
* i-bp1jd6x3uotsv****
|
|
12333
12522
|
*/
|
|
12334
|
-
|
|
12523
|
+
instanceId?: string;
|
|
12335
12524
|
/**
|
|
12336
12525
|
* @remarks
|
|
12337
|
-
* The
|
|
12526
|
+
* The instance name.
|
|
12338
12527
|
*
|
|
12339
12528
|
* @example
|
|
12340
|
-
*
|
|
12529
|
+
* e-xxxx***
|
|
12341
12530
|
*/
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12531
|
+
instanceName?: string;
|
|
12532
|
+
/**
|
|
12533
|
+
* @remarks
|
|
12534
|
+
* The instance state.
|
|
12535
|
+
*
|
|
12536
|
+
* Valid values:
|
|
12537
|
+
*
|
|
12538
|
+
* * Ready-SchedulingDisabled
|
|
12539
|
+
*
|
|
12540
|
+
* <!-- -->
|
|
12541
|
+
*
|
|
12542
|
+
* :
|
|
12543
|
+
*
|
|
12544
|
+
* <!-- -->
|
|
12545
|
+
*
|
|
12546
|
+
* The instance is available but unschedulable
|
|
12547
|
+
*
|
|
12548
|
+
* <!-- -->
|
|
12549
|
+
*
|
|
12550
|
+
* .
|
|
12551
|
+
*
|
|
12552
|
+
* * Ready
|
|
12553
|
+
*
|
|
12554
|
+
* <!-- -->
|
|
12555
|
+
*
|
|
12556
|
+
* : The instance
|
|
12557
|
+
*
|
|
12558
|
+
* <!-- -->
|
|
12559
|
+
*
|
|
12560
|
+
* is running
|
|
12561
|
+
*
|
|
12562
|
+
* <!-- -->
|
|
12563
|
+
*
|
|
12564
|
+
* .
|
|
12565
|
+
*
|
|
12566
|
+
* * NotReady
|
|
12567
|
+
*
|
|
12568
|
+
* <!-- -->
|
|
12569
|
+
*
|
|
12570
|
+
* : The instance is unready.
|
|
12571
|
+
*
|
|
12572
|
+
* <!-- -->
|
|
12573
|
+
*
|
|
12574
|
+
* <!-- -->
|
|
12575
|
+
*
|
|
12576
|
+
* * Stopped
|
|
12577
|
+
*
|
|
12578
|
+
* <!-- -->
|
|
12579
|
+
*
|
|
12580
|
+
* : The instance has stopped.
|
|
12581
|
+
*
|
|
12582
|
+
* <!-- -->
|
|
12583
|
+
*
|
|
12584
|
+
* <!-- -->
|
|
12585
|
+
*
|
|
12586
|
+
* * NotReady-SchedulingDisabled
|
|
12587
|
+
*
|
|
12588
|
+
* <!-- -->
|
|
12589
|
+
*
|
|
12590
|
+
* :
|
|
12591
|
+
*
|
|
12592
|
+
* <!-- -->
|
|
12593
|
+
*
|
|
12594
|
+
* The instance is unavailable and unschedulable
|
|
12595
|
+
*
|
|
12596
|
+
* <!-- -->
|
|
12597
|
+
*
|
|
12598
|
+
* .
|
|
12599
|
+
*
|
|
12600
|
+
* * Attaching
|
|
12601
|
+
*
|
|
12602
|
+
* <!-- -->
|
|
12603
|
+
*
|
|
12604
|
+
* : The instance
|
|
12605
|
+
*
|
|
12606
|
+
* <!-- -->
|
|
12607
|
+
*
|
|
12608
|
+
* is starting
|
|
12609
|
+
*
|
|
12610
|
+
* <!-- -->
|
|
12611
|
+
*
|
|
12612
|
+
* .
|
|
12613
|
+
*
|
|
12614
|
+
* * Deleting
|
|
12615
|
+
*
|
|
12616
|
+
* <!-- -->
|
|
12617
|
+
*
|
|
12618
|
+
* : The instance is being deleted.
|
|
12619
|
+
*
|
|
12620
|
+
* <!-- -->
|
|
12621
|
+
*
|
|
12622
|
+
* <!-- -->
|
|
12623
|
+
*
|
|
12624
|
+
* * CreateFailed: The instance failed to be created.
|
|
12625
|
+
*
|
|
12626
|
+
* <!-- -->
|
|
12627
|
+
*
|
|
12628
|
+
* <!-- -->
|
|
12629
|
+
*
|
|
12630
|
+
* <!-- -->
|
|
12631
|
+
*
|
|
12632
|
+
* @example
|
|
12633
|
+
* Ready
|
|
12634
|
+
*/
|
|
12635
|
+
instanceStatus?: string;
|
|
12636
|
+
labelShrink?: string;
|
|
12637
|
+
/**
|
|
12638
|
+
* @remarks
|
|
12639
|
+
* The sorting order.
|
|
12640
|
+
*
|
|
12641
|
+
* Valid values:
|
|
12642
|
+
*
|
|
12643
|
+
* * asc: The instances are sorted in ascending order.
|
|
12644
|
+
*
|
|
12645
|
+
* <!-- -->
|
|
12646
|
+
*
|
|
12647
|
+
* <!-- -->
|
|
12648
|
+
*
|
|
12649
|
+
* <!-- -->
|
|
12650
|
+
*
|
|
12651
|
+
* * desc
|
|
12652
|
+
*
|
|
12653
|
+
* <!-- -->
|
|
12654
|
+
*
|
|
12655
|
+
* : The instances are sorted in descending order.
|
|
12656
|
+
*
|
|
12657
|
+
* <!-- -->
|
|
12658
|
+
*
|
|
12659
|
+
* <!-- -->
|
|
12660
|
+
*
|
|
12661
|
+
* @example
|
|
12662
|
+
* desc
|
|
12663
|
+
*/
|
|
12664
|
+
order?: string;
|
|
12665
|
+
/**
|
|
12666
|
+
* @remarks
|
|
12667
|
+
* The page number. Pages start from page 1. Default value: 1.
|
|
12668
|
+
*
|
|
12669
|
+
* @example
|
|
12670
|
+
* 1
|
|
12671
|
+
*/
|
|
12672
|
+
pageNumber?: number;
|
|
12673
|
+
/**
|
|
12674
|
+
* @remarks
|
|
12675
|
+
* The number of entries per page. Default value: 100.
|
|
12676
|
+
*
|
|
12677
|
+
* @example
|
|
12678
|
+
* 20
|
|
12679
|
+
*/
|
|
12680
|
+
pageSize?: number;
|
|
12681
|
+
/**
|
|
12682
|
+
* @remarks
|
|
12683
|
+
* The field that you use to sort the query results.
|
|
12684
|
+
*
|
|
12685
|
+
* Valid values:
|
|
12686
|
+
*
|
|
12687
|
+
* * CreateTime
|
|
12688
|
+
*
|
|
12689
|
+
* <!-- -->
|
|
12690
|
+
*
|
|
12691
|
+
* : The instances are sorted based on the time when the instances were created.
|
|
12692
|
+
*
|
|
12693
|
+
* <!-- -->
|
|
12694
|
+
*
|
|
12695
|
+
* <!-- -->
|
|
12696
|
+
*
|
|
12697
|
+
* * MemoryUsed
|
|
12698
|
+
*
|
|
12699
|
+
* <!-- -->
|
|
12700
|
+
*
|
|
12701
|
+
* :
|
|
12702
|
+
*
|
|
12703
|
+
* <!-- -->
|
|
12704
|
+
*
|
|
12705
|
+
* The instances are sorted based on the memory usage of the instances
|
|
12706
|
+
*
|
|
12707
|
+
* <!-- -->
|
|
12708
|
+
*
|
|
12709
|
+
* .
|
|
12710
|
+
*
|
|
12711
|
+
* * GpuUsed
|
|
12712
|
+
*
|
|
12713
|
+
* <!-- -->
|
|
12714
|
+
*
|
|
12715
|
+
* : The instances are sorted based on the
|
|
12716
|
+
*
|
|
12717
|
+
* <!-- -->
|
|
12718
|
+
*
|
|
12719
|
+
* GPU usage of the instances.
|
|
12720
|
+
*
|
|
12721
|
+
* <!-- -->
|
|
12722
|
+
*
|
|
12723
|
+
* * ExpireTime: The instances are sorted based on the time when the instances expired.
|
|
12724
|
+
*
|
|
12725
|
+
* <!-- -->
|
|
12726
|
+
*
|
|
12727
|
+
* <!-- -->
|
|
12728
|
+
*
|
|
12729
|
+
* <!-- -->
|
|
12730
|
+
*
|
|
12731
|
+
* * CpuUsed
|
|
12732
|
+
*
|
|
12733
|
+
* <!-- -->
|
|
12734
|
+
*
|
|
12735
|
+
* :
|
|
12736
|
+
*
|
|
12737
|
+
* <!-- -->
|
|
12738
|
+
*
|
|
12739
|
+
* The instances are sorted based on the CPU utilization of the instances.
|
|
12740
|
+
*
|
|
12741
|
+
* <!-- -->
|
|
12742
|
+
*
|
|
12743
|
+
* @example
|
|
12744
|
+
* CreateTime
|
|
12745
|
+
*/
|
|
12746
|
+
sort?: string;
|
|
12747
|
+
static names(): { [key: string]: string } {
|
|
12748
|
+
return {
|
|
12749
|
+
chargeType: 'ChargeType',
|
|
12750
|
+
filter: 'Filter',
|
|
12751
|
+
instanceIP: 'InstanceIP',
|
|
12752
|
+
instanceId: 'InstanceId',
|
|
12753
|
+
instanceName: 'InstanceName',
|
|
12754
|
+
instanceStatus: 'InstanceStatus',
|
|
12755
|
+
labelShrink: 'Label',
|
|
12756
|
+
order: 'Order',
|
|
12757
|
+
pageNumber: 'PageNumber',
|
|
12758
|
+
pageSize: 'PageSize',
|
|
12759
|
+
sort: 'Sort',
|
|
12760
|
+
};
|
|
12761
|
+
}
|
|
12762
|
+
|
|
12763
|
+
static types(): { [key: string]: any } {
|
|
12764
|
+
return {
|
|
12765
|
+
chargeType: 'string',
|
|
12766
|
+
filter: 'string',
|
|
12767
|
+
instanceIP: 'string',
|
|
12768
|
+
instanceId: 'string',
|
|
12769
|
+
instanceName: 'string',
|
|
12770
|
+
instanceStatus: 'string',
|
|
12771
|
+
labelShrink: 'string',
|
|
12772
|
+
order: 'string',
|
|
12773
|
+
pageNumber: 'number',
|
|
12774
|
+
pageSize: 'number',
|
|
12775
|
+
sort: 'string',
|
|
12776
|
+
};
|
|
12777
|
+
}
|
|
12778
|
+
|
|
12779
|
+
validate() {
|
|
12780
|
+
super.validate();
|
|
12781
|
+
}
|
|
12782
|
+
|
|
12783
|
+
constructor(map?: { [key: string]: any }) {
|
|
12784
|
+
super(map);
|
|
12785
|
+
}
|
|
12786
|
+
}
|
|
12787
|
+
|
|
12788
|
+
export class ListResourceInstancesResponseBody extends $dara.Model {
|
|
12789
|
+
/**
|
|
12790
|
+
* @remarks
|
|
12791
|
+
* The instances.
|
|
12792
|
+
*/
|
|
12793
|
+
instances?: ResourceInstance[];
|
|
12794
|
+
/**
|
|
12795
|
+
* @remarks
|
|
12796
|
+
* The page number.
|
|
12797
|
+
*
|
|
12798
|
+
* @example
|
|
12799
|
+
* 1
|
|
12800
|
+
*/
|
|
12801
|
+
pageNumber?: number;
|
|
12802
|
+
/**
|
|
12803
|
+
* @remarks
|
|
12804
|
+
* The number of entries per page.
|
|
12805
|
+
*
|
|
12806
|
+
* @example
|
|
12807
|
+
* 20
|
|
12808
|
+
*/
|
|
12809
|
+
pageSize?: number;
|
|
12810
|
+
/**
|
|
12811
|
+
* @remarks
|
|
12812
|
+
* The request ID.
|
|
12813
|
+
*
|
|
12814
|
+
* @example
|
|
12815
|
+
* 40325405-579C-4D82****
|
|
12816
|
+
*/
|
|
12817
|
+
requestId?: string;
|
|
12818
|
+
/**
|
|
12819
|
+
* @remarks
|
|
12820
|
+
* The total number of entries returned.
|
|
12821
|
+
*
|
|
12822
|
+
* @example
|
|
12823
|
+
* 2
|
|
12824
|
+
*/
|
|
12825
|
+
totalCount?: number;
|
|
12826
|
+
static names(): { [key: string]: string } {
|
|
12827
|
+
return {
|
|
12828
|
+
instances: 'Instances',
|
|
12829
|
+
pageNumber: 'PageNumber',
|
|
12830
|
+
pageSize: 'PageSize',
|
|
12831
|
+
requestId: 'RequestId',
|
|
12832
|
+
totalCount: 'TotalCount',
|
|
12833
|
+
};
|
|
12834
|
+
}
|
|
12835
|
+
|
|
12836
|
+
static types(): { [key: string]: any } {
|
|
12837
|
+
return {
|
|
12838
|
+
instances: { 'type': 'array', 'itemType': ResourceInstance },
|
|
12839
|
+
pageNumber: 'number',
|
|
12840
|
+
pageSize: 'number',
|
|
12841
|
+
requestId: 'string',
|
|
12842
|
+
totalCount: 'number',
|
|
12843
|
+
};
|
|
12844
|
+
}
|
|
12845
|
+
|
|
12846
|
+
validate() {
|
|
12847
|
+
if(Array.isArray(this.instances)) {
|
|
12848
|
+
$dara.Model.validateArray(this.instances);
|
|
12849
|
+
}
|
|
12850
|
+
super.validate();
|
|
12851
|
+
}
|
|
12852
|
+
|
|
12853
|
+
constructor(map?: { [key: string]: any }) {
|
|
12854
|
+
super(map);
|
|
12855
|
+
}
|
|
12856
|
+
}
|
|
12857
|
+
|
|
12858
|
+
export class ListResourceInstancesResponse extends $dara.Model {
|
|
12859
|
+
headers?: { [key: string]: string };
|
|
12860
|
+
statusCode?: number;
|
|
12861
|
+
body?: ListResourceInstancesResponseBody;
|
|
12862
|
+
static names(): { [key: string]: string } {
|
|
12863
|
+
return {
|
|
12864
|
+
headers: 'headers',
|
|
12865
|
+
statusCode: 'statusCode',
|
|
12866
|
+
body: 'body',
|
|
12867
|
+
};
|
|
12868
|
+
}
|
|
12869
|
+
|
|
12870
|
+
static types(): { [key: string]: any } {
|
|
12871
|
+
return {
|
|
12872
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12873
|
+
statusCode: 'number',
|
|
12874
|
+
body: ListResourceInstancesResponseBody,
|
|
12875
|
+
};
|
|
12876
|
+
}
|
|
12877
|
+
|
|
12878
|
+
validate() {
|
|
12879
|
+
if(this.headers) {
|
|
12880
|
+
$dara.Model.validateMap(this.headers);
|
|
12881
|
+
}
|
|
12882
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
12883
|
+
(this.body as any).validate();
|
|
12401
12884
|
}
|
|
12402
12885
|
super.validate();
|
|
12403
12886
|
}
|
|
@@ -15894,6 +16377,153 @@ export class UpdateResourceInstanceResponse extends $dara.Model {
|
|
|
15894
16377
|
}
|
|
15895
16378
|
}
|
|
15896
16379
|
|
|
16380
|
+
export class UpdateResourceInstanceLabelRequest extends $dara.Model {
|
|
16381
|
+
/**
|
|
16382
|
+
* @example
|
|
16383
|
+
* false
|
|
16384
|
+
*/
|
|
16385
|
+
allInstances?: boolean;
|
|
16386
|
+
instanceIds?: string[];
|
|
16387
|
+
labels?: { [key: string]: string };
|
|
16388
|
+
static names(): { [key: string]: string } {
|
|
16389
|
+
return {
|
|
16390
|
+
allInstances: 'AllInstances',
|
|
16391
|
+
instanceIds: 'InstanceIds',
|
|
16392
|
+
labels: 'Labels',
|
|
16393
|
+
};
|
|
16394
|
+
}
|
|
16395
|
+
|
|
16396
|
+
static types(): { [key: string]: any } {
|
|
16397
|
+
return {
|
|
16398
|
+
allInstances: 'boolean',
|
|
16399
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
16400
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16401
|
+
};
|
|
16402
|
+
}
|
|
16403
|
+
|
|
16404
|
+
validate() {
|
|
16405
|
+
if(Array.isArray(this.instanceIds)) {
|
|
16406
|
+
$dara.Model.validateArray(this.instanceIds);
|
|
16407
|
+
}
|
|
16408
|
+
if(this.labels) {
|
|
16409
|
+
$dara.Model.validateMap(this.labels);
|
|
16410
|
+
}
|
|
16411
|
+
super.validate();
|
|
16412
|
+
}
|
|
16413
|
+
|
|
16414
|
+
constructor(map?: { [key: string]: any }) {
|
|
16415
|
+
super(map);
|
|
16416
|
+
}
|
|
16417
|
+
}
|
|
16418
|
+
|
|
16419
|
+
export class UpdateResourceInstanceLabelShrinkRequest extends $dara.Model {
|
|
16420
|
+
/**
|
|
16421
|
+
* @example
|
|
16422
|
+
* false
|
|
16423
|
+
*/
|
|
16424
|
+
allInstances?: boolean;
|
|
16425
|
+
instanceIdsShrink?: string;
|
|
16426
|
+
labels?: { [key: string]: string };
|
|
16427
|
+
static names(): { [key: string]: string } {
|
|
16428
|
+
return {
|
|
16429
|
+
allInstances: 'AllInstances',
|
|
16430
|
+
instanceIdsShrink: 'InstanceIds',
|
|
16431
|
+
labels: 'Labels',
|
|
16432
|
+
};
|
|
16433
|
+
}
|
|
16434
|
+
|
|
16435
|
+
static types(): { [key: string]: any } {
|
|
16436
|
+
return {
|
|
16437
|
+
allInstances: 'boolean',
|
|
16438
|
+
instanceIdsShrink: 'string',
|
|
16439
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16440
|
+
};
|
|
16441
|
+
}
|
|
16442
|
+
|
|
16443
|
+
validate() {
|
|
16444
|
+
if(this.labels) {
|
|
16445
|
+
$dara.Model.validateMap(this.labels);
|
|
16446
|
+
}
|
|
16447
|
+
super.validate();
|
|
16448
|
+
}
|
|
16449
|
+
|
|
16450
|
+
constructor(map?: { [key: string]: any }) {
|
|
16451
|
+
super(map);
|
|
16452
|
+
}
|
|
16453
|
+
}
|
|
16454
|
+
|
|
16455
|
+
export class UpdateResourceInstanceLabelResponseBody extends $dara.Model {
|
|
16456
|
+
/**
|
|
16457
|
+
* @example
|
|
16458
|
+
* Success
|
|
16459
|
+
*/
|
|
16460
|
+
message?: string;
|
|
16461
|
+
/**
|
|
16462
|
+
* @remarks
|
|
16463
|
+
* Id of the request
|
|
16464
|
+
*
|
|
16465
|
+
* @example
|
|
16466
|
+
* 40325405-579C-4D82****
|
|
16467
|
+
*/
|
|
16468
|
+
requestId?: string;
|
|
16469
|
+
static names(): { [key: string]: string } {
|
|
16470
|
+
return {
|
|
16471
|
+
message: 'Message',
|
|
16472
|
+
requestId: 'RequestId',
|
|
16473
|
+
};
|
|
16474
|
+
}
|
|
16475
|
+
|
|
16476
|
+
static types(): { [key: string]: any } {
|
|
16477
|
+
return {
|
|
16478
|
+
message: 'string',
|
|
16479
|
+
requestId: 'string',
|
|
16480
|
+
};
|
|
16481
|
+
}
|
|
16482
|
+
|
|
16483
|
+
validate() {
|
|
16484
|
+
super.validate();
|
|
16485
|
+
}
|
|
16486
|
+
|
|
16487
|
+
constructor(map?: { [key: string]: any }) {
|
|
16488
|
+
super(map);
|
|
16489
|
+
}
|
|
16490
|
+
}
|
|
16491
|
+
|
|
16492
|
+
export class UpdateResourceInstanceLabelResponse extends $dara.Model {
|
|
16493
|
+
headers?: { [key: string]: string };
|
|
16494
|
+
statusCode?: number;
|
|
16495
|
+
body?: UpdateResourceInstanceLabelResponseBody;
|
|
16496
|
+
static names(): { [key: string]: string } {
|
|
16497
|
+
return {
|
|
16498
|
+
headers: 'headers',
|
|
16499
|
+
statusCode: 'statusCode',
|
|
16500
|
+
body: 'body',
|
|
16501
|
+
};
|
|
16502
|
+
}
|
|
16503
|
+
|
|
16504
|
+
static types(): { [key: string]: any } {
|
|
16505
|
+
return {
|
|
16506
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16507
|
+
statusCode: 'number',
|
|
16508
|
+
body: UpdateResourceInstanceLabelResponseBody,
|
|
16509
|
+
};
|
|
16510
|
+
}
|
|
16511
|
+
|
|
16512
|
+
validate() {
|
|
16513
|
+
if(this.headers) {
|
|
16514
|
+
$dara.Model.validateMap(this.headers);
|
|
16515
|
+
}
|
|
16516
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
16517
|
+
(this.body as any).validate();
|
|
16518
|
+
}
|
|
16519
|
+
super.validate();
|
|
16520
|
+
}
|
|
16521
|
+
|
|
16522
|
+
constructor(map?: { [key: string]: any }) {
|
|
16523
|
+
super(map);
|
|
16524
|
+
}
|
|
16525
|
+
}
|
|
16526
|
+
|
|
15897
16527
|
export class UpdateServiceRequest extends $dara.Model {
|
|
15898
16528
|
/**
|
|
15899
16529
|
* @remarks
|
|
@@ -17540,6 +18170,10 @@ export default class Client extends OpenApi {
|
|
|
17540
18170
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
17541
18171
|
}
|
|
17542
18172
|
|
|
18173
|
+
if (!$dara.isNull(request.labels)) {
|
|
18174
|
+
body["Labels"] = request.labels;
|
|
18175
|
+
}
|
|
18176
|
+
|
|
17543
18177
|
if (!$dara.isNull(request.resourceType)) {
|
|
17544
18178
|
body["ResourceType"] = request.resourceType;
|
|
17545
18179
|
}
|
|
@@ -17621,6 +18255,10 @@ export default class Client extends OpenApi {
|
|
|
17621
18255
|
body["EcsInstanceType"] = request.ecsInstanceType;
|
|
17622
18256
|
}
|
|
17623
18257
|
|
|
18258
|
+
if (!$dara.isNull(request.labels)) {
|
|
18259
|
+
body["Labels"] = request.labels;
|
|
18260
|
+
}
|
|
18261
|
+
|
|
17624
18262
|
if (!$dara.isNull(request.systemDiskSize)) {
|
|
17625
18263
|
body["SystemDiskSize"] = request.systemDiskSize;
|
|
17626
18264
|
}
|
|
@@ -18355,6 +18993,74 @@ export default class Client extends OpenApi {
|
|
|
18355
18993
|
return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
|
|
18356
18994
|
}
|
|
18357
18995
|
|
|
18996
|
+
/**
|
|
18997
|
+
* 删除资源组实例标签
|
|
18998
|
+
*
|
|
18999
|
+
* @param tmpReq - DeleteResourceInstanceLabelRequest
|
|
19000
|
+
* @param headers - map
|
|
19001
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
19002
|
+
* @returns DeleteResourceInstanceLabelResponse
|
|
19003
|
+
*/
|
|
19004
|
+
async deleteResourceInstanceLabelWithOptions(ClusterId: string, ResourceId: string, tmpReq: DeleteResourceInstanceLabelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DeleteResourceInstanceLabelResponse> {
|
|
19005
|
+
tmpReq.validate();
|
|
19006
|
+
let request = new DeleteResourceInstanceLabelShrinkRequest({ });
|
|
19007
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
19008
|
+
if (!$dara.isNull(tmpReq.instanceIds)) {
|
|
19009
|
+
request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "InstanceIds", "simple");
|
|
19010
|
+
}
|
|
19011
|
+
|
|
19012
|
+
if (!$dara.isNull(tmpReq.keys)) {
|
|
19013
|
+
request.keysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
|
|
19014
|
+
}
|
|
19015
|
+
|
|
19016
|
+
let query : {[key: string ]: any} = { };
|
|
19017
|
+
if (!$dara.isNull(request.allInstances)) {
|
|
19018
|
+
query["AllInstances"] = request.allInstances;
|
|
19019
|
+
}
|
|
19020
|
+
|
|
19021
|
+
if (!$dara.isNull(request.instanceIdsShrink)) {
|
|
19022
|
+
query["InstanceIds"] = request.instanceIdsShrink;
|
|
19023
|
+
}
|
|
19024
|
+
|
|
19025
|
+
if (!$dara.isNull(request.keysShrink)) {
|
|
19026
|
+
query["Keys"] = request.keysShrink;
|
|
19027
|
+
}
|
|
19028
|
+
|
|
19029
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
19030
|
+
headers: headers,
|
|
19031
|
+
query: OpenApiUtil.query(query),
|
|
19032
|
+
});
|
|
19033
|
+
let params = new $OpenApiUtil.Params({
|
|
19034
|
+
action: "DeleteResourceInstanceLabel",
|
|
19035
|
+
version: "2021-07-01",
|
|
19036
|
+
protocol: "HTTPS",
|
|
19037
|
+
pathname: `/api/v2/resources/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ResourceId)}/label`,
|
|
19038
|
+
method: "DELETE",
|
|
19039
|
+
authType: "AK",
|
|
19040
|
+
style: "ROA",
|
|
19041
|
+
reqBodyType: "json",
|
|
19042
|
+
bodyType: "json",
|
|
19043
|
+
});
|
|
19044
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
19045
|
+
return $dara.cast<DeleteResourceInstanceLabelResponse>(await this.callApi(params, req, runtime), new DeleteResourceInstanceLabelResponse({}));
|
|
19046
|
+
} else {
|
|
19047
|
+
return $dara.cast<DeleteResourceInstanceLabelResponse>(await this.execute(params, req, runtime), new DeleteResourceInstanceLabelResponse({}));
|
|
19048
|
+
}
|
|
19049
|
+
|
|
19050
|
+
}
|
|
19051
|
+
|
|
19052
|
+
/**
|
|
19053
|
+
* 删除资源组实例标签
|
|
19054
|
+
*
|
|
19055
|
+
* @param request - DeleteResourceInstanceLabelRequest
|
|
19056
|
+
* @returns DeleteResourceInstanceLabelResponse
|
|
19057
|
+
*/
|
|
19058
|
+
async deleteResourceInstanceLabel(ClusterId: string, ResourceId: string, request: DeleteResourceInstanceLabelRequest): Promise<DeleteResourceInstanceLabelResponse> {
|
|
19059
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
19060
|
+
let headers : {[key: string ]: string} = { };
|
|
19061
|
+
return await this.deleteResourceInstanceLabelWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
19062
|
+
}
|
|
19063
|
+
|
|
18358
19064
|
/**
|
|
18359
19065
|
* Deletes instances in a dedicated resource group. You can delete only pay-as-you-go instances as a regular user.
|
|
18360
19066
|
*
|
|
@@ -20254,13 +20960,19 @@ export default class Client extends OpenApi {
|
|
|
20254
20960
|
/**
|
|
20255
20961
|
* Queries a list of instances in a dedicated resource group.
|
|
20256
20962
|
*
|
|
20257
|
-
* @param
|
|
20963
|
+
* @param tmpReq - ListResourceInstancesRequest
|
|
20258
20964
|
* @param headers - map
|
|
20259
20965
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
20260
20966
|
* @returns ListResourceInstancesResponse
|
|
20261
20967
|
*/
|
|
20262
|
-
async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string,
|
|
20263
|
-
|
|
20968
|
+
async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, tmpReq: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<ListResourceInstancesResponse> {
|
|
20969
|
+
tmpReq.validate();
|
|
20970
|
+
let request = new ListResourceInstancesShrinkRequest({ });
|
|
20971
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
20972
|
+
if (!$dara.isNull(tmpReq.label)) {
|
|
20973
|
+
request.labelShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
|
|
20974
|
+
}
|
|
20975
|
+
|
|
20264
20976
|
let query : {[key: string ]: any} = { };
|
|
20265
20977
|
if (!$dara.isNull(request.chargeType)) {
|
|
20266
20978
|
query["ChargeType"] = request.chargeType;
|
|
@@ -20286,6 +20998,10 @@ export default class Client extends OpenApi {
|
|
|
20286
20998
|
query["InstanceStatus"] = request.instanceStatus;
|
|
20287
20999
|
}
|
|
20288
21000
|
|
|
21001
|
+
if (!$dara.isNull(request.labelShrink)) {
|
|
21002
|
+
query["Label"] = request.labelShrink;
|
|
21003
|
+
}
|
|
21004
|
+
|
|
20289
21005
|
if (!$dara.isNull(request.order)) {
|
|
20290
21006
|
query["Order"] = request.order;
|
|
20291
21007
|
}
|
|
@@ -21544,6 +22260,72 @@ export default class Client extends OpenApi {
|
|
|
21544
22260
|
return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
|
|
21545
22261
|
}
|
|
21546
22262
|
|
|
22263
|
+
/**
|
|
22264
|
+
* 更新资源组实例标签
|
|
22265
|
+
*
|
|
22266
|
+
* @param tmpReq - UpdateResourceInstanceLabelRequest
|
|
22267
|
+
* @param headers - map
|
|
22268
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
22269
|
+
* @returns UpdateResourceInstanceLabelResponse
|
|
22270
|
+
*/
|
|
22271
|
+
async updateResourceInstanceLabelWithOptions(ClusterId: string, ResourceId: string, tmpReq: UpdateResourceInstanceLabelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<UpdateResourceInstanceLabelResponse> {
|
|
22272
|
+
tmpReq.validate();
|
|
22273
|
+
let request = new UpdateResourceInstanceLabelShrinkRequest({ });
|
|
22274
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
22275
|
+
if (!$dara.isNull(tmpReq.instanceIds)) {
|
|
22276
|
+
request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "InstanceIds", "simple");
|
|
22277
|
+
}
|
|
22278
|
+
|
|
22279
|
+
let query : {[key: string ]: any} = { };
|
|
22280
|
+
if (!$dara.isNull(request.allInstances)) {
|
|
22281
|
+
query["AllInstances"] = request.allInstances;
|
|
22282
|
+
}
|
|
22283
|
+
|
|
22284
|
+
if (!$dara.isNull(request.instanceIdsShrink)) {
|
|
22285
|
+
query["InstanceIds"] = request.instanceIdsShrink;
|
|
22286
|
+
}
|
|
22287
|
+
|
|
22288
|
+
let body : {[key: string ]: any} = { };
|
|
22289
|
+
if (!$dara.isNull(request.labels)) {
|
|
22290
|
+
body["Labels"] = request.labels;
|
|
22291
|
+
}
|
|
22292
|
+
|
|
22293
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
22294
|
+
headers: headers,
|
|
22295
|
+
query: OpenApiUtil.query(query),
|
|
22296
|
+
body: OpenApiUtil.parseToMap(body),
|
|
22297
|
+
});
|
|
22298
|
+
let params = new $OpenApiUtil.Params({
|
|
22299
|
+
action: "UpdateResourceInstanceLabel",
|
|
22300
|
+
version: "2021-07-01",
|
|
22301
|
+
protocol: "HTTPS",
|
|
22302
|
+
pathname: `/api/v2/resources/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ResourceId)}/label`,
|
|
22303
|
+
method: "PUT",
|
|
22304
|
+
authType: "AK",
|
|
22305
|
+
style: "ROA",
|
|
22306
|
+
reqBodyType: "json",
|
|
22307
|
+
bodyType: "json",
|
|
22308
|
+
});
|
|
22309
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
22310
|
+
return $dara.cast<UpdateResourceInstanceLabelResponse>(await this.callApi(params, req, runtime), new UpdateResourceInstanceLabelResponse({}));
|
|
22311
|
+
} else {
|
|
22312
|
+
return $dara.cast<UpdateResourceInstanceLabelResponse>(await this.execute(params, req, runtime), new UpdateResourceInstanceLabelResponse({}));
|
|
22313
|
+
}
|
|
22314
|
+
|
|
22315
|
+
}
|
|
22316
|
+
|
|
22317
|
+
/**
|
|
22318
|
+
* 更新资源组实例标签
|
|
22319
|
+
*
|
|
22320
|
+
* @param request - UpdateResourceInstanceLabelRequest
|
|
22321
|
+
* @returns UpdateResourceInstanceLabelResponse
|
|
22322
|
+
*/
|
|
22323
|
+
async updateResourceInstanceLabel(ClusterId: string, ResourceId: string, request: UpdateResourceInstanceLabelRequest): Promise<UpdateResourceInstanceLabelResponse> {
|
|
22324
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
22325
|
+
let headers : {[key: string ]: string} = { };
|
|
22326
|
+
return await this.updateResourceInstanceLabelWithOptions(ClusterId, ResourceId, request, headers, runtime);
|
|
22327
|
+
}
|
|
22328
|
+
|
|
21547
22329
|
/**
|
|
21548
22330
|
* Updates a model or processor of a service. If only the metadata.instance field is updated, manual scaling can be performed.
|
|
21549
22331
|
*
|