@alicloud/eas20210701 6.6.1 → 6.7.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": "6.6.1",
3
+ "version": "6.7.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1038,6 +1038,36 @@ export class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
1038
1038
  }
1039
1039
  }
1040
1040
 
1041
+ export class DescribeRegionsResponseBodyRegions extends $dara.Model {
1042
+ /**
1043
+ * @example
1044
+ * cn-shanghai
1045
+ */
1046
+ regionId?: string;
1047
+ regionName?: string;
1048
+ static names(): { [key: string]: string } {
1049
+ return {
1050
+ regionId: 'RegionId',
1051
+ regionName: 'RegionName',
1052
+ };
1053
+ }
1054
+
1055
+ static types(): { [key: string]: any } {
1056
+ return {
1057
+ regionId: 'string',
1058
+ regionName: 'string',
1059
+ };
1060
+ }
1061
+
1062
+ validate() {
1063
+ super.validate();
1064
+ }
1065
+
1066
+ constructor(map?: { [key: string]: any }) {
1067
+ super(map);
1068
+ }
1069
+ }
1070
+
1041
1071
  export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
1042
1072
  /**
1043
1073
  * @remarks
@@ -3559,6 +3589,7 @@ export class Service extends $dara.Model {
3559
3589
  createTime?: string;
3560
3590
  currentVersion?: number;
3561
3591
  extraData?: string;
3592
+ gateway?: string;
3562
3593
  gpu?: number;
3563
3594
  image?: string;
3564
3595
  internetEndpoint?: string;
@@ -3570,6 +3601,7 @@ export class Service extends $dara.Model {
3570
3601
  namespace?: string;
3571
3602
  parentUid?: string;
3572
3603
  pendingInstance?: number;
3604
+ quotaId?: string;
3573
3605
  reason?: string;
3574
3606
  region?: string;
3575
3607
  requestId?: string;
@@ -3605,6 +3637,7 @@ export class Service extends $dara.Model {
3605
3637
  createTime: 'CreateTime',
3606
3638
  currentVersion: 'CurrentVersion',
3607
3639
  extraData: 'ExtraData',
3640
+ gateway: 'Gateway',
3608
3641
  gpu: 'Gpu',
3609
3642
  image: 'Image',
3610
3643
  internetEndpoint: 'InternetEndpoint',
@@ -3616,6 +3649,7 @@ export class Service extends $dara.Model {
3616
3649
  namespace: 'Namespace',
3617
3650
  parentUid: 'ParentUid',
3618
3651
  pendingInstance: 'PendingInstance',
3652
+ quotaId: 'QuotaId',
3619
3653
  reason: 'Reason',
3620
3654
  region: 'Region',
3621
3655
  requestId: 'RequestId',
@@ -3654,6 +3688,7 @@ export class Service extends $dara.Model {
3654
3688
  createTime: 'string',
3655
3689
  currentVersion: 'number',
3656
3690
  extraData: 'string',
3691
+ gateway: 'string',
3657
3692
  gpu: 'number',
3658
3693
  image: 'string',
3659
3694
  internetEndpoint: 'string',
@@ -3665,6 +3700,7 @@ export class Service extends $dara.Model {
3665
3700
  namespace: 'string',
3666
3701
  parentUid: 'string',
3667
3702
  pendingInstance: 'number',
3703
+ quotaId: 'string',
3668
3704
  reason: 'string',
3669
3705
  region: 'string',
3670
3706
  requestId: 'string',
@@ -9343,6 +9379,74 @@ export class DescribeMachineSpecResponse extends $dara.Model {
9343
9379
  }
9344
9380
  }
9345
9381
 
9382
+ export class DescribeRegionsResponseBody extends $dara.Model {
9383
+ regions?: DescribeRegionsResponseBodyRegions[];
9384
+ /**
9385
+ * @example
9386
+ * 40325405-579C-4D82****
9387
+ */
9388
+ requestId?: string;
9389
+ static names(): { [key: string]: string } {
9390
+ return {
9391
+ regions: 'Regions',
9392
+ requestId: 'RequestId',
9393
+ };
9394
+ }
9395
+
9396
+ static types(): { [key: string]: any } {
9397
+ return {
9398
+ regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
9399
+ requestId: 'string',
9400
+ };
9401
+ }
9402
+
9403
+ validate() {
9404
+ if(Array.isArray(this.regions)) {
9405
+ $dara.Model.validateArray(this.regions);
9406
+ }
9407
+ super.validate();
9408
+ }
9409
+
9410
+ constructor(map?: { [key: string]: any }) {
9411
+ super(map);
9412
+ }
9413
+ }
9414
+
9415
+ export class DescribeRegionsResponse extends $dara.Model {
9416
+ headers?: { [key: string]: string };
9417
+ statusCode?: number;
9418
+ body?: DescribeRegionsResponseBody;
9419
+ static names(): { [key: string]: string } {
9420
+ return {
9421
+ headers: 'headers',
9422
+ statusCode: 'statusCode',
9423
+ body: 'body',
9424
+ };
9425
+ }
9426
+
9427
+ static types(): { [key: string]: any } {
9428
+ return {
9429
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9430
+ statusCode: 'number',
9431
+ body: DescribeRegionsResponseBody,
9432
+ };
9433
+ }
9434
+
9435
+ validate() {
9436
+ if(this.headers) {
9437
+ $dara.Model.validateMap(this.headers);
9438
+ }
9439
+ if(this.body && typeof (this.body as any).validate === 'function') {
9440
+ (this.body as any).validate();
9441
+ }
9442
+ super.validate();
9443
+ }
9444
+
9445
+ constructor(map?: { [key: string]: any }) {
9446
+ super(map);
9447
+ }
9448
+ }
9449
+
9346
9450
  export class DescribeResourceResponseBody extends $dara.Model {
9347
9451
  /**
9348
9452
  * @remarks
@@ -20274,6 +20378,46 @@ export default class Client extends OpenApi {
20274
20378
  return await this.describeMachineSpecWithOptions(request, headers, runtime);
20275
20379
  }
20276
20380
 
20381
+ /**
20382
+ * 查询可用的地域信息
20383
+ *
20384
+ * @param headers - map
20385
+ * @param runtime - runtime options for this request RuntimeOptions
20386
+ * @returns DescribeRegionsResponse
20387
+ */
20388
+ async describeRegionsWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DescribeRegionsResponse> {
20389
+ let req = new $OpenApiUtil.OpenApiRequest({
20390
+ headers: headers,
20391
+ });
20392
+ let params = new $OpenApiUtil.Params({
20393
+ action: "DescribeRegions",
20394
+ version: "2021-07-01",
20395
+ protocol: "HTTPS",
20396
+ pathname: `/api/v2/regions`,
20397
+ method: "GET",
20398
+ authType: "AK",
20399
+ style: "ROA",
20400
+ reqBodyType: "json",
20401
+ bodyType: "json",
20402
+ });
20403
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
20404
+ return $dara.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
20405
+ } else {
20406
+ return $dara.cast<DescribeRegionsResponse>(await this.execute(params, req, runtime), new DescribeRegionsResponse({}));
20407
+ }
20408
+
20409
+ }
20410
+
20411
+ /**
20412
+ * 查询可用的地域信息
20413
+ * @returns DescribeRegionsResponse
20414
+ */
20415
+ async describeRegions(): Promise<DescribeRegionsResponse> {
20416
+ let runtime = new $dara.RuntimeOptions({ });
20417
+ let headers : {[key: string ]: string} = { };
20418
+ return await this.describeRegionsWithOptions(headers, runtime);
20419
+ }
20420
+
20277
20421
  /**
20278
20422
  * Queries the information about a resource group.
20279
20423
  *