@alicloud/polardb20170801 7.3.0 → 7.4.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 (39) hide show
  1. package/dist/client.d.ts +21 -6
  2. package/dist/client.js +69 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAccountRequest.d.ts +39 -53
  5. package/dist/models/CreateAccountRequest.js.map +1 -1
  6. package/dist/models/CreateDbclusterEndpointRequest.d.ts +67 -92
  7. package/dist/models/CreateDbclusterEndpointRequest.js.map +1 -1
  8. package/dist/models/DescribeAgenticDbcomputeClustersRequest.d.ts +13 -0
  9. package/dist/models/DescribeAgenticDbcomputeClustersRequest.js.map +1 -1
  10. package/dist/models/DescribeAgenticDbcomputeClustersResponseBody.d.ts +64 -0
  11. package/dist/models/DescribeAgenticDbcomputeClustersResponseBody.js.map +1 -1
  12. package/dist/models/DescribePolarFsRequest.d.ts +79 -0
  13. package/dist/models/DescribePolarFsRequest.js +98 -0
  14. package/dist/models/DescribePolarFsRequest.js.map +1 -0
  15. package/dist/models/DescribePolarFsResponse.d.ts +19 -0
  16. package/dist/models/DescribePolarFsResponse.js +69 -0
  17. package/dist/models/DescribePolarFsResponse.js.map +1 -0
  18. package/dist/models/DescribePolarFsResponseBody.d.ts +163 -0
  19. package/dist/models/DescribePolarFsResponseBody.js +280 -0
  20. package/dist/models/DescribePolarFsResponseBody.js.map +1 -0
  21. package/dist/models/VerifyAgenticDbtenantApiKeyRequest.d.ts +4 -0
  22. package/dist/models/VerifyAgenticDbtenantApiKeyRequest.js.map +1 -1
  23. package/dist/models/VerifyAgenticDbtenantApiKeyResponseBody.d.ts +25 -0
  24. package/dist/models/VerifyAgenticDbtenantApiKeyResponseBody.js.map +1 -1
  25. package/dist/models/model.d.ts +11 -0
  26. package/dist/models/model.js +51 -29
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +80 -6
  30. package/src/models/CreateAccountRequest.ts +39 -53
  31. package/src/models/CreateDbclusterEndpointRequest.ts +68 -93
  32. package/src/models/DescribeAgenticDbcomputeClustersRequest.ts +13 -0
  33. package/src/models/DescribeAgenticDbcomputeClustersResponseBody.ts +64 -0
  34. package/src/models/DescribePolarFsRequest.ts +123 -0
  35. package/src/models/DescribePolarFsResponse.ts +40 -0
  36. package/src/models/DescribePolarFsResponseBody.ts +335 -0
  37. package/src/models/VerifyAgenticDbtenantApiKeyRequest.ts +4 -0
  38. package/src/models/VerifyAgenticDbtenantApiKeyResponseBody.ts +25 -0
  39. package/src/models/model.ts +11 -0
@@ -5,11 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateDBClusterEndpointRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to automatically add new nodes to the endpoint. Valid values:
9
- *
10
- * - **Enable**: Automatically adds new nodes to the endpoint.
11
- *
12
- * - **Disable** (default): Does not automatically add new nodes to the endpoint.
8
+ * Specifies whether new nodes are automatically added to this endpoint. Valid values:
9
+ * * **Enable**: New nodes are automatically added to this endpoint.
10
+ * * **Disable** (default): New nodes are not automatically added to this endpoint.
13
11
  *
14
12
  * @example
15
13
  * Disable
@@ -17,7 +15,7 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
17
15
  autoAddNewNodes?: string;
18
16
  /**
19
17
  * @remarks
20
- * A client-generated token to ensure the idempotence of the request. The token must be unique, case-sensitive, and a maximum of 64 ASCII characters.
18
+ * The client token that is used to ensure the idempotence of the request and prevent repeated submissions. The token is generated by the client, must be unique across requests, is case-sensitive, and cannot exceed 64 ASCII characters in length.
21
19
  *
22
20
  * @example
23
21
  * 6000170000591aed949d0f******************
@@ -43,73 +41,41 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
43
41
  DBEndpointDescription?: string;
44
42
  /**
45
43
  * @remarks
46
- * The advanced configurations for the custom cluster endpoint, specified as a JSON string. You can configure features such as consistency level, transaction splitting, whether the primary node accepts read requests, connection pool, and load balancing policy.
47
- *
48
- * - Specifies the load balancing policy. The format is {"LoadBalancePolicy":"policy"}. Valid values:
49
- *
50
- * - **0**: connections-based load balancing (default).
51
- *
52
- * - **1**: active requests-based load balancing.
53
- *
54
- * - Specifies the consistency level. The format is `{"ConsistLevel":"level"}`. Valid values:
55
- *
56
- * - **0**: eventual consistency.
57
- *
58
- * - **1**: session consistency (default).
59
- *
60
- * - **2**: global consistency.
61
- *
62
- * - Specifies whether to enable transaction splitting. The format is `{"DistributedTransaction":"status"}`. Valid values:
63
- *
64
- * - **on**: enables transaction splitting (default).
65
- *
66
- * - **off**: disables transaction splitting.
67
- *
68
- * - Specifies whether the primary node accepts read requests. The format is `{"MasterAcceptReads":"status"}`. Valid values:
69
- *
70
- * - **on**: The primary node accepts read requests.
71
- *
72
- * - **off**: The primary node does not accept read requests (default).
73
- *
74
- * - Specifies whether to enable the connection pool. The format is `{"ConnectionPersist":"status"}`. Valid values:
75
- *
76
- * - **off**: disables the connection pool (default).
77
- *
78
- * - **Session**: enables the session-level connection pool.
79
- *
80
- * - **Transaction**: enables the transaction-level connection pool.
81
- *
82
- * - Specifies the degree of parallelism for a parallel query. The format is {"MaxParallelDegree":"degree"}. Valid values:
83
- *
84
- * - A specific integer that specifies the degree of parallelism. For example: "MaxParallelDegree":"2".
85
- *
86
- * - **off**: disables parallel query (default).
87
- *
88
- * - Specifies whether to enable automatic routing between row store and column store. The format is {"EnableHtapImci":"status"}. Valid values:
89
- *
90
- * - **on**: enables automatic routing.
91
- *
92
- * - **off**: disables automatic routing (default).
93
- *
94
- * - Specifies whether to enable overload protection. The format is {"EnableOverloadThrottle":"status"}. Valid values:
95
- *
96
- * - **on**: enables overload protection.
97
- *
98
- * - **off**: disables overload protection (default).
99
- *
100
- * > * You can configure transaction splitting, whether the primary node accepts read requests, the connection pool, and overload protection only for a PolarDB for MySQL endpoint in **ReadWrite** (automatic read/write splitting) mode.
101
- * >
102
- * > * A PolarDB for MySQL cluster endpoint in **ReadOnly** mode supports both **connections-based load balancing** and **active requests-based load balancing**. An endpoint in **ReadWrite** (automatic read/write splitting) mode supports only **active requests-based load balancing**.
103
- * >
104
- * > * You can enable automatic routing between row store and column store if the read/write mode of the cluster endpoint for PolarDB for MySQL is **ReadWrite** (automatic read/write splitting), or if the read/write mode is **ReadOnly** and the load balancing policy is **active requests-based load balancing**.
105
- * >
106
- * > * Only PolarDB for MySQL clusters support global consistency.
107
- * >
108
- * > * If you set **ReadWriteMode** to **ReadOnly**, the consistency level must be **0** (eventual consistency).
109
- * >
110
- * > * You can configure the consistency level, transaction splitting, whether the primary node accepts read requests, and the connection pool at the same time. Example: `{"ConsistLevel":"1","DistributedTransaction":"on","ConnectionPersist":"Session","MasterAcceptReads":"on"}`.
111
- * >
112
- * > * The setting for transaction splitting depends on the consistency level. For example, if you set the consistency level to **0** (eventual consistency), you cannot enable transaction splitting. If you set the consistency level to **1** (session consistency) or **2** (global consistency), you can enable transaction splitting.
44
+ * The advanced configurations of the cluster endpoint in JSON format. You can configure the consistency level, transaction splitting, offload reads from primary node, and connection pool settings.
45
+ * * Load balancing policy. Format: {\\"LoadBalancePolicy\\":\\"Load balancing policy\\"}. Valid values:
46
+ * * **0**: connection-based load balancing (default).
47
+ * * **1**: active-request-based load balancing.
48
+ * * Consistency level. Format: `{"ConsistLevel":"Consistency level"}`. Valid values:
49
+ * * **0**: eventual consistency.
50
+ * * **1**: session consistency (default).
51
+ * * **2**: global consistency.
52
+ * * Transaction splitting. Format: `{"DistributedTransaction":"Transaction splitting"}`. Valid values:
53
+ * * **on**: enables transaction splitting (default).
54
+ * * **off**: disables transaction splitting.
55
+ * * Offload reads from primary node. Format: `{"MasterAcceptReads":"Offload reads from primary node"}`. Valid values:
56
+ * * **on**: the primary node accepts read requests.
57
+ * * **off**: the primary node does not accept read requests (default).
58
+ * * Connection pool. Format: `{"ConnectionPersist":"Connection pool"}`. Valid values:
59
+ * * **off**: disables the connection pool (default).
60
+ * * **Session**: enables session-level connection pooling.
61
+ * * **Transaction**: enables transaction-level connection pooling.
62
+ * * Parallel query. Format: {\\"MaxParallelDegree\\":\\"Parallel query\\"}. Valid values:
63
+ * * A specific degree of parallelism. Example: "MaxParallelDegree":"2".
64
+ * * **off**: disables parallel query (default).
65
+ * * Automatic request distribution among row store and column store nodes. Format: {\\"EnableHtapImci\\":\\"Automatic request distribution among row store and column store nodes\\"}. Valid values:
66
+ * * **on**: enables automatic request distribution among row store and column store nodes.
67
+ * * **off**: disables automatic request distribution among row store and column store nodes (default).
68
+ * * Overload protection. Format: {\\"EnableOverloadThrottle\\":\\"Overload protection\\"}. Valid values:
69
+ * * **on**: enables overload protection.
70
+ * * **off**: disables overload protection (default).
71
+ *
72
+ * > * Transaction splitting, offload reads from primary node, connection pool, and overload protection can be configured only when the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadWrite (automatic read/write splitting)**.
73
+ * >* When the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadOnly**, both **connection-based load balancing** and **active-request-based load balancing** are supported. The **ReadWrite (automatic read/write splitting)** mode supports only **active-request-based load balancing**.
74
+ * >* Automatic request distribution among row store and column store nodes can be configured when the read/write mode of the PolarDB for MySQL cluster endpoint is **ReadWrite (automatic read/write splitting)**, or when the read/write mode is **ReadOnly** and the load balancing policy is **active-request-based load balancing**.
75
+ * >* Only PolarDB for MySQL supports setting the consistency level to global consistency.
76
+ * >* If **ReadWriteMode** is set to **ReadOnly**, the consistency level can only be set to **0**.
77
+ * >* You can configure the consistency level, transaction splitting, offload reads from primary node, and connection pool at the same time. Example: `{"ConsistLevel":"1","DistributedTransaction":"on","ConnectionPersist":"Session","MasterAcceptReads":"on"}`.
78
+ * >* Transaction splitting is constrained by the consistency level. For example, transaction splitting cannot be enabled when the consistency level is **0**. Transaction splitting can be enabled when the consistency level is **1** or **2**.
113
79
  *
114
80
  * @example
115
81
  * {"ConsistLevel": "1","DistributedTransaction": "on"}
@@ -117,7 +83,11 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
117
83
  endpointConfig?: string;
118
84
  /**
119
85
  * @remarks
120
- * The type of the custom cluster endpoint. Set the value to **Custom**.
86
+ * The type of the custom cluster endpoint. Valid values:
87
+ *
88
+ * - **Custom**: custom cluster endpoint.
89
+ *
90
+ * - **DynamoDB**: DynamoDB endpoint.
121
91
  *
122
92
  * This parameter is required.
123
93
  *
@@ -127,17 +97,14 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
127
97
  endpointType?: string;
128
98
  /**
129
99
  * @remarks
130
- * The nodes to associate with the endpoint. Separate multiple node IDs with a comma (,). If you omit this parameter, all nodes in the cluster are added by default.
100
+ * The read load nodes to add to the endpoint. Separate multiple nodes with commas (,). By default, all nodes are added.
131
101
  *
132
- * > - For a PolarDB for MySQL cluster, specify the node IDs.
133
- * >
134
- * > - For a PolarDB for PostgreSQL cluster or a PolarDB for PostgreSQL (compatible with Oracle) cluster, specify the roles of the nodes, such as `Writer,Reader1,Reader2`.
135
- * >
136
- * > - If you set **ReadWriteMode** to **ReadOnly**, you can associate only one node with the endpoint. If this node fails, the endpoint may be unavailable for up to 1 hour. This configuration is not recommended for a production environment. To improve availability, associate at least two nodes with the endpoint.
137
- * >
138
- * > - If you set **ReadWriteMode** to **ReadWrite**, you must associate at least two nodes with the endpoint.
139
- * > \\* For a PolarDB for MySQL cluster, you can select any two nodes. If both nodes are read-only nodes, write requests are routed to the primary node.
140
- * > \\* For a PolarDB for PostgreSQL cluster or a PolarDB for PostgreSQL (compatible with Oracle) cluster, the primary node must be included.
102
+ * > * For PolarDB for MySQL, specify node IDs.
103
+ * >* For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle), specify node role names, such as `Writer,Reader1,Reader2`.
104
+ * >* If **ReadWriteMode** is set to **ReadOnly**, you can mount only one node. However, if this node fails, the endpoint may be unavailable for up to 1 hour. Do not use this configuration in production environments. Select at least 2 nodes to improve availability.
105
+ * >* If **ReadWriteMode** is set to **ReadWrite**, select at least 2 nodes.
106
+ * * For PolarDB for MySQL, you can select any two nodes. If both nodes are read-only nodes, write requests are forwarded to the primary node.
107
+ * * For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle), the primary node must be included.
141
108
  *
142
109
  * @example
143
110
  * pi-**********,pi-*********
@@ -146,17 +113,20 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
146
113
  ownerAccount?: string;
147
114
  ownerId?: number;
148
115
  /**
116
+ * @remarks
117
+ * The PolarFs instance ID.
118
+ *
149
119
  * @example
150
120
  * pfs-test****
151
121
  */
152
122
  polarFsInstanceId?: string;
153
123
  /**
154
124
  * @remarks
155
- * The policy for handling global consistency read timeouts. Valid values:
125
+ * The timeout policy for global consistency. Valid values:
156
126
  *
157
- * - **0**: Send the request to the primary node.
127
+ * - **0**: sends the request to the primary node.
158
128
  *
159
- * - **2**: Downgrade to a regular request. If a global consistency read times out, the query is automatically downgraded, and the client does not receive an error.
129
+ * - **2**: timeout degradation. After a global consistency read times out, the query is automatically degraded to regular requests, and the client does not receive an error message.
160
130
  *
161
131
  * @example
162
132
  * 0
@@ -172,10 +142,9 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
172
142
  polarSccWaitTimeout?: string;
173
143
  /**
174
144
  * @remarks
175
- * The read/write mode. Valid values:
176
- *
177
- * - **ReadWrite**: read/write (automatic read/write splitting).
145
+ * The read/write mode. Valid values:
178
146
  *
147
+ * - **ReadWrite**: read/write (automatic read/write splitting).
179
148
  * - **ReadOnly** (default): read-only.
180
149
  *
181
150
  * @example
@@ -186,22 +155,28 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
186
155
  resourceOwnerId?: number;
187
156
  /**
188
157
  * @remarks
189
- * Specifies whether to enable global consistency (high-performance mode). Valid values:
158
+ * Specifies whether to enable the global consistency (high-performance mode) feature for the node. Valid values:
190
159
  *
191
- * - **ON**: Enables the feature.
160
+ * - **ON**: enabled.
192
161
  *
193
- * - **OFF**: Disables the feature.
162
+ * - **OFF**: disabled.
194
163
  *
195
164
  * @example
196
165
  * on
197
166
  */
198
167
  sccMode?: string;
199
168
  /**
169
+ * @remarks
170
+ * The VPC ID.
171
+ *
200
172
  * @example
201
173
  * vpc-2zehr7ghqovftils0****
202
174
  */
203
175
  VPCId?: string;
204
176
  /**
177
+ * @remarks
178
+ * The vSwitch ID.
179
+ *
205
180
  * @example
206
181
  * vsw-2ze775gnf7jn33ua****
207
182
  */
@@ -10,6 +10,8 @@ export class DescribeAgenticDBComputeClustersRequest extends $dara.Model {
10
10
  computeClusterId?: string;
11
11
  /**
12
12
  * @remarks
13
+ * The AgenticDB cluster ID.
14
+ *
13
15
  * This parameter is required.
14
16
  *
15
17
  * @example
@@ -17,17 +19,25 @@ export class DescribeAgenticDBComputeClustersRequest extends $dara.Model {
17
19
  */
18
20
  DBClusterId?: string;
19
21
  /**
22
+ * @remarks
23
+ * The page number. Default value: 1.
24
+ *
20
25
  * @example
21
26
  * 1
22
27
  */
23
28
  pageNumber?: number;
24
29
  /**
30
+ * @remarks
31
+ * The number of entries per page. Default value: 30. Maximum value: 100.
32
+ *
25
33
  * @example
26
34
  * 30
27
35
  */
28
36
  pageSize?: number;
29
37
  /**
30
38
  * @remarks
39
+ * The region ID.
40
+ *
31
41
  * This parameter is required.
32
42
  *
33
43
  * @example
@@ -35,6 +45,9 @@ export class DescribeAgenticDBComputeClustersRequest extends $dara.Model {
35
45
  */
36
46
  regionId?: string;
37
47
  /**
48
+ * @remarks
49
+ * The status filter. Valid values: Running, Stopped, and Waiting.
50
+ *
38
51
  * @example
39
52
  * Running
40
53
  */
@@ -4,31 +4,49 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class DescribeAgenticDBComputeClustersResponseBodyItems extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The ID of the associated branch.
9
+ *
7
10
  * @example
8
11
  * br-7g8h9i0j1k2l
9
12
  */
10
13
  branchId?: string;
11
14
  /**
15
+ * @remarks
16
+ * The name of the associated branch.
17
+ *
12
18
  * @example
13
19
  * feature-analytics
14
20
  */
15
21
  branchName?: string;
16
22
  /**
23
+ * @remarks
24
+ * The compute instance ID.
25
+ *
17
26
  * @example
18
27
  * pc-g0lsayq8c5qe
19
28
  */
20
29
  computeClusterId?: string;
21
30
  /**
31
+ * @remarks
32
+ * The number of compute nodes. The value is fixed to 1 in the first phase.
33
+ *
22
34
  * @example
23
35
  * 1
24
36
  */
25
37
  computeNodeCount?: number;
26
38
  /**
39
+ * @remarks
40
+ * The time when the compute instance was created.
41
+ *
27
42
  * @example
28
43
  * 2026-06-10T11:00:00Z
29
44
  */
30
45
  createTime?: string;
31
46
  /**
47
+ * @remarks
48
+ * The description of the compute instance.
49
+ *
32
50
  * @example
33
51
  * Compute cluster for analytics
34
52
  */
@@ -39,21 +57,33 @@ export class DescribeAgenticDBComputeClustersResponseBodyItems extends $dara.Mod
39
57
  */
40
58
  isDefaultBranch?: boolean;
41
59
  /**
60
+ * @remarks
61
+ * The time when the compute instance was last activated.
62
+ *
42
63
  * @example
43
64
  * 2026-06-10T12:30:00Z
44
65
  */
45
66
  lastActivatedAt?: string;
46
67
  /**
68
+ * @remarks
69
+ * The maximum compute unit.
70
+ *
47
71
  * @example
48
72
  * 2
49
73
  */
50
74
  maxCU?: string;
51
75
  /**
76
+ * @remarks
77
+ * The minimum compute unit.
78
+ *
52
79
  * @example
53
80
  * 0.25
54
81
  */
55
82
  minCU?: string;
56
83
  /**
84
+ * @remarks
85
+ * The operator type.
86
+ *
57
87
  * @example
58
88
  * Neon
59
89
  */
@@ -61,31 +91,49 @@ export class DescribeAgenticDBComputeClustersResponseBodyItems extends $dara.Mod
61
91
  parentBranchId?: string;
62
92
  parentBranchName?: string;
63
93
  /**
94
+ * @remarks
95
+ * The ID of the associated project.
96
+ *
64
97
  * @example
65
98
  * proj-a1b2c3d4e5f6
66
99
  */
67
100
  projectId?: string;
68
101
  /**
102
+ * @remarks
103
+ * The name of the associated project.
104
+ *
69
105
  * @example
70
106
  * analytics-prod
71
107
  */
72
108
  projectName?: string;
73
109
  /**
110
+ * @remarks
111
+ * The status of the compute instance.
112
+ *
74
113
  * @example
75
114
  * Running
76
115
  */
77
116
  status?: string;
78
117
  /**
118
+ * @remarks
119
+ * The amount of used data, in bytes.
120
+ *
79
121
  * @example
80
122
  * 1073741824
81
123
  */
82
124
  storageSize?: number;
83
125
  /**
126
+ * @remarks
127
+ * The ID of the associated tenant.
128
+ *
84
129
  * @example
85
130
  * t-4b83e0da66674951
86
131
  */
87
132
  tenantId?: string;
88
133
  /**
134
+ * @remarks
135
+ * The name of the associated tenant.
136
+ *
89
137
  * @example
90
138
  * my-saas-app
91
139
  */
@@ -148,23 +196,39 @@ export class DescribeAgenticDBComputeClustersResponseBodyItems extends $dara.Mod
148
196
  }
149
197
 
150
198
  export class DescribeAgenticDBComputeClustersResponseBody extends $dara.Model {
199
+ /**
200
+ * @remarks
201
+ * The list of compute instances.
202
+ */
151
203
  items?: DescribeAgenticDBComputeClustersResponseBodyItems[];
152
204
  /**
205
+ * @remarks
206
+ * The current page number.
207
+ *
153
208
  * @example
154
209
  * 1
155
210
  */
156
211
  pageNumber?: number;
157
212
  /**
213
+ * @remarks
214
+ * The number of entries per page.
215
+ *
158
216
  * @example
159
217
  * 30
160
218
  */
161
219
  pageSize?: number;
162
220
  /**
221
+ * @remarks
222
+ * The request ID.
223
+ *
163
224
  * @example
164
225
  * F6A7B8C9-D0E1-2345-FABC-678901234FAB
165
226
  */
166
227
  requestId?: string;
167
228
  /**
229
+ * @remarks
230
+ * The total number of entries returned.
231
+ *
168
232
  * @example
169
233
  * 3
170
234
  */
@@ -0,0 +1,123 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribePolarFsRequestTag extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * testKey
9
+ */
10
+ key?: string;
11
+ /**
12
+ * @example
13
+ * testValue
14
+ */
15
+ value?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ key: 'Key',
19
+ value: 'Value',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ key: 'string',
26
+ value: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class DescribePolarFsRequest extends $dara.Model {
40
+ /**
41
+ * @example
42
+ * pc-2ze8u21s03******
43
+ */
44
+ DBClusterId?: string;
45
+ /**
46
+ * @example
47
+ * 1
48
+ */
49
+ pageNumber?: number;
50
+ /**
51
+ * @example
52
+ * 30
53
+ */
54
+ pageSize?: number;
55
+ /**
56
+ * @example
57
+ * pfs-ins1********
58
+ */
59
+ polarFsInstanceDescription?: string;
60
+ /**
61
+ * @example
62
+ * pfs-ins1*******
63
+ */
64
+ polarFsInstanceIds?: string;
65
+ /**
66
+ * @example
67
+ * all
68
+ */
69
+ polarFsType?: string;
70
+ /**
71
+ * @remarks
72
+ * This parameter is required.
73
+ *
74
+ * @example
75
+ * cn-beijing
76
+ */
77
+ regionId?: string;
78
+ /**
79
+ * @example
80
+ * pc-2zejpr41d9xk*****
81
+ */
82
+ relativeDbClusterId?: string;
83
+ tag?: DescribePolarFsRequestTag[];
84
+ static names(): { [key: string]: string } {
85
+ return {
86
+ DBClusterId: 'DBClusterId',
87
+ pageNumber: 'PageNumber',
88
+ pageSize: 'PageSize',
89
+ polarFsInstanceDescription: 'PolarFsInstanceDescription',
90
+ polarFsInstanceIds: 'PolarFsInstanceIds',
91
+ polarFsType: 'PolarFsType',
92
+ regionId: 'RegionId',
93
+ relativeDbClusterId: 'RelativeDbClusterId',
94
+ tag: 'Tag',
95
+ };
96
+ }
97
+
98
+ static types(): { [key: string]: any } {
99
+ return {
100
+ DBClusterId: 'string',
101
+ pageNumber: 'number',
102
+ pageSize: 'number',
103
+ polarFsInstanceDescription: 'string',
104
+ polarFsInstanceIds: 'string',
105
+ polarFsType: 'string',
106
+ regionId: 'string',
107
+ relativeDbClusterId: 'string',
108
+ tag: { 'type': 'array', 'itemType': DescribePolarFsRequestTag },
109
+ };
110
+ }
111
+
112
+ validate() {
113
+ if(Array.isArray(this.tag)) {
114
+ $dara.Model.validateArray(this.tag);
115
+ }
116
+ super.validate();
117
+ }
118
+
119
+ constructor(map?: { [key: string]: any }) {
120
+ super(map);
121
+ }
122
+ }
123
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribePolarFsResponseBody } from "./DescribePolarFsResponseBody";
4
+
5
+
6
+ export class DescribePolarFsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribePolarFsResponseBody;
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: DescribePolarFsResponseBody,
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
+