@alicloud/appstream-center20210218 1.0.1 → 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 -66
  2. package/dist/client.js +164 -107
  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 +140 -118
  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
@@ -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
+
@@ -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 GetStsTokenRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * Alex
9
+ */
10
+ endUserId?: string;
11
+ /**
12
+ * @example
13
+ * 600
14
+ */
15
+ expiration?: number;
16
+ /**
17
+ * @example
18
+ * Alex
19
+ */
20
+ externalId?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ endUserId: 'EndUserId',
24
+ expiration: 'Expiration',
25
+ externalId: 'ExternalId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ endUserId: 'string',
32
+ expiration: 'number',
33
+ externalId: '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 { GetStsTokenResponseBody } from "./GetStsTokenResponseBody";
4
+
5
+
6
+ export class GetStsTokenResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetStsTokenResponseBody;
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: GetStsTokenResponseBody,
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,85 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 105552640689****
9
+ */
10
+ aliUid?: number;
11
+ /**
12
+ * @example
13
+ * be4be09e-cd00-4b4c-add7-11b4d8****
14
+ */
15
+ sessionId?: string;
16
+ /**
17
+ * @example
18
+ * sts****
19
+ */
20
+ stsToken?: string;
21
+ /**
22
+ * @example
23
+ * 105552640689****
24
+ */
25
+ tenantId?: number;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ aliUid: 'AliUid',
29
+ sessionId: 'SessionId',
30
+ stsToken: 'StsToken',
31
+ tenantId: 'TenantId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ aliUid: 'number',
38
+ sessionId: 'string',
39
+ stsToken: 'string',
40
+ tenantId: 'number',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class GetStsTokenResponseBody extends $dara.Model {
54
+ /**
55
+ * @example
56
+ * CCF92035-6231-5ABB-930E-1E003C32****
57
+ */
58
+ requestId?: string;
59
+ stsTokenModel?: GetStsTokenResponseBodyStsTokenModel;
60
+ static names(): { [key: string]: string } {
61
+ return {
62
+ requestId: 'RequestId',
63
+ stsTokenModel: 'StsTokenModel',
64
+ };
65
+ }
66
+
67
+ static types(): { [key: string]: any } {
68
+ return {
69
+ requestId: 'string',
70
+ stsTokenModel: GetStsTokenResponseBodyStsTokenModel,
71
+ };
72
+ }
73
+
74
+ validate() {
75
+ if(this.stsTokenModel && typeof (this.stsTokenModel as any).validate === 'function') {
76
+ (this.stsTokenModel as any).validate();
77
+ }
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
@@ -0,0 +1,11 @@
1
+ export { GetAuthCodeResponseBodyAuthModel } from './GetAuthCodeResponseBody';
2
+ export { GetStsTokenResponseBodyStsTokenModel } from './GetStsTokenResponseBody';
3
+ export { ExpireLoginTokenRequest } from './ExpireLoginTokenRequest';
4
+ export { ExpireLoginTokenResponseBody } from './ExpireLoginTokenResponseBody';
5
+ export { ExpireLoginTokenResponse } from './ExpireLoginTokenResponse';
6
+ export { GetAuthCodeRequest } from './GetAuthCodeRequest';
7
+ export { GetAuthCodeResponseBody } from './GetAuthCodeResponseBody';
8
+ export { GetAuthCodeResponse } from './GetAuthCodeResponse';
9
+ export { GetStsTokenRequest } from './GetStsTokenRequest';
10
+ export { GetStsTokenResponseBody } from './GetStsTokenResponseBody';
11
+ export { GetStsTokenResponse } from './GetStsTokenResponse';