@alicloud/gpdb20160503 3.11.0 → 3.12.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 +182 -56
- package/dist/client.js +377 -59
- package/dist/client.js.map +1 -1
- package/dist/models/CheckSaasServiceVersionRequest.d.ts +31 -0
- package/dist/models/CheckSaasServiceVersionRequest.js +60 -0
- package/dist/models/CheckSaasServiceVersionRequest.js.map +1 -0
- package/dist/models/CheckSaasServiceVersionResponse.d.ts +19 -0
- package/dist/models/CheckSaasServiceVersionResponse.js +69 -0
- package/dist/models/CheckSaasServiceVersionResponse.js.map +1 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.d.ts +45 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.js +64 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.js.map +1 -0
- package/dist/models/CreateApiKeyRequest.d.ts +14 -0
- package/dist/models/CreateApiKeyRequest.js.map +1 -1
- package/dist/models/CreateApiKeyResponseBody.d.ts +9 -0
- package/dist/models/CreateApiKeyResponseBody.js.map +1 -1
- package/dist/models/CreateApiKeyShrinkRequest.d.ts +14 -0
- package/dist/models/CreateApiKeyShrinkRequest.js.map +1 -1
- package/dist/models/CreateDbinstanceRequest.d.ts +116 -171
- package/dist/models/CreateDbinstanceRequest.js.map +1 -1
- package/dist/models/CreateDbinstanceResponseBody.d.ts +3 -3
- package/dist/models/CreateSupabaseProjectRequest.d.ts +20 -5
- package/dist/models/CreateSupabaseProjectRequest.js +27 -1
- package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
- package/dist/models/CreateSupabaseProjectResponseBody.d.ts +2 -2
- package/dist/models/DeleteApiKeyRequest.d.ts +5 -0
- package/dist/models/DeleteApiKeyRequest.js.map +1 -1
- package/dist/models/DeleteApiKeyResponseBody.d.ts +6 -0
- package/dist/models/DeleteApiKeyResponseBody.js.map +1 -1
- package/dist/models/DeleteWorkspaceRequest.d.ts +5 -0
- package/dist/models/DeleteWorkspaceRequest.js.map +1 -1
- package/dist/models/DeleteWorkspaceResponseBody.d.ts +6 -0
- package/dist/models/DeleteWorkspaceResponseBody.js.map +1 -1
- package/dist/models/GetApiEndpointsRequest.d.ts +37 -0
- package/dist/models/GetApiEndpointsRequest.js +62 -0
- package/dist/models/GetApiEndpointsRequest.js.map +1 -0
- package/dist/models/GetApiEndpointsResponse.d.ts +19 -0
- package/dist/models/GetApiEndpointsResponse.js +69 -0
- package/dist/models/GetApiEndpointsResponse.js.map +1 -0
- package/dist/models/GetApiEndpointsResponseBody.d.ts +89 -0
- package/dist/models/GetApiEndpointsResponseBody.js +92 -0
- package/dist/models/GetApiEndpointsResponseBody.js.map +1 -0
- package/dist/models/GetApiKeyRequest.d.ts +5 -0
- package/dist/models/GetApiKeyRequest.js.map +1 -1
- package/dist/models/GetApiKeyResponseBody.d.ts +34 -0
- package/dist/models/GetApiKeyResponseBody.js.map +1 -1
- package/dist/models/GetSaasServiceRequest.d.ts +5 -0
- package/dist/models/GetSaasServiceRequest.js.map +1 -1
- package/dist/models/GetSaasServiceResponseBody.d.ts +38 -0
- package/dist/models/GetSaasServiceResponseBody.js.map +1 -1
- package/dist/models/GetServiceAccessInfoRequest.d.ts +5 -0
- package/dist/models/GetServiceAccessInfoRequest.js.map +1 -1
- package/dist/models/GetServiceAccessInfoResponseBody.d.ts +9 -0
- package/dist/models/GetServiceAccessInfoResponseBody.js.map +1 -1
- package/dist/models/GetWorkspaceRequest.d.ts +5 -0
- package/dist/models/GetWorkspaceRequest.js.map +1 -1
- package/dist/models/GetWorkspaceResponseBody.d.ts +83 -0
- package/dist/models/GetWorkspaceResponseBody.js.map +1 -1
- package/dist/models/GrantApiKeyRequest.d.ts +48 -0
- package/dist/models/GrantApiKeyRequest.js +67 -0
- package/dist/models/GrantApiKeyRequest.js.map +1 -0
- package/dist/models/GrantApiKeyResponse.d.ts +19 -0
- package/dist/models/GrantApiKeyResponse.js +69 -0
- package/dist/models/GrantApiKeyResponse.js.map +1 -0
- package/dist/models/GrantApiKeyResponseBody.d.ts +21 -0
- package/dist/models/GrantApiKeyResponseBody.js +58 -0
- package/dist/models/GrantApiKeyResponseBody.js.map +1 -0
- package/dist/models/GrantApiKeyShrinkRequest.d.ts +48 -0
- package/dist/models/GrantApiKeyShrinkRequest.js +64 -0
- package/dist/models/GrantApiKeyShrinkRequest.js.map +1 -0
- package/dist/models/ListApiKeysRequest.d.ts +14 -0
- package/dist/models/ListApiKeysRequest.js.map +1 -1
- package/dist/models/ListApiKeysResponseBody.d.ts +45 -0
- package/dist/models/ListApiKeysResponseBody.js.map +1 -1
- package/dist/models/ListSaasServiceRequest.d.ts +1 -1
- package/dist/models/ListSaasServiceResponseBody.d.ts +80 -1
- package/dist/models/ListSaasServiceResponseBody.js +37 -1
- package/dist/models/ListSaasServiceResponseBody.js.map +1 -1
- package/dist/models/ListWorkspacesResponseBody.d.ts +21 -1
- package/dist/models/ListWorkspacesResponseBody.js +37 -1
- package/dist/models/ListWorkspacesResponseBody.js.map +1 -1
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.d.ts +39 -0
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.js +62 -0
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.js.map +1 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.d.ts +19 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.js +69 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.js.map +1 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.d.ts +37 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js +62 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js.map +1 -0
- package/dist/models/PauseSaasServiceRequest.d.ts +5 -0
- package/dist/models/PauseSaasServiceRequest.js.map +1 -1
- package/dist/models/PauseSaasServiceResponseBody.d.ts +6 -0
- package/dist/models/PauseSaasServiceResponseBody.js.map +1 -1
- package/dist/models/QueryContentAdvanceRequest.d.ts +26 -27
- package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
- package/dist/models/QueryContentRequest.d.ts +26 -27
- package/dist/models/QueryContentRequest.js.map +1 -1
- package/dist/models/QueryContentResponseBody.d.ts +2 -2
- package/dist/models/QueryContentShrinkRequest.d.ts +24 -24
- package/dist/models/ResumeSaasServiceRequest.d.ts +5 -0
- package/dist/models/ResumeSaasServiceRequest.js.map +1 -1
- package/dist/models/ResumeSaasServiceResponseBody.d.ts +6 -0
- package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -1
- package/dist/models/RevokeApiKeyRequest.d.ts +48 -0
- package/dist/models/RevokeApiKeyRequest.js +67 -0
- package/dist/models/RevokeApiKeyRequest.js.map +1 -0
- package/dist/models/RevokeApiKeyResponse.d.ts +19 -0
- package/dist/models/RevokeApiKeyResponse.js +69 -0
- package/dist/models/RevokeApiKeyResponse.js.map +1 -0
- package/dist/models/RevokeApiKeyResponseBody.d.ts +21 -0
- package/dist/models/RevokeApiKeyResponseBody.js +58 -0
- package/dist/models/RevokeApiKeyResponseBody.js.map +1 -0
- package/dist/models/RevokeApiKeyShrinkRequest.d.ts +48 -0
- package/dist/models/RevokeApiKeyShrinkRequest.js +64 -0
- package/dist/models/RevokeApiKeyShrinkRequest.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionRequest.d.ts +31 -0
- package/dist/models/UpdateSaasServiceVersionRequest.js +60 -0
- package/dist/models/UpdateSaasServiceVersionRequest.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionResponse.d.ts +19 -0
- package/dist/models/UpdateSaasServiceVersionResponse.js +69 -0
- package/dist/models/UpdateSaasServiceVersionResponse.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.d.ts +37 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.js +62 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +24 -0
- package/dist/models/model.js +80 -32
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +410 -59
- package/src/models/CheckSaasServiceVersionRequest.ts +46 -0
- package/src/models/CheckSaasServiceVersionResponse.ts +40 -0
- package/src/models/CheckSaasServiceVersionResponseBody.ts +64 -0
- package/src/models/CreateApiKeyRequest.ts +14 -0
- package/src/models/CreateApiKeyResponseBody.ts +9 -0
- package/src/models/CreateApiKeyShrinkRequest.ts +14 -0
- package/src/models/CreateDbinstanceRequest.ts +124 -179
- package/src/models/CreateDbinstanceResponseBody.ts +3 -3
- package/src/models/CreateSupabaseProjectRequest.ts +37 -5
- package/src/models/CreateSupabaseProjectResponseBody.ts +2 -2
- package/src/models/DeleteApiKeyRequest.ts +5 -0
- package/src/models/DeleteApiKeyResponseBody.ts +6 -0
- package/src/models/DeleteWorkspaceRequest.ts +5 -0
- package/src/models/DeleteWorkspaceResponseBody.ts +6 -0
- package/src/models/GetApiEndpointsRequest.ts +54 -0
- package/src/models/GetApiEndpointsResponse.ts +40 -0
- package/src/models/GetApiEndpointsResponseBody.ts +127 -0
- package/src/models/GetApiKeyRequest.ts +5 -0
- package/src/models/GetApiKeyResponseBody.ts +34 -0
- package/src/models/GetSaasServiceRequest.ts +5 -0
- package/src/models/GetSaasServiceResponseBody.ts +38 -0
- package/src/models/GetServiceAccessInfoRequest.ts +5 -0
- package/src/models/GetServiceAccessInfoResponseBody.ts +9 -0
- package/src/models/GetWorkspaceRequest.ts +5 -0
- package/src/models/GetWorkspaceResponseBody.ts +83 -0
- package/src/models/GrantApiKeyRequest.ts +70 -0
- package/src/models/GrantApiKeyResponse.ts +40 -0
- package/src/models/GrantApiKeyResponseBody.ts +34 -0
- package/src/models/GrantApiKeyShrinkRequest.ts +67 -0
- package/src/models/ListApiKeysRequest.ts +14 -0
- package/src/models/ListApiKeysResponseBody.ts +45 -0
- package/src/models/ListSaasServiceRequest.ts +1 -1
- package/src/models/ListSaasServiceResponseBody.ts +107 -1
- package/src/models/ListWorkspacesResponseBody.ts +48 -1
- package/src/models/ModifySaasServiceDeletionProtectionRequest.ts +56 -0
- package/src/models/ModifySaasServiceDeletionProtectionResponse.ts +40 -0
- package/src/models/ModifySaasServiceDeletionProtectionResponseBody.ts +54 -0
- package/src/models/PauseSaasServiceRequest.ts +5 -0
- package/src/models/PauseSaasServiceResponseBody.ts +6 -0
- package/src/models/QueryContentAdvanceRequest.ts +26 -27
- package/src/models/QueryContentRequest.ts +26 -27
- package/src/models/QueryContentResponseBody.ts +2 -2
- package/src/models/QueryContentShrinkRequest.ts +24 -24
- package/src/models/ResumeSaasServiceRequest.ts +5 -0
- package/src/models/ResumeSaasServiceResponseBody.ts +6 -0
- package/src/models/RevokeApiKeyRequest.ts +70 -0
- package/src/models/RevokeApiKeyResponse.ts +40 -0
- package/src/models/RevokeApiKeyResponseBody.ts +34 -0
- package/src/models/RevokeApiKeyShrinkRequest.ts +67 -0
- package/src/models/UpdateSaasServiceVersionRequest.ts +46 -0
- package/src/models/UpdateSaasServiceVersionResponse.ts +40 -0
- package/src/models/UpdateSaasServiceVersionResponseBody.ts +54 -0
- package/src/models/model.ts +24 -0
|
@@ -4,11 +4,20 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetWorkspaceResponseBodyApikeysAuthServices extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The service ID.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* agdb-xxxxxx
|
|
9
12
|
*/
|
|
10
13
|
serviceId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The service type. Valid values:
|
|
17
|
+
*
|
|
18
|
+
* - memory
|
|
19
|
+
* - drama
|
|
20
|
+
*
|
|
12
21
|
* @example
|
|
13
22
|
* memory
|
|
14
23
|
*/
|
|
@@ -37,28 +46,47 @@ export class GetWorkspaceResponseBodyApikeysAuthServices extends $dara.Model {
|
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
export class GetWorkspaceResponseBodyApikeys extends $dara.Model {
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The service ID.
|
|
52
|
+
*/
|
|
40
53
|
authServices?: GetWorkspaceResponseBodyApikeysAuthServices[];
|
|
41
54
|
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The creation time.
|
|
57
|
+
*
|
|
42
58
|
* @example
|
|
43
59
|
* Sat Mar 14 14:44:27 GMT+08:00 2026
|
|
44
60
|
*/
|
|
45
61
|
createTime?: string;
|
|
46
62
|
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The description.
|
|
65
|
+
*
|
|
47
66
|
* @example
|
|
48
67
|
* my test key
|
|
49
68
|
*/
|
|
50
69
|
description?: string;
|
|
51
70
|
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The ID of the API key.
|
|
73
|
+
*
|
|
52
74
|
* @example
|
|
53
75
|
* api-xxxxxx
|
|
54
76
|
*/
|
|
55
77
|
keyId?: string;
|
|
56
78
|
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The name of the API key.
|
|
81
|
+
*
|
|
57
82
|
* @example
|
|
58
83
|
* my test key
|
|
59
84
|
*/
|
|
60
85
|
keyName?: string;
|
|
61
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The prefix of the API key.
|
|
89
|
+
*
|
|
62
90
|
* @example
|
|
63
91
|
* sk-1235*****
|
|
64
92
|
*/
|
|
@@ -99,41 +127,76 @@ export class GetWorkspaceResponseBodyApikeys extends $dara.Model {
|
|
|
99
127
|
|
|
100
128
|
export class GetWorkspaceResponseBodyServices extends $dara.Model {
|
|
101
129
|
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The creation time.
|
|
132
|
+
*
|
|
102
133
|
* @example
|
|
103
134
|
* 2026-03-01T00:00:00Z
|
|
104
135
|
*/
|
|
105
136
|
createTime?: string;
|
|
106
137
|
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The compute resource.
|
|
140
|
+
*
|
|
107
141
|
* @example
|
|
108
142
|
* 2
|
|
109
143
|
*/
|
|
110
144
|
cu?: string;
|
|
111
145
|
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The expiration time.
|
|
148
|
+
*
|
|
112
149
|
* @example
|
|
113
150
|
* 2026-06-21T16:00:00Z
|
|
114
151
|
*/
|
|
115
152
|
expireTime?: string;
|
|
116
153
|
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* The billing type. Valid values:
|
|
156
|
+
*
|
|
157
|
+
* - **POSTPAY**: pay-as-you-go.
|
|
158
|
+
* - **PREPAY**: subscription.
|
|
159
|
+
*
|
|
160
|
+
* > - If this parameter is not specified, the default value is pay-as-you-go.
|
|
161
|
+
* > - In subscription billing mode, a discount is available when you purchase a duration of one year or longer. Select a billing type as needed.
|
|
162
|
+
*
|
|
117
163
|
* @example
|
|
118
164
|
* Postpaid
|
|
119
165
|
*/
|
|
120
166
|
payType?: string;
|
|
121
167
|
/**
|
|
168
|
+
* @remarks
|
|
169
|
+
* The service ID.
|
|
170
|
+
*
|
|
122
171
|
* @example
|
|
123
172
|
* agdb-xxx
|
|
124
173
|
*/
|
|
125
174
|
serviceId?: string;
|
|
126
175
|
/**
|
|
176
|
+
* @remarks
|
|
177
|
+
* The service name.
|
|
178
|
+
*
|
|
127
179
|
* @example
|
|
128
180
|
* agdb-xxx
|
|
129
181
|
*/
|
|
130
182
|
serviceName?: string;
|
|
131
183
|
/**
|
|
184
|
+
* @remarks
|
|
185
|
+
* The service type. Valid values:
|
|
186
|
+
*
|
|
187
|
+
* - **memory**
|
|
188
|
+
* - **drama**
|
|
189
|
+
*
|
|
132
190
|
* @example
|
|
133
191
|
* memory
|
|
134
192
|
*/
|
|
135
193
|
serviceType?: string;
|
|
136
194
|
/**
|
|
195
|
+
* @remarks
|
|
196
|
+
* The service status. Valid values:
|
|
197
|
+
* - creating: being created.
|
|
198
|
+
* - active: running.
|
|
199
|
+
*
|
|
137
200
|
* @example
|
|
138
201
|
* active
|
|
139
202
|
*/
|
|
@@ -174,24 +237,44 @@ export class GetWorkspaceResponseBodyServices extends $dara.Model {
|
|
|
174
237
|
}
|
|
175
238
|
|
|
176
239
|
export class GetWorkspaceResponseBody extends $dara.Model {
|
|
240
|
+
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* The list of workspace API keys.
|
|
243
|
+
*/
|
|
177
244
|
apikeys?: GetWorkspaceResponseBodyApikeys[];
|
|
178
245
|
/**
|
|
246
|
+
* @remarks
|
|
247
|
+
* The creation time.
|
|
248
|
+
*
|
|
179
249
|
* @example
|
|
180
250
|
* 2026-06-01T00:00:00Z
|
|
181
251
|
*/
|
|
182
252
|
createTime?: string;
|
|
183
253
|
/**
|
|
254
|
+
* @remarks
|
|
255
|
+
* The request ID.
|
|
256
|
+
*
|
|
184
257
|
* @example
|
|
185
258
|
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
186
259
|
*/
|
|
187
260
|
requestId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* @remarks
|
|
263
|
+
* The list of service details.
|
|
264
|
+
*/
|
|
188
265
|
services?: GetWorkspaceResponseBodyServices[];
|
|
189
266
|
/**
|
|
267
|
+
* @remarks
|
|
268
|
+
* The workspace ID.
|
|
269
|
+
*
|
|
190
270
|
* @example
|
|
191
271
|
* ws-*****
|
|
192
272
|
*/
|
|
193
273
|
workspaceId?: string;
|
|
194
274
|
/**
|
|
275
|
+
* @remarks
|
|
276
|
+
* The workspace name.
|
|
277
|
+
*
|
|
195
278
|
* @example
|
|
196
279
|
* my-first-workspace
|
|
197
280
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GrantApiKeyRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the API key.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* api-xxxxxxx
|
|
14
|
+
*/
|
|
15
|
+
keyId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The region ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* cn-beijing
|
|
22
|
+
*/
|
|
23
|
+
regionId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The list of service IDs to authorize.
|
|
27
|
+
*
|
|
28
|
+
* This parameter is required.
|
|
29
|
+
*/
|
|
30
|
+
serviceIds?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The workspace ID.
|
|
34
|
+
*
|
|
35
|
+
* This parameter is required.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ws-*****
|
|
39
|
+
*/
|
|
40
|
+
workspaceId?: string;
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
keyId: 'KeyId',
|
|
44
|
+
regionId: 'RegionId',
|
|
45
|
+
serviceIds: 'ServiceIds',
|
|
46
|
+
workspaceId: 'WorkspaceId',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static types(): { [key: string]: any } {
|
|
51
|
+
return {
|
|
52
|
+
keyId: 'string',
|
|
53
|
+
regionId: 'string',
|
|
54
|
+
serviceIds: { 'type': 'array', 'itemType': 'string' },
|
|
55
|
+
workspaceId: 'string',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
validate() {
|
|
60
|
+
if(Array.isArray(this.serviceIds)) {
|
|
61
|
+
$dara.Model.validateArray(this.serviceIds);
|
|
62
|
+
}
|
|
63
|
+
super.validate();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
constructor(map?: { [key: string]: any }) {
|
|
67
|
+
super(map);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GrantApiKeyResponseBody } from "./GrantApiKeyResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GrantApiKeyResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GrantApiKeyResponseBody;
|
|
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: GrantApiKeyResponseBody,
|
|
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,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GrantApiKeyResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The request ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GrantApiKeyShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the API key.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* api-xxxxxxx
|
|
14
|
+
*/
|
|
15
|
+
keyId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The region ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* cn-beijing
|
|
22
|
+
*/
|
|
23
|
+
regionId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The list of service IDs to authorize.
|
|
27
|
+
*
|
|
28
|
+
* This parameter is required.
|
|
29
|
+
*/
|
|
30
|
+
serviceIdsShrink?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The workspace ID.
|
|
34
|
+
*
|
|
35
|
+
* This parameter is required.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ws-*****
|
|
39
|
+
*/
|
|
40
|
+
workspaceId?: string;
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
keyId: 'KeyId',
|
|
44
|
+
regionId: 'RegionId',
|
|
45
|
+
serviceIdsShrink: 'ServiceIds',
|
|
46
|
+
workspaceId: 'WorkspaceId',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static types(): { [key: string]: any } {
|
|
51
|
+
return {
|
|
52
|
+
keyId: 'string',
|
|
53
|
+
regionId: 'string',
|
|
54
|
+
serviceIdsShrink: 'string',
|
|
55
|
+
workspaceId: 'string',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
validate() {
|
|
60
|
+
super.validate();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
constructor(map?: { [key: string]: any }) {
|
|
64
|
+
super(map);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
@@ -4,27 +4,41 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ListApiKeysRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The name of the API key.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* my api
|
|
9
12
|
*/
|
|
10
13
|
keyName?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The maximum number of records to return in this query.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* 50
|
|
14
20
|
*/
|
|
15
21
|
maxResults?: number;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The token for the next query.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* caeba0bbb2be03f84eb48b699f0a4883
|
|
19
28
|
*/
|
|
20
29
|
nextToken?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The region ID.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* cn-beijing
|
|
24
36
|
*/
|
|
25
37
|
regionId?: string;
|
|
26
38
|
/**
|
|
27
39
|
* @remarks
|
|
40
|
+
* The workspace ID.
|
|
41
|
+
*
|
|
28
42
|
* This parameter is required.
|
|
29
43
|
*
|
|
30
44
|
* @example
|
|
@@ -4,11 +4,21 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ListApiKeysResponseBodyItemsAuthServices extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The service IDs.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* agdb-xxxxxx
|
|
9
12
|
*/
|
|
10
13
|
serviceId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The service type.
|
|
17
|
+
*
|
|
18
|
+
* Valid values:
|
|
19
|
+
* - memory
|
|
20
|
+
* - drama
|
|
21
|
+
*
|
|
12
22
|
* @example
|
|
13
23
|
* memory
|
|
14
24
|
*/
|
|
@@ -37,28 +47,47 @@ export class ListApiKeysResponseBodyItemsAuthServices extends $dara.Model {
|
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
export class ListApiKeysResponseBodyItems extends $dara.Model {
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The service IDs.
|
|
53
|
+
*/
|
|
40
54
|
authServices?: ListApiKeysResponseBodyItemsAuthServices[];
|
|
41
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The creation time.
|
|
58
|
+
*
|
|
42
59
|
* @example
|
|
43
60
|
* 2021-10-09T04:54:08Z
|
|
44
61
|
*/
|
|
45
62
|
createTime?: string;
|
|
46
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The description of the API key.
|
|
66
|
+
*
|
|
47
67
|
* @example
|
|
48
68
|
* my first api key
|
|
49
69
|
*/
|
|
50
70
|
description?: string;
|
|
51
71
|
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* The ID of the API key.
|
|
74
|
+
*
|
|
52
75
|
* @example
|
|
53
76
|
* api-xxxxxxxx
|
|
54
77
|
*/
|
|
55
78
|
keyId?: string;
|
|
56
79
|
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* The name of the API key.
|
|
82
|
+
*
|
|
57
83
|
* @example
|
|
58
84
|
* my first api key
|
|
59
85
|
*/
|
|
60
86
|
keyName?: string;
|
|
61
87
|
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The prefix of the API key.
|
|
90
|
+
*
|
|
62
91
|
* @example
|
|
63
92
|
* sk-12345****
|
|
64
93
|
*/
|
|
@@ -98,23 +127,39 @@ export class ListApiKeysResponseBodyItems extends $dara.Model {
|
|
|
98
127
|
}
|
|
99
128
|
|
|
100
129
|
export class ListApiKeysResponseBody extends $dara.Model {
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The list of API keys.
|
|
133
|
+
*/
|
|
101
134
|
items?: ListApiKeysResponseBodyItems[];
|
|
102
135
|
/**
|
|
136
|
+
* @remarks
|
|
137
|
+
* The maximum number of records to return in this query.
|
|
138
|
+
*
|
|
103
139
|
* @example
|
|
104
140
|
* 20
|
|
105
141
|
*/
|
|
106
142
|
maxResults?: number;
|
|
107
143
|
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* The token for the next page in a paged query.
|
|
146
|
+
*
|
|
108
147
|
* @example
|
|
109
148
|
* caeba0bbb2be03f84eb48b699f0a4883
|
|
110
149
|
*/
|
|
111
150
|
nextToken?: string;
|
|
112
151
|
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The request ID.
|
|
154
|
+
*
|
|
113
155
|
* @example
|
|
114
156
|
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
115
157
|
*/
|
|
116
158
|
requestId?: string;
|
|
117
159
|
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The total number of records.
|
|
162
|
+
*
|
|
118
163
|
* @example
|
|
119
164
|
* 1
|
|
120
165
|
*/
|
|
@@ -13,7 +13,7 @@ export class ListSaasServiceRequest extends $dara.Model {
|
|
|
13
13
|
maxResults?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The token for the next query
|
|
16
|
+
* The paging token for the next query. When you perform a paging query, the next query begins from the specified token.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* caeba0bbb2be03f84eb48b699f0a4883
|
|
@@ -2,7 +2,95 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class ListSaasServiceResponseBodyItemsComponents extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The component ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 0644c5aa-5306-478b-ac39-bb4660cdc9f7
|
|
12
|
+
*/
|
|
13
|
+
componentId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The type of the subcomponent.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* gamestudio
|
|
20
|
+
*/
|
|
21
|
+
componentType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The creation time.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 2021-10-09T04:54:08Z
|
|
28
|
+
*/
|
|
29
|
+
createTime?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The compute resource of the component.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 2
|
|
36
|
+
*/
|
|
37
|
+
cu?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The release protection status.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* true
|
|
44
|
+
*/
|
|
45
|
+
deletionProtection?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The service status. Valid values:
|
|
49
|
+
*
|
|
50
|
+
* - active: Running.
|
|
51
|
+
* - creating: Being created.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* active
|
|
55
|
+
*/
|
|
56
|
+
status?: string;
|
|
57
|
+
static names(): { [key: string]: string } {
|
|
58
|
+
return {
|
|
59
|
+
componentId: 'ComponentId',
|
|
60
|
+
componentType: 'ComponentType',
|
|
61
|
+
createTime: 'CreateTime',
|
|
62
|
+
cu: 'Cu',
|
|
63
|
+
deletionProtection: 'DeletionProtection',
|
|
64
|
+
status: 'Status',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static types(): { [key: string]: any } {
|
|
69
|
+
return {
|
|
70
|
+
componentId: 'string',
|
|
71
|
+
componentType: 'string',
|
|
72
|
+
createTime: 'string',
|
|
73
|
+
cu: 'string',
|
|
74
|
+
deletionProtection: 'boolean',
|
|
75
|
+
status: 'string',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
5
88
|
export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* The list of service subcomponents.
|
|
92
|
+
*/
|
|
93
|
+
components?: ListSaasServiceResponseBodyItemsComponents[];
|
|
6
94
|
/**
|
|
7
95
|
* @remarks
|
|
8
96
|
* The creation time.
|
|
@@ -19,6 +107,17 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
|
19
107
|
* 1
|
|
20
108
|
*/
|
|
21
109
|
cu?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* Indicates whether the release protection feature is enabled. Valid values:
|
|
113
|
+
*
|
|
114
|
+
* * **true**: Enabled.
|
|
115
|
+
* * **false**: Disabled.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* True
|
|
119
|
+
*/
|
|
120
|
+
deletionProtection?: boolean;
|
|
22
121
|
/**
|
|
23
122
|
* @remarks
|
|
24
123
|
* The expiration time.
|
|
@@ -40,7 +139,7 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
|
40
139
|
payType?: string;
|
|
41
140
|
/**
|
|
42
141
|
* @remarks
|
|
43
|
-
* [Deprecated]
|
|
142
|
+
* **[Deprecated]**
|
|
44
143
|
*
|
|
45
144
|
* @example
|
|
46
145
|
* deprecated
|
|
@@ -86,8 +185,10 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
|
86
185
|
status?: string;
|
|
87
186
|
static names(): { [key: string]: string } {
|
|
88
187
|
return {
|
|
188
|
+
components: 'Components',
|
|
89
189
|
createTime: 'CreateTime',
|
|
90
190
|
cu: 'Cu',
|
|
191
|
+
deletionProtection: 'DeletionProtection',
|
|
91
192
|
expireTime: 'ExpireTime',
|
|
92
193
|
payType: 'PayType',
|
|
93
194
|
plan: 'Plan',
|
|
@@ -100,8 +201,10 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
|
100
201
|
|
|
101
202
|
static types(): { [key: string]: any } {
|
|
102
203
|
return {
|
|
204
|
+
components: { 'type': 'array', 'itemType': ListSaasServiceResponseBodyItemsComponents },
|
|
103
205
|
createTime: 'string',
|
|
104
206
|
cu: 'number',
|
|
207
|
+
deletionProtection: 'boolean',
|
|
105
208
|
expireTime: 'string',
|
|
106
209
|
payType: 'string',
|
|
107
210
|
plan: 'string',
|
|
@@ -113,6 +216,9 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
|
|
|
113
216
|
}
|
|
114
217
|
|
|
115
218
|
validate() {
|
|
219
|
+
if(Array.isArray(this.components)) {
|
|
220
|
+
$dara.Model.validateArray(this.components);
|
|
221
|
+
}
|
|
116
222
|
super.validate();
|
|
117
223
|
}
|
|
118
224
|
|