@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
|
@@ -3,17 +3,151 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ResourceInstanceWorker extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The maximum number of CPU cores.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2
|
|
12
|
+
*/
|
|
6
13
|
cpuLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The number of CPU cores that you applied for.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1
|
|
20
|
+
*/
|
|
7
21
|
cpuRequest?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The maximum number of GPUs.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 0
|
|
28
|
+
*/
|
|
8
29
|
gpuLimit?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The number of GPUs that you applied for.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 0
|
|
36
|
+
*/
|
|
9
37
|
gpuRequest?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The maximum memory size.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 400
|
|
44
|
+
*/
|
|
10
45
|
memoryLimit?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The memory size that you applied for.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 200
|
|
52
|
+
*/
|
|
11
53
|
memoryRquest?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The name of the service instance.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* test-india-5bbbfdbc98-****
|
|
60
|
+
*/
|
|
12
61
|
name?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* Indicates whether the instance worker is ready.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* true
|
|
68
|
+
*/
|
|
13
69
|
ready?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The number of times the instance worker restarted.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* 3
|
|
76
|
+
*/
|
|
14
77
|
restartCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The service name.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* test-in****
|
|
84
|
+
*/
|
|
15
85
|
serviceName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The time when the instance worker started.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 2021-05-09T09:56:19Z
|
|
92
|
+
*/
|
|
16
93
|
startTime?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The instance state.
|
|
97
|
+
*
|
|
98
|
+
* Valid values:
|
|
99
|
+
*
|
|
100
|
+
* * Terminating
|
|
101
|
+
*
|
|
102
|
+
* <!-- -->
|
|
103
|
+
*
|
|
104
|
+
* <!-- -->
|
|
105
|
+
*
|
|
106
|
+
* <!-- -->
|
|
107
|
+
*
|
|
108
|
+
* * Succeeded
|
|
109
|
+
*
|
|
110
|
+
* <!-- -->
|
|
111
|
+
*
|
|
112
|
+
* <!-- -->
|
|
113
|
+
*
|
|
114
|
+
* <!-- -->
|
|
115
|
+
*
|
|
116
|
+
* * Unknown
|
|
117
|
+
*
|
|
118
|
+
* <!-- -->
|
|
119
|
+
*
|
|
120
|
+
* <!-- -->
|
|
121
|
+
*
|
|
122
|
+
* <!-- -->
|
|
123
|
+
*
|
|
124
|
+
* * Failed
|
|
125
|
+
*
|
|
126
|
+
* <!-- -->
|
|
127
|
+
*
|
|
128
|
+
* <!-- -->
|
|
129
|
+
*
|
|
130
|
+
* <!-- -->
|
|
131
|
+
*
|
|
132
|
+
* * Running
|
|
133
|
+
*
|
|
134
|
+
* <!-- -->
|
|
135
|
+
*
|
|
136
|
+
* <!-- -->
|
|
137
|
+
*
|
|
138
|
+
* <!-- -->
|
|
139
|
+
*
|
|
140
|
+
* * Pending
|
|
141
|
+
*
|
|
142
|
+
* <!-- -->
|
|
143
|
+
*
|
|
144
|
+
* <!-- -->
|
|
145
|
+
*
|
|
146
|
+
* <!-- -->
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* Running
|
|
150
|
+
*/
|
|
17
151
|
status?: string;
|
|
18
152
|
static names(): { [key: string]: string } {
|
|
19
153
|
return {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ScaleServiceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2
|
|
12
|
+
*/
|
|
13
|
+
instance?: number;
|
|
14
|
+
/**
|
|
15
|
+
* **if can be null:**
|
|
16
|
+
* true
|
|
17
|
+
*/
|
|
18
|
+
instancesToDelete?: string[];
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
instance: 'Instance',
|
|
22
|
+
instancesToDelete: 'InstancesToDelete',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
instance: 'number',
|
|
29
|
+
instancesToDelete: { 'type': 'array', 'itemType': 'string' },
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
if(Array.isArray(this.instancesToDelete)) {
|
|
35
|
+
$dara.Model.validateArray(this.instancesToDelete);
|
|
36
|
+
}
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ScaleServiceResponseBody } from "./ScaleServiceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ScaleServiceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ScaleServiceResponseBody;
|
|
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: ScaleServiceResponseBody,
|
|
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,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ScaleServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Service [foo] in region [cn-shanghai] is scaling
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 40325405-579C-4D82****
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
message: 'Message',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
message: 'string',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
package/src/models/Service.ts
CHANGED
|
@@ -32,7 +32,21 @@ export class ServiceInstanceCountInResource extends $dara.Model {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export class ServiceLabels extends $dara.Model {
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The label key.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* key1
|
|
41
|
+
*/
|
|
35
42
|
labelKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The label value.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* value1
|
|
49
|
+
*/
|
|
36
50
|
labelValue?: string;
|
|
37
51
|
static names(): { [key: string]: string } {
|
|
38
52
|
return {
|
|
@@ -58,57 +72,404 @@ export class ServiceLabels extends $dara.Model {
|
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
export class Service extends $dara.Model {
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The token that is used to access the service.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********
|
|
81
|
+
*/
|
|
61
82
|
accessToken?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* The application service configuration.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* {"ModelStorage":"oss"}
|
|
89
|
+
*/
|
|
62
90
|
appConfig?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The name of the application service specification.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* llama_7b_fp16
|
|
97
|
+
*/
|
|
63
98
|
appSpecName?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The application service type.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* LLM
|
|
105
|
+
*/
|
|
64
106
|
appType?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The application service version.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* v1
|
|
113
|
+
*/
|
|
65
114
|
appVersion?: string;
|
|
66
115
|
autoscalerEnabled?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The user ID (UID) of the Alibaba Cloud account that is used to create the service.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* 20123*******
|
|
122
|
+
*/
|
|
67
123
|
callerUid?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The number of CPU cores that you applied for each instance.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* 1
|
|
130
|
+
*/
|
|
68
131
|
cpu?: number;
|
|
132
|
+
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* The time when the service was created. The time is displayed in the UTC RFC3339 format.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* 2021-01-29T11:13:20Z
|
|
138
|
+
*/
|
|
69
139
|
createTime?: string;
|
|
70
140
|
cronscalerEnabled?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* @remarks
|
|
143
|
+
* The version of the model that is running.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* 1
|
|
147
|
+
*/
|
|
71
148
|
currentVersion?: number;
|
|
149
|
+
/**
|
|
150
|
+
* @remarks
|
|
151
|
+
* The additional information about the service.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* {\\"blue_green_services\\":[\\"test\\",\\"testxxxx\\"]}
|
|
155
|
+
*/
|
|
72
156
|
extraData?: string;
|
|
73
157
|
GPUCorePercentage?: number;
|
|
74
158
|
GPUMemory?: number;
|
|
159
|
+
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The ID of the dedicated gateway for the service. This parameter is available only for services that are associated with dedicated gateways.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* gw-xxxxxx
|
|
165
|
+
*/
|
|
75
166
|
gateway?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @remarks
|
|
169
|
+
* The number of GPUs that you applied for each instance.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* 0
|
|
173
|
+
*/
|
|
76
174
|
gpu?: number;
|
|
175
|
+
/**
|
|
176
|
+
* @remarks
|
|
177
|
+
* The data image of the service.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320
|
|
181
|
+
*/
|
|
77
182
|
image?: string;
|
|
78
183
|
instanceCountInResource?: ServiceInstanceCountInResource;
|
|
184
|
+
/**
|
|
185
|
+
* @remarks
|
|
186
|
+
* The public endpoint of the service. This parameter is returned only in the DescribeService API operation.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo
|
|
190
|
+
*/
|
|
79
191
|
internetEndpoint?: string;
|
|
192
|
+
/**
|
|
193
|
+
* @remarks
|
|
194
|
+
* The internal endpoint of the service. This parameter is returned only in the DescribeService API operation.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo
|
|
198
|
+
*/
|
|
80
199
|
intranetEndpoint?: string;
|
|
200
|
+
/**
|
|
201
|
+
* @remarks
|
|
202
|
+
* The labels.
|
|
203
|
+
*/
|
|
81
204
|
labels?: ServiceLabels[];
|
|
205
|
+
/**
|
|
206
|
+
* @remarks
|
|
207
|
+
* The latest version of the service.
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* 1
|
|
211
|
+
*/
|
|
82
212
|
latestVersion?: number;
|
|
213
|
+
/**
|
|
214
|
+
* @remarks
|
|
215
|
+
* The memory size that you applied for each instance. Unit: MB.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* 1024
|
|
219
|
+
*/
|
|
83
220
|
memory?: number;
|
|
221
|
+
/**
|
|
222
|
+
* @remarks
|
|
223
|
+
* The service summary.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* Service start successfully
|
|
227
|
+
*/
|
|
84
228
|
message?: string;
|
|
229
|
+
/**
|
|
230
|
+
* @remarks
|
|
231
|
+
* The namespace in which the service resides.
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* echo
|
|
235
|
+
*/
|
|
85
236
|
namespace?: string;
|
|
237
|
+
/**
|
|
238
|
+
* @remarks
|
|
239
|
+
* The UID of the Alibaba Cloud account that is used to create the service.
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* 11234*******
|
|
243
|
+
*/
|
|
86
244
|
parentUid?: string;
|
|
245
|
+
/**
|
|
246
|
+
* @remarks
|
|
247
|
+
* The number of instances for the pending service.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* 0
|
|
251
|
+
*/
|
|
87
252
|
pendingInstance?: number;
|
|
253
|
+
/**
|
|
254
|
+
* @remarks
|
|
255
|
+
* The quota ID for the service. This parameter is available only for services deployed by using Lingjun resource quotas.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* quotaxxxxx
|
|
259
|
+
*/
|
|
88
260
|
quotaId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* @remarks
|
|
263
|
+
* The reason for which the service is in the current state.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* RUNNING
|
|
267
|
+
*/
|
|
89
268
|
reason?: string;
|
|
269
|
+
/**
|
|
270
|
+
* @remarks
|
|
271
|
+
* The region in which the service resides.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* cn-shanghai
|
|
275
|
+
*/
|
|
90
276
|
region?: string;
|
|
277
|
+
/**
|
|
278
|
+
* @remarks
|
|
279
|
+
* The request ID.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* 40325405-579C-4D82********
|
|
283
|
+
*/
|
|
91
284
|
requestId?: string;
|
|
285
|
+
/**
|
|
286
|
+
* @remarks
|
|
287
|
+
* The resource group to which the service belongs.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* eas-r-xxxxxxx
|
|
291
|
+
*/
|
|
92
292
|
resource?: string;
|
|
293
|
+
/**
|
|
294
|
+
* @remarks
|
|
295
|
+
* The alias of the resource group to which the service belongs.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* my_resource
|
|
299
|
+
*/
|
|
93
300
|
resourceAlias?: string;
|
|
94
301
|
resourceBurstable?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* @remarks
|
|
304
|
+
* The service role.
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* Queue
|
|
308
|
+
*/
|
|
95
309
|
role?: string;
|
|
310
|
+
/**
|
|
311
|
+
* @remarks
|
|
312
|
+
* The additional attributes of the service role. This parameter is returned only in the DescribeService API operation.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* "{\\"ApproxMaxLength\\":null,\\"Length\\":null,\\"MaxPayloadBytes\\":null}"
|
|
316
|
+
*/
|
|
96
317
|
roleAttrs?: string;
|
|
318
|
+
/**
|
|
319
|
+
* @remarks
|
|
320
|
+
* The number of instances for the running service.
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* 1
|
|
324
|
+
*/
|
|
97
325
|
runningInstance?: number;
|
|
326
|
+
/**
|
|
327
|
+
* @remarks
|
|
328
|
+
* The security lock of the service.
|
|
329
|
+
*
|
|
330
|
+
* Valid values:
|
|
331
|
+
*
|
|
332
|
+
* * all: forbids all operations.
|
|
333
|
+
* * dangerous: forbids the operation of deleting or stopping the service.
|
|
334
|
+
* * none: forbids no operations.
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* dangerous
|
|
338
|
+
*/
|
|
98
339
|
safetyLock?: string;
|
|
340
|
+
/**
|
|
341
|
+
* @remarks
|
|
342
|
+
* The public endpoint that is used in the asynchronization request of the service. This parameter is returned only in the DescribeService API operation.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo
|
|
346
|
+
*/
|
|
99
347
|
secondaryInternetEndpoint?: string;
|
|
348
|
+
/**
|
|
349
|
+
* @remarks
|
|
350
|
+
* The internal endpoint that is used in the asynchronization request of the service. This parameter is returned only in the DescribeService API operation.
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo
|
|
354
|
+
*/
|
|
100
355
|
secondaryIntranetEndpoint?: string;
|
|
356
|
+
/**
|
|
357
|
+
* @remarks
|
|
358
|
+
* The service configurations.
|
|
359
|
+
*
|
|
360
|
+
* @example
|
|
361
|
+
* { "metadata": { "cpu":1, "instance":1, "memory":1024 }, "name":"echo", "processor_entry":"libecho.so", "processor_path":"http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz", "processor_type":"cpp" }
|
|
362
|
+
*/
|
|
101
363
|
serviceConfig?: string;
|
|
364
|
+
/**
|
|
365
|
+
* @remarks
|
|
366
|
+
* The group to which the service belongs.
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* my_group
|
|
370
|
+
*/
|
|
102
371
|
serviceGroup?: string;
|
|
372
|
+
/**
|
|
373
|
+
* @remarks
|
|
374
|
+
* The unique ID of the service.
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* eas-m-xxasdat
|
|
378
|
+
*/
|
|
103
379
|
serviceId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* @remarks
|
|
382
|
+
* The service name.
|
|
383
|
+
*
|
|
384
|
+
* @example
|
|
385
|
+
* echo
|
|
386
|
+
*/
|
|
104
387
|
serviceName?: string;
|
|
388
|
+
/**
|
|
389
|
+
* @remarks
|
|
390
|
+
* The service ID. ServiceUid has the same meaning as ServiceId, and the values of the two parameters are the same.
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* eas-m-xxasdat
|
|
394
|
+
*/
|
|
105
395
|
serviceUid?: string;
|
|
396
|
+
/**
|
|
397
|
+
* @remarks
|
|
398
|
+
* The source from which the service deployment request is initiated.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* dsw
|
|
402
|
+
*/
|
|
106
403
|
source?: string;
|
|
404
|
+
/**
|
|
405
|
+
* @remarks
|
|
406
|
+
* The service status.
|
|
407
|
+
*
|
|
408
|
+
* Valid values:
|
|
409
|
+
*
|
|
410
|
+
* * Creating
|
|
411
|
+
* * Deploying
|
|
412
|
+
* * Stopped
|
|
413
|
+
* * Failed
|
|
414
|
+
* * Updating
|
|
415
|
+
* * Stopping
|
|
416
|
+
* * Waiting
|
|
417
|
+
* * HotUpdate
|
|
418
|
+
* * Starting
|
|
419
|
+
* * DeleteFailed
|
|
420
|
+
* * Running
|
|
421
|
+
* * Scaling
|
|
422
|
+
* * Pending
|
|
423
|
+
* * Deleting
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
* Running
|
|
427
|
+
*/
|
|
107
428
|
status?: string;
|
|
429
|
+
/**
|
|
430
|
+
* @remarks
|
|
431
|
+
* The total number of instances for the service.
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* 1
|
|
435
|
+
*/
|
|
108
436
|
totalInstance?: number;
|
|
437
|
+
/**
|
|
438
|
+
* @remarks
|
|
439
|
+
* The traffic state.
|
|
440
|
+
*
|
|
441
|
+
* Valid values:
|
|
442
|
+
*
|
|
443
|
+
* * standalone: independent traffic.
|
|
444
|
+
* * grouping: grouped traffic.
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* standalone
|
|
448
|
+
*/
|
|
109
449
|
trafficState?: string;
|
|
450
|
+
/**
|
|
451
|
+
* @remarks
|
|
452
|
+
* The time when the service was updated. The time is displayed in the UTC RFC3339 format.
|
|
453
|
+
*
|
|
454
|
+
* @example
|
|
455
|
+
* 2021-01-29T11:13:20Z
|
|
456
|
+
*/
|
|
110
457
|
updateTime?: string;
|
|
458
|
+
/**
|
|
459
|
+
* @remarks
|
|
460
|
+
* The weight of the service in canary release.
|
|
461
|
+
*
|
|
462
|
+
* @example
|
|
463
|
+
* 100
|
|
464
|
+
*/
|
|
111
465
|
weight?: number;
|
|
466
|
+
/**
|
|
467
|
+
* @remarks
|
|
468
|
+
* The ID of the workspace to which the service belongs.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* 123445
|
|
472
|
+
*/
|
|
112
473
|
workspaceId?: string;
|
|
113
474
|
static names(): { [key: string]: string } {
|
|
114
475
|
return {
|
|
@@ -18,10 +18,12 @@ export class UpdateResourceInstanceRequest extends $dara.Model {
|
|
|
18
18
|
*/
|
|
19
19
|
action?: string;
|
|
20
20
|
newDiskSize?: string;
|
|
21
|
+
reason?: string;
|
|
21
22
|
static names(): { [key: string]: string } {
|
|
22
23
|
return {
|
|
23
24
|
action: 'Action',
|
|
24
25
|
newDiskSize: 'NewDiskSize',
|
|
26
|
+
reason: 'Reason',
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -29,6 +31,7 @@ export class UpdateResourceInstanceRequest extends $dara.Model {
|
|
|
29
31
|
return {
|
|
30
32
|
action: 'string',
|
|
31
33
|
newDiskSize: 'string',
|
|
34
|
+
reason: 'string',
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|