@alicloud/eas20210701 5.0.0 → 6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/eas20210701",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1269,7 +1269,7 @@ export class CreateBenchmarkTaskResponse extends $tea.Model {
1269
1269
  export class CreateGatewayRequest extends $tea.Model {
1270
1270
  /**
1271
1271
  * @remarks
1272
- * The name of the resource group.
1272
+ * The resource group ID. To obtain a resource group ID, see the ResourceId field in the response of the [ListResources](https://help.aliyun.com/document_detail/412133.html) operation.
1273
1273
  *
1274
1274
  * @example
1275
1275
  * eas-r-4gt8twzwllfo******
@@ -1282,28 +1282,20 @@ export class CreateGatewayRequest extends $tea.Model {
1282
1282
  * Valid values:
1283
1283
  *
1284
1284
  * * true
1285
- *
1286
- * <!-- -->
1287
- *
1288
- * <!-- -->
1289
- *
1290
- * <!-- -->
1291
- *
1292
1285
  * * false
1293
1286
  *
1294
- * <!-- -->
1295
- *
1296
- * <!-- -->
1297
- *
1298
- * <!-- -->
1299
- *
1300
1287
  * @example
1301
1288
  * false
1302
1289
  */
1303
1290
  enableInternet?: boolean;
1304
1291
  /**
1305
1292
  * @remarks
1306
- * Specifies whether to enable internal network access. Default value: true.
1293
+ * Specifies whether to enable private access. Default value: true.
1294
+ *
1295
+ * Valid values:
1296
+ *
1297
+ * * true
1298
+ * * false
1307
1299
  *
1308
1300
  * @example
1309
1301
  * true
@@ -1311,7 +1303,12 @@ export class CreateGatewayRequest extends $tea.Model {
1311
1303
  enableIntranet?: boolean;
1312
1304
  /**
1313
1305
  * @remarks
1314
- * The instance type used for the private gateway.
1306
+ * The instance type used by the private gateway. Valid values:
1307
+ *
1308
+ * * 2c4g
1309
+ * * 4c8g
1310
+ * * 8c16g
1311
+ * * 16c32g
1315
1312
  *
1316
1313
  * This parameter is required.
1317
1314
  *
@@ -1321,12 +1318,19 @@ export class CreateGatewayRequest extends $tea.Model {
1321
1318
  instanceType?: string;
1322
1319
  /**
1323
1320
  * @remarks
1324
- * The private gateway alias.
1321
+ * The alias of the private gateway.
1325
1322
  *
1326
1323
  * @example
1327
1324
  * mygateway1
1328
1325
  */
1329
1326
  name?: string;
1327
+ /**
1328
+ * @remarks
1329
+ * The number of nodes in the private gateway.
1330
+ *
1331
+ * @example
1332
+ * 2
1333
+ */
1330
1334
  replicas?: number;
1331
1335
  static names(): { [key: string]: string } {
1332
1336
  return {
@@ -4229,7 +4233,7 @@ export class DescribeGatewayResponseBody extends $tea.Model {
4229
4233
  gatewayId?: string;
4230
4234
  /**
4231
4235
  * @remarks
4232
- * The private gateway alias.
4236
+ * The alias of the private gateway.
4233
4237
  *
4234
4238
  * @example
4235
4239
  * mygateway1
@@ -4237,7 +4241,14 @@ export class DescribeGatewayResponseBody extends $tea.Model {
4237
4241
  gatewayName?: string;
4238
4242
  /**
4239
4243
  * @remarks
4240
- * The instance type used for the private gateway.
4244
+ * The instance type used by the private gateway.
4245
+ *
4246
+ * Valid values:
4247
+ *
4248
+ * * 8c16g
4249
+ * * 4c8g
4250
+ * * 2c4g
4251
+ * * 16c32g
4241
4252
  *
4242
4253
  * @example
4243
4254
  * ecs.c6.4xlarge
@@ -4259,6 +4270,21 @@ export class DescribeGatewayResponseBody extends $tea.Model {
4259
4270
  * true
4260
4271
  */
4261
4272
  internetEnabled?: boolean;
4273
+ /**
4274
+ * @remarks
4275
+ * Indicates whether Internet access is enabled.
4276
+ *
4277
+ * Valid values:
4278
+ *
4279
+ * * Creating: Internet access is being enabled.
4280
+ * * Failed: Internet access failed to be enabled or deleted.
4281
+ * * Running: Internet access is running.
4282
+ * * Deleted: Internet access is deleted.
4283
+ * * Deleting: Internet access is being deleted.
4284
+ *
4285
+ * @example
4286
+ * Running
4287
+ */
4262
4288
  internetStatus?: string;
4263
4289
  /**
4264
4290
  * @remarks
@@ -4268,7 +4294,21 @@ export class DescribeGatewayResponseBody extends $tea.Model {
4268
4294
  * gw-1uhcqmsc7x22******-1801786532******-vpc.cn-hangzhou.pai-eas.aliyuncs.com
4269
4295
  */
4270
4296
  intranetDomain?: string;
4297
+ /**
4298
+ * @remarks
4299
+ * Indicates whether it is the default private gateway.
4300
+ *
4301
+ * @example
4302
+ * true
4303
+ */
4271
4304
  isDefault?: boolean;
4305
+ /**
4306
+ * @remarks
4307
+ * The number of nodes in the private gateway.
4308
+ *
4309
+ * @example
4310
+ * 2
4311
+ */
4272
4312
  replicas?: number;
4273
4313
  /**
4274
4314
  * @remarks
@@ -4280,7 +4320,17 @@ export class DescribeGatewayResponseBody extends $tea.Model {
4280
4320
  requestId?: string;
4281
4321
  /**
4282
4322
  * @remarks
4283
- * The state of the private gateway.
4323
+ * The status of the private gateway.
4324
+ *
4325
+ * Valid values:
4326
+ *
4327
+ * * Creating
4328
+ * * Stopped
4329
+ * * Failed
4330
+ * * Running
4331
+ * * Deleted
4332
+ * * Deleting
4333
+ * * Waiting
4284
4334
  *
4285
4335
  * @example
4286
4336
  * PrivateGatewayRunning
@@ -7644,6 +7694,13 @@ export class ListServicesRequest extends $tea.Model {
7644
7694
  * foo
7645
7695
  */
7646
7696
  filter?: string;
7697
+ /**
7698
+ * @remarks
7699
+ * The ID of the private gateway.
7700
+ *
7701
+ * @example
7702
+ * gw-1uhcqmsc7x22******
7703
+ */
7647
7704
  gateway?: string;
7648
7705
  /**
7649
7706
  * @remarks
@@ -7998,6 +8055,13 @@ export class ListServicesShrinkRequest extends $tea.Model {
7998
8055
  * foo
7999
8056
  */
8000
8057
  filter?: string;
8058
+ /**
8059
+ * @remarks
8060
+ * The ID of the private gateway.
8061
+ *
8062
+ * @example
8063
+ * gw-1uhcqmsc7x22******
8064
+ */
8001
8065
  gateway?: string;
8002
8066
  /**
8003
8067
  * @remarks
@@ -8431,6 +8495,112 @@ export class ListServicesResponse extends $tea.Model {
8431
8495
  }
8432
8496
  }
8433
8497
 
8498
+ export class ListTenantAddonsResponseBody extends $tea.Model {
8499
+ addons?: ListTenantAddonsResponseBodyAddons[];
8500
+ /**
8501
+ * @example
8502
+ * 40325405-579C-4D82****
8503
+ */
8504
+ requestId?: string;
8505
+ static names(): { [key: string]: string } {
8506
+ return {
8507
+ addons: 'Addons',
8508
+ requestId: 'RequestId',
8509
+ };
8510
+ }
8511
+
8512
+ static types(): { [key: string]: any } {
8513
+ return {
8514
+ addons: { 'type': 'array', 'itemType': ListTenantAddonsResponseBodyAddons },
8515
+ requestId: 'string',
8516
+ };
8517
+ }
8518
+
8519
+ constructor(map?: { [key: string]: any }) {
8520
+ super(map);
8521
+ }
8522
+ }
8523
+
8524
+ export class ListTenantAddonsResponse extends $tea.Model {
8525
+ headers?: { [key: string]: string };
8526
+ statusCode?: number;
8527
+ body?: ListTenantAddonsResponseBody;
8528
+ static names(): { [key: string]: string } {
8529
+ return {
8530
+ headers: 'headers',
8531
+ statusCode: 'statusCode',
8532
+ body: 'body',
8533
+ };
8534
+ }
8535
+
8536
+ static types(): { [key: string]: any } {
8537
+ return {
8538
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8539
+ statusCode: 'number',
8540
+ body: ListTenantAddonsResponseBody,
8541
+ };
8542
+ }
8543
+
8544
+ constructor(map?: { [key: string]: any }) {
8545
+ super(map);
8546
+ }
8547
+ }
8548
+
8549
+ export class ReinstallTenantAddonResponseBody extends $tea.Model {
8550
+ /**
8551
+ * @example
8552
+ * Addon prometheus_discovery is successfully reinstalled
8553
+ */
8554
+ message?: string;
8555
+ /**
8556
+ * @example
8557
+ * 40325405-579C-4D82****
8558
+ */
8559
+ requestId?: string;
8560
+ static names(): { [key: string]: string } {
8561
+ return {
8562
+ message: 'Message',
8563
+ requestId: 'RequestId',
8564
+ };
8565
+ }
8566
+
8567
+ static types(): { [key: string]: any } {
8568
+ return {
8569
+ message: 'string',
8570
+ requestId: 'string',
8571
+ };
8572
+ }
8573
+
8574
+ constructor(map?: { [key: string]: any }) {
8575
+ super(map);
8576
+ }
8577
+ }
8578
+
8579
+ export class ReinstallTenantAddonResponse extends $tea.Model {
8580
+ headers?: { [key: string]: string };
8581
+ statusCode?: number;
8582
+ body?: ReinstallTenantAddonResponseBody;
8583
+ static names(): { [key: string]: string } {
8584
+ return {
8585
+ headers: 'headers',
8586
+ statusCode: 'statusCode',
8587
+ body: 'body',
8588
+ };
8589
+ }
8590
+
8591
+ static types(): { [key: string]: any } {
8592
+ return {
8593
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8594
+ statusCode: 'number',
8595
+ body: ReinstallTenantAddonResponseBody,
8596
+ };
8597
+ }
8598
+
8599
+ constructor(map?: { [key: string]: any }) {
8600
+ super(map);
8601
+ }
8602
+ }
8603
+
8434
8604
  export class ReleaseServiceRequest extends $tea.Model {
8435
8605
  /**
8436
8606
  * @remarks
@@ -9135,6 +9305,13 @@ export class UpdateGatewayRequest extends $tea.Model {
9135
9305
  * ecs.c6.4xlarge
9136
9306
  */
9137
9307
  instanceType?: string;
9308
+ /**
9309
+ * @remarks
9310
+ * Indicates whether it is the default private gateway.
9311
+ *
9312
+ * @example
9313
+ * true
9314
+ */
9138
9315
  isDefault?: boolean;
9139
9316
  /**
9140
9317
  * @remarks
@@ -9144,6 +9321,13 @@ export class UpdateGatewayRequest extends $tea.Model {
9144
9321
  * mygateway1
9145
9322
  */
9146
9323
  name?: string;
9324
+ /**
9325
+ * @remarks
9326
+ * The number of nodes in the private gateway.
9327
+ *
9328
+ * @example
9329
+ * 2
9330
+ */
9147
9331
  replicas?: number;
9148
9332
  static names(): { [key: string]: string } {
9149
9333
  return {
@@ -11144,16 +11328,8 @@ export class DescribeSpotDiscountHistoryResponseBodySpotDiscounts extends $tea.M
11144
11328
  }
11145
11329
  }
11146
11330
 
11147
- export class ListAclPolicyResponseBodyInternetAclPolicyList extends $tea.Model {
11148
- /**
11149
- * @example
11150
- * default
11151
- */
11331
+ export class ListAclPolicyResponseBodyInternetAclPolicyListAclPolicyList extends $tea.Model {
11152
11332
  comment?: string;
11153
- /**
11154
- * @example
11155
- * 10.23.XX.XX/32
11156
- */
11157
11333
  entry?: string;
11158
11334
  static names(): { [key: string]: string } {
11159
11335
  return {
@@ -11174,16 +11350,27 @@ export class ListAclPolicyResponseBodyInternetAclPolicyList extends $tea.Model {
11174
11350
  }
11175
11351
  }
11176
11352
 
11177
- export class ListAclPolicyResponseBodyIntranetVpcAclPolicyListIntranetAclPolicyList extends $tea.Model {
11178
- /**
11179
- * @example
11180
- * Test Entry
11181
- */
11353
+ export class ListAclPolicyResponseBodyInternetAclPolicyList extends $tea.Model {
11354
+ aclPolicyList?: ListAclPolicyResponseBodyInternetAclPolicyListAclPolicyList[];
11355
+ static names(): { [key: string]: string } {
11356
+ return {
11357
+ aclPolicyList: 'AclPolicyList',
11358
+ };
11359
+ }
11360
+
11361
+ static types(): { [key: string]: any } {
11362
+ return {
11363
+ aclPolicyList: { 'type': 'array', 'itemType': ListAclPolicyResponseBodyInternetAclPolicyListAclPolicyList },
11364
+ };
11365
+ }
11366
+
11367
+ constructor(map?: { [key: string]: any }) {
11368
+ super(map);
11369
+ }
11370
+ }
11371
+
11372
+ export class ListAclPolicyResponseBodyIntranetVpcAclPolicyListAclPolicyList extends $tea.Model {
11182
11373
  comment?: string;
11183
- /**
11184
- * @example
11185
- * 192.168.XX.XX/24
11186
- */
11187
11374
  entry?: string;
11188
11375
  static names(): { [key: string]: string } {
11189
11376
  return {
@@ -11205,7 +11392,7 @@ export class ListAclPolicyResponseBodyIntranetVpcAclPolicyListIntranetAclPolicyL
11205
11392
  }
11206
11393
 
11207
11394
  export class ListAclPolicyResponseBodyIntranetVpcAclPolicyList extends $tea.Model {
11208
- intranetAclPolicyList?: ListAclPolicyResponseBodyIntranetVpcAclPolicyListIntranetAclPolicyList[];
11395
+ aclPolicyList?: ListAclPolicyResponseBodyIntranetVpcAclPolicyListAclPolicyList[];
11209
11396
  /**
11210
11397
  * @example
11211
11398
  * vpc-uf66uio7md****
@@ -11213,14 +11400,14 @@ export class ListAclPolicyResponseBodyIntranetVpcAclPolicyList extends $tea.Mode
11213
11400
  vpcId?: string;
11214
11401
  static names(): { [key: string]: string } {
11215
11402
  return {
11216
- intranetAclPolicyList: 'IntranetAclPolicyList',
11403
+ aclPolicyList: 'AclPolicyList',
11217
11404
  vpcId: 'VpcId',
11218
11405
  };
11219
11406
  }
11220
11407
 
11221
11408
  static types(): { [key: string]: any } {
11222
11409
  return {
11223
- intranetAclPolicyList: { 'type': 'array', 'itemType': ListAclPolicyResponseBodyIntranetVpcAclPolicyListIntranetAclPolicyList },
11410
+ aclPolicyList: { 'type': 'array', 'itemType': ListAclPolicyResponseBodyIntranetVpcAclPolicyListAclPolicyList },
11224
11411
  vpcId: 'string',
11225
11412
  };
11226
11413
  }
@@ -11686,6 +11873,32 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
11686
11873
  }
11687
11874
  }
11688
11875
 
11876
+ export class ListTenantAddonsResponseBodyAddons extends $tea.Model {
11877
+ attributes?: { [key: string]: string };
11878
+ /**
11879
+ * @example
11880
+ * prometheus_discovery
11881
+ */
11882
+ name?: string;
11883
+ static names(): { [key: string]: string } {
11884
+ return {
11885
+ attributes: 'Attributes',
11886
+ name: 'Name',
11887
+ };
11888
+ }
11889
+
11890
+ static types(): { [key: string]: any } {
11891
+ return {
11892
+ attributes: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
11893
+ name: 'string',
11894
+ };
11895
+ }
11896
+
11897
+ constructor(map?: { [key: string]: any }) {
11898
+ super(map);
11899
+ }
11900
+ }
11901
+
11689
11902
  export class UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations extends $tea.Model {
11690
11903
  /**
11691
11904
  * @remarks
@@ -14899,6 +15112,76 @@ export default class Client extends OpenApi {
14899
15112
  return await this.listServicesWithOptions(request, headers, runtime);
14900
15113
  }
14901
15114
 
15115
+ /**
15116
+ * 获取租户配置列表
15117
+ *
15118
+ * @param headers - map
15119
+ * @param runtime - runtime options for this request RuntimeOptions
15120
+ * @returns ListTenantAddonsResponse
15121
+ */
15122
+ async listTenantAddonsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTenantAddonsResponse> {
15123
+ let req = new $OpenApi.OpenApiRequest({
15124
+ headers: headers,
15125
+ });
15126
+ let params = new $OpenApi.Params({
15127
+ action: "ListTenantAddons",
15128
+ version: "2021-07-01",
15129
+ protocol: "HTTPS",
15130
+ pathname: `/api/v2/tenantaddons`,
15131
+ method: "GET",
15132
+ authType: "AK",
15133
+ style: "ROA",
15134
+ reqBodyType: "json",
15135
+ bodyType: "json",
15136
+ });
15137
+ return $tea.cast<ListTenantAddonsResponse>(await this.callApi(params, req, runtime), new ListTenantAddonsResponse({}));
15138
+ }
15139
+
15140
+ /**
15141
+ * 获取租户配置列表
15142
+ * @returns ListTenantAddonsResponse
15143
+ */
15144
+ async listTenantAddons(): Promise<ListTenantAddonsResponse> {
15145
+ let runtime = new $Util.RuntimeOptions({ });
15146
+ let headers : {[key: string ]: string} = { };
15147
+ return await this.listTenantAddonsWithOptions(headers, runtime);
15148
+ }
15149
+
15150
+ /**
15151
+ * 重置租户配置
15152
+ *
15153
+ * @param headers - map
15154
+ * @param runtime - runtime options for this request RuntimeOptions
15155
+ * @returns ReinstallTenantAddonResponse
15156
+ */
15157
+ async reinstallTenantAddonWithOptions(ClusterId: string, TenantAddonName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReinstallTenantAddonResponse> {
15158
+ let req = new $OpenApi.OpenApiRequest({
15159
+ headers: headers,
15160
+ });
15161
+ let params = new $OpenApi.Params({
15162
+ action: "ReinstallTenantAddon",
15163
+ version: "2021-07-01",
15164
+ protocol: "HTTPS",
15165
+ pathname: `/api/v2/tenantaddons/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(TenantAddonName)}/reinstall`,
15166
+ method: "PUT",
15167
+ authType: "AK",
15168
+ style: "ROA",
15169
+ reqBodyType: "json",
15170
+ bodyType: "json",
15171
+ });
15172
+ return $tea.cast<ReinstallTenantAddonResponse>(await this.callApi(params, req, runtime), new ReinstallTenantAddonResponse({}));
15173
+ }
15174
+
15175
+ /**
15176
+ * 重置租户配置
15177
+ * @returns ReinstallTenantAddonResponse
15178
+ */
15179
+ async reinstallTenantAddon(ClusterId: string, TenantAddonName: string): Promise<ReinstallTenantAddonResponse> {
15180
+ let runtime = new $Util.RuntimeOptions({ });
15181
+ let headers : {[key: string ]: string} = { };
15182
+ return await this.reinstallTenantAddonWithOptions(ClusterId, TenantAddonName, headers, runtime);
15183
+ }
15184
+
14902
15185
  /**
14903
15186
  * Performs canary release or blue-green release of a service.
14904
15187
  *