@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.
Files changed (73) hide show
  1. package/dist/client.d.ts +38 -2
  2. package/dist/client.js +98 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ContainerInfo.d.ts +103 -0
  5. package/dist/models/ContainerInfo.js.map +1 -1
  6. package/dist/models/CreateServiceInstanceTokenRequest.d.ts +23 -0
  7. package/dist/models/CreateServiceInstanceTokenRequest.js +60 -0
  8. package/dist/models/CreateServiceInstanceTokenRequest.js.map +1 -0
  9. package/dist/models/CreateServiceInstanceTokenResponse.d.ts +19 -0
  10. package/dist/models/CreateServiceInstanceTokenResponse.js +69 -0
  11. package/dist/models/CreateServiceInstanceTokenResponse.js.map +1 -0
  12. package/dist/models/CreateServiceInstanceTokenResponseBody.d.ts +34 -0
  13. package/dist/models/CreateServiceInstanceTokenResponseBody.js +66 -0
  14. package/dist/models/CreateServiceInstanceTokenResponseBody.js.map +1 -0
  15. package/dist/models/DescribeGroupEndpointsResponseBody.d.ts +48 -0
  16. package/dist/models/DescribeGroupEndpointsResponseBody.js.map +1 -1
  17. package/dist/models/DescribeServiceEndpointsResponseBody.d.ts +16 -0
  18. package/dist/models/DescribeServiceEndpointsResponseBody.js.map +1 -1
  19. package/dist/models/Group.d.ts +68 -0
  20. package/dist/models/Group.js.map +1 -1
  21. package/dist/models/Instance.d.ts +141 -2
  22. package/dist/models/Instance.js.map +1 -1
  23. package/dist/models/ListServicesRequest.d.ts +5 -0
  24. package/dist/models/ListServicesRequest.js +2 -0
  25. package/dist/models/ListServicesRequest.js.map +1 -1
  26. package/dist/models/ListServicesShrinkRequest.d.ts +5 -0
  27. package/dist/models/ListServicesShrinkRequest.js +2 -0
  28. package/dist/models/ListServicesShrinkRequest.js.map +1 -1
  29. package/dist/models/Resource.d.ts +113 -0
  30. package/dist/models/Resource.js.map +1 -1
  31. package/dist/models/ResourceInstance.d.ts +187 -0
  32. package/dist/models/ResourceInstance.js +4 -0
  33. package/dist/models/ResourceInstance.js.map +1 -1
  34. package/dist/models/ResourceInstanceWorker.d.ts +134 -0
  35. package/dist/models/ResourceInstanceWorker.js.map +1 -1
  36. package/dist/models/ScaleServiceRequest.d.ts +26 -0
  37. package/dist/models/ScaleServiceRequest.js +63 -0
  38. package/dist/models/ScaleServiceRequest.js.map +1 -0
  39. package/dist/models/ScaleServiceResponse.d.ts +19 -0
  40. package/dist/models/ScaleServiceResponse.js +69 -0
  41. package/dist/models/ScaleServiceResponse.js.map +1 -0
  42. package/dist/models/ScaleServiceResponseBody.d.ts +23 -0
  43. package/dist/models/ScaleServiceResponseBody.js +60 -0
  44. package/dist/models/ScaleServiceResponseBody.js.map +1 -0
  45. package/dist/models/Service.d.ts +361 -0
  46. package/dist/models/Service.js.map +1 -1
  47. package/dist/models/UpdateResourceInstanceRequest.d.ts +1 -0
  48. package/dist/models/UpdateResourceInstanceRequest.js +2 -0
  49. package/dist/models/UpdateResourceInstanceRequest.js.map +1 -1
  50. package/dist/models/model.d.ts +6 -0
  51. package/dist/models/model.js +18 -6
  52. package/dist/models/model.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/client.ts +108 -2
  55. package/src/models/ContainerInfo.ts +103 -0
  56. package/src/models/CreateServiceInstanceTokenRequest.ts +38 -0
  57. package/src/models/CreateServiceInstanceTokenResponse.ts +40 -0
  58. package/src/models/CreateServiceInstanceTokenResponseBody.ts +55 -0
  59. package/src/models/DescribeGroupEndpointsResponseBody.ts +48 -0
  60. package/src/models/DescribeServiceEndpointsResponseBody.ts +16 -0
  61. package/src/models/Group.ts +68 -0
  62. package/src/models/Instance.ts +141 -2
  63. package/src/models/ListServicesRequest.ts +7 -0
  64. package/src/models/ListServicesShrinkRequest.ts +7 -0
  65. package/src/models/Resource.ts +113 -0
  66. package/src/models/ResourceInstance.ts +191 -0
  67. package/src/models/ResourceInstanceWorker.ts +134 -0
  68. package/src/models/ScaleServiceRequest.ts +44 -0
  69. package/src/models/ScaleServiceResponse.ts +40 -0
  70. package/src/models/ScaleServiceResponseBody.ts +38 -0
  71. package/src/models/Service.ts +361 -0
  72. package/src/models/UpdateResourceInstanceRequest.ts +3 -0
  73. package/src/models/model.ts +6 -0
@@ -4,27 +4,74 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class Instance extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The current hourly price of the spot instance.
9
+ *
7
10
  * @example
8
11
  * 0.444
9
12
  */
10
13
  currentAmount?: number;
11
14
  detached?: boolean;
12
15
  /**
16
+ * @remarks
17
+ * The IP address of the instance in the user-created VPC.
18
+ *
13
19
  * @example
14
20
  * 192.168.1.100
15
21
  */
16
22
  externalIP?: string;
17
23
  /**
24
+ * @remarks
25
+ * The port number of the instance in the user-created VPC.
26
+ *
18
27
  * @example
19
28
  * 8080
20
29
  */
21
30
  externalInstancePort?: number;
31
+ /**
32
+ * @remarks
33
+ * The IP address of the host where the instance resides.
34
+ *
35
+ * @example
36
+ * 11.0.XX.XX
37
+ */
22
38
  hostIP?: string;
39
+ /**
40
+ * @remarks
41
+ * The name of the host where the instance resides.
42
+ *
43
+ * @example
44
+ * smart-scene-cls-854dbdc99d-****
45
+ */
23
46
  hostName?: string;
47
+ /**
48
+ * @remarks
49
+ * The internal IP address of the instance.
50
+ *
51
+ * @example
52
+ * 172.17.0.17
53
+ */
24
54
  innerIP?: string;
55
+ /**
56
+ * @remarks
57
+ * The instance name.
58
+ *
59
+ * @example
60
+ * foo-5fc8946767-v****
61
+ */
25
62
  instanceName?: string;
63
+ /**
64
+ * @remarks
65
+ * The network port of the instance.
66
+ *
67
+ * @example
68
+ * 8080
69
+ */
26
70
  instancePort?: number;
27
71
  /**
72
+ * @remarks
73
+ * The instance specification.
74
+ *
28
75
  * @example
29
76
  * ecs.c7.large
30
77
  */
@@ -32,54 +79,146 @@ export class Instance extends $dara.Model {
32
79
  isLatest?: boolean;
33
80
  isReplica?: boolean;
34
81
  /**
82
+ * @remarks
83
+ * Indicates whether the instance is a spot instance.
84
+ *
35
85
  * @example
36
86
  * false
37
87
  */
38
88
  isSpot?: boolean;
39
89
  /**
90
+ * @remarks
91
+ * Indicates whether the instance is isolated.
92
+ *
40
93
  * @example
41
94
  * false
42
95
  */
43
96
  isolated?: boolean;
97
+ /**
98
+ * @remarks
99
+ * The last state of the instance.
100
+ */
44
101
  lastState?: { [key: string]: any }[];
102
+ /**
103
+ * @remarks
104
+ * The namespace of the instance.
105
+ *
106
+ * @example
107
+ * foo
108
+ */
45
109
  namespace?: string;
46
110
  /**
111
+ * @remarks
112
+ * The original hourly price of the spot instance before a discount is used.
113
+ *
47
114
  * @example
48
115
  * 2.2
49
116
  */
50
117
  originalAmount?: number;
118
+ /**
119
+ * @remarks
120
+ * The number of processes that have started for the instance.
121
+ *
122
+ * @example
123
+ * 1
124
+ */
51
125
  readyProcesses?: number;
126
+ /**
127
+ * @remarks
128
+ * The reason for which the instance is in the current state.
129
+ *
130
+ * @example
131
+ * RUNNING
132
+ */
52
133
  reason?: string;
53
134
  replicaName?: string;
54
135
  /**
136
+ * @remarks
137
+ * The type of the resource group to which the instance belongs. Valid values: PublicResource and PrivateResource.
138
+ *
55
139
  * @example
56
140
  * PublicResource
57
141
  */
58
142
  resourceType?: string;
143
+ /**
144
+ * @remarks
145
+ * The number of times for which the instance is restarted.
146
+ *
147
+ * @example
148
+ * 1
149
+ */
59
150
  restartCount?: number;
60
151
  /**
152
+ * @remarks
153
+ * The service role of the instance. Valid values: Queue, DataLoader, and Standard.
154
+ *
61
155
  * @example
62
156
  * Standard
63
157
  */
64
158
  role?: string;
65
159
  /**
160
+ * @remarks
161
+ * The time when the instance was started. This parameter is deprecated. StartTime is used instead.
162
+ *
163
+ * @example
164
+ * 2021-05-27T09:46:05Z
165
+ *
66
166
  * @deprecated
67
167
  */
68
168
  startAt?: string;
169
+ /**
170
+ * @remarks
171
+ * The time when the instance was started.
172
+ *
173
+ * @example
174
+ * 2021-05-27T09:46:05Z
175
+ */
69
176
  startTime?: string;
177
+ /**
178
+ * @remarks
179
+ * The current state of the instance.
180
+ *
181
+ * Valid values:
182
+ *
183
+ * * Terminating
184
+ * * Succeeded
185
+ * * Unknown
186
+ * * Failed
187
+ * * Running
188
+ * * Pending
189
+ *
190
+ * @example
191
+ * Running
192
+ */
70
193
  status?: string;
71
194
  /**
195
+ * @remarks
196
+ * The IP address of the host in the VPC.
197
+ *
72
198
  * @example
73
- * 192.168.0.39
199
+ * 192.168.xx.xx
74
200
  */
75
201
  tenantHostIP?: string;
76
202
  /**
203
+ * @remarks
204
+ * The IP address of the instance in the VPC.
205
+ *
77
206
  * @example
78
- * 192.168.0.39
207
+ * 192.168.xx.xx
79
208
  */
80
209
  tenantInstanceIP?: string;
210
+ /**
211
+ * @remarks
212
+ * The total number of processes that the instance contains.
213
+ *
214
+ * @example
215
+ * 1
216
+ */
81
217
  totalProcesses?: number;
82
218
  /**
219
+ * @remarks
220
+ * The zone to which the instance belongs.
221
+ *
83
222
  * @example
84
223
  * cn-shanghai-a
85
224
  */
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListServicesRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * PUBLIC
9
+ */
10
+ accessibility?: string;
6
11
  autoscalerEnabled?: boolean;
7
12
  /**
8
13
  * @example
@@ -353,6 +358,7 @@ export class ListServicesRequest extends $dara.Model {
353
358
  workspaceId?: string;
354
359
  static names(): { [key: string]: string } {
355
360
  return {
361
+ accessibility: 'Accessibility',
356
362
  autoscalerEnabled: 'AutoscalerEnabled',
357
363
  callerUid: 'CallerUid',
358
364
  cronscalerEnabled: 'CronscalerEnabled',
@@ -384,6 +390,7 @@ export class ListServicesRequest extends $dara.Model {
384
390
 
385
391
  static types(): { [key: string]: any } {
386
392
  return {
393
+ accessibility: 'string',
387
394
  autoscalerEnabled: 'boolean',
388
395
  callerUid: 'string',
389
396
  cronscalerEnabled: 'boolean',
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListServicesShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * PUBLIC
9
+ */
10
+ accessibility?: string;
6
11
  autoscalerEnabled?: boolean;
7
12
  /**
8
13
  * @example
@@ -353,6 +358,7 @@ export class ListServicesShrinkRequest extends $dara.Model {
353
358
  workspaceId?: string;
354
359
  static names(): { [key: string]: string } {
355
360
  return {
361
+ accessibility: 'Accessibility',
356
362
  autoscalerEnabled: 'AutoscalerEnabled',
357
363
  callerUid: 'CallerUid',
358
364
  cronscalerEnabled: 'CronscalerEnabled',
@@ -384,6 +390,7 @@ export class ListServicesShrinkRequest extends $dara.Model {
384
390
 
385
391
  static types(): { [key: string]: any } {
386
392
  return {
393
+ accessibility: 'string',
387
394
  autoscalerEnabled: 'boolean',
388
395
  callerUid: 'string',
389
396
  cronscalerEnabled: 'boolean',
@@ -3,28 +3,141 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class Resource extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The information about the clusters.
9
+ *
10
+ * @example
11
+ * cn-shanghai
12
+ */
6
13
  clusterId?: string;
14
+ /**
15
+ * @remarks
16
+ * The total number of CPU cores.
17
+ *
18
+ * @example
19
+ * 64
20
+ */
7
21
  cpuCount?: number;
8
22
  cpuUsed?: number;
23
+ /**
24
+ * @remarks
25
+ * The time when the instance was created.
26
+ *
27
+ * @example
28
+ * 2019-02-26T17:52:49Z
29
+ */
9
30
  createTime?: string;
31
+ /**
32
+ * @remarks
33
+ * The additional information.
34
+ *
35
+ * @example
36
+ * {}
37
+ */
10
38
  extraData?: { [key: string]: any };
11
39
  features?: string[];
40
+ /**
41
+ * @remarks
42
+ * The total number of GPUs.
43
+ *
44
+ * @example
45
+ * 1
46
+ */
12
47
  gpuCount?: number;
13
48
  gpuUsed?: number;
49
+ /**
50
+ * @remarks
51
+ * The total number of instances. It is equal to the number of subscription instances plus the number of pay-as-you-go instances.
52
+ *
53
+ * @example
54
+ * 4
55
+ */
14
56
  instanceCount?: number;
15
57
  instanceMaxAllocatableCPU?: number;
16
58
  instanceMaxAllocatableGPU?: number;
17
59
  instanceMaxAllocatableMemory?: number;
18
60
  memory?: number;
19
61
  memoryUsed?: number;
62
+ /**
63
+ * @remarks
64
+ * The latest message about the resource group.
65
+ *
66
+ * @example
67
+ * Resource is ready
68
+ */
20
69
  message?: string;
70
+ /**
71
+ * @remarks
72
+ * The number of pay-as-you-go instances.
73
+ *
74
+ * @example
75
+ * 2
76
+ */
21
77
  postPaidInstanceCount?: number;
78
+ /**
79
+ * @remarks
80
+ * The number of subscription instances.
81
+ *
82
+ * @example
83
+ * 2
84
+ */
22
85
  prePaidInstanceCount?: number;
86
+ /**
87
+ * @remarks
88
+ * The resource group ID.
89
+ *
90
+ * @example
91
+ * eas-r-asdasdasd
92
+ */
23
93
  resourceId?: string;
94
+ /**
95
+ * @remarks
96
+ * The name of the resource group.
97
+ *
98
+ * @example
99
+ * iot
100
+ */
24
101
  resourceName?: string;
102
+ /**
103
+ * @remarks
104
+ * The type of the resource group. Valid values:
105
+ *
106
+ * * Dedicated: the dedicated resource group.
107
+ * * SelfManaged: the self-managed resource group.
108
+ *
109
+ * @example
110
+ * Dedicated
111
+ */
25
112
  resourceType?: string;
113
+ /**
114
+ * @remarks
115
+ * The status of the resource group.
116
+ *
117
+ * @example
118
+ * ResouceReady
119
+ */
26
120
  status?: string;
121
+ /**
122
+ * @remarks
123
+ * The time when the instance was last updated.
124
+ *
125
+ * @example
126
+ * 2019-02-26T19:52:49Z
127
+ */
27
128
  updateTime?: string;
129
+ /**
130
+ * @remarks
131
+ * The vendor of the resource group instances.
132
+ *
133
+ * Valid values:
134
+ *
135
+ * * ECS
136
+ * * BareMetal
137
+ *
138
+ * @example
139
+ * ECS
140
+ */
28
141
  vendor?: string;
29
142
  static names(): { [key: string]: string } {
30
143
  return {
@@ -5,7 +5,21 @@ import * as $dara from '@darabonba/typescript';
5
5
  /**
6
6
  */
7
7
  export class ResourceInstanceLabels extends $dara.Model {
8
+ /**
9
+ * @remarks
10
+ * The tag key of the instance.
11
+ *
12
+ * @example
13
+ * key
14
+ */
8
15
  labelKey?: string;
16
+ /**
17
+ * @remarks
18
+ * The tag value of the instance.
19
+ *
20
+ * @example
21
+ * value
22
+ */
9
23
  labelValue?: string;
10
24
  static names(): { [key: string]: string } {
11
25
  return {
@@ -31,30 +45,203 @@ export class ResourceInstanceLabels extends $dara.Model {
31
45
  }
32
46
 
33
47
  export class ResourceInstance extends $dara.Model {
48
+ /**
49
+ * @remarks
50
+ * The system architecture of the instance.
51
+ *
52
+ * @example
53
+ * arm64
54
+ */
34
55
  arch?: string;
56
+ /**
57
+ * @remarks
58
+ * Indicates whether auto-renewal is enabled for the instance.
59
+ *
60
+ * @example
61
+ * false
62
+ */
35
63
  autoRenewal?: boolean;
64
+ /**
65
+ * @remarks
66
+ * The billing method of the instance.
67
+ *
68
+ * @example
69
+ * PrePaid
70
+ */
36
71
  chargeType?: string;
72
+ /**
73
+ * @remarks
74
+ * The time when the instance was created.
75
+ *
76
+ * @example
77
+ * 2020-07-05T22:51:32Z
78
+ */
37
79
  createTime?: string;
80
+ /**
81
+ * @remarks
82
+ * The time when the instance expires.
83
+ *
84
+ * @example
85
+ * 2020-08-05T22:51:32Z
86
+ */
38
87
  expiredTime?: string;
88
+ /**
89
+ * @remarks
90
+ * The number of CPU cores for the instance.
91
+ *
92
+ * @example
93
+ * 4
94
+ */
39
95
  instanceCpuCount?: number;
96
+ /**
97
+ * @remarks
98
+ * The number of GPUs for the instance.
99
+ *
100
+ * @example
101
+ * 0
102
+ */
40
103
  instanceGpuCount?: number;
104
+ /**
105
+ * @remarks
106
+ * The GPU memory size of the instance.
107
+ *
108
+ * @example
109
+ * 0G
110
+ */
41
111
  instanceGpuMemory?: string;
112
+ /**
113
+ * @remarks
114
+ * The instance ID.
115
+ *
116
+ * @example
117
+ * eas-i-1800z74n30kao****
118
+ */
42
119
  instanceId?: string;
120
+ /**
121
+ * @remarks
122
+ * The IP address of the instance.
123
+ *
124
+ * @example
125
+ * 11.227.XX.XX
126
+ */
43
127
  instanceIp?: string;
128
+ /**
129
+ * @remarks
130
+ * The memory size of the instance.
131
+ *
132
+ * @example
133
+ * 8192M
134
+ */
44
135
  instanceMemory?: string;
136
+ /**
137
+ * @remarks
138
+ * The instance name.
139
+ *
140
+ * @example
141
+ * eas01122713204*****
142
+ */
45
143
  instanceName?: string;
46
144
  instancePhase?: string;
145
+ /**
146
+ * @remarks
147
+ * The instance status.
148
+ *
149
+ * Valid values:
150
+ *
151
+ * * Ready-SchedulingDisabled
152
+ * * Ready
153
+ * * NotReady
154
+ *
155
+ * @example
156
+ * Ready
157
+ */
47
158
  instanceStatus?: string;
159
+ /**
160
+ * @remarks
161
+ * The system disk size of the instance.
162
+ *
163
+ * @example
164
+ * 200
165
+ */
48
166
  instanceSystemDiskSize?: number;
167
+ /**
168
+ * @remarks
169
+ * The IP address of the instance in the VPC.
170
+ *
171
+ * @example
172
+ * 192.168.xx.xx
173
+ */
49
174
  instanceTenantIp?: string;
175
+ /**
176
+ * @remarks
177
+ * The instance type.
178
+ *
179
+ * @example
180
+ * ecs.s6-c1m2.xlarge
181
+ */
50
182
  instanceType?: string;
183
+ /**
184
+ * @remarks
185
+ * The number of CPU cores used by the instance.
186
+ *
187
+ * @example
188
+ * 2.4
189
+ */
51
190
  instanceUsedCpu?: number;
191
+ /**
192
+ * @remarks
193
+ * The number of GPUs used by the instance.
194
+ *
195
+ * @example
196
+ * 0
197
+ */
52
198
  instanceUsedGpu?: number;
199
+ /**
200
+ * @remarks
201
+ * The size of the GPU memory used by the instance.
202
+ *
203
+ * @example
204
+ * 470M
205
+ */
53
206
  instanceUsedGpuMemory?: string;
207
+ /**
208
+ * @remarks
209
+ * The size of the memory used by the instance.
210
+ *
211
+ * @example
212
+ * 1000M
213
+ */
54
214
  instanceUsedMemory?: string;
215
+ /**
216
+ * @remarks
217
+ * The instance tags.
218
+ */
55
219
  labels?: ResourceInstanceLabels[];
220
+ lastCordonOperator?: string;
221
+ lastCordonReason?: string;
222
+ /**
223
+ * @remarks
224
+ * The region ID of the instance.
225
+ *
226
+ * @example
227
+ * cn-hangzhou
228
+ */
56
229
  region?: string;
230
+ /**
231
+ * @remarks
232
+ * The ID of the resource group to which the instance belongs.
233
+ *
234
+ * @example
235
+ * eas-r-xxxxx
236
+ */
57
237
  resourceId?: string;
238
+ /**
239
+ * @remarks
240
+ * The ID of the zone to which the instance belongs.
241
+ *
242
+ * @example
243
+ * cn-hangzhou-b
244
+ */
58
245
  zone?: string;
59
246
  static names(): { [key: string]: string } {
60
247
  return {
@@ -80,6 +267,8 @@ export class ResourceInstance extends $dara.Model {
80
267
  instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
81
268
  instanceUsedMemory: 'InstanceUsedMemory',
82
269
  labels: 'Labels',
270
+ lastCordonOperator: 'LastCordonOperator',
271
+ lastCordonReason: 'LastCordonReason',
83
272
  region: 'Region',
84
273
  resourceId: 'ResourceId',
85
274
  zone: 'Zone',
@@ -110,6 +299,8 @@ export class ResourceInstance extends $dara.Model {
110
299
  instanceUsedGpuMemory: 'string',
111
300
  instanceUsedMemory: 'string',
112
301
  labels: { 'type': 'array', 'itemType': ResourceInstanceLabels },
302
+ lastCordonOperator: 'string',
303
+ lastCordonReason: 'string',
113
304
  region: 'string',
114
305
  resourceId: 'string',
115
306
  zone: 'string',