@alicloud/bailiancontrol20240816 1.0.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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +47 -0
- package/dist/client.js +168 -0
- package/dist/client.js.map +1 -0
- package/dist/models/GetApiKeyRequest.d.ts +14 -0
- package/dist/models/GetApiKeyRequest.js +58 -0
- package/dist/models/GetApiKeyRequest.js.map +1 -0
- package/dist/models/GetApiKeyResponse.d.ts +19 -0
- package/dist/models/GetApiKeyResponse.js +69 -0
- package/dist/models/GetApiKeyResponse.js.map +1 -0
- package/dist/models/GetApiKeyResponseBody.d.ts +97 -0
- package/dist/models/GetApiKeyResponseBody.js +219 -0
- package/dist/models/GetApiKeyResponseBody.js.map +1 -0
- package/dist/models/ListApiKeysRequest.d.ts +20 -0
- package/dist/models/ListApiKeysRequest.js +70 -0
- package/dist/models/ListApiKeysRequest.js.map +1 -0
- package/dist/models/ListApiKeysResponse.d.ts +19 -0
- package/dist/models/ListApiKeysResponse.js +69 -0
- package/dist/models/ListApiKeysResponse.js.map +1 -0
- package/dist/models/ListApiKeysResponseBody.d.ts +54 -0
- package/dist/models/ListApiKeysResponseBody.js +118 -0
- package/dist/models/ListApiKeysResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +26 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +29 -0
- package/src/client.ts +146 -0
- package/src/models/GetApiKeyRequest.ts +27 -0
- package/src/models/GetApiKeyResponse.ts +40 -0
- package/src/models/GetApiKeyResponseBody.ts +233 -0
- package/src/models/ListApiKeysRequest.ts +45 -0
- package/src/models/ListApiKeysResponse.ts +40 -0
- package/src/models/ListApiKeysResponseBody.ts +118 -0
- package/src/models/model.ts +11 -0
package/src/client.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import OpenApi from '@alicloud/openapi-core';
|
|
4
|
+
import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
import * as $_model from './models/model';
|
|
8
|
+
export * from './models/model';
|
|
9
|
+
|
|
10
|
+
export default class Client extends OpenApi {
|
|
11
|
+
|
|
12
|
+
constructor(config: $OpenApiUtil.Config) {
|
|
13
|
+
super(config);
|
|
14
|
+
this._endpointRule = "";
|
|
15
|
+
this.checkConfig(config);
|
|
16
|
+
this._endpoint = this.getEndpoint("bailiancontrol", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
21
|
+
if (!$dara.isNull(endpoint)) {
|
|
22
|
+
return endpoint;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
26
|
+
return endpointMap[regionId];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 查询 apiKey
|
|
34
|
+
*
|
|
35
|
+
* @param request - GetApiKeyRequest
|
|
36
|
+
* @param headers - map
|
|
37
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
38
|
+
* @returns GetApiKeyResponse
|
|
39
|
+
*/
|
|
40
|
+
async getApiKeyWithOptions(request: $_model.GetApiKeyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetApiKeyResponse> {
|
|
41
|
+
request.validate();
|
|
42
|
+
let query : {[key: string ]: any} = { };
|
|
43
|
+
if (!$dara.isNull(request.apiKeyId)) {
|
|
44
|
+
query["apiKeyId"] = request.apiKeyId;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
48
|
+
headers: headers,
|
|
49
|
+
query: OpenApiUtil.query(query),
|
|
50
|
+
});
|
|
51
|
+
let params = new $OpenApiUtil.Params({
|
|
52
|
+
action: "GetApiKey",
|
|
53
|
+
version: "2024-08-16",
|
|
54
|
+
protocol: "HTTPS",
|
|
55
|
+
pathname: `/bailianControl/apiKey/getApiKey`,
|
|
56
|
+
method: "GET",
|
|
57
|
+
authType: "AK",
|
|
58
|
+
style: "ROA",
|
|
59
|
+
reqBodyType: "json",
|
|
60
|
+
bodyType: "json",
|
|
61
|
+
});
|
|
62
|
+
return $dara.cast<$_model.GetApiKeyResponse>(await this.callApi(params, req, runtime), new $_model.GetApiKeyResponse({}));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 查询 apiKey
|
|
67
|
+
*
|
|
68
|
+
* @param request - GetApiKeyRequest
|
|
69
|
+
* @returns GetApiKeyResponse
|
|
70
|
+
*/
|
|
71
|
+
async getApiKey(request: $_model.GetApiKeyRequest): Promise<$_model.GetApiKeyResponse> {
|
|
72
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
73
|
+
let headers : {[key: string ]: string} = { };
|
|
74
|
+
return await this.getApiKeyWithOptions(request, headers, runtime);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 获取ApiKey列表
|
|
79
|
+
*
|
|
80
|
+
* @param request - ListApiKeysRequest
|
|
81
|
+
* @param headers - map
|
|
82
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
83
|
+
* @returns ListApiKeysResponse
|
|
84
|
+
*/
|
|
85
|
+
async listApiKeysWithOptions(request: $_model.ListApiKeysRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListApiKeysResponse> {
|
|
86
|
+
request.validate();
|
|
87
|
+
let query : {[key: string ]: any} = { };
|
|
88
|
+
if (!$dara.isNull(request.apiKeyId)) {
|
|
89
|
+
query["apiKeyId"] = request.apiKeyId;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!$dara.isNull(request.description)) {
|
|
93
|
+
query["description"] = request.description;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
97
|
+
query["maxResults"] = request.maxResults;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
101
|
+
query["nextToken"] = request.nextToken;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!$dara.isNull(request.skip)) {
|
|
105
|
+
query["skip"] = request.skip;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!$dara.isNull(request.uid)) {
|
|
109
|
+
query["uid"] = request.uid;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
113
|
+
query["workspaceId"] = request.workspaceId;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
117
|
+
headers: headers,
|
|
118
|
+
query: OpenApiUtil.query(query),
|
|
119
|
+
});
|
|
120
|
+
let params = new $OpenApiUtil.Params({
|
|
121
|
+
action: "ListApiKeys",
|
|
122
|
+
version: "2024-08-16",
|
|
123
|
+
protocol: "HTTPS",
|
|
124
|
+
pathname: `/bailianControl/apiKeys`,
|
|
125
|
+
method: "GET",
|
|
126
|
+
authType: "AK",
|
|
127
|
+
style: "ROA",
|
|
128
|
+
reqBodyType: "json",
|
|
129
|
+
bodyType: "json",
|
|
130
|
+
});
|
|
131
|
+
return $dara.cast<$_model.ListApiKeysResponse>(await this.callApi(params, req, runtime), new $_model.ListApiKeysResponse({}));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* 获取ApiKey列表
|
|
136
|
+
*
|
|
137
|
+
* @param request - ListApiKeysRequest
|
|
138
|
+
* @returns ListApiKeysResponse
|
|
139
|
+
*/
|
|
140
|
+
async listApiKeys(request: $_model.ListApiKeysRequest): Promise<$_model.ListApiKeysResponse> {
|
|
141
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
142
|
+
let headers : {[key: string ]: string} = { };
|
|
143
|
+
return await this.listApiKeysWithOptions(request, headers, runtime);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetApiKeyRequest extends $dara.Model {
|
|
6
|
+
apiKeyId?: string;
|
|
7
|
+
static names(): { [key: string]: string } {
|
|
8
|
+
return {
|
|
9
|
+
apiKeyId: 'apiKeyId',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static types(): { [key: string]: any } {
|
|
14
|
+
return {
|
|
15
|
+
apiKeyId: 'string',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
validate() {
|
|
20
|
+
super.validate();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
constructor(map?: { [key: string]: any }) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetApiKeyResponseBody } from "./GetApiKeyResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetApiKeyResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetApiKeyResponseBody;
|
|
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: GetApiKeyResponseBody,
|
|
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,233 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
export class GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure extends $dara.Model {
|
|
8
|
+
agents?: string[];
|
|
9
|
+
highCodeApps?: string[];
|
|
10
|
+
isAllowAccessAllApps?: boolean;
|
|
11
|
+
workflows?: string[];
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
agents: 'agents',
|
|
15
|
+
highCodeApps: 'highCodeApps',
|
|
16
|
+
isAllowAccessAllApps: 'isAllowAccessAllApps',
|
|
17
|
+
workflows: 'workflows',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static types(): { [key: string]: any } {
|
|
22
|
+
return {
|
|
23
|
+
agents: { 'type': 'array', 'itemType': 'string' },
|
|
24
|
+
highCodeApps: { 'type': 'array', 'itemType': 'string' },
|
|
25
|
+
isAllowAccessAllApps: 'boolean',
|
|
26
|
+
workflows: { 'type': 'array', 'itemType': 'string' },
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
if(Array.isArray(this.agents)) {
|
|
32
|
+
$dara.Model.validateArray(this.agents);
|
|
33
|
+
}
|
|
34
|
+
if(Array.isArray(this.highCodeApps)) {
|
|
35
|
+
$dara.Model.validateArray(this.highCodeApps);
|
|
36
|
+
}
|
|
37
|
+
if(Array.isArray(this.workflows)) {
|
|
38
|
+
$dara.Model.validateArray(this.workflows);
|
|
39
|
+
}
|
|
40
|
+
super.validate();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
constructor(map?: { [key: string]: any }) {
|
|
44
|
+
super(map);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure extends $dara.Model {
|
|
49
|
+
defineModels?: string[];
|
|
50
|
+
deployments?: string[];
|
|
51
|
+
isAllowAccessAllModels?: boolean;
|
|
52
|
+
models?: string[];
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
defineModels: 'defineModels',
|
|
56
|
+
deployments: 'deployments',
|
|
57
|
+
isAllowAccessAllModels: 'isAllowAccessAllModels',
|
|
58
|
+
models: 'models',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static types(): { [key: string]: any } {
|
|
63
|
+
return {
|
|
64
|
+
defineModels: { 'type': 'array', 'itemType': 'string' },
|
|
65
|
+
deployments: { 'type': 'array', 'itemType': 'string' },
|
|
66
|
+
isAllowAccessAllModels: 'boolean',
|
|
67
|
+
models: { 'type': 'array', 'itemType': 'string' },
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validate() {
|
|
72
|
+
if(Array.isArray(this.defineModels)) {
|
|
73
|
+
$dara.Model.validateArray(this.defineModels);
|
|
74
|
+
}
|
|
75
|
+
if(Array.isArray(this.deployments)) {
|
|
76
|
+
$dara.Model.validateArray(this.deployments);
|
|
77
|
+
}
|
|
78
|
+
if(Array.isArray(this.models)) {
|
|
79
|
+
$dara.Model.validateArray(this.models);
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class GetApiKeyResponseBodyApiKeyAuthSetModel extends $dara.Model {
|
|
90
|
+
accessIps?: string[];
|
|
91
|
+
authAppStructure?: GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure;
|
|
92
|
+
authModelStructure?: GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure;
|
|
93
|
+
authSetMode?: string;
|
|
94
|
+
static names(): { [key: string]: string } {
|
|
95
|
+
return {
|
|
96
|
+
accessIps: 'accessIps',
|
|
97
|
+
authAppStructure: 'authAppStructure',
|
|
98
|
+
authModelStructure: 'authModelStructure',
|
|
99
|
+
authSetMode: 'authSetMode',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
accessIps: { 'type': 'array', 'itemType': 'string' },
|
|
106
|
+
authAppStructure: GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure,
|
|
107
|
+
authModelStructure: GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure,
|
|
108
|
+
authSetMode: 'string',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
validate() {
|
|
113
|
+
if(Array.isArray(this.accessIps)) {
|
|
114
|
+
$dara.Model.validateArray(this.accessIps);
|
|
115
|
+
}
|
|
116
|
+
if(this.authAppStructure && typeof (this.authAppStructure as any).validate === 'function') {
|
|
117
|
+
(this.authAppStructure as any).validate();
|
|
118
|
+
}
|
|
119
|
+
if(this.authModelStructure && typeof (this.authModelStructure as any).validate === 'function') {
|
|
120
|
+
(this.authModelStructure as any).validate();
|
|
121
|
+
}
|
|
122
|
+
super.validate();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
constructor(map?: { [key: string]: any }) {
|
|
126
|
+
super(map);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export class GetApiKeyResponseBodyApiKey extends $dara.Model {
|
|
131
|
+
apiKeyValue?: string;
|
|
132
|
+
apikeyId?: string;
|
|
133
|
+
authSetModel?: GetApiKeyResponseBodyApiKeyAuthSetModel;
|
|
134
|
+
blocked?: string;
|
|
135
|
+
createTime?: number;
|
|
136
|
+
creator?: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
expireTime?: number;
|
|
139
|
+
extData?: string;
|
|
140
|
+
parentUid?: string;
|
|
141
|
+
uid?: string;
|
|
142
|
+
workspaceId?: string;
|
|
143
|
+
static names(): { [key: string]: string } {
|
|
144
|
+
return {
|
|
145
|
+
apiKeyValue: 'apiKeyValue',
|
|
146
|
+
apikeyId: 'apikeyId',
|
|
147
|
+
authSetModel: 'authSetModel',
|
|
148
|
+
blocked: 'blocked',
|
|
149
|
+
createTime: 'createTime',
|
|
150
|
+
creator: 'creator',
|
|
151
|
+
description: 'description',
|
|
152
|
+
expireTime: 'expireTime',
|
|
153
|
+
extData: 'extData',
|
|
154
|
+
parentUid: 'parentUid',
|
|
155
|
+
uid: 'uid',
|
|
156
|
+
workspaceId: 'workspaceId',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static types(): { [key: string]: any } {
|
|
161
|
+
return {
|
|
162
|
+
apiKeyValue: 'string',
|
|
163
|
+
apikeyId: 'string',
|
|
164
|
+
authSetModel: GetApiKeyResponseBodyApiKeyAuthSetModel,
|
|
165
|
+
blocked: 'string',
|
|
166
|
+
createTime: 'number',
|
|
167
|
+
creator: 'string',
|
|
168
|
+
description: 'string',
|
|
169
|
+
expireTime: 'number',
|
|
170
|
+
extData: 'string',
|
|
171
|
+
parentUid: 'string',
|
|
172
|
+
uid: 'string',
|
|
173
|
+
workspaceId: 'string',
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
validate() {
|
|
178
|
+
if(this.authSetModel && typeof (this.authSetModel as any).validate === 'function') {
|
|
179
|
+
(this.authSetModel as any).validate();
|
|
180
|
+
}
|
|
181
|
+
super.validate();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
constructor(map?: { [key: string]: any }) {
|
|
185
|
+
super(map);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export class GetApiKeyResponseBody extends $dara.Model {
|
|
190
|
+
apiKey?: GetApiKeyResponseBodyApiKey;
|
|
191
|
+
code?: string;
|
|
192
|
+
httpStatusCode?: number;
|
|
193
|
+
message?: string;
|
|
194
|
+
/**
|
|
195
|
+
* @remarks
|
|
196
|
+
* Id of the request
|
|
197
|
+
*/
|
|
198
|
+
requestId?: string;
|
|
199
|
+
success?: boolean;
|
|
200
|
+
static names(): { [key: string]: string } {
|
|
201
|
+
return {
|
|
202
|
+
apiKey: 'apiKey',
|
|
203
|
+
code: 'code',
|
|
204
|
+
httpStatusCode: 'httpStatusCode',
|
|
205
|
+
message: 'message',
|
|
206
|
+
requestId: 'requestId',
|
|
207
|
+
success: 'success',
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
static types(): { [key: string]: any } {
|
|
212
|
+
return {
|
|
213
|
+
apiKey: GetApiKeyResponseBodyApiKey,
|
|
214
|
+
code: 'string',
|
|
215
|
+
httpStatusCode: 'number',
|
|
216
|
+
message: 'string',
|
|
217
|
+
requestId: 'string',
|
|
218
|
+
success: 'boolean',
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
validate() {
|
|
223
|
+
if(this.apiKey && typeof (this.apiKey as any).validate === 'function') {
|
|
224
|
+
(this.apiKey as any).validate();
|
|
225
|
+
}
|
|
226
|
+
super.validate();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
constructor(map?: { [key: string]: any }) {
|
|
230
|
+
super(map);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListApiKeysRequest extends $dara.Model {
|
|
6
|
+
apiKeyId?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
maxResults?: number;
|
|
9
|
+
nextToken?: string;
|
|
10
|
+
skip?: number;
|
|
11
|
+
uid?: string;
|
|
12
|
+
workspaceId?: string;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
apiKeyId: 'apiKeyId',
|
|
16
|
+
description: 'description',
|
|
17
|
+
maxResults: 'maxResults',
|
|
18
|
+
nextToken: 'nextToken',
|
|
19
|
+
skip: 'skip',
|
|
20
|
+
uid: 'uid',
|
|
21
|
+
workspaceId: 'workspaceId',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
apiKeyId: 'string',
|
|
28
|
+
description: 'string',
|
|
29
|
+
maxResults: 'number',
|
|
30
|
+
nextToken: 'string',
|
|
31
|
+
skip: 'number',
|
|
32
|
+
uid: 'string',
|
|
33
|
+
workspaceId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListApiKeysResponseBody } from "./ListApiKeysResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListApiKeysResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListApiKeysResponseBody;
|
|
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: ListApiKeysResponseBody,
|
|
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,118 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListApiKeysResponseBodyApiKeys extends $dara.Model {
|
|
6
|
+
apiKeyValue?: string;
|
|
7
|
+
apikeyId?: string;
|
|
8
|
+
blocked?: number;
|
|
9
|
+
createTime?: number;
|
|
10
|
+
creator?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
expireTime?: number;
|
|
13
|
+
extData?: string;
|
|
14
|
+
parentUid?: string;
|
|
15
|
+
type?: number;
|
|
16
|
+
uid?: string;
|
|
17
|
+
workspaceId?: string;
|
|
18
|
+
static names(): { [key: string]: string } {
|
|
19
|
+
return {
|
|
20
|
+
apiKeyValue: 'apiKeyValue',
|
|
21
|
+
apikeyId: 'apikeyId',
|
|
22
|
+
blocked: 'blocked',
|
|
23
|
+
createTime: 'createTime',
|
|
24
|
+
creator: 'creator',
|
|
25
|
+
description: 'description',
|
|
26
|
+
expireTime: 'expireTime',
|
|
27
|
+
extData: 'extData',
|
|
28
|
+
parentUid: 'parentUid',
|
|
29
|
+
type: 'type',
|
|
30
|
+
uid: 'uid',
|
|
31
|
+
workspaceId: 'workspaceId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
apiKeyValue: 'string',
|
|
38
|
+
apikeyId: 'string',
|
|
39
|
+
blocked: 'number',
|
|
40
|
+
createTime: 'number',
|
|
41
|
+
creator: 'string',
|
|
42
|
+
description: 'string',
|
|
43
|
+
expireTime: 'number',
|
|
44
|
+
extData: 'string',
|
|
45
|
+
parentUid: 'string',
|
|
46
|
+
type: 'number',
|
|
47
|
+
uid: 'string',
|
|
48
|
+
workspaceId: 'string',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
constructor(map?: { [key: string]: any }) {
|
|
57
|
+
super(map);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export class ListApiKeysResponseBody extends $dara.Model {
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* apiKey
|
|
65
|
+
*/
|
|
66
|
+
apiKeys?: ListApiKeysResponseBodyApiKeys[];
|
|
67
|
+
code?: string;
|
|
68
|
+
httpStatusCode?: number;
|
|
69
|
+
maxResults?: number;
|
|
70
|
+
message?: string;
|
|
71
|
+
nextToken?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* Id of the request
|
|
75
|
+
*/
|
|
76
|
+
requestId?: string;
|
|
77
|
+
success?: boolean;
|
|
78
|
+
totalCount?: number;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
apiKeys: 'apiKeys',
|
|
82
|
+
code: 'code',
|
|
83
|
+
httpStatusCode: 'httpStatusCode',
|
|
84
|
+
maxResults: 'maxResults',
|
|
85
|
+
message: 'message',
|
|
86
|
+
nextToken: 'nextToken',
|
|
87
|
+
requestId: 'requestId',
|
|
88
|
+
success: 'success',
|
|
89
|
+
totalCount: 'totalCount',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
apiKeys: { 'type': 'array', 'itemType': ListApiKeysResponseBodyApiKeys },
|
|
96
|
+
code: 'string',
|
|
97
|
+
httpStatusCode: 'number',
|
|
98
|
+
maxResults: 'number',
|
|
99
|
+
message: 'string',
|
|
100
|
+
nextToken: 'string',
|
|
101
|
+
requestId: 'string',
|
|
102
|
+
success: 'boolean',
|
|
103
|
+
totalCount: 'number',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
validate() {
|
|
108
|
+
if(Array.isArray(this.apiKeys)) {
|
|
109
|
+
$dara.Model.validateArray(this.apiKeys);
|
|
110
|
+
}
|
|
111
|
+
super.validate();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
constructor(map?: { [key: string]: any }) {
|
|
115
|
+
super(map);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure } from './GetApiKeyResponseBody';
|
|
2
|
+
export { GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure } from './GetApiKeyResponseBody';
|
|
3
|
+
export { GetApiKeyResponseBodyApiKeyAuthSetModel } from './GetApiKeyResponseBody';
|
|
4
|
+
export { GetApiKeyResponseBodyApiKey } from './GetApiKeyResponseBody';
|
|
5
|
+
export { ListApiKeysResponseBodyApiKeys } from './ListApiKeysResponseBody';
|
|
6
|
+
export { GetApiKeyRequest } from './GetApiKeyRequest';
|
|
7
|
+
export { GetApiKeyResponseBody } from './GetApiKeyResponseBody';
|
|
8
|
+
export { GetApiKeyResponse } from './GetApiKeyResponse';
|
|
9
|
+
export { ListApiKeysRequest } from './ListApiKeysRequest';
|
|
10
|
+
export { ListApiKeysResponseBody } from './ListApiKeysResponseBody';
|
|
11
|
+
export { ListApiKeysResponse } from './ListApiKeysResponse';
|