@alicloud/emr-serverless-spark20230808 2.1.0 → 2.2.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 (168) hide show
  1. package/dist/client.d.ts +84 -48
  2. package/dist/client.js +135 -48
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateProcessDefinitionWithScheduleRequest.d.ts +37 -37
  5. package/dist/models/CreateProcessDefinitionWithScheduleResponseBody.d.ts +6 -6
  6. package/dist/models/CreateProcessDefinitionWithScheduleShrinkRequest.d.ts +10 -10
  7. package/dist/models/CreateSessionClusterRequest.d.ts +35 -29
  8. package/dist/models/CreateSessionClusterRequest.js.map +1 -1
  9. package/dist/models/CreateSqlStatementRequest.d.ts +12 -5
  10. package/dist/models/CreateSqlStatementRequest.js.map +1 -1
  11. package/dist/models/CreateSqlStatementResponseBody.d.ts +1 -1
  12. package/dist/models/GetAicenterStateResponseBody.d.ts +4 -7
  13. package/dist/models/GetAicenterStateResponseBody.js.map +1 -1
  14. package/dist/models/GetDoctorApplicationRequest.d.ts +2 -2
  15. package/dist/models/GetDoctorApplicationResponseBody.d.ts +2 -5
  16. package/dist/models/GetDoctorApplicationResponseBody.js.map +1 -1
  17. package/dist/models/GetJobRunResponseBody.d.ts +77 -12
  18. package/dist/models/GetJobRunResponseBody.js +35 -1
  19. package/dist/models/GetJobRunResponseBody.js.map +1 -1
  20. package/dist/models/GetKyuubiServiceResponseBody.d.ts +14 -14
  21. package/dist/models/GetKyuubiTokenResponseBody.d.ts +10 -10
  22. package/dist/models/GetLivyComputeResponseBody.d.ts +21 -20
  23. package/dist/models/GetLivyComputeResponseBody.js.map +1 -1
  24. package/dist/models/GetLivyComputeTokenRequest.d.ts +1 -1
  25. package/dist/models/GetLivyComputeTokenResponseBody.d.ts +13 -15
  26. package/dist/models/GetLivyComputeTokenResponseBody.js.map +1 -1
  27. package/dist/models/GetRayClusterResponseBody.d.ts +31 -31
  28. package/dist/models/GetSessionClusterResponseBody.d.ts +37 -38
  29. package/dist/models/GetSessionClusterResponseBody.js.map +1 -1
  30. package/dist/models/GetWorkspaceRequest.d.ts +21 -0
  31. package/dist/models/GetWorkspaceRequest.js +58 -0
  32. package/dist/models/GetWorkspaceRequest.js.map +1 -0
  33. package/dist/models/GetWorkspaceResponse.d.ts +19 -0
  34. package/dist/models/GetWorkspaceResponse.js +69 -0
  35. package/dist/models/GetWorkspaceResponse.js.map +1 -0
  36. package/dist/models/GetWorkspaceResponseBody.d.ts +519 -0
  37. package/dist/models/GetWorkspaceResponseBody.js +278 -0
  38. package/dist/models/GetWorkspaceResponseBody.js.map +1 -0
  39. package/dist/models/ListExecutorLogsRequest.d.ts +4 -4
  40. package/dist/models/ListExecutorLogsResponseBody.d.ts +8 -8
  41. package/dist/models/ListJobRunsRequest.d.ts +19 -15
  42. package/dist/models/ListJobRunsRequest.js.map +1 -1
  43. package/dist/models/ListJobRunsResponseBody.d.ts +32 -22
  44. package/dist/models/ListJobRunsResponseBody.js.map +1 -1
  45. package/dist/models/ListJobRunsShrinkRequest.d.ts +15 -11
  46. package/dist/models/ListJobRunsShrinkRequest.js.map +1 -1
  47. package/dist/models/ListKyuubiServicesRequest.d.ts +1 -1
  48. package/dist/models/ListKyuubiServicesResponseBody.d.ts +15 -15
  49. package/dist/models/ListKyuubiSparkApplicationsRequest.d.ts +36 -7
  50. package/dist/models/ListKyuubiSparkApplicationsRequest.js.map +1 -1
  51. package/dist/models/ListKyuubiSparkApplicationsResponseBody.d.ts +29 -15
  52. package/dist/models/ListKyuubiSparkApplicationsResponseBody.js.map +1 -1
  53. package/dist/models/ListKyuubiSparkApplicationsShrinkRequest.d.ts +28 -5
  54. package/dist/models/ListKyuubiSparkApplicationsShrinkRequest.js.map +1 -1
  55. package/dist/models/ListKyuubiTokenResponseBody.d.ts +8 -8
  56. package/dist/models/ListLivyComputeRequest.d.ts +1 -1
  57. package/dist/models/ListLivyComputeResponseBody.d.ts +8 -8
  58. package/dist/models/ListLivyComputeSessionsRequest.d.ts +1 -1
  59. package/dist/models/ListLivyComputeSessionsResponseBody.d.ts +12 -17
  60. package/dist/models/ListLivyComputeSessionsResponseBody.js.map +1 -1
  61. package/dist/models/ListLivyComputeTokenResponseBody.d.ts +7 -7
  62. package/dist/models/ListMembersRequest.d.ts +2 -2
  63. package/dist/models/ListMembersResponseBody.d.ts +15 -13
  64. package/dist/models/ListMembersResponseBody.js.map +1 -1
  65. package/dist/models/ListQueueTopJobsRequest.d.ts +29 -0
  66. package/dist/models/ListQueueTopJobsRequest.js +60 -0
  67. package/dist/models/ListQueueTopJobsRequest.js.map +1 -0
  68. package/dist/models/ListQueueTopJobsResponse.d.ts +19 -0
  69. package/dist/models/ListQueueTopJobsResponse.js +69 -0
  70. package/dist/models/ListQueueTopJobsResponse.js.map +1 -0
  71. package/dist/models/ListQueueTopJobsResponseBody.d.ts +127 -0
  72. package/dist/models/ListQueueTopJobsResponseBody.js +120 -0
  73. package/dist/models/ListQueueTopJobsResponseBody.js.map +1 -0
  74. package/dist/models/ListRayClusterRequest.d.ts +1 -1
  75. package/dist/models/ListRayClusterResponseBody.d.ts +29 -28
  76. package/dist/models/ListRayClusterResponseBody.js.map +1 -1
  77. package/dist/models/ListRayJobRequest.d.ts +7 -7
  78. package/dist/models/ListRayJobResponseBody.d.ts +23 -23
  79. package/dist/models/ListRayJobShrinkRequest.d.ts +5 -5
  80. package/dist/models/ListSessionClustersRequest.d.ts +3 -3
  81. package/dist/models/ListSessionClustersResponseBody.d.ts +37 -31
  82. package/dist/models/ListSessionClustersResponseBody.js.map +1 -1
  83. package/dist/models/ListWorkspaceQueuesResponseBody.d.ts +29 -15
  84. package/dist/models/ListWorkspaceQueuesResponseBody.js.map +1 -1
  85. package/dist/models/ListWorkspacesRequest.d.ts +23 -5
  86. package/dist/models/ListWorkspacesRequest.js.map +1 -1
  87. package/dist/models/ListWorkspacesResponseBody.d.ts +117 -27
  88. package/dist/models/ListWorkspacesResponseBody.js.map +1 -1
  89. package/dist/models/ListWorkspacesShrinkRequest.d.ts +16 -4
  90. package/dist/models/ListWorkspacesShrinkRequest.js.map +1 -1
  91. package/dist/models/SubmitRayJobRequest.d.ts +21 -21
  92. package/dist/models/SubmitRayJobResponseBody.d.ts +1 -1
  93. package/dist/models/Task.d.ts +0 -183
  94. package/dist/models/Task.js.map +1 -1
  95. package/dist/models/UpdateProcessDefinitionWithScheduleRequest.d.ts +33 -33
  96. package/dist/models/UpdateProcessDefinitionWithScheduleResponseBody.d.ts +15 -15
  97. package/dist/models/UpdateProcessDefinitionWithScheduleShrinkRequest.d.ts +8 -8
  98. package/dist/models/UpdateRayClusterRequest.d.ts +10 -10
  99. package/dist/models/UpdateWorkspaceRequest.d.ts +45 -9
  100. package/dist/models/UpdateWorkspaceRequest.js.map +1 -1
  101. package/dist/models/UpdateWorkspaceResponseBody.d.ts +1 -1
  102. package/dist/models/model.d.ts +14 -0
  103. package/dist/models/model.js +40 -12
  104. package/dist/models/model.js.map +1 -1
  105. package/package.json +1 -1
  106. package/src/client.ts +142 -48
  107. package/src/models/CreateProcessDefinitionWithScheduleRequest.ts +37 -37
  108. package/src/models/CreateProcessDefinitionWithScheduleResponseBody.ts +6 -6
  109. package/src/models/CreateProcessDefinitionWithScheduleShrinkRequest.ts +10 -10
  110. package/src/models/CreateSessionClusterRequest.ts +35 -29
  111. package/src/models/CreateSqlStatementRequest.ts +12 -5
  112. package/src/models/CreateSqlStatementResponseBody.ts +1 -1
  113. package/src/models/GetAicenterStateResponseBody.ts +4 -7
  114. package/src/models/GetDoctorApplicationRequest.ts +2 -2
  115. package/src/models/GetDoctorApplicationResponseBody.ts +2 -5
  116. package/src/models/GetJobRunResponseBody.ts +102 -12
  117. package/src/models/GetKyuubiServiceResponseBody.ts +14 -14
  118. package/src/models/GetKyuubiTokenResponseBody.ts +10 -10
  119. package/src/models/GetLivyComputeResponseBody.ts +21 -20
  120. package/src/models/GetLivyComputeTokenRequest.ts +1 -1
  121. package/src/models/GetLivyComputeTokenResponseBody.ts +13 -15
  122. package/src/models/GetRayClusterResponseBody.ts +31 -31
  123. package/src/models/GetSessionClusterResponseBody.ts +37 -38
  124. package/src/models/GetWorkspaceRequest.ts +34 -0
  125. package/src/models/GetWorkspaceResponse.ts +40 -0
  126. package/src/models/GetWorkspaceResponseBody.ts +707 -0
  127. package/src/models/ListExecutorLogsRequest.ts +4 -4
  128. package/src/models/ListExecutorLogsResponseBody.ts +8 -8
  129. package/src/models/ListJobRunsRequest.ts +19 -15
  130. package/src/models/ListJobRunsResponseBody.ts +32 -22
  131. package/src/models/ListJobRunsShrinkRequest.ts +15 -11
  132. package/src/models/ListKyuubiServicesRequest.ts +1 -1
  133. package/src/models/ListKyuubiServicesResponseBody.ts +15 -15
  134. package/src/models/ListKyuubiSparkApplicationsRequest.ts +36 -7
  135. package/src/models/ListKyuubiSparkApplicationsResponseBody.ts +29 -15
  136. package/src/models/ListKyuubiSparkApplicationsShrinkRequest.ts +28 -5
  137. package/src/models/ListKyuubiTokenResponseBody.ts +8 -8
  138. package/src/models/ListLivyComputeRequest.ts +1 -1
  139. package/src/models/ListLivyComputeResponseBody.ts +8 -8
  140. package/src/models/ListLivyComputeSessionsRequest.ts +1 -1
  141. package/src/models/ListLivyComputeSessionsResponseBody.ts +12 -17
  142. package/src/models/ListLivyComputeTokenResponseBody.ts +7 -7
  143. package/src/models/ListMembersRequest.ts +2 -2
  144. package/src/models/ListMembersResponseBody.ts +15 -13
  145. package/src/models/ListQueueTopJobsRequest.ts +44 -0
  146. package/src/models/ListQueueTopJobsResponse.ts +40 -0
  147. package/src/models/ListQueueTopJobsResponseBody.ts +184 -0
  148. package/src/models/ListRayClusterRequest.ts +1 -1
  149. package/src/models/ListRayClusterResponseBody.ts +29 -28
  150. package/src/models/ListRayJobRequest.ts +7 -7
  151. package/src/models/ListRayJobResponseBody.ts +23 -23
  152. package/src/models/ListRayJobShrinkRequest.ts +5 -5
  153. package/src/models/ListSessionClustersRequest.ts +3 -3
  154. package/src/models/ListSessionClustersResponseBody.ts +37 -31
  155. package/src/models/ListWorkspaceQueuesResponseBody.ts +29 -15
  156. package/src/models/ListWorkspacesRequest.ts +23 -5
  157. package/src/models/ListWorkspacesResponseBody.ts +117 -27
  158. package/src/models/ListWorkspacesShrinkRequest.ts +16 -4
  159. package/src/models/SubmitRayJobRequest.ts +21 -21
  160. package/src/models/SubmitRayJobResponseBody.ts +1 -1
  161. package/src/models/Task.ts +0 -183
  162. package/src/models/UpdateProcessDefinitionWithScheduleRequest.ts +33 -33
  163. package/src/models/UpdateProcessDefinitionWithScheduleResponseBody.ts +15 -15
  164. package/src/models/UpdateProcessDefinitionWithScheduleShrinkRequest.ts +8 -8
  165. package/src/models/UpdateRayClusterRequest.ts +10 -10
  166. package/src/models/UpdateWorkspaceRequest.ts +45 -9
  167. package/src/models/UpdateWorkspaceResponseBody.ts +1 -1
  168. package/src/models/model.ts +14 -0
@@ -0,0 +1,707 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetWorkspaceResponseBodyWorkspacePrePaidQuota extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The amount of resources currently allocated.
9
+ *
10
+ * @example
11
+ * {"cu": 100}
12
+ */
13
+ allocatedResource?: string;
14
+ /**
15
+ * @remarks
16
+ * Specifies whether auto-renewal is enabled for the resource.
17
+ *
18
+ * - true: Auto-renewal is enabled. The resource is automatically renewed upon expiration.
19
+ * - false: Auto-renewal is disabled. The resource is stopped upon expiration.
20
+ *
21
+ * @example
22
+ * False
23
+ */
24
+ autoRenewal?: boolean;
25
+ /**
26
+ * @remarks
27
+ * The time when the workspace was created. The value is a UNIX timestamp in milliseconds.
28
+ *
29
+ * @example
30
+ * 1791802817000
31
+ */
32
+ createTime?: number;
33
+ /**
34
+ * @remarks
35
+ * The expiration time of the GPU subscription quota. The value is a UNIX timestamp in milliseconds.
36
+ *
37
+ * @example
38
+ * 1779768979586
39
+ */
40
+ expireTime?: number;
41
+ /**
42
+ * @remarks
43
+ * The instance ID.
44
+ *
45
+ * @example
46
+ * ray-df0tghlhat1776wy-klbifz8l
47
+ */
48
+ instanceId?: string;
49
+ /**
50
+ * @remarks
51
+ * The maximum amount of resources that can be used.
52
+ *
53
+ * @example
54
+ * {"cu": 100}
55
+ */
56
+ maxResource?: string;
57
+ /**
58
+ * @remarks
59
+ * The order ID.
60
+ *
61
+ * @example
62
+ * 298581757170384
63
+ */
64
+ orderId?: string;
65
+ /**
66
+ * @remarks
67
+ * The order status.
68
+ *
69
+ * @example
70
+ * NORMAL
71
+ */
72
+ paymentStatus?: string;
73
+ /**
74
+ * @remarks
75
+ * The amount of resources currently used.
76
+ *
77
+ * @example
78
+ * {"cu": 50}
79
+ */
80
+ usedResource?: string;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ allocatedResource: 'allocatedResource',
84
+ autoRenewal: 'autoRenewal',
85
+ createTime: 'createTime',
86
+ expireTime: 'expireTime',
87
+ instanceId: 'instanceId',
88
+ maxResource: 'maxResource',
89
+ orderId: 'orderId',
90
+ paymentStatus: 'paymentStatus',
91
+ usedResource: 'usedResource',
92
+ };
93
+ }
94
+
95
+ static types(): { [key: string]: any } {
96
+ return {
97
+ allocatedResource: 'string',
98
+ autoRenewal: 'boolean',
99
+ createTime: 'number',
100
+ expireTime: 'number',
101
+ instanceId: 'string',
102
+ maxResource: 'string',
103
+ orderId: 'string',
104
+ paymentStatus: 'string',
105
+ usedResource: 'string',
106
+ };
107
+ }
108
+
109
+ validate() {
110
+ super.validate();
111
+ }
112
+
113
+ constructor(map?: { [key: string]: any }) {
114
+ super(map);
115
+ }
116
+ }
117
+
118
+ export class GetWorkspaceResponseBodyWorkspacePrePaidQuotaGpu extends $dara.Model {
119
+ /**
120
+ * @remarks
121
+ * Specifies whether auto-renewal is enabled.
122
+ *
123
+ * @example
124
+ * False
125
+ */
126
+ autoRenewal?: boolean;
127
+ /**
128
+ * @remarks
129
+ * The number of CPU cores.
130
+ *
131
+ * @example
132
+ * 1
133
+ */
134
+ cpuCoreCount?: string;
135
+ /**
136
+ * @remarks
137
+ * The creation time.
138
+ *
139
+ * @example
140
+ * 1782292672000
141
+ */
142
+ createTime?: number;
143
+ /**
144
+ * @remarks
145
+ * The expiration time.
146
+ *
147
+ * @example
148
+ * 1782292772000
149
+ */
150
+ expireTime?: number;
151
+ /**
152
+ * @remarks
153
+ * The number of GPUs.
154
+ *
155
+ * @example
156
+ * 1
157
+ */
158
+ gpuAmount?: number;
159
+ /**
160
+ * @remarks
161
+ * The number of GPU instances.
162
+ *
163
+ * @example
164
+ * 1
165
+ */
166
+ gpuMachineNum?: number;
167
+ /**
168
+ * @remarks
169
+ * The GPU memory size.
170
+ *
171
+ * @example
172
+ * 4096
173
+ */
174
+ gpuMemorySize?: number;
175
+ /**
176
+ * @remarks
177
+ * The number of GPU instances.
178
+ *
179
+ * @example
180
+ * 8
181
+ */
182
+ gpuNum?: number;
183
+ /**
184
+ * @remarks
185
+ * The GPU instance type.
186
+ *
187
+ * @example
188
+ * ecs.gn7i-c8g1.2xlarge
189
+ */
190
+ gpuSpec?: string;
191
+ /**
192
+ * @remarks
193
+ * The instance ID.
194
+ *
195
+ * @example
196
+ * w-xxxxxx-quota-gpu-xxxx
197
+ */
198
+ instanceId?: string;
199
+ /**
200
+ * @remarks
201
+ * The instance family.
202
+ *
203
+ * @example
204
+ * ecs.g5
205
+ */
206
+ instanceTypeFamily?: string;
207
+ /**
208
+ * @remarks
209
+ * The instance type ID.
210
+ *
211
+ * @example
212
+ * ecs.g5.small
213
+ */
214
+ instanceTypeId?: string;
215
+ /**
216
+ * @remarks
217
+ * The memory size.
218
+ *
219
+ * @example
220
+ * 4096
221
+ */
222
+ memorySize?: string;
223
+ /**
224
+ * @remarks
225
+ * The order ID.
226
+ *
227
+ * @example
228
+ * 2345634254
229
+ */
230
+ orderId?: string;
231
+ /**
232
+ * @remarks
233
+ * The order status.
234
+ *
235
+ * @example
236
+ * NORMAL
237
+ */
238
+ paymentStatus?: string;
239
+ static names(): { [key: string]: string } {
240
+ return {
241
+ autoRenewal: 'autoRenewal',
242
+ cpuCoreCount: 'cpuCoreCount',
243
+ createTime: 'createTime',
244
+ expireTime: 'expireTime',
245
+ gpuAmount: 'gpuAmount',
246
+ gpuMachineNum: 'gpuMachineNum',
247
+ gpuMemorySize: 'gpuMemorySize',
248
+ gpuNum: 'gpuNum',
249
+ gpuSpec: 'gpuSpec',
250
+ instanceId: 'instanceId',
251
+ instanceTypeFamily: 'instanceTypeFamily',
252
+ instanceTypeId: 'instanceTypeId',
253
+ memorySize: 'memorySize',
254
+ orderId: 'orderId',
255
+ paymentStatus: 'paymentStatus',
256
+ };
257
+ }
258
+
259
+ static types(): { [key: string]: any } {
260
+ return {
261
+ autoRenewal: 'boolean',
262
+ cpuCoreCount: 'string',
263
+ createTime: 'number',
264
+ expireTime: 'number',
265
+ gpuAmount: 'number',
266
+ gpuMachineNum: 'number',
267
+ gpuMemorySize: 'number',
268
+ gpuNum: 'number',
269
+ gpuSpec: 'string',
270
+ instanceId: 'string',
271
+ instanceTypeFamily: 'string',
272
+ instanceTypeId: 'string',
273
+ memorySize: 'string',
274
+ orderId: 'string',
275
+ paymentStatus: 'string',
276
+ };
277
+ }
278
+
279
+ validate() {
280
+ super.validate();
281
+ }
282
+
283
+ constructor(map?: { [key: string]: any }) {
284
+ super(map);
285
+ }
286
+ }
287
+
288
+ export class GetWorkspaceResponseBodyWorkspaceStateChangeReason extends $dara.Model {
289
+ /**
290
+ * @remarks
291
+ * The error code.
292
+ *
293
+ * @example
294
+ * 1000000
295
+ */
296
+ code?: string;
297
+ /**
298
+ * @remarks
299
+ * The status information of the node pod.
300
+ *
301
+ * @example
302
+ * ok
303
+ */
304
+ message?: string;
305
+ static names(): { [key: string]: string } {
306
+ return {
307
+ code: 'code',
308
+ message: 'message',
309
+ };
310
+ }
311
+
312
+ static types(): { [key: string]: any } {
313
+ return {
314
+ code: 'string',
315
+ message: 'string',
316
+ };
317
+ }
318
+
319
+ validate() {
320
+ super.validate();
321
+ }
322
+
323
+ constructor(map?: { [key: string]: any }) {
324
+ super(map);
325
+ }
326
+ }
327
+
328
+ export class GetWorkspaceResponseBodyWorkspaceTags extends $dara.Model {
329
+ /**
330
+ * @remarks
331
+ * The tag keys.
332
+ *
333
+ * @example
334
+ * [\\"COST\\"]
335
+ */
336
+ tagKey?: string;
337
+ /**
338
+ * @remarks
339
+ * The tag value.
340
+ *
341
+ * @example
342
+ * 3d775731-9ec1-4fe2-a00d-061d51fce677
343
+ */
344
+ tagValue?: string;
345
+ static names(): { [key: string]: string } {
346
+ return {
347
+ tagKey: 'tagKey',
348
+ tagValue: 'tagValue',
349
+ };
350
+ }
351
+
352
+ static types(): { [key: string]: any } {
353
+ return {
354
+ tagKey: 'string',
355
+ tagValue: 'string',
356
+ };
357
+ }
358
+
359
+ validate() {
360
+ super.validate();
361
+ }
362
+
363
+ constructor(map?: { [key: string]: any }) {
364
+ super(map);
365
+ }
366
+ }
367
+
368
+ export class GetWorkspaceResponseBodyWorkspace extends $dara.Model {
369
+ /**
370
+ * @remarks
371
+ * Specifies whether auto-renewal is enabled. This parameter is required for subscription workspaces.
372
+ *
373
+ * @example
374
+ * true
375
+ */
376
+ autoRenew?: boolean;
377
+ /**
378
+ * @remarks
379
+ * The auto-renewal period. This parameter is required for subscription workspaces.
380
+ *
381
+ * @example
382
+ * 1
383
+ */
384
+ autoRenewPeriod?: number;
385
+ /**
386
+ * @remarks
387
+ * The auto-renewal cycle. This parameter is required for subscription workspaces.
388
+ *
389
+ * @example
390
+ * YEAR, MONTH, WEEK, DAY, HOUR, MINUTE
391
+ */
392
+ autoRenewPeriodUnit?: string;
393
+ /**
394
+ * @remarks
395
+ * The time when the workspace was created. The value is a UNIX timestamp in milliseconds.
396
+ *
397
+ * @example
398
+ * 1776824869000
399
+ */
400
+ createTime?: number;
401
+ /**
402
+ * @remarks
403
+ * The DLF catalog information.
404
+ *
405
+ * @example
406
+ * default
407
+ */
408
+ dlfCatalogId?: string;
409
+ /**
410
+ * @remarks
411
+ * The bound DLF type.
412
+ *
413
+ * @example
414
+ * DLF-NEXT
415
+ */
416
+ dlfType?: string;
417
+ /**
418
+ * @remarks
419
+ * The subscription duration. This parameter is required for subscription workspaces.
420
+ *
421
+ * @example
422
+ * 1
423
+ */
424
+ duration?: number;
425
+ /**
426
+ * @remarks
427
+ * The time when the workspace is released.
428
+ *
429
+ * @example
430
+ * 1786586477000
431
+ */
432
+ endTime?: number;
433
+ /**
434
+ * @remarks
435
+ * The reason for the failure.
436
+ *
437
+ * @example
438
+ * out of stock
439
+ */
440
+ failReason?: string;
441
+ /**
442
+ * @remarks
443
+ * The list of GPU instance types.
444
+ */
445
+ gpuSpec?: string[];
446
+ /**
447
+ * @remarks
448
+ * The IP whitelist of the workspace.
449
+ */
450
+ ipWhiteList?: string[];
451
+ /**
452
+ * @remarks
453
+ * The unit of the subscription period. This parameter is required for subscription workspaces.
454
+ *
455
+ * @example
456
+ * YEAR, MONTH, WEEK, DAY, HOUR, MINUTE
457
+ */
458
+ paymentDurationUnit?: string;
459
+ /**
460
+ * @remarks
461
+ * The payment status.
462
+ *
463
+ * @example
464
+ * PAID/UNPAID
465
+ */
466
+ paymentStatus?: string;
467
+ /**
468
+ * @remarks
469
+ * The billing method.
470
+ *
471
+ * @example
472
+ * PayAsYouGo or Subscription
473
+ */
474
+ paymentType?: string;
475
+ /**
476
+ * @remarks
477
+ * The information about the subscription resource quota.
478
+ */
479
+ prePaidQuota?: GetWorkspaceResponseBodyWorkspacePrePaidQuota;
480
+ /**
481
+ * @remarks
482
+ * The list of GPU subscription quotas.
483
+ */
484
+ prePaidQuotaGpu?: GetWorkspaceResponseBodyWorkspacePrePaidQuotaGpu[];
485
+ /**
486
+ * @remarks
487
+ * The name of the RAM role used to execute Spark jobs.
488
+ *
489
+ * @example
490
+ * Aliyun
491
+ */
492
+ ramRoleName?: string;
493
+ /**
494
+ * @remarks
495
+ * The region ID.
496
+ *
497
+ * @example
498
+ * cn-beijing
499
+ */
500
+ regionId?: string;
501
+ /**
502
+ * @remarks
503
+ * The reason why the workspace is released.
504
+ *
505
+ * @example
506
+ * stable
507
+ */
508
+ releaseType?: string;
509
+ /**
510
+ * @remarks
511
+ * The resource group ID.
512
+ *
513
+ * @example
514
+ * rg-aek4f7uj74wdthi
515
+ */
516
+ resourceGroupId?: string;
517
+ /**
518
+ * @remarks
519
+ * The UID of the user who created the workspace.
520
+ *
521
+ * @example
522
+ * 13*************
523
+ */
524
+ resourceOwnerId?: string;
525
+ /**
526
+ * @remarks
527
+ * The resource specifications.
528
+ *
529
+ * @example
530
+ * {"cu": 100}
531
+ */
532
+ resourceSpec?: string;
533
+ /**
534
+ * @remarks
535
+ * The information about the workspace status change.
536
+ */
537
+ stateChangeReason?: GetWorkspaceResponseBodyWorkspaceStateChangeReason;
538
+ /**
539
+ * @remarks
540
+ * The OSS path.
541
+ *
542
+ * @example
543
+ * spark-result
544
+ */
545
+ storage?: string;
546
+ /**
547
+ * @remarks
548
+ * The tag keys.
549
+ */
550
+ tags?: GetWorkspaceResponseBodyWorkspaceTags[];
551
+ /**
552
+ * @remarks
553
+ * The workspace ID.
554
+ *
555
+ * @example
556
+ * w-******
557
+ */
558
+ workspaceId?: string;
559
+ /**
560
+ * @remarks
561
+ * The workspace name.
562
+ *
563
+ * @example
564
+ * Spark batch job workspace-1
565
+ */
566
+ workspaceName?: string;
567
+ /**
568
+ * @remarks
569
+ * The workspace status.
570
+ *
571
+ * @example
572
+ * STARTING,RUNNING,TERMINATED
573
+ */
574
+ workspaceStatus?: string;
575
+ static names(): { [key: string]: string } {
576
+ return {
577
+ autoRenew: 'autoRenew',
578
+ autoRenewPeriod: 'autoRenewPeriod',
579
+ autoRenewPeriodUnit: 'autoRenewPeriodUnit',
580
+ createTime: 'createTime',
581
+ dlfCatalogId: 'dlfCatalogId',
582
+ dlfType: 'dlfType',
583
+ duration: 'duration',
584
+ endTime: 'endTime',
585
+ failReason: 'failReason',
586
+ gpuSpec: 'gpuSpec',
587
+ ipWhiteList: 'ipWhiteList',
588
+ paymentDurationUnit: 'paymentDurationUnit',
589
+ paymentStatus: 'paymentStatus',
590
+ paymentType: 'paymentType',
591
+ prePaidQuota: 'prePaidQuota',
592
+ prePaidQuotaGpu: 'prePaidQuotaGpu',
593
+ ramRoleName: 'ramRoleName',
594
+ regionId: 'regionId',
595
+ releaseType: 'releaseType',
596
+ resourceGroupId: 'resourceGroupId',
597
+ resourceOwnerId: 'resourceOwnerId',
598
+ resourceSpec: 'resourceSpec',
599
+ stateChangeReason: 'stateChangeReason',
600
+ storage: 'storage',
601
+ tags: 'tags',
602
+ workspaceId: 'workspaceId',
603
+ workspaceName: 'workspaceName',
604
+ workspaceStatus: 'workspaceStatus',
605
+ };
606
+ }
607
+
608
+ static types(): { [key: string]: any } {
609
+ return {
610
+ autoRenew: 'boolean',
611
+ autoRenewPeriod: 'number',
612
+ autoRenewPeriodUnit: 'string',
613
+ createTime: 'number',
614
+ dlfCatalogId: 'string',
615
+ dlfType: 'string',
616
+ duration: 'number',
617
+ endTime: 'number',
618
+ failReason: 'string',
619
+ gpuSpec: { 'type': 'array', 'itemType': 'string' },
620
+ ipWhiteList: { 'type': 'array', 'itemType': 'string' },
621
+ paymentDurationUnit: 'string',
622
+ paymentStatus: 'string',
623
+ paymentType: 'string',
624
+ prePaidQuota: GetWorkspaceResponseBodyWorkspacePrePaidQuota,
625
+ prePaidQuotaGpu: { 'type': 'array', 'itemType': GetWorkspaceResponseBodyWorkspacePrePaidQuotaGpu },
626
+ ramRoleName: 'string',
627
+ regionId: 'string',
628
+ releaseType: 'string',
629
+ resourceGroupId: 'string',
630
+ resourceOwnerId: 'string',
631
+ resourceSpec: 'string',
632
+ stateChangeReason: GetWorkspaceResponseBodyWorkspaceStateChangeReason,
633
+ storage: 'string',
634
+ tags: { 'type': 'array', 'itemType': GetWorkspaceResponseBodyWorkspaceTags },
635
+ workspaceId: 'string',
636
+ workspaceName: 'string',
637
+ workspaceStatus: 'string',
638
+ };
639
+ }
640
+
641
+ validate() {
642
+ if(Array.isArray(this.gpuSpec)) {
643
+ $dara.Model.validateArray(this.gpuSpec);
644
+ }
645
+ if(Array.isArray(this.ipWhiteList)) {
646
+ $dara.Model.validateArray(this.ipWhiteList);
647
+ }
648
+ if(this.prePaidQuota && typeof (this.prePaidQuota as any).validate === 'function') {
649
+ (this.prePaidQuota as any).validate();
650
+ }
651
+ if(Array.isArray(this.prePaidQuotaGpu)) {
652
+ $dara.Model.validateArray(this.prePaidQuotaGpu);
653
+ }
654
+ if(this.stateChangeReason && typeof (this.stateChangeReason as any).validate === 'function') {
655
+ (this.stateChangeReason as any).validate();
656
+ }
657
+ if(Array.isArray(this.tags)) {
658
+ $dara.Model.validateArray(this.tags);
659
+ }
660
+ super.validate();
661
+ }
662
+
663
+ constructor(map?: { [key: string]: any }) {
664
+ super(map);
665
+ }
666
+ }
667
+
668
+ export class GetWorkspaceResponseBody extends $dara.Model {
669
+ /**
670
+ * @remarks
671
+ * The request ID.
672
+ *
673
+ * @example
674
+ * DD6B1B2A-5837-5237-ABE4-FF0C8944****
675
+ */
676
+ requestId?: string;
677
+ /**
678
+ * @remarks
679
+ * The workspace object.
680
+ */
681
+ workspace?: GetWorkspaceResponseBodyWorkspace;
682
+ static names(): { [key: string]: string } {
683
+ return {
684
+ requestId: 'requestId',
685
+ workspace: 'workspace',
686
+ };
687
+ }
688
+
689
+ static types(): { [key: string]: any } {
690
+ return {
691
+ requestId: 'string',
692
+ workspace: GetWorkspaceResponseBodyWorkspace,
693
+ };
694
+ }
695
+
696
+ validate() {
697
+ if(this.workspace && typeof (this.workspace as any).validate === 'function') {
698
+ (this.workspace as any).validate();
699
+ }
700
+ super.validate();
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+