@alicloud/eas20210701 6.6.1 → 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/dist/client.d.ts +72 -100
- package/dist/client.js +129 -13
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +152 -106
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -764,60 +764,11 @@ export class DeleteGatewayIntranetLinkedVpcPeerRequestPeerVpcs extends $dara.Mod
|
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
export class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
767
|
-
/**
|
|
768
|
-
* @remarks
|
|
769
|
-
* The backend access ID, which varies based on the value of the EndpointType parameter.
|
|
770
|
-
*
|
|
771
|
-
* * If you set EndpointType to DefaultGateway, the value of this parameter is default.
|
|
772
|
-
* * If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.
|
|
773
|
-
* * If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.
|
|
774
|
-
* * If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.
|
|
775
|
-
*
|
|
776
|
-
* @example
|
|
777
|
-
* gw-26340kjxjx8l3r****
|
|
778
|
-
*/
|
|
779
767
|
backendId?: string;
|
|
780
|
-
/**
|
|
781
|
-
* @remarks
|
|
782
|
-
* The service endpoint type. Valid values:
|
|
783
|
-
*
|
|
784
|
-
* * DefaultGateway: the shared gateway.
|
|
785
|
-
* * PrivateGateway: the dedicated gateway.
|
|
786
|
-
* * Nlb: Associate the service with the Network Load Balancer (NLB) instance.
|
|
787
|
-
* * Nacos: Associate the service with the Nacos instance.
|
|
788
|
-
*
|
|
789
|
-
* @example
|
|
790
|
-
* PrivateGateway
|
|
791
|
-
*/
|
|
792
768
|
endpointType?: string;
|
|
793
|
-
/**
|
|
794
|
-
* @remarks
|
|
795
|
-
* The public endpoints.
|
|
796
|
-
*/
|
|
797
769
|
internetEndpoints?: string[];
|
|
798
|
-
/**
|
|
799
|
-
* @remarks
|
|
800
|
-
* The internal endpoints.
|
|
801
|
-
*/
|
|
802
770
|
intranetEndpoints?: string[];
|
|
803
|
-
/**
|
|
804
|
-
* @remarks
|
|
805
|
-
* The path type. Valid values:
|
|
806
|
-
*
|
|
807
|
-
* * Group: the path of the service group.
|
|
808
|
-
* * Service: the path of the service.
|
|
809
|
-
*
|
|
810
|
-
* @example
|
|
811
|
-
* Group
|
|
812
|
-
*/
|
|
813
771
|
pathType?: string;
|
|
814
|
-
/**
|
|
815
|
-
* @remarks
|
|
816
|
-
* The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.
|
|
817
|
-
*
|
|
818
|
-
* @example
|
|
819
|
-
* 9090
|
|
820
|
-
*/
|
|
821
772
|
port?: number;
|
|
822
773
|
static names(): { [key: string]: string } {
|
|
823
774
|
return {
|
|
@@ -1038,6 +989,36 @@ export class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
|
|
|
1038
989
|
}
|
|
1039
990
|
}
|
|
1040
991
|
|
|
992
|
+
export class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
993
|
+
/**
|
|
994
|
+
* @example
|
|
995
|
+
* cn-shanghai
|
|
996
|
+
*/
|
|
997
|
+
regionId?: string;
|
|
998
|
+
regionName?: string;
|
|
999
|
+
static names(): { [key: string]: string } {
|
|
1000
|
+
return {
|
|
1001
|
+
regionId: 'RegionId',
|
|
1002
|
+
regionName: 'RegionName',
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
static types(): { [key: string]: any } {
|
|
1007
|
+
return {
|
|
1008
|
+
regionId: 'string',
|
|
1009
|
+
regionName: 'string',
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
validate() {
|
|
1014
|
+
super.validate();
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
constructor(map?: { [key: string]: any }) {
|
|
1018
|
+
super(map);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1041
1022
|
export class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
|
|
1042
1023
|
/**
|
|
1043
1024
|
* @remarks
|
|
@@ -1288,60 +1269,11 @@ export class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $dara.Mod
|
|
|
1288
1269
|
}
|
|
1289
1270
|
|
|
1290
1271
|
export class DescribeServiceEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
1291
|
-
/**
|
|
1292
|
-
* @remarks
|
|
1293
|
-
* The backend access ID, which varies based on the value of the EndpointType parameter.
|
|
1294
|
-
*
|
|
1295
|
-
* * If you set EndpointType to DefaultGateway, the value of this parameter is default.
|
|
1296
|
-
* * If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.
|
|
1297
|
-
* * If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.
|
|
1298
|
-
* * If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.
|
|
1299
|
-
*
|
|
1300
|
-
* @example
|
|
1301
|
-
* nlb-5q4sp7u6oorkha****
|
|
1302
|
-
*/
|
|
1303
1272
|
backendId?: string;
|
|
1304
|
-
/**
|
|
1305
|
-
* @remarks
|
|
1306
|
-
* The service endpoint type. Valid values:
|
|
1307
|
-
*
|
|
1308
|
-
* * DefaultGateway: the shared gateway.
|
|
1309
|
-
* * PrivateGateway: the dedicated gateway.
|
|
1310
|
-
* * Nlb: Associate the service with the Network Load Balancer (NLB) instance.
|
|
1311
|
-
* * Nacos: Associate the service with the Nacos instance.
|
|
1312
|
-
*
|
|
1313
|
-
* @example
|
|
1314
|
-
* Nlb
|
|
1315
|
-
*/
|
|
1316
1273
|
endpointType?: string;
|
|
1317
|
-
/**
|
|
1318
|
-
* @remarks
|
|
1319
|
-
* The public endpoints.
|
|
1320
|
-
*/
|
|
1321
1274
|
internetEndpoints?: string[];
|
|
1322
|
-
/**
|
|
1323
|
-
* @remarks
|
|
1324
|
-
* The internal endpoints.
|
|
1325
|
-
*/
|
|
1326
1275
|
intranetEndpoints?: string[];
|
|
1327
|
-
/**
|
|
1328
|
-
* @remarks
|
|
1329
|
-
* The path type. Valid values:
|
|
1330
|
-
*
|
|
1331
|
-
* * Group: the path of the service group.
|
|
1332
|
-
* * Service: the path of the service.
|
|
1333
|
-
*
|
|
1334
|
-
* @example
|
|
1335
|
-
* Service
|
|
1336
|
-
*/
|
|
1337
1276
|
pathType?: string;
|
|
1338
|
-
/**
|
|
1339
|
-
* @remarks
|
|
1340
|
-
* The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.
|
|
1341
|
-
*
|
|
1342
|
-
* @example
|
|
1343
|
-
* 9090
|
|
1344
|
-
*/
|
|
1345
1277
|
port?: number;
|
|
1346
1278
|
static names(): { [key: string]: string } {
|
|
1347
1279
|
return {
|
|
@@ -3559,6 +3491,7 @@ export class Service extends $dara.Model {
|
|
|
3559
3491
|
createTime?: string;
|
|
3560
3492
|
currentVersion?: number;
|
|
3561
3493
|
extraData?: string;
|
|
3494
|
+
gateway?: string;
|
|
3562
3495
|
gpu?: number;
|
|
3563
3496
|
image?: string;
|
|
3564
3497
|
internetEndpoint?: string;
|
|
@@ -3570,6 +3503,7 @@ export class Service extends $dara.Model {
|
|
|
3570
3503
|
namespace?: string;
|
|
3571
3504
|
parentUid?: string;
|
|
3572
3505
|
pendingInstance?: number;
|
|
3506
|
+
quotaId?: string;
|
|
3573
3507
|
reason?: string;
|
|
3574
3508
|
region?: string;
|
|
3575
3509
|
requestId?: string;
|
|
@@ -3605,6 +3539,7 @@ export class Service extends $dara.Model {
|
|
|
3605
3539
|
createTime: 'CreateTime',
|
|
3606
3540
|
currentVersion: 'CurrentVersion',
|
|
3607
3541
|
extraData: 'ExtraData',
|
|
3542
|
+
gateway: 'Gateway',
|
|
3608
3543
|
gpu: 'Gpu',
|
|
3609
3544
|
image: 'Image',
|
|
3610
3545
|
internetEndpoint: 'InternetEndpoint',
|
|
@@ -3616,6 +3551,7 @@ export class Service extends $dara.Model {
|
|
|
3616
3551
|
namespace: 'Namespace',
|
|
3617
3552
|
parentUid: 'ParentUid',
|
|
3618
3553
|
pendingInstance: 'PendingInstance',
|
|
3554
|
+
quotaId: 'QuotaId',
|
|
3619
3555
|
reason: 'Reason',
|
|
3620
3556
|
region: 'Region',
|
|
3621
3557
|
requestId: 'RequestId',
|
|
@@ -3654,6 +3590,7 @@ export class Service extends $dara.Model {
|
|
|
3654
3590
|
createTime: 'string',
|
|
3655
3591
|
currentVersion: 'number',
|
|
3656
3592
|
extraData: 'string',
|
|
3593
|
+
gateway: 'string',
|
|
3657
3594
|
gpu: 'number',
|
|
3658
3595
|
image: 'string',
|
|
3659
3596
|
internetEndpoint: 'string',
|
|
@@ -3665,6 +3602,7 @@ export class Service extends $dara.Model {
|
|
|
3665
3602
|
namespace: 'string',
|
|
3666
3603
|
parentUid: 'string',
|
|
3667
3604
|
pendingInstance: 'number',
|
|
3605
|
+
quotaId: 'string',
|
|
3668
3606
|
reason: 'string',
|
|
3669
3607
|
region: 'string',
|
|
3670
3608
|
requestId: 'string',
|
|
@@ -9115,7 +9053,7 @@ export class DescribeGroupEndpointsResponseBody extends $dara.Model {
|
|
|
9115
9053
|
* @remarks
|
|
9116
9054
|
* The endpoints of service groups.
|
|
9117
9055
|
*/
|
|
9118
|
-
endpoints?: DescribeGroupEndpointsResponseBodyEndpoints;
|
|
9056
|
+
endpoints?: DescribeGroupEndpointsResponseBodyEndpoints[];
|
|
9119
9057
|
/**
|
|
9120
9058
|
* @remarks
|
|
9121
9059
|
* The response message.
|
|
@@ -9144,15 +9082,15 @@ export class DescribeGroupEndpointsResponseBody extends $dara.Model {
|
|
|
9144
9082
|
static types(): { [key: string]: any } {
|
|
9145
9083
|
return {
|
|
9146
9084
|
accessToken: 'string',
|
|
9147
|
-
endpoints: DescribeGroupEndpointsResponseBodyEndpoints,
|
|
9085
|
+
endpoints: { 'type': 'array', 'itemType': DescribeGroupEndpointsResponseBodyEndpoints },
|
|
9148
9086
|
message: 'string',
|
|
9149
9087
|
requestId: 'string',
|
|
9150
9088
|
};
|
|
9151
9089
|
}
|
|
9152
9090
|
|
|
9153
9091
|
validate() {
|
|
9154
|
-
if(
|
|
9155
|
-
(this.endpoints
|
|
9092
|
+
if(Array.isArray(this.endpoints)) {
|
|
9093
|
+
$dara.Model.validateArray(this.endpoints);
|
|
9156
9094
|
}
|
|
9157
9095
|
super.validate();
|
|
9158
9096
|
}
|
|
@@ -9343,6 +9281,74 @@ export class DescribeMachineSpecResponse extends $dara.Model {
|
|
|
9343
9281
|
}
|
|
9344
9282
|
}
|
|
9345
9283
|
|
|
9284
|
+
export class DescribeRegionsResponseBody extends $dara.Model {
|
|
9285
|
+
regions?: DescribeRegionsResponseBodyRegions[];
|
|
9286
|
+
/**
|
|
9287
|
+
* @example
|
|
9288
|
+
* 40325405-579C-4D82****
|
|
9289
|
+
*/
|
|
9290
|
+
requestId?: string;
|
|
9291
|
+
static names(): { [key: string]: string } {
|
|
9292
|
+
return {
|
|
9293
|
+
regions: 'Regions',
|
|
9294
|
+
requestId: 'RequestId',
|
|
9295
|
+
};
|
|
9296
|
+
}
|
|
9297
|
+
|
|
9298
|
+
static types(): { [key: string]: any } {
|
|
9299
|
+
return {
|
|
9300
|
+
regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
|
|
9301
|
+
requestId: 'string',
|
|
9302
|
+
};
|
|
9303
|
+
}
|
|
9304
|
+
|
|
9305
|
+
validate() {
|
|
9306
|
+
if(Array.isArray(this.regions)) {
|
|
9307
|
+
$dara.Model.validateArray(this.regions);
|
|
9308
|
+
}
|
|
9309
|
+
super.validate();
|
|
9310
|
+
}
|
|
9311
|
+
|
|
9312
|
+
constructor(map?: { [key: string]: any }) {
|
|
9313
|
+
super(map);
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
9316
|
+
|
|
9317
|
+
export class DescribeRegionsResponse extends $dara.Model {
|
|
9318
|
+
headers?: { [key: string]: string };
|
|
9319
|
+
statusCode?: number;
|
|
9320
|
+
body?: DescribeRegionsResponseBody;
|
|
9321
|
+
static names(): { [key: string]: string } {
|
|
9322
|
+
return {
|
|
9323
|
+
headers: 'headers',
|
|
9324
|
+
statusCode: 'statusCode',
|
|
9325
|
+
body: 'body',
|
|
9326
|
+
};
|
|
9327
|
+
}
|
|
9328
|
+
|
|
9329
|
+
static types(): { [key: string]: any } {
|
|
9330
|
+
return {
|
|
9331
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
9332
|
+
statusCode: 'number',
|
|
9333
|
+
body: DescribeRegionsResponseBody,
|
|
9334
|
+
};
|
|
9335
|
+
}
|
|
9336
|
+
|
|
9337
|
+
validate() {
|
|
9338
|
+
if(this.headers) {
|
|
9339
|
+
$dara.Model.validateMap(this.headers);
|
|
9340
|
+
}
|
|
9341
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
9342
|
+
(this.body as any).validate();
|
|
9343
|
+
}
|
|
9344
|
+
super.validate();
|
|
9345
|
+
}
|
|
9346
|
+
|
|
9347
|
+
constructor(map?: { [key: string]: any }) {
|
|
9348
|
+
super(map);
|
|
9349
|
+
}
|
|
9350
|
+
}
|
|
9351
|
+
|
|
9346
9352
|
export class DescribeResourceResponseBody extends $dara.Model {
|
|
9347
9353
|
/**
|
|
9348
9354
|
* @remarks
|
|
@@ -10173,7 +10179,7 @@ export class DescribeServiceEndpointsResponseBody extends $dara.Model {
|
|
|
10173
10179
|
* @remarks
|
|
10174
10180
|
* The service endpoints.
|
|
10175
10181
|
*/
|
|
10176
|
-
endpoints?: DescribeServiceEndpointsResponseBodyEndpoints;
|
|
10182
|
+
endpoints?: DescribeServiceEndpointsResponseBodyEndpoints[];
|
|
10177
10183
|
/**
|
|
10178
10184
|
* @remarks
|
|
10179
10185
|
* The returned message.
|
|
@@ -10202,15 +10208,15 @@ export class DescribeServiceEndpointsResponseBody extends $dara.Model {
|
|
|
10202
10208
|
static types(): { [key: string]: any } {
|
|
10203
10209
|
return {
|
|
10204
10210
|
accessToken: 'string',
|
|
10205
|
-
endpoints: DescribeServiceEndpointsResponseBodyEndpoints,
|
|
10211
|
+
endpoints: { 'type': 'array', 'itemType': DescribeServiceEndpointsResponseBodyEndpoints },
|
|
10206
10212
|
message: 'string',
|
|
10207
10213
|
requestId: 'string',
|
|
10208
10214
|
};
|
|
10209
10215
|
}
|
|
10210
10216
|
|
|
10211
10217
|
validate() {
|
|
10212
|
-
if(
|
|
10213
|
-
(this.endpoints
|
|
10218
|
+
if(Array.isArray(this.endpoints)) {
|
|
10219
|
+
$dara.Model.validateArray(this.endpoints);
|
|
10214
10220
|
}
|
|
10215
10221
|
super.validate();
|
|
10216
10222
|
}
|
|
@@ -20274,6 +20280,46 @@ export default class Client extends OpenApi {
|
|
|
20274
20280
|
return await this.describeMachineSpecWithOptions(request, headers, runtime);
|
|
20275
20281
|
}
|
|
20276
20282
|
|
|
20283
|
+
/**
|
|
20284
|
+
* 查询可用的地域信息
|
|
20285
|
+
*
|
|
20286
|
+
* @param headers - map
|
|
20287
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
20288
|
+
* @returns DescribeRegionsResponse
|
|
20289
|
+
*/
|
|
20290
|
+
async describeRegionsWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<DescribeRegionsResponse> {
|
|
20291
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
20292
|
+
headers: headers,
|
|
20293
|
+
});
|
|
20294
|
+
let params = new $OpenApiUtil.Params({
|
|
20295
|
+
action: "DescribeRegions",
|
|
20296
|
+
version: "2021-07-01",
|
|
20297
|
+
protocol: "HTTPS",
|
|
20298
|
+
pathname: `/api/v2/regions`,
|
|
20299
|
+
method: "GET",
|
|
20300
|
+
authType: "AK",
|
|
20301
|
+
style: "ROA",
|
|
20302
|
+
reqBodyType: "json",
|
|
20303
|
+
bodyType: "json",
|
|
20304
|
+
});
|
|
20305
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
20306
|
+
return $dara.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
|
|
20307
|
+
} else {
|
|
20308
|
+
return $dara.cast<DescribeRegionsResponse>(await this.execute(params, req, runtime), new DescribeRegionsResponse({}));
|
|
20309
|
+
}
|
|
20310
|
+
|
|
20311
|
+
}
|
|
20312
|
+
|
|
20313
|
+
/**
|
|
20314
|
+
* 查询可用的地域信息
|
|
20315
|
+
* @returns DescribeRegionsResponse
|
|
20316
|
+
*/
|
|
20317
|
+
async describeRegions(): Promise<DescribeRegionsResponse> {
|
|
20318
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
20319
|
+
let headers : {[key: string ]: string} = { };
|
|
20320
|
+
return await this.describeRegionsWithOptions(headers, runtime);
|
|
20321
|
+
}
|
|
20322
|
+
|
|
20277
20323
|
/**
|
|
20278
20324
|
* Queries the information about a resource group.
|
|
20279
20325
|
*
|