@alicloud/paistudio20220112 1.2.10 → 1.2.12

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 (48) hide show
  1. package/dist/client.js +15 -3
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/ClusterSpec.d.ts +17 -0
  4. package/dist/models/ClusterSpec.js +66 -0
  5. package/dist/models/ClusterSpec.js.map +1 -0
  6. package/dist/models/CreateQuotaRequest.d.ts +2 -0
  7. package/dist/models/CreateQuotaRequest.js +6 -0
  8. package/dist/models/CreateQuotaRequest.js.map +1 -1
  9. package/dist/models/DataSource.d.ts +16 -0
  10. package/dist/models/DataSource.js +62 -0
  11. package/dist/models/DataSource.js.map +1 -0
  12. package/dist/models/GetQuotaResponseBody.d.ts +2 -0
  13. package/dist/models/GetQuotaResponseBody.js +6 -0
  14. package/dist/models/GetQuotaResponseBody.js.map +1 -1
  15. package/dist/models/ListNodesRequest.d.ts +1 -0
  16. package/dist/models/ListNodesRequest.js +2 -0
  17. package/dist/models/ListNodesRequest.js.map +1 -1
  18. package/dist/models/ListQuotasRequest.d.ts +5 -0
  19. package/dist/models/ListQuotasRequest.js +2 -0
  20. package/dist/models/ListQuotasRequest.js.map +1 -1
  21. package/dist/models/Node.d.ts +2 -0
  22. package/dist/models/Node.js +4 -0
  23. package/dist/models/Node.js.map +1 -1
  24. package/dist/models/NodeSpec.d.ts +1 -0
  25. package/dist/models/NodeSpec.js +2 -0
  26. package/dist/models/NodeSpec.js.map +1 -1
  27. package/dist/models/Quota.d.ts +2 -0
  28. package/dist/models/Quota.js +6 -0
  29. package/dist/models/Quota.js.map +1 -1
  30. package/dist/models/QuotaCluster.d.ts +21 -0
  31. package/dist/models/QuotaCluster.js +73 -0
  32. package/dist/models/QuotaCluster.js.map +1 -0
  33. package/dist/models/model.d.ts +3 -0
  34. package/dist/models/model.js +11 -5
  35. package/dist/models/model.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/client.ts +18 -3
  38. package/src/models/ClusterSpec.ts +37 -0
  39. package/src/models/CreateQuotaRequest.ts +7 -0
  40. package/src/models/DataSource.ts +33 -0
  41. package/src/models/GetQuotaResponseBody.ts +7 -0
  42. package/src/models/ListNodesRequest.ts +3 -0
  43. package/src/models/ListQuotasRequest.ts +7 -0
  44. package/src/models/Node.ts +6 -0
  45. package/src/models/NodeSpec.ts +3 -0
  46. package/src/models/Quota.ts +7 -0
  47. package/src/models/QuotaCluster.ts +46 -0
  48. package/src/models/model.ts +3 -0
package/src/client.ts CHANGED
@@ -14,7 +14,7 @@ export default class Client extends OpenApi {
14
14
  this._endpointRule = "regional";
15
15
  this._endpointMap = {
16
16
  'cn-beijing': "pai.cn-beijing.aliyuncs.com",
17
- 'cn-hangzhou': "pai.cn-hangzhou.aliyuncs.com",
17
+ 'cn-hangzhou': "pai.cn-hangzhou.data.aliyun.com",
18
18
  'cn-shanghai': "pai.cn-shanghai.aliyuncs.com",
19
19
  'cn-shenzhen': "pai.cn-shenzhen.aliyuncs.com",
20
20
  'cn-hongkong': "pai.cn-hongkong.aliyuncs.com",
@@ -22,12 +22,15 @@ export default class Client extends OpenApi {
22
22
  'ap-southeast-2': "pai.ap-southeast-2.aliyuncs.com",
23
23
  'ap-southeast-3': "pai.ap-southeast-3.aliyuncs.com",
24
24
  'ap-southeast-5': "pai.ap-southeast-5.aliyuncs.com",
25
- 'us-west-1': "pai.us-west-1.aliyuncs.com",
26
25
  'us-east-1': "pai.us-east-1.aliyuncs.com",
26
+ 'us-west-1': "pai.us-west-1.aliyuncs.com",
27
27
  'eu-central-1': "pai.eu-central-1.aliyuncs.com",
28
- 'me-east-1': "pai.me-east-1.aliyuncs.com",
29
28
  'ap-south-1': "pai.ap-south-1.aliyuncs.com",
29
+ 'me-east-1': "pai.me-east-1.aliyuncs.com",
30
+ 'ap-northeast-1': "pai.ap-northeast-1.aliyuncs.com",
30
31
  'cn-qingdao': "pai.cn-qingdao.aliyuncs.com",
32
+ 'cn-shanghai-finance-1': "pai.cn-shanghai-finance-1.aliyuncs.com",
33
+ 'cn-wulanchabu': "pai.cn-wulanchabu.aliyuncs.com",
31
34
  'cn-zhangjiakou': "pai.cn-zhangjiakou.aliyuncs.com",
32
35
  };
33
36
  this.checkConfig(config);
@@ -250,6 +253,10 @@ export default class Client extends OpenApi {
250
253
  body["AllocateStrategy"] = request.allocateStrategy;
251
254
  }
252
255
 
256
+ if (!$dara.isNull(request.clusterSpec)) {
257
+ body["ClusterSpec"] = request.clusterSpec;
258
+ }
259
+
253
260
  if (!$dara.isNull(request.description)) {
254
261
  body["Description"] = request.description;
255
262
  }
@@ -1760,6 +1767,10 @@ export default class Client extends OpenApi {
1760
1767
  query["Verbose"] = request.verbose;
1761
1768
  }
1762
1769
 
1770
+ if (!$dara.isNull(request.workspaceId)) {
1771
+ query["WorkspaceId"] = request.workspaceId;
1772
+ }
1773
+
1763
1774
  let req = new $OpenApiUtil.OpenApiRequest({
1764
1775
  headers: headers,
1765
1776
  query: OpenApiUtil.query(query),
@@ -1918,6 +1929,10 @@ export default class Client extends OpenApi {
1918
1929
  async listQuotasWithOptions(request: $_model.ListQuotasRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListQuotasResponse> {
1919
1930
  request.validate();
1920
1931
  let query : {[key: string ]: any} = { };
1932
+ if (!$dara.isNull(request.clusterType)) {
1933
+ query["ClusterType"] = request.clusterType;
1934
+ }
1935
+
1921
1936
  if (!$dara.isNull(request.hasResource)) {
1922
1937
  query["HasResource"] = request.hasResource;
1923
1938
  }
@@ -0,0 +1,37 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DataSource } from "./DataSource";
4
+
5
+
6
+ export class ClusterSpec extends $dara.Model {
7
+ clusterType?: string;
8
+ dataSources?: DataSource[];
9
+ image?: string;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ clusterType: 'ClusterType',
13
+ dataSources: 'DataSources',
14
+ image: 'Image',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ clusterType: 'string',
21
+ dataSources: { 'type': 'array', 'itemType': DataSource },
22
+ image: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(Array.isArray(this.dataSources)) {
28
+ $dara.Model.validateArray(this.dataSources);
29
+ }
30
+ super.validate();
31
+ }
32
+
33
+ constructor(map?: { [key: string]: any }) {
34
+ super(map);
35
+ }
36
+ }
37
+
@@ -1,5 +1,6 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
+ import { ClusterSpec } from "./ClusterSpec";
3
4
  import { Label } from "./Label";
4
5
  import { ResourceSpec } from "./ResourceSpec";
5
6
  import { QuotaConfig } from "./QuotaConfig";
@@ -11,6 +12,7 @@ export class CreateQuotaRequest extends $dara.Model {
11
12
  * ByNodeSpecs
12
13
  */
13
14
  allocateStrategy?: string;
15
+ clusterSpec?: ClusterSpec;
14
16
  /**
15
17
  * @example
16
18
  * this is a test quota
@@ -46,6 +48,7 @@ export class CreateQuotaRequest extends $dara.Model {
46
48
  static names(): { [key: string]: string } {
47
49
  return {
48
50
  allocateStrategy: 'AllocateStrategy',
51
+ clusterSpec: 'ClusterSpec',
49
52
  description: 'Description',
50
53
  labels: 'Labels',
51
54
  min: 'Min',
@@ -61,6 +64,7 @@ export class CreateQuotaRequest extends $dara.Model {
61
64
  static types(): { [key: string]: any } {
62
65
  return {
63
66
  allocateStrategy: 'string',
67
+ clusterSpec: ClusterSpec,
64
68
  description: 'string',
65
69
  labels: { 'type': 'array', 'itemType': Label },
66
70
  min: ResourceSpec,
@@ -74,6 +78,9 @@ export class CreateQuotaRequest extends $dara.Model {
74
78
  }
75
79
 
76
80
  validate() {
81
+ if(this.clusterSpec && typeof (this.clusterSpec as any).validate === 'function') {
82
+ (this.clusterSpec as any).validate();
83
+ }
77
84
  if(Array.isArray(this.labels)) {
78
85
  $dara.Model.validateArray(this.labels);
79
86
  }
@@ -0,0 +1,33 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DataSource extends $dara.Model {
6
+ dataSourceId?: string;
7
+ mountPath?: string;
8
+ uri?: string;
9
+ static names(): { [key: string]: string } {
10
+ return {
11
+ dataSourceId: 'DataSourceId',
12
+ mountPath: 'MountPath',
13
+ uri: 'Uri',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ dataSourceId: 'string',
20
+ mountPath: 'string',
21
+ uri: 'string',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ super.validate();
27
+ }
28
+
29
+ constructor(map?: { [key: string]: any }) {
30
+ super(map);
31
+ }
32
+ }
33
+
@@ -2,6 +2,7 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
  import { Label } from "./Label";
4
4
  import { ResourceSpec } from "./ResourceSpec";
5
+ import { QuotaCluster } from "./QuotaCluster";
5
6
  import { QuotaConfig } from "./QuotaConfig";
6
7
  import { QuotaDetails } from "./QuotaDetails";
7
8
  import { QuotaIdName } from "./QuotaIdName";
@@ -52,6 +53,7 @@ export class GetQuotaResponseBody extends $dara.Model {
52
53
  * PaiStrategyIntelligent
53
54
  */
54
55
  queueStrategy?: string;
56
+ quotaCluster?: QuotaCluster;
55
57
  quotaConfig?: QuotaConfig;
56
58
  quotaDetails?: QuotaDetails;
57
59
  /**
@@ -113,6 +115,7 @@ export class GetQuotaResponseBody extends $dara.Model {
113
115
  min: 'Min',
114
116
  parentQuotaId: 'ParentQuotaId',
115
117
  queueStrategy: 'QueueStrategy',
118
+ quotaCluster: 'QuotaCluster',
116
119
  quotaConfig: 'QuotaConfig',
117
120
  quotaDetails: 'QuotaDetails',
118
121
  quotaId: 'QuotaId',
@@ -142,6 +145,7 @@ export class GetQuotaResponseBody extends $dara.Model {
142
145
  min: ResourceSpec,
143
146
  parentQuotaId: 'string',
144
147
  queueStrategy: 'string',
148
+ quotaCluster: QuotaCluster,
145
149
  quotaConfig: QuotaConfig,
146
150
  quotaDetails: QuotaDetails,
147
151
  quotaId: 'string',
@@ -168,6 +172,9 @@ export class GetQuotaResponseBody extends $dara.Model {
168
172
  if(this.min && typeof (this.min as any).validate === 'function') {
169
173
  (this.min as any).validate();
170
174
  }
175
+ if(this.quotaCluster && typeof (this.quotaCluster as any).validate === 'function') {
176
+ (this.quotaCluster as any).validate();
177
+ }
171
178
  if(this.quotaConfig && typeof (this.quotaConfig as any).validate === 'function') {
172
179
  (this.quotaConfig as any).validate();
173
180
  }
@@ -90,6 +90,7 @@ export class ListNodesRequest extends $dara.Model {
90
90
  * false
91
91
  */
92
92
  verbose?: boolean;
93
+ workspaceId?: string;
93
94
  static names(): { [key: string]: string } {
94
95
  return {
95
96
  acceleratorType: 'AcceleratorType',
@@ -115,6 +116,7 @@ export class ListNodesRequest extends $dara.Model {
115
116
  resourceGroupIds: 'ResourceGroupIds',
116
117
  sortBy: 'SortBy',
117
118
  verbose: 'Verbose',
119
+ workspaceId: 'WorkspaceId',
118
120
  };
119
121
  }
120
122
 
@@ -143,6 +145,7 @@ export class ListNodesRequest extends $dara.Model {
143
145
  resourceGroupIds: 'string',
144
146
  sortBy: 'string',
145
147
  verbose: 'boolean',
148
+ workspaceId: 'string',
146
149
  };
147
150
  }
148
151
 
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListQuotasRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * RayCluster
9
+ */
10
+ clusterType?: string;
6
11
  hasResource?: string;
7
12
  /**
8
13
  * @example
@@ -69,6 +74,7 @@ export class ListQuotasRequest extends $dara.Model {
69
74
  workspaceName?: string;
70
75
  static names(): { [key: string]: string } {
71
76
  return {
77
+ clusterType: 'ClusterType',
72
78
  hasResource: 'HasResource',
73
79
  labels: 'Labels',
74
80
  layoutMode: 'LayoutMode',
@@ -90,6 +96,7 @@ export class ListQuotasRequest extends $dara.Model {
90
96
 
91
97
  static types(): { [key: string]: any } {
92
98
  return {
99
+ clusterType: 'string',
93
100
  hasResource: 'string',
94
101
  labels: 'string',
95
102
  layoutMode: 'string',
@@ -14,6 +14,8 @@ export class Node extends $dara.Model {
14
14
  CPU?: string;
15
15
  creatorId?: string;
16
16
  descendantQuotaWorkloadNum?: number;
17
+ diskCapacity?: number;
18
+ diskPL?: string;
17
19
  GPU?: string;
18
20
  GPUMemory?: string;
19
21
  GPUType?: string;
@@ -55,6 +57,8 @@ export class Node extends $dara.Model {
55
57
  CPU: 'CPU',
56
58
  creatorId: 'CreatorId',
57
59
  descendantQuotaWorkloadNum: 'DescendantQuotaWorkloadNum',
60
+ diskCapacity: 'DiskCapacity',
61
+ diskPL: 'DiskPL',
58
62
  GPU: 'GPU',
59
63
  GPUMemory: 'GPUMemory',
60
64
  GPUType: 'GPUType',
@@ -99,6 +103,8 @@ export class Node extends $dara.Model {
99
103
  CPU: 'string',
100
104
  creatorId: 'string',
101
105
  descendantQuotaWorkloadNum: 'number',
106
+ diskCapacity: 'number',
107
+ diskPL: 'string',
102
108
  GPU: 'string',
103
109
  GPUMemory: 'string',
104
110
  GPUType: 'string',
@@ -10,6 +10,7 @@ export class NodeSpec extends $dara.Model {
10
10
  * 10
11
11
  */
12
12
  count?: number;
13
+ hyperType?: string;
13
14
  /**
14
15
  * @example
15
16
  * ecs.g6.4xlarge
@@ -19,6 +20,7 @@ export class NodeSpec extends $dara.Model {
19
20
  return {
20
21
  bindingPolicy: 'BindingPolicy',
21
22
  count: 'Count',
23
+ hyperType: 'HyperType',
22
24
  type: 'Type',
23
25
  };
24
26
  }
@@ -27,6 +29,7 @@ export class NodeSpec extends $dara.Model {
27
29
  return {
28
30
  bindingPolicy: BindingPolicy,
29
31
  count: 'number',
32
+ hyperType: 'string',
30
33
  type: 'string',
31
34
  };
32
35
  }
@@ -2,6 +2,7 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
  import { Label } from "./Label";
4
4
  import { ResourceSpec } from "./ResourceSpec";
5
+ import { QuotaCluster } from "./QuotaCluster";
5
6
  import { QuotaConfig } from "./QuotaConfig";
6
7
  import { QuotaDetails } from "./QuotaDetails";
7
8
  import { QuotaIdName } from "./QuotaIdName";
@@ -20,6 +21,7 @@ export class Quota extends $dara.Model {
20
21
  min?: ResourceSpec;
21
22
  parentQuotaId?: string;
22
23
  queueStrategy?: string;
24
+ quotaCluster?: QuotaCluster;
23
25
  quotaConfig?: QuotaConfig;
24
26
  quotaDetails?: QuotaDetails;
25
27
  /**
@@ -53,6 +55,7 @@ export class Quota extends $dara.Model {
53
55
  min: 'Min',
54
56
  parentQuotaId: 'ParentQuotaId',
55
57
  queueStrategy: 'QueueStrategy',
58
+ quotaCluster: 'QuotaCluster',
56
59
  quotaConfig: 'QuotaConfig',
57
60
  quotaDetails: 'QuotaDetails',
58
61
  quotaId: 'QuotaId',
@@ -81,6 +84,7 @@ export class Quota extends $dara.Model {
81
84
  min: ResourceSpec,
82
85
  parentQuotaId: 'string',
83
86
  queueStrategy: 'string',
87
+ quotaCluster: QuotaCluster,
84
88
  quotaConfig: QuotaConfig,
85
89
  quotaDetails: QuotaDetails,
86
90
  quotaId: 'string',
@@ -106,6 +110,9 @@ export class Quota extends $dara.Model {
106
110
  if(this.min && typeof (this.min as any).validate === 'function') {
107
111
  (this.min as any).validate();
108
112
  }
113
+ if(this.quotaCluster && typeof (this.quotaCluster as any).validate === 'function') {
114
+ (this.quotaCluster as any).validate();
115
+ }
109
116
  if(this.quotaConfig && typeof (this.quotaConfig as any).validate === 'function') {
110
117
  (this.quotaConfig as any).validate();
111
118
  }
@@ -0,0 +1,46 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DataSource } from "./DataSource";
4
+
5
+
6
+ export class QuotaCluster extends $dara.Model {
7
+ clusterType?: string;
8
+ dataSources?: DataSource[];
9
+ endpoints?: { [key: string]: string };
10
+ image?: string;
11
+ status?: string;
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ clusterType: 'ClusterType',
15
+ dataSources: 'DataSources',
16
+ endpoints: 'Endpoints',
17
+ image: 'Image',
18
+ status: 'Status',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ clusterType: 'string',
25
+ dataSources: { 'type': 'array', 'itemType': DataSource },
26
+ endpoints: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
27
+ image: 'string',
28
+ status: 'string',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ if(Array.isArray(this.dataSources)) {
34
+ $dara.Model.validateArray(this.dataSources);
35
+ }
36
+ if(this.endpoints) {
37
+ $dara.Model.validateMap(this.endpoints);
38
+ }
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
@@ -70,8 +70,10 @@ export { CacheService } from './CacheService';
70
70
  export { CapacityLock } from './CapacityLock';
71
71
  export { Channel } from './Channel';
72
72
  export { ChannelProperty } from './ChannelProperty';
73
+ export { ClusterSpec } from './ClusterSpec';
73
74
  export { ComponentSpec } from './ComponentSpec';
74
75
  export { ConditionExpression } from './ConditionExpression';
76
+ export { DataSource } from './DataSource';
75
77
  export { EniCacheConfig } from './EniCacheConfig';
76
78
  export { Features } from './Features';
77
79
  export { ForwardInfo } from './ForwardInfo';
@@ -100,6 +102,7 @@ export { OversoldUsageConfig } from './OversoldUsageConfig';
100
102
  export { Permission } from './Permission';
101
103
  export { QueueInfo } from './QueueInfo';
102
104
  export { Quota } from './Quota';
105
+ export { QuotaCluster } from './QuotaCluster';
103
106
  export { QuotaConfig } from './QuotaConfig';
104
107
  export { QuotaDetails } from './QuotaDetails';
105
108
  export { QuotaIdName } from './QuotaIdName';