@alicloud/eas20210701 7.4.2 → 7.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 +38 -2
- package/dist/client.js +98 -2
- package/dist/client.js.map +1 -1
- package/dist/models/ContainerInfo.d.ts +103 -0
- package/dist/models/ContainerInfo.js.map +1 -1
- package/dist/models/CreateServiceInstanceTokenRequest.d.ts +23 -0
- package/dist/models/CreateServiceInstanceTokenRequest.js +60 -0
- package/dist/models/CreateServiceInstanceTokenRequest.js.map +1 -0
- package/dist/models/CreateServiceInstanceTokenResponse.d.ts +19 -0
- package/dist/models/CreateServiceInstanceTokenResponse.js +69 -0
- package/dist/models/CreateServiceInstanceTokenResponse.js.map +1 -0
- package/dist/models/CreateServiceInstanceTokenResponseBody.d.ts +34 -0
- package/dist/models/CreateServiceInstanceTokenResponseBody.js +66 -0
- package/dist/models/CreateServiceInstanceTokenResponseBody.js.map +1 -0
- package/dist/models/DescribeGroupEndpointsResponseBody.d.ts +48 -0
- package/dist/models/DescribeGroupEndpointsResponseBody.js.map +1 -1
- package/dist/models/DescribeServiceEndpointsResponseBody.d.ts +16 -0
- package/dist/models/DescribeServiceEndpointsResponseBody.js.map +1 -1
- package/dist/models/Group.d.ts +68 -0
- package/dist/models/Group.js.map +1 -1
- package/dist/models/Instance.d.ts +141 -2
- package/dist/models/Instance.js.map +1 -1
- package/dist/models/ListServicesRequest.d.ts +5 -0
- package/dist/models/ListServicesRequest.js +2 -0
- package/dist/models/ListServicesRequest.js.map +1 -1
- package/dist/models/ListServicesShrinkRequest.d.ts +5 -0
- package/dist/models/ListServicesShrinkRequest.js +2 -0
- package/dist/models/ListServicesShrinkRequest.js.map +1 -1
- package/dist/models/Resource.d.ts +113 -0
- package/dist/models/Resource.js.map +1 -1
- package/dist/models/ResourceInstance.d.ts +187 -0
- package/dist/models/ResourceInstance.js +4 -0
- package/dist/models/ResourceInstance.js.map +1 -1
- package/dist/models/ResourceInstanceWorker.d.ts +134 -0
- package/dist/models/ResourceInstanceWorker.js.map +1 -1
- package/dist/models/ScaleServiceRequest.d.ts +26 -0
- package/dist/models/ScaleServiceRequest.js +63 -0
- package/dist/models/ScaleServiceRequest.js.map +1 -0
- package/dist/models/ScaleServiceResponse.d.ts +19 -0
- package/dist/models/ScaleServiceResponse.js +69 -0
- package/dist/models/ScaleServiceResponse.js.map +1 -0
- package/dist/models/ScaleServiceResponseBody.d.ts +23 -0
- package/dist/models/ScaleServiceResponseBody.js +60 -0
- package/dist/models/ScaleServiceResponseBody.js.map +1 -0
- package/dist/models/Service.d.ts +361 -0
- package/dist/models/Service.js.map +1 -1
- package/dist/models/UpdateResourceInstanceRequest.d.ts +1 -0
- package/dist/models/UpdateResourceInstanceRequest.js +2 -0
- package/dist/models/UpdateResourceInstanceRequest.js.map +1 -1
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +18 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +108 -2
- package/src/models/ContainerInfo.ts +103 -0
- package/src/models/CreateServiceInstanceTokenRequest.ts +38 -0
- package/src/models/CreateServiceInstanceTokenResponse.ts +40 -0
- package/src/models/CreateServiceInstanceTokenResponseBody.ts +55 -0
- package/src/models/DescribeGroupEndpointsResponseBody.ts +48 -0
- package/src/models/DescribeServiceEndpointsResponseBody.ts +16 -0
- package/src/models/Group.ts +68 -0
- package/src/models/Instance.ts +141 -2
- package/src/models/ListServicesRequest.ts +7 -0
- package/src/models/ListServicesShrinkRequest.ts +7 -0
- package/src/models/Resource.ts +113 -0
- package/src/models/ResourceInstance.ts +191 -0
- package/src/models/ResourceInstanceWorker.ts +134 -0
- package/src/models/ScaleServiceRequest.ts +44 -0
- package/src/models/ScaleServiceResponse.ts +40 -0
- package/src/models/ScaleServiceResponseBody.ts +38 -0
- package/src/models/Service.ts +361 -0
- package/src/models/UpdateResourceInstanceRequest.ts +3 -0
- package/src/models/model.ts +6 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -975,6 +975,55 @@ export default class Client extends OpenApi {
|
|
|
975
975
|
return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
976
976
|
}
|
|
977
977
|
|
|
978
|
+
/**
|
|
979
|
+
* 创建连接服务的token
|
|
980
|
+
*
|
|
981
|
+
* @param request - CreateServiceInstanceTokenRequest
|
|
982
|
+
* @param headers - map
|
|
983
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
984
|
+
* @returns CreateServiceInstanceTokenResponse
|
|
985
|
+
*/
|
|
986
|
+
async createServiceInstanceTokenWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateServiceInstanceTokenRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceInstanceTokenResponse> {
|
|
987
|
+
request.validate();
|
|
988
|
+
let query : {[key: string ]: any} = { };
|
|
989
|
+
if (!$dara.isNull(request.actionType)) {
|
|
990
|
+
query["ActionType"] = request.actionType;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
if (!$dara.isNull(request.workerName)) {
|
|
994
|
+
query["WorkerName"] = request.workerName;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
998
|
+
headers: headers,
|
|
999
|
+
query: OpenApiUtil.query(query),
|
|
1000
|
+
});
|
|
1001
|
+
let params = new $OpenApiUtil.Params({
|
|
1002
|
+
action: "CreateServiceInstanceToken",
|
|
1003
|
+
version: "2021-07-01",
|
|
1004
|
+
protocol: "HTTPS",
|
|
1005
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/instances/${$dara.URL.percentEncode(InstanceName)}/token`,
|
|
1006
|
+
method: "GET",
|
|
1007
|
+
authType: "AK",
|
|
1008
|
+
style: "ROA",
|
|
1009
|
+
reqBodyType: "json",
|
|
1010
|
+
bodyType: "json",
|
|
1011
|
+
});
|
|
1012
|
+
return $dara.cast<$_model.CreateServiceInstanceTokenResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceInstanceTokenResponse({}));
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* 创建连接服务的token
|
|
1017
|
+
*
|
|
1018
|
+
* @param request - CreateServiceInstanceTokenRequest
|
|
1019
|
+
* @returns CreateServiceInstanceTokenResponse
|
|
1020
|
+
*/
|
|
1021
|
+
async createServiceInstanceToken(ClusterId: string, ServiceName: string, InstanceName: string, request: $_model.CreateServiceInstanceTokenRequest): Promise<$_model.CreateServiceInstanceTokenResponse> {
|
|
1022
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1023
|
+
let headers : {[key: string ]: string} = { };
|
|
1024
|
+
return await this.createServiceInstanceTokenWithOptions(ClusterId, ServiceName, InstanceName, request, headers, runtime);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
978
1027
|
/**
|
|
979
1028
|
* Enables the traffic mirroring feature for a service. After the feature is enabled, requests received by the service can be mirrored to another service.
|
|
980
1029
|
*
|
|
@@ -1238,7 +1287,7 @@ export default class Client extends OpenApi {
|
|
|
1238
1287
|
}
|
|
1239
1288
|
|
|
1240
1289
|
/**
|
|
1241
|
-
*
|
|
1290
|
+
* Deletes an internal endpoint of a private gateway.
|
|
1242
1291
|
*
|
|
1243
1292
|
* @param request - DeleteGatewayIntranetLinkedVpcRequest
|
|
1244
1293
|
* @param headers - map
|
|
@@ -1275,7 +1324,7 @@ export default class Client extends OpenApi {
|
|
|
1275
1324
|
}
|
|
1276
1325
|
|
|
1277
1326
|
/**
|
|
1278
|
-
*
|
|
1327
|
+
* Deletes an internal endpoint of a private gateway.
|
|
1279
1328
|
*
|
|
1280
1329
|
* @param request - DeleteGatewayIntranetLinkedVpcRequest
|
|
1281
1330
|
* @returns DeleteGatewayIntranetLinkedVpcResponse
|
|
@@ -3892,6 +3941,10 @@ export default class Client extends OpenApi {
|
|
|
3892
3941
|
}
|
|
3893
3942
|
|
|
3894
3943
|
let query : {[key: string ]: any} = { };
|
|
3944
|
+
if (!$dara.isNull(request.accessibility)) {
|
|
3945
|
+
query["Accessibility"] = request.accessibility;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3895
3948
|
if (!$dara.isNull(request.autoscalerEnabled)) {
|
|
3896
3949
|
query["AutoscalerEnabled"] = request.autoscalerEnabled;
|
|
3897
3950
|
}
|
|
@@ -4298,6 +4351,55 @@ export default class Client extends OpenApi {
|
|
|
4298
4351
|
return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
4299
4352
|
}
|
|
4300
4353
|
|
|
4354
|
+
/**
|
|
4355
|
+
* 伸缩服务
|
|
4356
|
+
*
|
|
4357
|
+
* @param request - ScaleServiceRequest
|
|
4358
|
+
* @param headers - map
|
|
4359
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4360
|
+
* @returns ScaleServiceResponse
|
|
4361
|
+
*/
|
|
4362
|
+
async scaleServiceWithOptions(ClusterId: string, ServiceName: string, request: $_model.ScaleServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ScaleServiceResponse> {
|
|
4363
|
+
request.validate();
|
|
4364
|
+
let body : {[key: string ]: any} = { };
|
|
4365
|
+
if (!$dara.isNull(request.instance)) {
|
|
4366
|
+
body["Instance"] = request.instance;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
if (!$dara.isNull(request.instancesToDelete)) {
|
|
4370
|
+
body["InstancesToDelete"] = request.instancesToDelete;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4374
|
+
headers: headers,
|
|
4375
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4376
|
+
});
|
|
4377
|
+
let params = new $OpenApiUtil.Params({
|
|
4378
|
+
action: "ScaleService",
|
|
4379
|
+
version: "2021-07-01",
|
|
4380
|
+
protocol: "HTTPS",
|
|
4381
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/scale`,
|
|
4382
|
+
method: "PUT",
|
|
4383
|
+
authType: "AK",
|
|
4384
|
+
style: "ROA",
|
|
4385
|
+
reqBodyType: "json",
|
|
4386
|
+
bodyType: "json",
|
|
4387
|
+
});
|
|
4388
|
+
return $dara.cast<$_model.ScaleServiceResponse>(await this.callApi(params, req, runtime), new $_model.ScaleServiceResponse({}));
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
/**
|
|
4392
|
+
* 伸缩服务
|
|
4393
|
+
*
|
|
4394
|
+
* @param request - ScaleServiceRequest
|
|
4395
|
+
* @returns ScaleServiceResponse
|
|
4396
|
+
*/
|
|
4397
|
+
async scaleService(ClusterId: string, ServiceName: string, request: $_model.ScaleServiceRequest): Promise<$_model.ScaleServiceResponse> {
|
|
4398
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4399
|
+
let headers : {[key: string ]: string} = { };
|
|
4400
|
+
return await this.scaleServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4301
4403
|
/**
|
|
4302
4404
|
* Starts a stress testing task.
|
|
4303
4405
|
*
|
|
@@ -4841,6 +4943,10 @@ export default class Client extends OpenApi {
|
|
|
4841
4943
|
body["NewDiskSize"] = request.newDiskSize;
|
|
4842
4944
|
}
|
|
4843
4945
|
|
|
4946
|
+
if (!$dara.isNull(request.reason)) {
|
|
4947
|
+
body["Reason"] = request.reason;
|
|
4948
|
+
}
|
|
4949
|
+
|
|
4844
4950
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4845
4951
|
headers: headers,
|
|
4846
4952
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -3,16 +3,119 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ContainerInfo extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The reason why the container is in the current state.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* PodInitializing
|
|
12
|
+
*/
|
|
6
13
|
currentReaon?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The current state of the container. Valid values:
|
|
17
|
+
*
|
|
18
|
+
* * Waiting
|
|
19
|
+
* * Running
|
|
20
|
+
* * Terminated
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Waiting
|
|
24
|
+
*/
|
|
7
25
|
currentStatus?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The time when the container entered the current state.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* 2022-03-21T06:17:57Z
|
|
32
|
+
*/
|
|
8
33
|
currentTimestamp?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* The image.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320
|
|
40
|
+
*/
|
|
9
41
|
image?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The reason why the container is in the last state.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* Error
|
|
48
|
+
*/
|
|
10
49
|
lastReason?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The last state of the container. Valid values:
|
|
53
|
+
*
|
|
54
|
+
* * Waiting
|
|
55
|
+
* * Running
|
|
56
|
+
* * Terminated
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* Terminated
|
|
60
|
+
*/
|
|
11
61
|
lastStatus?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The time when the container entered the last state.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 2022-03-21T05:17:57Z
|
|
68
|
+
*/
|
|
12
69
|
lastTimestamp?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The container name.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* worker0
|
|
76
|
+
*/
|
|
13
77
|
name?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The port number.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* 8080
|
|
84
|
+
*/
|
|
14
85
|
port?: number;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* Indicates whether the container passed the health check.
|
|
89
|
+
*
|
|
90
|
+
* Valid values:
|
|
91
|
+
*
|
|
92
|
+
* * true
|
|
93
|
+
*
|
|
94
|
+
* <!-- -->
|
|
95
|
+
*
|
|
96
|
+
* <!-- -->
|
|
97
|
+
*
|
|
98
|
+
* <!-- -->
|
|
99
|
+
*
|
|
100
|
+
* * false
|
|
101
|
+
*
|
|
102
|
+
* <!-- -->
|
|
103
|
+
*
|
|
104
|
+
* <!-- -->
|
|
105
|
+
*
|
|
106
|
+
* <!-- -->
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* true
|
|
110
|
+
*/
|
|
15
111
|
ready?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* The number of times the container restarted.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* 0
|
|
118
|
+
*/
|
|
16
119
|
restartCount?: number;
|
|
17
120
|
static names(): { [key: string]: string } {
|
|
18
121
|
return {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateServiceInstanceTokenRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* WorkBench
|
|
9
|
+
*/
|
|
10
|
+
actionType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* worker0
|
|
14
|
+
*/
|
|
15
|
+
workerName?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
actionType: 'ActionType',
|
|
19
|
+
workerName: 'WorkerName',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
actionType: 'string',
|
|
26
|
+
workerName: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateServiceInstanceTokenResponseBody } from "./CreateServiceInstanceTokenResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateServiceInstanceTokenResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateServiceInstanceTokenResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateServiceInstanceTokenResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateServiceInstanceTokenResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 40325405-579C-4D82****
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ***
|
|
14
|
+
*/
|
|
15
|
+
streamlogUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* ***
|
|
19
|
+
*/
|
|
20
|
+
token?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ***
|
|
24
|
+
*/
|
|
25
|
+
url?: string;
|
|
26
|
+
workbenchUrl?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
requestId: 'RequestId',
|
|
30
|
+
streamlogUrl: 'StreamlogUrl',
|
|
31
|
+
token: 'Token',
|
|
32
|
+
url: 'Url',
|
|
33
|
+
workbenchUrl: 'WorkbenchUrl',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static types(): { [key: string]: any } {
|
|
38
|
+
return {
|
|
39
|
+
requestId: 'string',
|
|
40
|
+
streamlogUrl: 'string',
|
|
41
|
+
token: 'string',
|
|
42
|
+
url: 'string',
|
|
43
|
+
workbenchUrl: 'string',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
super.validate();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
constructor(map?: { [key: string]: any }) {
|
|
52
|
+
super(map);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -3,11 +3,59 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The backend access ID, which varies based on the value of the EndpointType parameter.
|
|
9
|
+
*
|
|
10
|
+
* * If you set EndpointType to DefaultGateway, the value of this parameter is default.
|
|
11
|
+
* * If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.
|
|
12
|
+
* * If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.
|
|
13
|
+
* * If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* gw-26340kjxjx8l3r****
|
|
17
|
+
*/
|
|
6
18
|
backendId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The service endpoint type. Valid values:
|
|
22
|
+
*
|
|
23
|
+
* * DefaultGateway: the shared gateway.
|
|
24
|
+
* * PrivateGateway: the dedicated gateway.
|
|
25
|
+
* * Nlb: Associate the service with the Network Load Balancer (NLB) instance.
|
|
26
|
+
* * Nacos: Associate the service with the Nacos instance.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* PrivateGateway
|
|
30
|
+
*/
|
|
7
31
|
endpointType?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The full endpoint.
|
|
35
|
+
*/
|
|
8
36
|
internetEndpoints?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The full endpoint.
|
|
40
|
+
*/
|
|
9
41
|
intranetEndpoints?: string[];
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The path type. Valid values:
|
|
45
|
+
*
|
|
46
|
+
* * Group: the path of the service group.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* Group
|
|
50
|
+
*/
|
|
10
51
|
pathType?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* 8080
|
|
58
|
+
*/
|
|
11
59
|
port?: number;
|
|
12
60
|
static names(): { [key: string]: string } {
|
|
13
61
|
return {
|
|
@@ -3,11 +3,27 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeServiceEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* nlb-5q4sp7u6oorkha****
|
|
9
|
+
*/
|
|
6
10
|
backendId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* Nlb
|
|
14
|
+
*/
|
|
7
15
|
endpointType?: string;
|
|
8
16
|
internetEndpoints?: string[];
|
|
9
17
|
intranetEndpoints?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* Service
|
|
21
|
+
*/
|
|
10
22
|
pathType?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* 9090
|
|
26
|
+
*/
|
|
11
27
|
port?: number;
|
|
12
28
|
static names(): { [key: string]: string } {
|
|
13
29
|
return {
|
package/src/models/Group.ts
CHANGED
|
@@ -3,14 +3,82 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class Group extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The token that is used to access the service group.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********
|
|
12
|
+
*/
|
|
6
13
|
accessToken?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The region where the service group resides.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* cn-shanghai
|
|
20
|
+
*/
|
|
7
21
|
clusterId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The time when the service group was created. The time is displayed in UTC.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 2020-05-19T14:19:42Z
|
|
28
|
+
*/
|
|
8
29
|
createTime?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The public endpoint of the service group.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group
|
|
36
|
+
*/
|
|
9
37
|
internetEndpoint?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The internal endpoint of the service group.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group
|
|
44
|
+
*/
|
|
10
45
|
intranetEndpoint?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The name of the service group.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* foo
|
|
52
|
+
*/
|
|
11
53
|
name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The queue service that is included in the service group.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* qservice
|
|
60
|
+
*/
|
|
12
61
|
queueService?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The traffic mode.
|
|
65
|
+
*
|
|
66
|
+
* Valid values:
|
|
67
|
+
*
|
|
68
|
+
* * auto: The traffic is automatically allocated based on the number of instances.
|
|
69
|
+
* * customized: The traffic is allocated based on the custom weight.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* auto
|
|
73
|
+
*/
|
|
13
74
|
trafficMode?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The time when the service group was updated. The time is displayed in UTC.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* 2021-01-29T11:13:20Z
|
|
81
|
+
*/
|
|
14
82
|
updateTime?: string;
|
|
15
83
|
static names(): { [key: string]: string } {
|
|
16
84
|
return {
|