@alicloud/appstream-center20210218 1.1.2 → 1.2.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 (58) hide show
  1. package/dist/client.d.ts +66 -6
  2. package/dist/client.js +146 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateThirdAppAccessTokenRequest.d.ts +74 -0
  5. package/dist/models/CreateThirdAppAccessTokenRequest.js +90 -0
  6. package/dist/models/CreateThirdAppAccessTokenRequest.js.map +1 -0
  7. package/dist/models/CreateThirdAppAccessTokenResponse.d.ts +19 -0
  8. package/dist/models/CreateThirdAppAccessTokenResponse.js +69 -0
  9. package/dist/models/CreateThirdAppAccessTokenResponse.js.map +1 -0
  10. package/dist/models/CreateThirdAppAccessTokenResponseBody.d.ts +37 -0
  11. package/dist/models/CreateThirdAppAccessTokenResponseBody.js +62 -0
  12. package/dist/models/CreateThirdAppAccessTokenResponseBody.js.map +1 -0
  13. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.d.ts +44 -0
  14. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js +64 -0
  15. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js.map +1 -0
  16. package/dist/models/ExpireLoginTokenRequest.d.ts +1 -1
  17. package/dist/models/ExpireLoginTokenResponseBody.d.ts +1 -1
  18. package/dist/models/GetAuthCodeRequest.d.ts +38 -9
  19. package/dist/models/GetAuthCodeRequest.js +2 -0
  20. package/dist/models/GetAuthCodeRequest.js.map +1 -1
  21. package/dist/models/GetAuthCodeResponseBody.d.ts +3 -5
  22. package/dist/models/GetAuthCodeResponseBody.js +0 -2
  23. package/dist/models/GetAuthCodeResponseBody.js.map +1 -1
  24. package/dist/models/GetLatestThirdAppAccessTokenRequest.d.ts +64 -0
  25. package/dist/models/GetLatestThirdAppAccessTokenRequest.js +86 -0
  26. package/dist/models/GetLatestThirdAppAccessTokenRequest.js.map +1 -0
  27. package/dist/models/GetLatestThirdAppAccessTokenResponse.d.ts +19 -0
  28. package/dist/models/GetLatestThirdAppAccessTokenResponse.js +69 -0
  29. package/dist/models/GetLatestThirdAppAccessTokenResponse.js.map +1 -0
  30. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.d.ts +37 -0
  31. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js +62 -0
  32. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js.map +1 -0
  33. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.d.ts +36 -0
  34. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js +62 -0
  35. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js.map +1 -0
  36. package/dist/models/GetStsTokenRequest.d.ts +5 -4
  37. package/dist/models/GetStsTokenRequest.js.map +1 -1
  38. package/dist/models/GetStsTokenResponseBody.d.ts +4 -4
  39. package/dist/models/model.d.ts +10 -0
  40. package/dist/models/model.js +21 -1
  41. package/dist/models/model.js.map +1 -1
  42. package/package.json +3 -2
  43. package/src/client.ts +160 -10
  44. package/src/models/CreateThirdAppAccessTokenRequest.ts +108 -0
  45. package/src/models/CreateThirdAppAccessTokenResponse.ts +40 -0
  46. package/src/models/CreateThirdAppAccessTokenResponseBody.ts +54 -0
  47. package/src/models/CreateThirdAppAccessTokenShrinkRequest.ts +63 -0
  48. package/src/models/ExpireLoginTokenRequest.ts +1 -1
  49. package/src/models/ExpireLoginTokenResponseBody.ts +1 -1
  50. package/src/models/GetAuthCodeRequest.ts +40 -9
  51. package/src/models/GetAuthCodeResponseBody.ts +3 -5
  52. package/src/models/GetLatestThirdAppAccessTokenRequest.ts +96 -0
  53. package/src/models/GetLatestThirdAppAccessTokenResponse.ts +40 -0
  54. package/src/models/GetLatestThirdAppAccessTokenResponseBody.ts +54 -0
  55. package/src/models/GetLatestThirdAppAccessTokenShrinkRequest.ts +53 -0
  56. package/src/models/GetStsTokenRequest.ts +5 -4
  57. package/src/models/GetStsTokenResponseBody.ts +4 -4
  58. package/src/models/model.ts +10 -0
@@ -0,0 +1,108 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ /**
6
+ */
7
+ export class CreateThirdAppAccessTokenRequestResource extends $dara.Model {
8
+ /**
9
+ * @remarks
10
+ * The ID of the target cloud desktop. You must provide a non-empty value when you call this operation. Asterisks (*) are not allowed. The cloud desktop must be authorized to the user specified by AuthorizerId.
11
+ *
12
+ * @example
13
+ * ecd-7a8b9c0d****
14
+ */
15
+ resourceId?: string;
16
+ /**
17
+ * @remarks
18
+ * The resource type. This parameter is required when you call this operation. Set the value to DESKTOP, which indicates a cloud desktop. The value is case-insensitive.
19
+ *
20
+ * @example
21
+ * DESKTOP
22
+ */
23
+ resourceType?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ resourceId: 'ResourceId',
27
+ resourceType: 'ResourceType',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ resourceId: 'string',
34
+ resourceType: 'string',
35
+ };
36
+ }
37
+
38
+ validate() {
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
47
+ export class CreateThirdAppAccessTokenRequest extends $dara.Model {
48
+ /**
49
+ * @remarks
50
+ * The WyId of the authorized user. The user must belong to the current calling account. This parameter is not the username.
51
+ *
52
+ * This parameter is required.
53
+ *
54
+ * @example
55
+ * f1e2d3c4b5a6****
56
+ */
57
+ authorizerId?: string;
58
+ /**
59
+ * @remarks
60
+ * The business channel. Valid values: Enterprise and Business. The value is case-insensitive. If omitted, the default value is Enterprise. If an empty string or other values are explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
61
+ *
62
+ * @example
63
+ * Enterprise
64
+ */
65
+ businessChannel?: string;
66
+ /**
67
+ * @remarks
68
+ * The validity period of the token, in seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported, and 0 cannot be passed.
69
+ *
70
+ * @example
71
+ * 900
72
+ */
73
+ expiration?: number;
74
+ /**
75
+ * @remarks
76
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when you call this operation. Pass this parameter as a JSON object and specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
77
+ */
78
+ resource?: CreateThirdAppAccessTokenRequestResource;
79
+ static names(): { [key: string]: string } {
80
+ return {
81
+ authorizerId: 'AuthorizerId',
82
+ businessChannel: 'BusinessChannel',
83
+ expiration: 'Expiration',
84
+ resource: 'Resource',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ authorizerId: 'string',
91
+ businessChannel: 'string',
92
+ expiration: 'number',
93
+ resource: CreateThirdAppAccessTokenRequestResource,
94
+ };
95
+ }
96
+
97
+ validate() {
98
+ if(this.resource && typeof (this.resource as any).validate === 'function') {
99
+ (this.resource as any).validate();
100
+ }
101
+ super.validate();
102
+ }
103
+
104
+ constructor(map?: { [key: string]: any }) {
105
+ super(map);
106
+ }
107
+ }
108
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateThirdAppAccessTokenResponseBody } from "./CreateThirdAppAccessTokenResponseBody";
4
+
5
+
6
+ export class CreateThirdAppAccessTokenResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateThirdAppAccessTokenResponseBody;
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: CreateThirdAppAccessTokenResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateThirdAppAccessTokenResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The time-limited static access token created for the specified user and single cloud desktop. This is a sensitive credential. Do not log or expose the full value.
9
+ *
10
+ * @example
11
+ * taatv1.v2****
12
+ */
13
+ accessToken?: string;
14
+ /**
15
+ * @remarks
16
+ * The absolute expiration time of the token, in UNIX milliseconds. This parameter is not empty when the call is successful. GetLatestThirdAppAccessToken returns the original expiration time without extending it.
17
+ *
18
+ * @example
19
+ * 1795450500000
20
+ */
21
+ expiresAt?: number;
22
+ /**
23
+ * @remarks
24
+ * The unique identifier of the request, which can be used to locate and troubleshoot issues.
25
+ *
26
+ * @example
27
+ * 6DAB2D15-7345-4C33-9D77-48A1A756B9E1
28
+ */
29
+ requestId?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ accessToken: 'AccessToken',
33
+ expiresAt: 'ExpiresAt',
34
+ requestId: 'RequestId',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ accessToken: 'string',
41
+ expiresAt: 'number',
42
+ requestId: '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,63 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateThirdAppAccessTokenShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The WyId of the authorized user. The user must belong to the current calling account. This parameter is not the username.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * f1e2d3c4b5a6****
14
+ */
15
+ authorizerId?: string;
16
+ /**
17
+ * @remarks
18
+ * The business channel. Valid values: Enterprise and Business. The value is case-insensitive. If omitted, the default value is Enterprise. If an empty string or other values are explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
19
+ *
20
+ * @example
21
+ * Enterprise
22
+ */
23
+ businessChannel?: string;
24
+ /**
25
+ * @remarks
26
+ * The validity period of the token, in seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported, and 0 cannot be passed.
27
+ *
28
+ * @example
29
+ * 900
30
+ */
31
+ expiration?: number;
32
+ /**
33
+ * @remarks
34
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when you call this operation. Pass this parameter as a JSON object and specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
35
+ */
36
+ resourceShrink?: string;
37
+ static names(): { [key: string]: string } {
38
+ return {
39
+ authorizerId: 'AuthorizerId',
40
+ businessChannel: 'BusinessChannel',
41
+ expiration: 'Expiration',
42
+ resourceShrink: 'Resource',
43
+ };
44
+ }
45
+
46
+ static types(): { [key: string]: any } {
47
+ return {
48
+ authorizerId: 'string',
49
+ businessChannel: 'string',
50
+ expiration: 'number',
51
+ resourceShrink: 'string',
52
+ };
53
+ }
54
+
55
+ validate() {
56
+ super.validate();
57
+ }
58
+
59
+ constructor(map?: { [key: string]: any }) {
60
+ super(map);
61
+ }
62
+ }
63
+
@@ -25,7 +25,7 @@ export class ExpireLoginTokenRequest extends $dara.Model {
25
25
  loginToken?: string;
26
26
  /**
27
27
  * @remarks
28
- * The ID of the workspace. This parameter is required if you log on using a workspace ID. You can leave this parameter empty if you log on using an organization ID.
28
+ * The ID of the workspace. This parameter is required if you log on through a workspace, and can be left empty if you log on through an organization ID.
29
29
  *
30
30
  * @example
31
31
  * cn-beijing+dir-172301****
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ExpireLoginTokenResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the request.
8
+ * The request ID.
9
9
  *
10
10
  * @example
11
11
  * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
@@ -3,11 +3,33 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class GetAuthCodeRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The account type. Valid values: ad (enterprise AD account) and simple (convenience account).
9
+ *
10
+ * @example
11
+ * simple
12
+ */
6
13
  accountType?: string;
14
+ /**
15
+ * @remarks
16
+ * The Active Directory domain name. This parameter is required when the account type is ad.
17
+ *
18
+ * @example
19
+ * ad.example.com
20
+ */
7
21
  adDomain?: string;
8
22
  /**
9
23
  * @remarks
10
- * Specifies whether to synchronously create an EndUserId based on `ExternalUserId`. This parameter takes effect only when `EndUserId` is empty.
24
+ * The password of the enterprise AD account.
25
+ *
26
+ * @example
27
+ * Qa****7!Z9
28
+ */
29
+ adPassword?: string;
30
+ /**
31
+ * @remarks
32
+ * Specifies whether to synchronously create an EndUserId based on ExternalUserId. This parameter takes effect only when EndUserId is left empty.
11
33
  *
12
34
  * @example
13
35
  * false
@@ -15,7 +37,7 @@ export class GetAuthCodeRequest extends $dara.Model {
15
37
  autoCreateUser?: boolean;
16
38
  /**
17
39
  * @remarks
18
- * The username of the China Desktop Service (China Desktop Service) convenience account, which is unique within an Alibaba Cloud account. This parameter and `ExternalUserId` cannot both be empty.
40
+ * The username of the Wuying convenience account. The username must be unique within an Alibaba Cloud account. This parameter and ExternalUserId cannot be left empty at the same time.
19
41
  *
20
42
  * @example
21
43
  * alice
@@ -23,7 +45,7 @@ export class GetAuthCodeRequest extends $dara.Model {
23
45
  endUserId?: string;
24
46
  /**
25
47
  * @remarks
26
- * The external user ID. This ID is defined by the caller and must be unique within an Alibaba Cloud account. This parameter and `EndUserId` cannot both be empty.
48
+ * The external user ID. This ID is customized by the caller and must be unique within an Alibaba Cloud account. This parameter and ExternalUserId cannot be left empty at the same time.
27
49
  *
28
50
  * @example
29
51
  * alice
@@ -31,7 +53,7 @@ export class GetAuthCodeRequest extends $dara.Model {
31
53
  externalUserId?: string;
32
54
  /**
33
55
  * @remarks
34
- * The access policy that restricts the access permissions of the authorization code. An empty value indicates no restrictions.
56
+ * The access policy that restricts the access permissions of the authorization code. If this parameter is left empty, no restrictions are applied.
35
57
  *
36
58
  * Syntax:
37
59
  *
@@ -39,16 +61,16 @@ export class GetAuthCodeRequest extends $dara.Model {
39
61
  * {
40
62
  * "Version": "1",
41
63
  * "Resource": {
42
- * "Type": "<Resource type>",
43
- * "Id": "<Resource ID>"
64
+ * "Type": "<resource type>",
65
+ * "Id": "<resource ID>"
44
66
  * }
45
67
  * }
46
68
  * ```
47
69
  *
48
- * Valid values of <Resource type>:
70
+ * Valid values for <resource type>:
49
71
  *
50
- * - AppInstanceGroup: delivery group. You can call the ListAppInstanceGroup operation to obtain the ID.
51
- * - AppInstance: application instance (dedicated field).
72
+ * - AppInstanceGroup: app instance group. You can call the ListAppInstanceGroup operation to obtain the ID.
73
+ * - AppInstance: app instance. This is a dedicated field.
52
74
  * - App: application. You can call the ListAppInstanceGroup operation to obtain the ID.
53
75
  *
54
76
  * @example
@@ -61,11 +83,19 @@ export class GetAuthCodeRequest extends $dara.Model {
61
83
  * }
62
84
  */
63
85
  policy?: string;
86
+ /**
87
+ * @remarks
88
+ * The token type. Valid values: LoginToken (logon token) and StsToken (temporary identity credential).
89
+ *
90
+ * @example
91
+ * StsToken
92
+ */
64
93
  tokenType?: string;
65
94
  static names(): { [key: string]: string } {
66
95
  return {
67
96
  accountType: 'AccountType',
68
97
  adDomain: 'AdDomain',
98
+ adPassword: 'AdPassword',
69
99
  autoCreateUser: 'AutoCreateUser',
70
100
  endUserId: 'EndUserId',
71
101
  externalUserId: 'ExternalUserId',
@@ -78,6 +108,7 @@ export class GetAuthCodeRequest extends $dara.Model {
78
108
  return {
79
109
  accountType: 'string',
80
110
  adDomain: 'string',
111
+ adPassword: 'string',
81
112
  autoCreateUser: 'boolean',
82
113
  endUserId: 'string',
83
114
  externalUserId: 'string',
@@ -2,12 +2,10 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- /**
6
- */
7
5
  export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
8
6
  /**
9
7
  * @remarks
10
- * The authorization code. The authorization code is valid for 3 minutes and can be used only once regardless of whether the verification succeeds or fails. When multiple authorization codes are generated for a user, only the last generated code is valid.
8
+ * The authorization code. The authorization code is valid for 3 minutes and can be used only once regardless of whether the verification succeeds or fails. If multiple authorization codes are generated for a user, only the last generated one is valid.
11
9
  *
12
10
  * @example
13
11
  * acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
@@ -15,7 +13,7 @@ export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
15
13
  authCode?: string;
16
14
  /**
17
15
  * @remarks
18
- * The username of the China Desktop Service convenience account.
16
+ * The username of the Wuying convenience account.
19
17
  *
20
18
  * @example
21
19
  * alice
@@ -23,7 +21,7 @@ export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
23
21
  endUserId?: string;
24
22
  /**
25
23
  * @remarks
26
- * The expiration time of the authorization code in UTC, following the ISO 8601 standard.
24
+ * The expiration time of the authorization code. The time is displayed in UTC and follows the ISO 8601 standard.
27
25
  *
28
26
  * @example
29
27
  * 2015-01-23T12:33:18Z
@@ -0,0 +1,96 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetLatestThirdAppAccessTokenRequestResource extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the cloud desktop specified when the token was created. You must provide a non-empty value that is consistent with the value used during creation. Asterisks (*) are not allowed.
9
+ *
10
+ * @example
11
+ * ecd-7a8b9c0d****
12
+ */
13
+ resourceId?: string;
14
+ /**
15
+ * @remarks
16
+ * The resource type. This parameter is required. Valid value: DESKTOP, which indicates a cloud desktop. The value is case-insensitive.
17
+ *
18
+ * @example
19
+ * DESKTOP
20
+ */
21
+ resourceType?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ resourceId: 'ResourceId',
25
+ resourceType: 'ResourceType',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ resourceId: 'string',
32
+ resourceType: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class GetLatestThirdAppAccessTokenRequest extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The WyId of the user used when the token was created. It must correspond to the current account and the target cloud desktop, and cannot be replaced by a username.
49
+ *
50
+ * This parameter is required.
51
+ *
52
+ * @example
53
+ * f1e2d3c4b5a6****
54
+ */
55
+ authorizerId?: string;
56
+ /**
57
+ * @remarks
58
+ * The business channel. Valid values: Enterprise and Business. The value is case-insensitive. If omitted, the default value is Enterprise. If an empty string or other value is explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
59
+ *
60
+ * @example
61
+ * Enterprise
62
+ */
63
+ businessChannel?: string;
64
+ /**
65
+ * @remarks
66
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when calling this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
67
+ */
68
+ resource?: GetLatestThirdAppAccessTokenRequestResource;
69
+ static names(): { [key: string]: string } {
70
+ return {
71
+ authorizerId: 'AuthorizerId',
72
+ businessChannel: 'BusinessChannel',
73
+ resource: 'Resource',
74
+ };
75
+ }
76
+
77
+ static types(): { [key: string]: any } {
78
+ return {
79
+ authorizerId: 'string',
80
+ businessChannel: 'string',
81
+ resource: GetLatestThirdAppAccessTokenRequestResource,
82
+ };
83
+ }
84
+
85
+ validate() {
86
+ if(this.resource && typeof (this.resource as any).validate === 'function') {
87
+ (this.resource as any).validate();
88
+ }
89
+ super.validate();
90
+ }
91
+
92
+ constructor(map?: { [key: string]: any }) {
93
+ super(map);
94
+ }
95
+ }
96
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetLatestThirdAppAccessTokenResponseBody } from "./GetLatestThirdAppAccessTokenResponseBody";
4
+
5
+
6
+ export class GetLatestThirdAppAccessTokenResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetLatestThirdAppAccessTokenResponseBody;
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: GetLatestThirdAppAccessTokenResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetLatestThirdAppAccessTokenResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The current valid static access token for the specified user and single cloud desktop. The original saved token is returned, and the query does not renew the token. This is a sensitive credential. Do not log or expose the full value.
9
+ *
10
+ * @example
11
+ * taatv1.v2****
12
+ */
13
+ accessToken?: string;
14
+ /**
15
+ * @remarks
16
+ * The absolute expiration time of the token, represented as a Unix timestamp in milliseconds. This parameter is not empty when the call is successful. GetLatestThirdAppAccessToken returns the original expiration time and does not renew the token.
17
+ *
18
+ * @example
19
+ * 1795450500000
20
+ */
21
+ expiresAt?: number;
22
+ /**
23
+ * @remarks
24
+ * The unique identifier of the request, which can be used to locate and troubleshoot issues.
25
+ *
26
+ * @example
27
+ * 6DAB2D15-7345-4C33-9D77-48A1A756B9E1
28
+ */
29
+ requestId?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ accessToken: 'AccessToken',
33
+ expiresAt: 'ExpiresAt',
34
+ requestId: 'RequestId',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ accessToken: 'string',
41
+ expiresAt: 'number',
42
+ requestId: '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,53 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetLatestThirdAppAccessTokenShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The WyId of the user used when the token was created. It must correspond to the current account and the target cloud desktop, and cannot be replaced by a username.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * f1e2d3c4b5a6****
14
+ */
15
+ authorizerId?: string;
16
+ /**
17
+ * @remarks
18
+ * The business channel. Valid values: Enterprise and Business. The value is case-insensitive. If omitted, the default value is Enterprise. If an empty string or other value is explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
19
+ *
20
+ * @example
21
+ * Enterprise
22
+ */
23
+ businessChannel?: string;
24
+ /**
25
+ * @remarks
26
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when calling this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
27
+ */
28
+ resourceShrink?: string;
29
+ static names(): { [key: string]: string } {
30
+ return {
31
+ authorizerId: 'AuthorizerId',
32
+ businessChannel: 'BusinessChannel',
33
+ resourceShrink: 'Resource',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ authorizerId: 'string',
40
+ businessChannel: 'string',
41
+ resourceShrink: 'string',
42
+ };
43
+ }
44
+
45
+ validate() {
46
+ super.validate();
47
+ }
48
+
49
+ constructor(map?: { [key: string]: any }) {
50
+ super(map);
51
+ }
52
+ }
53
+