@alicloud/appstream-center20210218 1.1.0 → 1.1.2
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 +6 -6
- package/dist/client.js +22 -7
- package/dist/client.js.map +1 -1
- package/dist/models/ExpireLoginTokenRequest.d.ts +9 -0
- package/dist/models/ExpireLoginTokenRequest.js.map +1 -1
- package/dist/models/ExpireLoginTokenResponseBody.d.ts +3 -0
- package/dist/models/ExpireLoginTokenResponseBody.js.map +1 -1
- package/dist/models/GetAuthCodeRequest.d.ts +37 -0
- package/dist/models/GetAuthCodeRequest.js +6 -0
- package/dist/models/GetAuthCodeRequest.js.map +1 -1
- package/dist/models/GetAuthCodeResponseBody.d.ts +16 -0
- package/dist/models/GetAuthCodeResponseBody.js.map +1 -1
- package/dist/models/GetStsTokenRequest.d.ts +11 -0
- package/dist/models/GetStsTokenRequest.js.map +1 -1
- package/dist/models/GetStsTokenResponseBody.d.ts +19 -0
- package/dist/models/GetStsTokenResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +25 -7
- package/src/models/ExpireLoginTokenRequest.ts +9 -0
- package/src/models/ExpireLoginTokenResponseBody.ts +3 -0
- package/src/models/GetAuthCodeRequest.ts +43 -0
- package/src/models/GetAuthCodeResponseBody.ts +16 -0
- package/src/models/GetStsTokenRequest.ts +11 -0
- package/src/models/GetStsTokenResponseBody.ts +19 -0
package/dist/client.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export default class Client extends OpenApi {
|
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
}, endpoint: string): string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Manually expires a logon token before its automatic expiration.
|
|
13
13
|
*
|
|
14
14
|
* @param request - ExpireLoginTokenRequest
|
|
15
15
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -17,14 +17,14 @@ export default class Client extends OpenApi {
|
|
|
17
17
|
*/
|
|
18
18
|
expireLoginTokenWithOptions(request: $_model.ExpireLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ExpireLoginTokenResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Manually expires a logon token before its automatic expiration.
|
|
21
21
|
*
|
|
22
22
|
* @param request - ExpireLoginTokenRequest
|
|
23
23
|
* @returns ExpireLoginTokenResponse
|
|
24
24
|
*/
|
|
25
25
|
expireLoginToken(request: $_model.ExpireLoginTokenRequest): Promise<$_model.ExpireLoginTokenResponse>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
28
28
|
*
|
|
29
29
|
* @param request - GetAuthCodeRequest
|
|
30
30
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -32,14 +32,14 @@ export default class Client extends OpenApi {
|
|
|
32
32
|
*/
|
|
33
33
|
getAuthCodeWithOptions(request: $_model.GetAuthCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuthCodeResponse>;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
36
36
|
*
|
|
37
37
|
* @param request - GetAuthCodeRequest
|
|
38
38
|
* @returns GetAuthCodeResponse
|
|
39
39
|
*/
|
|
40
40
|
getAuthCode(request: $_model.GetAuthCodeRequest): Promise<$_model.GetAuthCodeResponse>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Gets a Security Token Service (STS) token.
|
|
43
43
|
*
|
|
44
44
|
* @param request - GetStsTokenRequest
|
|
45
45
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -47,7 +47,7 @@ export default class Client extends OpenApi {
|
|
|
47
47
|
*/
|
|
48
48
|
getStsTokenWithOptions(request: $_model.GetStsTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetStsTokenResponse>;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Gets a Security Token Service (STS) token.
|
|
51
51
|
*
|
|
52
52
|
* @param request - GetStsTokenRequest
|
|
53
53
|
* @returns GetStsTokenResponse
|
package/dist/client.js
CHANGED
|
@@ -48,7 +48,11 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
48
|
class Client extends openapi_core_1.default {
|
|
49
49
|
constructor(config) {
|
|
50
50
|
super(config);
|
|
51
|
-
this._endpointRule = "";
|
|
51
|
+
this._endpointRule = "regional";
|
|
52
|
+
this._endpointMap = {
|
|
53
|
+
'cn-shanghai': "appstream-center.cn-shanghai.aliyuncs.com",
|
|
54
|
+
'ap-southeast-1': "appstream-center.ap-southeast-1.aliyuncs.com",
|
|
55
|
+
};
|
|
52
56
|
this.checkConfig(config);
|
|
53
57
|
this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
54
58
|
}
|
|
@@ -62,7 +66,7 @@ class Client extends openapi_core_1.default {
|
|
|
62
66
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
|
-
*
|
|
69
|
+
* Manually expires a logon token before its automatic expiration.
|
|
66
70
|
*
|
|
67
71
|
* @param request - ExpireLoginTokenRequest
|
|
68
72
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -100,7 +104,7 @@ class Client extends openapi_core_1.default {
|
|
|
100
104
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ExpireLoginTokenResponse({}));
|
|
101
105
|
}
|
|
102
106
|
/**
|
|
103
|
-
*
|
|
107
|
+
* Manually expires a logon token before its automatic expiration.
|
|
104
108
|
*
|
|
105
109
|
* @param request - ExpireLoginTokenRequest
|
|
106
110
|
* @returns ExpireLoginTokenResponse
|
|
@@ -110,7 +114,7 @@ class Client extends openapi_core_1.default {
|
|
|
110
114
|
return await this.expireLoginTokenWithOptions(request, runtime);
|
|
111
115
|
}
|
|
112
116
|
/**
|
|
113
|
-
*
|
|
117
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
114
118
|
*
|
|
115
119
|
* @param request - GetAuthCodeRequest
|
|
116
120
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -118,7 +122,17 @@ class Client extends openapi_core_1.default {
|
|
|
118
122
|
*/
|
|
119
123
|
async getAuthCodeWithOptions(request, runtime) {
|
|
120
124
|
request.validate();
|
|
125
|
+
let query = {};
|
|
126
|
+
if (!$dara.isNull(request.tokenType)) {
|
|
127
|
+
query["TokenType"] = request.tokenType;
|
|
128
|
+
}
|
|
121
129
|
let body = {};
|
|
130
|
+
if (!$dara.isNull(request.accountType)) {
|
|
131
|
+
body["AccountType"] = request.accountType;
|
|
132
|
+
}
|
|
133
|
+
if (!$dara.isNull(request.adDomain)) {
|
|
134
|
+
body["AdDomain"] = request.adDomain;
|
|
135
|
+
}
|
|
122
136
|
if (!$dara.isNull(request.autoCreateUser)) {
|
|
123
137
|
body["AutoCreateUser"] = request.autoCreateUser;
|
|
124
138
|
}
|
|
@@ -132,6 +146,7 @@ class Client extends openapi_core_1.default {
|
|
|
132
146
|
body["Policy"] = request.policy;
|
|
133
147
|
}
|
|
134
148
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
149
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
135
150
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
136
151
|
});
|
|
137
152
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
@@ -148,7 +163,7 @@ class Client extends openapi_core_1.default {
|
|
|
148
163
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAuthCodeResponse({}));
|
|
149
164
|
}
|
|
150
165
|
/**
|
|
151
|
-
*
|
|
166
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
152
167
|
*
|
|
153
168
|
* @param request - GetAuthCodeRequest
|
|
154
169
|
* @returns GetAuthCodeResponse
|
|
@@ -158,7 +173,7 @@ class Client extends openapi_core_1.default {
|
|
|
158
173
|
return await this.getAuthCodeWithOptions(request, runtime);
|
|
159
174
|
}
|
|
160
175
|
/**
|
|
161
|
-
*
|
|
176
|
+
* Gets a Security Token Service (STS) token.
|
|
162
177
|
*
|
|
163
178
|
* @param request - GetStsTokenRequest
|
|
164
179
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -193,7 +208,7 @@ class Client extends openapi_core_1.default {
|
|
|
193
208
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetStsTokenResponse({}));
|
|
194
209
|
}
|
|
195
210
|
/**
|
|
196
|
-
*
|
|
211
|
+
* Gets a Security Token Service (STS) token.
|
|
197
212
|
*
|
|
198
213
|
* @param request - GetStsTokenRequest
|
|
199
214
|
* @returns GetStsTokenResponse
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAEzC,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAEzC,YAAY,MAA2B;Q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3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
+
* The logon username.
|
|
6
|
+
*
|
|
5
7
|
* This parameter is required.
|
|
6
8
|
*
|
|
7
9
|
* @example
|
|
@@ -10,6 +12,8 @@ export declare class ExpireLoginTokenRequest extends $dara.Model {
|
|
|
10
12
|
endUserId?: string;
|
|
11
13
|
/**
|
|
12
14
|
* @remarks
|
|
15
|
+
* The logon token.
|
|
16
|
+
*
|
|
13
17
|
* This parameter is required.
|
|
14
18
|
*
|
|
15
19
|
* @example
|
|
@@ -17,12 +21,17 @@ export declare class ExpireLoginTokenRequest extends $dara.Model {
|
|
|
17
21
|
*/
|
|
18
22
|
loginToken?: string;
|
|
19
23
|
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* 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.
|
|
26
|
+
*
|
|
20
27
|
* @example
|
|
21
28
|
* cn-beijing+dir-172301****
|
|
22
29
|
*/
|
|
23
30
|
officeSiteId?: string;
|
|
24
31
|
/**
|
|
25
32
|
* @remarks
|
|
33
|
+
* The ID of the logon session.
|
|
34
|
+
*
|
|
26
35
|
* This parameter is required.
|
|
27
36
|
*
|
|
28
37
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpireLoginTokenRequest.js","sourceRoot":"","sources":["../../src/models/ExpireLoginTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ExpireLoginTokenRequest.js","sourceRoot":"","sources":["../../src/models/ExpireLoginTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAuCtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhED,0DAgEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpireLoginTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/ExpireLoginTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ExpireLoginTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/ExpireLoginTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAS3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oEA4BC"}
|
|
@@ -1,17 +1,53 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class GetAuthCodeRequest extends $dara.Model {
|
|
3
|
+
accountType?: string;
|
|
4
|
+
adDomain?: string;
|
|
5
|
+
/**
|
|
6
|
+
* @remarks
|
|
7
|
+
* Specifies whether to synchronously create an EndUserId based on `ExternalUserId`. This parameter takes effect only when `EndUserId` is empty.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* false
|
|
11
|
+
*/
|
|
3
12
|
autoCreateUser?: boolean;
|
|
4
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* 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.
|
|
16
|
+
*
|
|
5
17
|
* @example
|
|
6
18
|
* alice
|
|
7
19
|
*/
|
|
8
20
|
endUserId?: string;
|
|
9
21
|
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* 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.
|
|
24
|
+
*
|
|
10
25
|
* @example
|
|
11
26
|
* alice
|
|
12
27
|
*/
|
|
13
28
|
externalUserId?: string;
|
|
14
29
|
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The access policy that restricts the access permissions of the authorization code. An empty value indicates no restrictions.
|
|
32
|
+
*
|
|
33
|
+
* Syntax:
|
|
34
|
+
*
|
|
35
|
+
* ```json
|
|
36
|
+
* {
|
|
37
|
+
* "Version": "1",
|
|
38
|
+
* "Resource": {
|
|
39
|
+
* "Type": "<Resource type>",
|
|
40
|
+
* "Id": "<Resource ID>"
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Valid values of <Resource type>:
|
|
46
|
+
*
|
|
47
|
+
* - AppInstanceGroup: delivery group. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
48
|
+
* - AppInstance: application instance (dedicated field).
|
|
49
|
+
* - App: application. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
50
|
+
*
|
|
15
51
|
* @example
|
|
16
52
|
* {
|
|
17
53
|
* "Version": "1",
|
|
@@ -22,6 +58,7 @@ export declare class GetAuthCodeRequest extends $dara.Model {
|
|
|
22
58
|
* }
|
|
23
59
|
*/
|
|
24
60
|
policy?: string;
|
|
61
|
+
tokenType?: string;
|
|
25
62
|
static names(): {
|
|
26
63
|
[key: string]: string;
|
|
27
64
|
};
|
|
@@ -39,18 +39,24 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class GetAuthCodeRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
accountType: 'AccountType',
|
|
43
|
+
adDomain: 'AdDomain',
|
|
42
44
|
autoCreateUser: 'AutoCreateUser',
|
|
43
45
|
endUserId: 'EndUserId',
|
|
44
46
|
externalUserId: 'ExternalUserId',
|
|
45
47
|
policy: 'Policy',
|
|
48
|
+
tokenType: 'TokenType',
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
51
|
static types() {
|
|
49
52
|
return {
|
|
53
|
+
accountType: 'string',
|
|
54
|
+
adDomain: 'string',
|
|
50
55
|
autoCreateUser: 'boolean',
|
|
51
56
|
endUserId: 'string',
|
|
52
57
|
externalUserId: 'string',
|
|
53
58
|
policy: 'string',
|
|
59
|
+
tokenType: 'string',
|
|
54
60
|
};
|
|
55
61
|
}
|
|
56
62
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetAuthCodeRequest.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetAuthCodeRequest.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA4DjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,gBAAgB;YAChC,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,SAAS;YACzB,SAAS,EAAE,QAAQ;YACnB,cAAc,EAAE,QAAQ;YACxB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3FD,gDA2FC"}
|
|
@@ -3,16 +3,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
|
|
5
5
|
/**
|
|
6
|
+
* @remarks
|
|
7
|
+
* 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
|
+
*
|
|
6
9
|
* @example
|
|
7
10
|
* acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
|
|
8
11
|
*/
|
|
9
12
|
authCode?: string;
|
|
10
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The username of the China Desktop Service convenience account.
|
|
16
|
+
*
|
|
11
17
|
* @example
|
|
12
18
|
* alice
|
|
13
19
|
*/
|
|
14
20
|
endUserId?: string;
|
|
15
21
|
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The expiration time of the authorization code in UTC, following the ISO 8601 standard.
|
|
24
|
+
*
|
|
16
25
|
* @example
|
|
17
26
|
* 2015-01-23T12:33:18Z
|
|
18
27
|
*/
|
|
@@ -29,8 +38,15 @@ export declare class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
|
|
|
29
38
|
});
|
|
30
39
|
}
|
|
31
40
|
export declare class GetAuthCodeResponseBody extends $dara.Model {
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* The authorization code information.
|
|
44
|
+
*/
|
|
32
45
|
authModel?: GetAuthCodeResponseBodyAuthModel;
|
|
33
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The request ID.
|
|
49
|
+
*
|
|
34
50
|
* @example
|
|
35
51
|
* 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
|
|
36
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetAuthCodeResponseBody.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetAuthCodeResponseBody.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAyB/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,4EAgDC;AAED,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IActD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,gCAAgC;YAC3C,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,0DAsCC"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class GetStsTokenRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The Elastic Desktop Service (EDS) username.
|
|
6
|
+
*
|
|
7
|
+
* > Either EndUserId or ExternalId is required.
|
|
8
|
+
*
|
|
4
9
|
* @example
|
|
5
10
|
* Alex
|
|
6
11
|
*/
|
|
7
12
|
endUserId?: string;
|
|
8
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The validity period of the token, in seconds. The maximum period is two days.
|
|
16
|
+
*
|
|
9
17
|
* @example
|
|
10
18
|
* 600
|
|
11
19
|
*/
|
|
12
20
|
expiration?: number;
|
|
13
21
|
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The ID of the external user.
|
|
24
|
+
*
|
|
14
25
|
* @example
|
|
15
26
|
* Alex
|
|
16
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetStsTokenRequest.js","sourceRoot":"","sources":["../../src/models/GetStsTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetStsTokenRequest.js","sourceRoot":"","sources":["../../src/models/GetStsTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA2BjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,gDAkDC"}
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The tenant ID, which is the UID of the Alibaba Cloud account.
|
|
6
|
+
*
|
|
4
7
|
* @example
|
|
5
8
|
* 105552640689****
|
|
6
9
|
*/
|
|
7
10
|
aliUid?: number;
|
|
8
11
|
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The session ID.
|
|
14
|
+
*
|
|
9
15
|
* @example
|
|
10
16
|
* be4be09e-cd00-4b4c-add7-11b4d8****
|
|
11
17
|
*/
|
|
12
18
|
sessionId?: string;
|
|
13
19
|
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The temporary credentials.
|
|
22
|
+
*
|
|
14
23
|
* @example
|
|
15
24
|
* sts****
|
|
16
25
|
*/
|
|
17
26
|
stsToken?: string;
|
|
18
27
|
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The tenant ID, which is the UID of the Alibaba Cloud account.
|
|
30
|
+
*
|
|
19
31
|
* @example
|
|
20
32
|
* 105552640689****
|
|
21
33
|
*/
|
|
@@ -33,10 +45,17 @@ export declare class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
|
|
|
33
45
|
}
|
|
34
46
|
export declare class GetStsTokenResponseBody extends $dara.Model {
|
|
35
47
|
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The request ID.
|
|
50
|
+
*
|
|
36
51
|
* @example
|
|
37
52
|
* CCF92035-6231-5ABB-930E-1E003C32****
|
|
38
53
|
*/
|
|
39
54
|
requestId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The details of the token.
|
|
58
|
+
*/
|
|
40
59
|
stsTokenModel?: GetStsTokenResponseBodyStsTokenModel;
|
|
41
60
|
static names(): {
|
|
42
61
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetStsTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/GetStsTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetStsTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/GetStsTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAiCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,oFA0DC;AAED,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IActD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,aAAa,EAAE,oCAAoC;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,0DAsCC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -11,7 +11,11 @@ export default class Client extends OpenApi {
|
|
|
11
11
|
|
|
12
12
|
constructor(config: $OpenApiUtil.Config) {
|
|
13
13
|
super(config);
|
|
14
|
-
this._endpointRule = "";
|
|
14
|
+
this._endpointRule = "regional";
|
|
15
|
+
this._endpointMap = {
|
|
16
|
+
'cn-shanghai': "appstream-center.cn-shanghai.aliyuncs.com",
|
|
17
|
+
'ap-southeast-1': "appstream-center.ap-southeast-1.aliyuncs.com",
|
|
18
|
+
};
|
|
15
19
|
this.checkConfig(config);
|
|
16
20
|
this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
17
21
|
}
|
|
@@ -30,7 +34,7 @@ export default class Client extends OpenApi {
|
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Manually expires a logon token before its automatic expiration.
|
|
34
38
|
*
|
|
35
39
|
* @param request - ExpireLoginTokenRequest
|
|
36
40
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -73,7 +77,7 @@ export default class Client extends OpenApi {
|
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
/**
|
|
76
|
-
*
|
|
80
|
+
* Manually expires a logon token before its automatic expiration.
|
|
77
81
|
*
|
|
78
82
|
* @param request - ExpireLoginTokenRequest
|
|
79
83
|
* @returns ExpireLoginTokenResponse
|
|
@@ -84,7 +88,7 @@ export default class Client extends OpenApi {
|
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
/**
|
|
87
|
-
*
|
|
91
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
88
92
|
*
|
|
89
93
|
* @param request - GetAuthCodeRequest
|
|
90
94
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -92,7 +96,20 @@ export default class Client extends OpenApi {
|
|
|
92
96
|
*/
|
|
93
97
|
async getAuthCodeWithOptions(request: $_model.GetAuthCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuthCodeResponse> {
|
|
94
98
|
request.validate();
|
|
99
|
+
let query = { };
|
|
100
|
+
if (!$dara.isNull(request.tokenType)) {
|
|
101
|
+
query["TokenType"] = request.tokenType;
|
|
102
|
+
}
|
|
103
|
+
|
|
95
104
|
let body : {[key: string ]: any} = { };
|
|
105
|
+
if (!$dara.isNull(request.accountType)) {
|
|
106
|
+
body["AccountType"] = request.accountType;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (!$dara.isNull(request.adDomain)) {
|
|
110
|
+
body["AdDomain"] = request.adDomain;
|
|
111
|
+
}
|
|
112
|
+
|
|
96
113
|
if (!$dara.isNull(request.autoCreateUser)) {
|
|
97
114
|
body["AutoCreateUser"] = request.autoCreateUser;
|
|
98
115
|
}
|
|
@@ -110,6 +127,7 @@ export default class Client extends OpenApi {
|
|
|
110
127
|
}
|
|
111
128
|
|
|
112
129
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
130
|
+
query: OpenApiUtil.query(query),
|
|
113
131
|
body: OpenApiUtil.parseToMap(body),
|
|
114
132
|
});
|
|
115
133
|
let params = new $OpenApiUtil.Params({
|
|
@@ -127,7 +145,7 @@ export default class Client extends OpenApi {
|
|
|
127
145
|
}
|
|
128
146
|
|
|
129
147
|
/**
|
|
130
|
-
*
|
|
148
|
+
* Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
|
|
131
149
|
*
|
|
132
150
|
* @param request - GetAuthCodeRequest
|
|
133
151
|
* @returns GetAuthCodeResponse
|
|
@@ -138,7 +156,7 @@ export default class Client extends OpenApi {
|
|
|
138
156
|
}
|
|
139
157
|
|
|
140
158
|
/**
|
|
141
|
-
*
|
|
159
|
+
* Gets a Security Token Service (STS) token.
|
|
142
160
|
*
|
|
143
161
|
* @param request - GetStsTokenRequest
|
|
144
162
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -177,7 +195,7 @@ export default class Client extends OpenApi {
|
|
|
177
195
|
}
|
|
178
196
|
|
|
179
197
|
/**
|
|
180
|
-
*
|
|
198
|
+
* Gets a Security Token Service (STS) token.
|
|
181
199
|
*
|
|
182
200
|
* @param request - GetStsTokenRequest
|
|
183
201
|
* @returns GetStsTokenResponse
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ExpireLoginTokenRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The logon username.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -13,6 +15,8 @@ export class ExpireLoginTokenRequest extends $dara.Model {
|
|
|
13
15
|
endUserId?: string;
|
|
14
16
|
/**
|
|
15
17
|
* @remarks
|
|
18
|
+
* The logon token.
|
|
19
|
+
*
|
|
16
20
|
* This parameter is required.
|
|
17
21
|
*
|
|
18
22
|
* @example
|
|
@@ -20,12 +24,17 @@ export class ExpireLoginTokenRequest extends $dara.Model {
|
|
|
20
24
|
*/
|
|
21
25
|
loginToken?: string;
|
|
22
26
|
/**
|
|
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.
|
|
29
|
+
*
|
|
23
30
|
* @example
|
|
24
31
|
* cn-beijing+dir-172301****
|
|
25
32
|
*/
|
|
26
33
|
officeSiteId?: string;
|
|
27
34
|
/**
|
|
28
35
|
* @remarks
|
|
36
|
+
* The ID of the logon session.
|
|
37
|
+
*
|
|
29
38
|
* This parameter is required.
|
|
30
39
|
*
|
|
31
40
|
* @example
|
|
@@ -3,18 +3,54 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class GetAuthCodeRequest extends $dara.Model {
|
|
6
|
+
accountType?: string;
|
|
7
|
+
adDomain?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* Specifies whether to synchronously create an EndUserId based on `ExternalUserId`. This parameter takes effect only when `EndUserId` is empty.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* false
|
|
14
|
+
*/
|
|
6
15
|
autoCreateUser?: boolean;
|
|
7
16
|
/**
|
|
17
|
+
* @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.
|
|
19
|
+
*
|
|
8
20
|
* @example
|
|
9
21
|
* alice
|
|
10
22
|
*/
|
|
11
23
|
endUserId?: string;
|
|
12
24
|
/**
|
|
25
|
+
* @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.
|
|
27
|
+
*
|
|
13
28
|
* @example
|
|
14
29
|
* alice
|
|
15
30
|
*/
|
|
16
31
|
externalUserId?: string;
|
|
17
32
|
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The access policy that restricts the access permissions of the authorization code. An empty value indicates no restrictions.
|
|
35
|
+
*
|
|
36
|
+
* Syntax:
|
|
37
|
+
*
|
|
38
|
+
* ```json
|
|
39
|
+
* {
|
|
40
|
+
* "Version": "1",
|
|
41
|
+
* "Resource": {
|
|
42
|
+
* "Type": "<Resource type>",
|
|
43
|
+
* "Id": "<Resource ID>"
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* Valid values of <Resource type>:
|
|
49
|
+
*
|
|
50
|
+
* - AppInstanceGroup: delivery group. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
51
|
+
* - AppInstance: application instance (dedicated field).
|
|
52
|
+
* - App: application. You can call the ListAppInstanceGroup operation to obtain the ID.
|
|
53
|
+
*
|
|
18
54
|
* @example
|
|
19
55
|
* {
|
|
20
56
|
* "Version": "1",
|
|
@@ -25,21 +61,28 @@ export class GetAuthCodeRequest extends $dara.Model {
|
|
|
25
61
|
* }
|
|
26
62
|
*/
|
|
27
63
|
policy?: string;
|
|
64
|
+
tokenType?: string;
|
|
28
65
|
static names(): { [key: string]: string } {
|
|
29
66
|
return {
|
|
67
|
+
accountType: 'AccountType',
|
|
68
|
+
adDomain: 'AdDomain',
|
|
30
69
|
autoCreateUser: 'AutoCreateUser',
|
|
31
70
|
endUserId: 'EndUserId',
|
|
32
71
|
externalUserId: 'ExternalUserId',
|
|
33
72
|
policy: 'Policy',
|
|
73
|
+
tokenType: 'TokenType',
|
|
34
74
|
};
|
|
35
75
|
}
|
|
36
76
|
|
|
37
77
|
static types(): { [key: string]: any } {
|
|
38
78
|
return {
|
|
79
|
+
accountType: 'string',
|
|
80
|
+
adDomain: 'string',
|
|
39
81
|
autoCreateUser: 'boolean',
|
|
40
82
|
endUserId: 'string',
|
|
41
83
|
externalUserId: 'string',
|
|
42
84
|
policy: 'string',
|
|
85
|
+
tokenType: 'string',
|
|
43
86
|
};
|
|
44
87
|
}
|
|
45
88
|
|
|
@@ -6,16 +6,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
6
6
|
*/
|
|
7
7
|
export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
|
|
8
8
|
/**
|
|
9
|
+
* @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.
|
|
11
|
+
*
|
|
9
12
|
* @example
|
|
10
13
|
* acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
|
|
11
14
|
*/
|
|
12
15
|
authCode?: string;
|
|
13
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The username of the China Desktop Service convenience account.
|
|
19
|
+
*
|
|
14
20
|
* @example
|
|
15
21
|
* alice
|
|
16
22
|
*/
|
|
17
23
|
endUserId?: string;
|
|
18
24
|
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The expiration time of the authorization code in UTC, following the ISO 8601 standard.
|
|
27
|
+
*
|
|
19
28
|
* @example
|
|
20
29
|
* 2015-01-23T12:33:18Z
|
|
21
30
|
*/
|
|
@@ -46,8 +55,15 @@ export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
|
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
export class GetAuthCodeResponseBody extends $dara.Model {
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The authorization code information.
|
|
61
|
+
*/
|
|
49
62
|
authModel?: GetAuthCodeResponseBodyAuthModel;
|
|
50
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The request ID.
|
|
66
|
+
*
|
|
51
67
|
* @example
|
|
52
68
|
* 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
|
|
53
69
|
*/
|
|
@@ -4,16 +4,27 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetStsTokenRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The Elastic Desktop Service (EDS) username.
|
|
9
|
+
*
|
|
10
|
+
* > Either EndUserId or ExternalId is required.
|
|
11
|
+
*
|
|
7
12
|
* @example
|
|
8
13
|
* Alex
|
|
9
14
|
*/
|
|
10
15
|
endUserId?: string;
|
|
11
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The validity period of the token, in seconds. The maximum period is two days.
|
|
19
|
+
*
|
|
12
20
|
* @example
|
|
13
21
|
* 600
|
|
14
22
|
*/
|
|
15
23
|
expiration?: number;
|
|
16
24
|
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The ID of the external user.
|
|
27
|
+
*
|
|
17
28
|
* @example
|
|
18
29
|
* Alex
|
|
19
30
|
*/
|
|
@@ -4,21 +4,33 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The tenant ID, which is the UID of the Alibaba Cloud account.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 105552640689****
|
|
9
12
|
*/
|
|
10
13
|
aliUid?: number;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The session ID.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* be4be09e-cd00-4b4c-add7-11b4d8****
|
|
14
20
|
*/
|
|
15
21
|
sessionId?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The temporary credentials.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* sts****
|
|
19
28
|
*/
|
|
20
29
|
stsToken?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The tenant ID, which is the UID of the Alibaba Cloud account.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* 105552640689****
|
|
24
36
|
*/
|
|
@@ -52,10 +64,17 @@ export class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
|
|
|
52
64
|
|
|
53
65
|
export class GetStsTokenResponseBody extends $dara.Model {
|
|
54
66
|
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The request ID.
|
|
69
|
+
*
|
|
55
70
|
* @example
|
|
56
71
|
* CCF92035-6231-5ABB-930E-1E003C32****
|
|
57
72
|
*/
|
|
58
73
|
requestId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The details of the token.
|
|
77
|
+
*/
|
|
59
78
|
stsTokenModel?: GetStsTokenResponseBodyStsTokenModel;
|
|
60
79
|
static names(): { [key: string]: string } {
|
|
61
80
|
return {
|