@alicloud/appstream-center20210218 1.0.4 → 1.1.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 (45) hide show
  1. package/dist/client.d.ts +51 -112
  2. package/dist/client.js +138 -179
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ExpireLoginTokenRequest.d.ts +42 -0
  5. package/dist/models/ExpireLoginTokenRequest.js +64 -0
  6. package/dist/models/ExpireLoginTokenRequest.js.map +1 -0
  7. package/dist/models/ExpireLoginTokenResponse.d.ts +19 -0
  8. package/dist/models/ExpireLoginTokenResponse.js +69 -0
  9. package/dist/models/ExpireLoginTokenResponse.js.map +1 -0
  10. package/dist/models/ExpireLoginTokenResponseBody.d.ts +18 -0
  11. package/dist/models/ExpireLoginTokenResponseBody.js +58 -0
  12. package/dist/models/ExpireLoginTokenResponseBody.js.map +1 -0
  13. package/dist/models/GetAuthCodeRequest.d.ts +35 -0
  14. package/dist/models/GetAuthCodeRequest.js +64 -0
  15. package/dist/models/GetAuthCodeRequest.js.map +1 -0
  16. package/dist/models/GetAuthCodeResponse.d.ts +19 -0
  17. package/dist/models/GetAuthCodeResponse.js +69 -0
  18. package/dist/models/GetAuthCodeResponse.js.map +1 -0
  19. package/dist/models/GetAuthCodeResponseBody.d.ts +48 -0
  20. package/dist/models/GetAuthCodeResponseBody.js +88 -0
  21. package/dist/models/GetAuthCodeResponseBody.js.map +1 -0
  22. package/dist/models/GetStsTokenRequest.d.ts +28 -0
  23. package/dist/models/GetStsTokenRequest.js +62 -0
  24. package/dist/models/GetStsTokenRequest.js.map +1 -0
  25. package/dist/models/GetStsTokenResponse.d.ts +19 -0
  26. package/dist/models/GetStsTokenResponse.js +69 -0
  27. package/dist/models/GetStsTokenResponse.js.map +1 -0
  28. package/dist/models/GetStsTokenResponseBody.d.ts +51 -0
  29. package/dist/models/GetStsTokenResponseBody.js +88 -0
  30. package/dist/models/GetStsTokenResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +11 -0
  32. package/dist/models/model.js +26 -0
  33. package/dist/models/model.js.map +1 -0
  34. package/package.json +7 -10
  35. package/src/client.ts +107 -205
  36. package/src/models/ExpireLoginTokenRequest.ts +61 -0
  37. package/src/models/ExpireLoginTokenResponse.ts +40 -0
  38. package/src/models/ExpireLoginTokenResponseBody.ts +31 -0
  39. package/src/models/GetAuthCodeRequest.ts +54 -0
  40. package/src/models/GetAuthCodeResponse.ts +40 -0
  41. package/src/models/GetAuthCodeResponseBody.ts +80 -0
  42. package/src/models/GetStsTokenRequest.ts +45 -0
  43. package/src/models/GetStsTokenResponse.ts +40 -0
  44. package/src/models/GetStsTokenResponseBody.ts +85 -0
  45. package/src/models/model.ts +11 -0
package/src/client.ts CHANGED
@@ -1,189 +1,15 @@
1
1
  // This file is auto-generated, don't edit it
2
- /**
3
- *
4
- */
5
- import Util, * as $Util from '@alicloud/tea-util';
6
- import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
7
- import OpenApiUtil from '@alicloud/openapi-util';
8
- import EndpointUtil from '@alicloud/endpoint-util';
9
- import * as $tea from '@alicloud/tea-typescript';
2
+ import * as $dara from '@darabonba/typescript';
3
+ import OpenApi from '@alicloud/openapi-core';
4
+ import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
10
5
 
11
- export class ExpireLoginTokenRequest extends $tea.Model {
12
- endUserId?: string;
13
- loginToken?: string;
14
- officeSiteId?: string;
15
- sessionId?: string;
16
- static names(): { [key: string]: string } {
17
- return {
18
- endUserId: 'EndUserId',
19
- loginToken: 'LoginToken',
20
- officeSiteId: 'OfficeSiteId',
21
- sessionId: 'SessionId',
22
- };
23
- }
24
-
25
- static types(): { [key: string]: any } {
26
- return {
27
- endUserId: 'string',
28
- loginToken: 'string',
29
- officeSiteId: 'string',
30
- sessionId: 'string',
31
- };
32
- }
33
-
34
- constructor(map?: { [key: string]: any }) {
35
- super(map);
36
- }
37
- }
38
-
39
- export class ExpireLoginTokenResponseBody extends $tea.Model {
40
- requestId?: string;
41
- static names(): { [key: string]: string } {
42
- return {
43
- requestId: 'RequestId',
44
- };
45
- }
46
-
47
- static types(): { [key: string]: any } {
48
- return {
49
- requestId: 'string',
50
- };
51
- }
52
-
53
- constructor(map?: { [key: string]: any }) {
54
- super(map);
55
- }
56
- }
57
-
58
- export class ExpireLoginTokenResponse extends $tea.Model {
59
- headers: { [key: string]: string };
60
- statusCode: number;
61
- body: ExpireLoginTokenResponseBody;
62
- static names(): { [key: string]: string } {
63
- return {
64
- headers: 'headers',
65
- statusCode: 'statusCode',
66
- body: 'body',
67
- };
68
- }
69
-
70
- static types(): { [key: string]: any } {
71
- return {
72
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
73
- statusCode: 'number',
74
- body: ExpireLoginTokenResponseBody,
75
- };
76
- }
77
-
78
- constructor(map?: { [key: string]: any }) {
79
- super(map);
80
- }
81
- }
82
-
83
- export class GetAuthCodeRequest extends $tea.Model {
84
- autoCreateUser?: boolean;
85
- endUserId?: string;
86
- externalUserId?: string;
87
- policy?: string;
88
- static names(): { [key: string]: string } {
89
- return {
90
- autoCreateUser: 'AutoCreateUser',
91
- endUserId: 'EndUserId',
92
- externalUserId: 'ExternalUserId',
93
- policy: 'Policy',
94
- };
95
- }
96
-
97
- static types(): { [key: string]: any } {
98
- return {
99
- autoCreateUser: 'boolean',
100
- endUserId: 'string',
101
- externalUserId: 'string',
102
- policy: 'string',
103
- };
104
- }
105
-
106
- constructor(map?: { [key: string]: any }) {
107
- super(map);
108
- }
109
- }
110
-
111
- export class GetAuthCodeResponseBody extends $tea.Model {
112
- authModel?: GetAuthCodeResponseBodyAuthModel;
113
- requestId?: string;
114
- static names(): { [key: string]: string } {
115
- return {
116
- authModel: 'AuthModel',
117
- requestId: 'RequestId',
118
- };
119
- }
120
-
121
- static types(): { [key: string]: any } {
122
- return {
123
- authModel: GetAuthCodeResponseBodyAuthModel,
124
- requestId: 'string',
125
- };
126
- }
127
-
128
- constructor(map?: { [key: string]: any }) {
129
- super(map);
130
- }
131
- }
132
-
133
- export class GetAuthCodeResponse extends $tea.Model {
134
- headers: { [key: string]: string };
135
- statusCode: number;
136
- body: GetAuthCodeResponseBody;
137
- static names(): { [key: string]: string } {
138
- return {
139
- headers: 'headers',
140
- statusCode: 'statusCode',
141
- body: 'body',
142
- };
143
- }
144
-
145
- static types(): { [key: string]: any } {
146
- return {
147
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
148
- statusCode: 'number',
149
- body: GetAuthCodeResponseBody,
150
- };
151
- }
152
-
153
- constructor(map?: { [key: string]: any }) {
154
- super(map);
155
- }
156
- }
157
-
158
- export class GetAuthCodeResponseBodyAuthModel extends $tea.Model {
159
- authCode?: string;
160
- endUserId?: string;
161
- expireTime?: string;
162
- static names(): { [key: string]: string } {
163
- return {
164
- authCode: 'AuthCode',
165
- endUserId: 'EndUserId',
166
- expireTime: 'ExpireTime',
167
- };
168
- }
169
-
170
- static types(): { [key: string]: any } {
171
- return {
172
- authCode: 'string',
173
- endUserId: 'string',
174
- expireTime: 'string',
175
- };
176
- }
177
-
178
- constructor(map?: { [key: string]: any }) {
179
- super(map);
180
- }
181
- }
182
6
 
7
+ import * as $_model from './models/model';
8
+ export * from './models/model';
183
9
 
184
10
  export default class Client extends OpenApi {
185
11
 
186
- constructor(config: $OpenApi.Config) {
12
+ constructor(config: $OpenApiUtil.Config) {
187
13
  super(config);
188
14
  this._endpointRule = "";
189
15
  this.checkConfig(config);
@@ -192,40 +18,47 @@ export default class Client extends OpenApi {
192
18
 
193
19
 
194
20
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
195
- if (!Util.empty(endpoint)) {
21
+ if (!$dara.isNull(endpoint)) {
196
22
  return endpoint;
197
23
  }
198
24
 
199
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
25
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
200
26
  return endpointMap[regionId];
201
27
  }
202
28
 
203
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
29
+ return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
204
30
  }
205
31
 
206
- async expireLoginTokenWithOptions(request: ExpireLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<ExpireLoginTokenResponse> {
207
- Util.validateModel(request);
32
+ /**
33
+ * 登录token主动失效
34
+ *
35
+ * @param request - ExpireLoginTokenRequest
36
+ * @param runtime - runtime options for this request RuntimeOptions
37
+ * @returns ExpireLoginTokenResponse
38
+ */
39
+ async expireLoginTokenWithOptions(request: $_model.ExpireLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ExpireLoginTokenResponse> {
40
+ request.validate();
208
41
  let body : {[key: string ]: any} = { };
209
- if (!Util.isUnset(request.endUserId)) {
42
+ if (!$dara.isNull(request.endUserId)) {
210
43
  body["EndUserId"] = request.endUserId;
211
44
  }
212
45
 
213
- if (!Util.isUnset(request.loginToken)) {
46
+ if (!$dara.isNull(request.loginToken)) {
214
47
  body["LoginToken"] = request.loginToken;
215
48
  }
216
49
 
217
- if (!Util.isUnset(request.officeSiteId)) {
50
+ if (!$dara.isNull(request.officeSiteId)) {
218
51
  body["OfficeSiteId"] = request.officeSiteId;
219
52
  }
220
53
 
221
- if (!Util.isUnset(request.sessionId)) {
54
+ if (!$dara.isNull(request.sessionId)) {
222
55
  body["SessionId"] = request.sessionId;
223
56
  }
224
57
 
225
- let req = new $OpenApi.OpenApiRequest({
58
+ let req = new $OpenApiUtil.OpenApiRequest({
226
59
  body: OpenApiUtil.parseToMap(body),
227
60
  });
228
- let params = new $OpenApi.Params({
61
+ let params = new $OpenApiUtil.Params({
229
62
  action: "ExpireLoginToken",
230
63
  version: "2021-02-18",
231
64
  protocol: "HTTPS",
@@ -236,37 +69,50 @@ export default class Client extends OpenApi {
236
69
  reqBodyType: "formData",
237
70
  bodyType: "json",
238
71
  });
239
- return $tea.cast<ExpireLoginTokenResponse>(await this.callApi(params, req, runtime), new ExpireLoginTokenResponse({}));
72
+ return $dara.cast<$_model.ExpireLoginTokenResponse>(await this.callApi(params, req, runtime), new $_model.ExpireLoginTokenResponse({}));
240
73
  }
241
74
 
242
- async expireLoginToken(request: ExpireLoginTokenRequest): Promise<ExpireLoginTokenResponse> {
243
- let runtime = new $Util.RuntimeOptions({ });
75
+ /**
76
+ * 登录token主动失效
77
+ *
78
+ * @param request - ExpireLoginTokenRequest
79
+ * @returns ExpireLoginTokenResponse
80
+ */
81
+ async expireLoginToken(request: $_model.ExpireLoginTokenRequest): Promise<$_model.ExpireLoginTokenResponse> {
82
+ let runtime = new $dara.RuntimeOptions({ });
244
83
  return await this.expireLoginTokenWithOptions(request, runtime);
245
84
  }
246
85
 
247
- async getAuthCodeWithOptions(request: GetAuthCodeRequest, runtime: $Util.RuntimeOptions): Promise<GetAuthCodeResponse> {
248
- Util.validateModel(request);
86
+ /**
87
+ * 获取授权码
88
+ *
89
+ * @param request - GetAuthCodeRequest
90
+ * @param runtime - runtime options for this request RuntimeOptions
91
+ * @returns GetAuthCodeResponse
92
+ */
93
+ async getAuthCodeWithOptions(request: $_model.GetAuthCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuthCodeResponse> {
94
+ request.validate();
249
95
  let body : {[key: string ]: any} = { };
250
- if (!Util.isUnset(request.autoCreateUser)) {
96
+ if (!$dara.isNull(request.autoCreateUser)) {
251
97
  body["AutoCreateUser"] = request.autoCreateUser;
252
98
  }
253
99
 
254
- if (!Util.isUnset(request.endUserId)) {
100
+ if (!$dara.isNull(request.endUserId)) {
255
101
  body["EndUserId"] = request.endUserId;
256
102
  }
257
103
 
258
- if (!Util.isUnset(request.externalUserId)) {
104
+ if (!$dara.isNull(request.externalUserId)) {
259
105
  body["ExternalUserId"] = request.externalUserId;
260
106
  }
261
107
 
262
- if (!Util.isUnset(request.policy)) {
108
+ if (!$dara.isNull(request.policy)) {
263
109
  body["Policy"] = request.policy;
264
110
  }
265
111
 
266
- let req = new $OpenApi.OpenApiRequest({
112
+ let req = new $OpenApiUtil.OpenApiRequest({
267
113
  body: OpenApiUtil.parseToMap(body),
268
114
  });
269
- let params = new $OpenApi.Params({
115
+ let params = new $OpenApiUtil.Params({
270
116
  action: "GetAuthCode",
271
117
  version: "2021-02-18",
272
118
  protocol: "HTTPS",
@@ -277,12 +123,68 @@ export default class Client extends OpenApi {
277
123
  reqBodyType: "formData",
278
124
  bodyType: "json",
279
125
  });
280
- return $tea.cast<GetAuthCodeResponse>(await this.callApi(params, req, runtime), new GetAuthCodeResponse({}));
126
+ return $dara.cast<$_model.GetAuthCodeResponse>(await this.callApi(params, req, runtime), new $_model.GetAuthCodeResponse({}));
281
127
  }
282
128
 
283
- async getAuthCode(request: GetAuthCodeRequest): Promise<GetAuthCodeResponse> {
284
- let runtime = new $Util.RuntimeOptions({ });
129
+ /**
130
+ * 获取授权码
131
+ *
132
+ * @param request - GetAuthCodeRequest
133
+ * @returns GetAuthCodeResponse
134
+ */
135
+ async getAuthCode(request: $_model.GetAuthCodeRequest): Promise<$_model.GetAuthCodeResponse> {
136
+ let runtime = new $dara.RuntimeOptions({ });
285
137
  return await this.getAuthCodeWithOptions(request, runtime);
286
138
  }
287
139
 
140
+ /**
141
+ * 获取stsToken
142
+ *
143
+ * @param request - GetStsTokenRequest
144
+ * @param runtime - runtime options for this request RuntimeOptions
145
+ * @returns GetStsTokenResponse
146
+ */
147
+ async getStsTokenWithOptions(request: $_model.GetStsTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetStsTokenResponse> {
148
+ request.validate();
149
+ let body : {[key: string ]: any} = { };
150
+ if (!$dara.isNull(request.endUserId)) {
151
+ body["EndUserId"] = request.endUserId;
152
+ }
153
+
154
+ if (!$dara.isNull(request.expiration)) {
155
+ body["Expiration"] = request.expiration;
156
+ }
157
+
158
+ if (!$dara.isNull(request.externalId)) {
159
+ body["ExternalId"] = request.externalId;
160
+ }
161
+
162
+ let req = new $OpenApiUtil.OpenApiRequest({
163
+ body: OpenApiUtil.parseToMap(body),
164
+ });
165
+ let params = new $OpenApiUtil.Params({
166
+ action: "GetStsToken",
167
+ version: "2021-02-18",
168
+ protocol: "HTTPS",
169
+ pathname: "/",
170
+ method: "POST",
171
+ authType: "AK",
172
+ style: "RPC",
173
+ reqBodyType: "formData",
174
+ bodyType: "json",
175
+ });
176
+ return $dara.cast<$_model.GetStsTokenResponse>(await this.callApi(params, req, runtime), new $_model.GetStsTokenResponse({}));
177
+ }
178
+
179
+ /**
180
+ * 获取stsToken
181
+ *
182
+ * @param request - GetStsTokenRequest
183
+ * @returns GetStsTokenResponse
184
+ */
185
+ async getStsToken(request: $_model.GetStsTokenRequest): Promise<$_model.GetStsTokenResponse> {
186
+ let runtime = new $dara.RuntimeOptions({ });
187
+ return await this.getStsTokenWithOptions(request, runtime);
188
+ }
189
+
288
190
  }
@@ -0,0 +1,61 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ExpireLoginTokenRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * testuser
12
+ */
13
+ endUserId?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * v185fdd7f6d39fa7861981639366085772e150a390a5bb7b43c4e62440d94fc392b945770e1596cebe90085ce0af4d****
20
+ */
21
+ loginToken?: string;
22
+ /**
23
+ * @example
24
+ * cn-beijing+dir-172301****
25
+ */
26
+ officeSiteId?: string;
27
+ /**
28
+ * @remarks
29
+ * This parameter is required.
30
+ *
31
+ * @example
32
+ * a863f4c3-2f1d-4971-8cf7-e2b92ae9****
33
+ */
34
+ sessionId?: string;
35
+ static names(): { [key: string]: string } {
36
+ return {
37
+ endUserId: 'EndUserId',
38
+ loginToken: 'LoginToken',
39
+ officeSiteId: 'OfficeSiteId',
40
+ sessionId: 'SessionId',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ endUserId: 'string',
47
+ loginToken: 'string',
48
+ officeSiteId: 'string',
49
+ sessionId: 'string',
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ExpireLoginTokenResponseBody } from "./ExpireLoginTokenResponseBody";
4
+
5
+
6
+ export class ExpireLoginTokenResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ExpireLoginTokenResponseBody;
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: ExpireLoginTokenResponseBody,
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,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ExpireLoginTokenResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'RequestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetAuthCodeRequest extends $dara.Model {
6
+ autoCreateUser?: boolean;
7
+ /**
8
+ * @example
9
+ * alice
10
+ */
11
+ endUserId?: string;
12
+ /**
13
+ * @example
14
+ * alice
15
+ */
16
+ externalUserId?: string;
17
+ /**
18
+ * @example
19
+ * {
20
+ * "Version": "1",
21
+ * "Resource": {
22
+ * "Type": "AppInstanceGroup",
23
+ * "Id": "aig-9ciijz60n4xsv****"
24
+ * }
25
+ * }
26
+ */
27
+ policy?: string;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ autoCreateUser: 'AutoCreateUser',
31
+ endUserId: 'EndUserId',
32
+ externalUserId: 'ExternalUserId',
33
+ policy: 'Policy',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ autoCreateUser: 'boolean',
40
+ endUserId: 'string',
41
+ externalUserId: 'string',
42
+ policy: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetAuthCodeResponseBody } from "./GetAuthCodeResponseBody";
4
+
5
+
6
+ export class GetAuthCodeResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetAuthCodeResponseBody;
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: GetAuthCodeResponseBody,
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,80 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ /**
6
+ */
7
+ export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
8
+ /**
9
+ * @example
10
+ * acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
11
+ */
12
+ authCode?: string;
13
+ /**
14
+ * @example
15
+ * alice
16
+ */
17
+ endUserId?: string;
18
+ /**
19
+ * @example
20
+ * 2015-01-23T12:33:18Z
21
+ */
22
+ expireTime?: string;
23
+ static names(): { [key: string]: string } {
24
+ return {
25
+ authCode: 'AuthCode',
26
+ endUserId: 'EndUserId',
27
+ expireTime: 'ExpireTime',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ authCode: 'string',
34
+ endUserId: 'string',
35
+ expireTime: 'string',
36
+ };
37
+ }
38
+
39
+ validate() {
40
+ super.validate();
41
+ }
42
+
43
+ constructor(map?: { [key: string]: any }) {
44
+ super(map);
45
+ }
46
+ }
47
+
48
+ export class GetAuthCodeResponseBody extends $dara.Model {
49
+ authModel?: GetAuthCodeResponseBodyAuthModel;
50
+ /**
51
+ * @example
52
+ * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
53
+ */
54
+ requestId?: string;
55
+ static names(): { [key: string]: string } {
56
+ return {
57
+ authModel: 'AuthModel',
58
+ requestId: 'RequestId',
59
+ };
60
+ }
61
+
62
+ static types(): { [key: string]: any } {
63
+ return {
64
+ authModel: GetAuthCodeResponseBodyAuthModel,
65
+ requestId: 'string',
66
+ };
67
+ }
68
+
69
+ validate() {
70
+ if(this.authModel && typeof (this.authModel as any).validate === 'function') {
71
+ (this.authModel as any).validate();
72
+ }
73
+ super.validate();
74
+ }
75
+
76
+ constructor(map?: { [key: string]: any }) {
77
+ super(map);
78
+ }
79
+ }
80
+