@alicloud/appstream-center20210218 1.1.3 → 1.2.1
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 +66 -6
- package/dist/client.js +149 -10
- package/dist/client.js.map +1 -1
- package/dist/models/CreateThirdAppAccessTokenRequest.d.ts +80 -0
- package/dist/models/CreateThirdAppAccessTokenRequest.js +92 -0
- package/dist/models/CreateThirdAppAccessTokenRequest.js.map +1 -0
- package/dist/models/CreateThirdAppAccessTokenResponse.d.ts +19 -0
- package/dist/models/CreateThirdAppAccessTokenResponse.js +69 -0
- package/dist/models/CreateThirdAppAccessTokenResponse.js.map +1 -0
- package/dist/models/CreateThirdAppAccessTokenResponseBody.d.ts +37 -0
- package/dist/models/CreateThirdAppAccessTokenResponseBody.js +62 -0
- package/dist/models/CreateThirdAppAccessTokenResponseBody.js.map +1 -0
- package/dist/models/CreateThirdAppAccessTokenShrinkRequest.d.ts +50 -0
- package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js +66 -0
- package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js.map +1 -0
- package/dist/models/ExpireLoginTokenRequest.d.ts +1 -1
- package/dist/models/ExpireLoginTokenResponseBody.d.ts +1 -1
- package/dist/models/GetAuthCodeRequest.d.ts +36 -8
- package/dist/models/GetAuthCodeRequest.js.map +1 -1
- package/dist/models/GetAuthCodeResponseBody.d.ts +3 -5
- package/dist/models/GetAuthCodeResponseBody.js +0 -2
- package/dist/models/GetAuthCodeResponseBody.js.map +1 -1
- package/dist/models/GetLatestThirdAppAccessTokenRequest.d.ts +70 -0
- package/dist/models/GetLatestThirdAppAccessTokenRequest.js +88 -0
- package/dist/models/GetLatestThirdAppAccessTokenRequest.js.map +1 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponse.d.ts +19 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponse.js +69 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponse.js.map +1 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponseBody.d.ts +37 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js +62 -0
- package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js.map +1 -0
- package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.d.ts +42 -0
- package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js +64 -0
- package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js.map +1 -0
- package/dist/models/GetStsTokenRequest.d.ts +5 -4
- package/dist/models/GetStsTokenRequest.js.map +1 -1
- package/dist/models/GetStsTokenResponseBody.d.ts +4 -4
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +21 -1
- package/dist/models/model.js.map +1 -1
- package/package.json +3 -2
- package/src/client.ts +164 -10
- package/src/models/CreateThirdAppAccessTokenRequest.ts +116 -0
- package/src/models/CreateThirdAppAccessTokenResponse.ts +40 -0
- package/src/models/CreateThirdAppAccessTokenResponseBody.ts +54 -0
- package/src/models/CreateThirdAppAccessTokenShrinkRequest.ts +71 -0
- package/src/models/ExpireLoginTokenRequest.ts +1 -1
- package/src/models/ExpireLoginTokenResponseBody.ts +1 -1
- package/src/models/GetAuthCodeRequest.ts +36 -8
- package/src/models/GetAuthCodeResponseBody.ts +3 -5
- package/src/models/GetLatestThirdAppAccessTokenRequest.ts +104 -0
- package/src/models/GetLatestThirdAppAccessTokenResponse.ts +40 -0
- package/src/models/GetLatestThirdAppAccessTokenResponseBody.ts +54 -0
- package/src/models/GetLatestThirdAppAccessTokenShrinkRequest.ts +61 -0
- package/src/models/GetStsTokenRequest.ts +5 -4
- package/src/models/GetStsTokenResponseBody.ts +4 -4
- package/src/models/model.ts +10 -0
|
@@ -0,0 +1,116 @@
|
|
|
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. You cannot use an asterisk (*). 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. You must provide this parameter when you call this operation. Valid value: 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
|
+
* @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 values are 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 convenience username in the current tenant. Used when AuthorizerId is not provided or is empty.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* test
|
|
70
|
+
*/
|
|
71
|
+
endUserId?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* 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. You cannot pass 0.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* 900
|
|
78
|
+
*/
|
|
79
|
+
expiration?: number;
|
|
80
|
+
/**
|
|
81
|
+
* @remarks
|
|
82
|
+
* The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when you call this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
|
|
83
|
+
*/
|
|
84
|
+
resource?: CreateThirdAppAccessTokenRequestResource;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
authorizerId: 'AuthorizerId',
|
|
88
|
+
businessChannel: 'BusinessChannel',
|
|
89
|
+
endUserId: 'EndUserId',
|
|
90
|
+
expiration: 'Expiration',
|
|
91
|
+
resource: 'Resource',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
authorizerId: 'string',
|
|
98
|
+
businessChannel: 'string',
|
|
99
|
+
endUserId: 'string',
|
|
100
|
+
expiration: 'number',
|
|
101
|
+
resource: CreateThirdAppAccessTokenRequestResource,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
validate() {
|
|
106
|
+
if(this.resource && typeof (this.resource as any).validate === 'function') {
|
|
107
|
+
(this.resource as any).validate();
|
|
108
|
+
}
|
|
109
|
+
super.validate();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
constructor(map?: { [key: string]: any }) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -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 disclose 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 and does not extend it.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1795450500000
|
|
20
|
+
*/
|
|
21
|
+
expiresAt?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The unique identifier of the request. You can use it 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,71 @@
|
|
|
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
|
+
* @example
|
|
11
|
+
* f1e2d3c4b5a6****
|
|
12
|
+
*/
|
|
13
|
+
authorizerId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* Enterprise
|
|
20
|
+
*/
|
|
21
|
+
businessChannel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The convenience username in the current tenant. Used when AuthorizerId is not provided or is empty.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* test
|
|
28
|
+
*/
|
|
29
|
+
endUserId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* 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. You cannot pass 0.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 900
|
|
36
|
+
*/
|
|
37
|
+
expiration?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when you call this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
|
|
41
|
+
*/
|
|
42
|
+
resourceShrink?: string;
|
|
43
|
+
static names(): { [key: string]: string } {
|
|
44
|
+
return {
|
|
45
|
+
authorizerId: 'AuthorizerId',
|
|
46
|
+
businessChannel: 'BusinessChannel',
|
|
47
|
+
endUserId: 'EndUserId',
|
|
48
|
+
expiration: 'Expiration',
|
|
49
|
+
resourceShrink: 'Resource',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
authorizerId: 'string',
|
|
56
|
+
businessChannel: 'string',
|
|
57
|
+
endUserId: 'string',
|
|
58
|
+
expiration: 'number',
|
|
59
|
+
resourceShrink: 'string',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
validate() {
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -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
|
|
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****
|
|
@@ -3,12 +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;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The password of the enterprise AD account.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Qa****7!Z9
|
|
28
|
+
*/
|
|
8
29
|
adPassword?: string;
|
|
9
30
|
/**
|
|
10
31
|
* @remarks
|
|
11
|
-
* Specifies whether to synchronously create an EndUserId based on ExternalUserId. This parameter takes effect only when EndUserId is empty.
|
|
32
|
+
* Specifies whether to synchronously create an EndUserId based on ExternalUserId. This parameter takes effect only when EndUserId is left empty.
|
|
12
33
|
*
|
|
13
34
|
* @example
|
|
14
35
|
* false
|
|
@@ -16,7 +37,7 @@ export class GetAuthCodeRequest extends $dara.Model {
|
|
|
16
37
|
autoCreateUser?: boolean;
|
|
17
38
|
/**
|
|
18
39
|
* @remarks
|
|
19
|
-
* The username of the
|
|
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.
|
|
20
41
|
*
|
|
21
42
|
* @example
|
|
22
43
|
* alice
|
|
@@ -24,7 +45,7 @@ export class GetAuthCodeRequest extends $dara.Model {
|
|
|
24
45
|
endUserId?: string;
|
|
25
46
|
/**
|
|
26
47
|
* @remarks
|
|
27
|
-
* The external user ID. This ID is
|
|
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.
|
|
28
49
|
*
|
|
29
50
|
* @example
|
|
30
51
|
* alice
|
|
@@ -40,16 +61,16 @@ export class GetAuthCodeRequest extends $dara.Model {
|
|
|
40
61
|
* {
|
|
41
62
|
* "Version": "1",
|
|
42
63
|
* "Resource": {
|
|
43
|
-
* "Type": "<
|
|
44
|
-
* "Id": "<
|
|
64
|
+
* "Type": "<resource type>",
|
|
65
|
+
* "Id": "<resource ID>"
|
|
45
66
|
* }
|
|
46
67
|
* }
|
|
47
68
|
* ```
|
|
48
69
|
*
|
|
49
|
-
* Valid values
|
|
70
|
+
* Valid values for <resource type>:
|
|
50
71
|
*
|
|
51
|
-
* - AppInstanceGroup:
|
|
52
|
-
* - AppInstance:
|
|
72
|
+
* - AppInstanceGroup: app instance group. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
73
|
+
* - AppInstance: app instance. This is a dedicated field.
|
|
53
74
|
* - App: application. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
54
75
|
*
|
|
55
76
|
* @example
|
|
@@ -62,6 +83,13 @@ export class GetAuthCodeRequest extends $dara.Model {
|
|
|
62
83
|
* }
|
|
63
84
|
*/
|
|
64
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
|
+
*/
|
|
65
93
|
tokenType?: string;
|
|
66
94
|
static names(): { [key: string]: string } {
|
|
67
95
|
return {
|
|
@@ -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. If multiple authorization codes are generated for a user, only the last generated
|
|
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
|
|
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
|
|
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,104 @@
|
|
|
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 when calling this operation, and it must be 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 when calling this operation. Set the value to 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
|
+
* @example
|
|
51
|
+
* f1e2d3c4b5a6****
|
|
52
|
+
*/
|
|
53
|
+
authorizerId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* 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 any other value is explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* Enterprise
|
|
60
|
+
*/
|
|
61
|
+
businessChannel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The convenience username under the current tenant. Used when AuthorizerId is not provided or is empty.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* test
|
|
68
|
+
*/
|
|
69
|
+
endUserId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* 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.
|
|
73
|
+
*/
|
|
74
|
+
resource?: GetLatestThirdAppAccessTokenRequestResource;
|
|
75
|
+
static names(): { [key: string]: string } {
|
|
76
|
+
return {
|
|
77
|
+
authorizerId: 'AuthorizerId',
|
|
78
|
+
businessChannel: 'BusinessChannel',
|
|
79
|
+
endUserId: 'EndUserId',
|
|
80
|
+
resource: 'Resource',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static types(): { [key: string]: any } {
|
|
85
|
+
return {
|
|
86
|
+
authorizerId: 'string',
|
|
87
|
+
businessChannel: 'string',
|
|
88
|
+
endUserId: 'string',
|
|
89
|
+
resource: GetLatestThirdAppAccessTokenRequestResource,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(this.resource && typeof (this.resource as any).validate === 'function') {
|
|
95
|
+
(this.resource as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -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 it. 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 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. You can use it 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,61 @@
|
|
|
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
|
+
* @example
|
|
11
|
+
* f1e2d3c4b5a6****
|
|
12
|
+
*/
|
|
13
|
+
authorizerId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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 any other value is explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* Enterprise
|
|
20
|
+
*/
|
|
21
|
+
businessChannel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The convenience username under the current tenant. Used when AuthorizerId is not provided or is empty.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* test
|
|
28
|
+
*/
|
|
29
|
+
endUserId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* 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.
|
|
33
|
+
*/
|
|
34
|
+
resourceShrink?: string;
|
|
35
|
+
static names(): { [key: string]: string } {
|
|
36
|
+
return {
|
|
37
|
+
authorizerId: 'AuthorizerId',
|
|
38
|
+
businessChannel: 'BusinessChannel',
|
|
39
|
+
endUserId: 'EndUserId',
|
|
40
|
+
resourceShrink: 'Resource',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
authorizerId: 'string',
|
|
47
|
+
businessChannel: 'string',
|
|
48
|
+
endUserId: 'string',
|
|
49
|
+
resourceShrink: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
validate() {
|
|
54
|
+
super.validate();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
constructor(map?: { [key: string]: any }) {
|
|
58
|
+
super(map);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|