@alicloud/appstream-center20210901 5.6.6 → 5.7.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.
- package/dist/client.d.ts +21 -0
- package/dist/client.js +45 -0
- package/dist/client.js.map +1 -1
- package/dist/models/GetFileUploadInfoRequest.d.ts +23 -0
- package/dist/models/GetFileUploadInfoRequest.js +58 -0
- package/dist/models/GetFileUploadInfoRequest.js.map +1 -0
- package/dist/models/GetFileUploadInfoResponse.d.ts +19 -0
- package/dist/models/GetFileUploadInfoResponse.js +69 -0
- package/dist/models/GetFileUploadInfoResponse.js.map +1 -0
- package/dist/models/GetFileUploadInfoResponseBody.d.ts +118 -0
- package/dist/models/GetFileUploadInfoResponseBody.js +100 -0
- package/dist/models/GetFileUploadInfoResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +16 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +48 -0
- package/src/models/GetFileUploadInfoRequest.ts +36 -0
- package/src/models/GetFileUploadInfoResponse.ts +40 -0
- package/src/models/GetFileUploadInfoResponseBody.ts +164 -0
- package/src/models/model.ts +4 -0
package/src/client.ts
CHANGED
|
@@ -1830,6 +1830,54 @@ export default class Client extends OpenApi {
|
|
|
1830
1830
|
return await this.getDebugAppInstanceWithOptions(request, runtime);
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
|
+
/**
|
|
1834
|
+
* Retrieves file upload information.
|
|
1835
|
+
*
|
|
1836
|
+
* @remarks
|
|
1837
|
+
* Visitor information is filled in on the lead capture page when visitors execute a cloud flow. Therefore, the usage mode of cloud applications does not generate visitor information.
|
|
1838
|
+
*
|
|
1839
|
+
* @param request - GetFileUploadInfoRequest
|
|
1840
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1841
|
+
* @returns GetFileUploadInfoResponse
|
|
1842
|
+
*/
|
|
1843
|
+
async getFileUploadInfoWithOptions(request: $_model.GetFileUploadInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetFileUploadInfoResponse> {
|
|
1844
|
+
request.validate();
|
|
1845
|
+
let query = { };
|
|
1846
|
+
if (!$dara.isNull(request.fileType)) {
|
|
1847
|
+
query["FileType"] = request.fileType;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1851
|
+
query: OpenApiUtil.query(query),
|
|
1852
|
+
});
|
|
1853
|
+
let params = new $OpenApiUtil.Params({
|
|
1854
|
+
action: "GetFileUploadInfo",
|
|
1855
|
+
version: "2021-09-01",
|
|
1856
|
+
protocol: "HTTPS",
|
|
1857
|
+
pathname: "/",
|
|
1858
|
+
method: "POST",
|
|
1859
|
+
authType: "AK",
|
|
1860
|
+
style: "RPC",
|
|
1861
|
+
reqBodyType: "formData",
|
|
1862
|
+
bodyType: "json",
|
|
1863
|
+
});
|
|
1864
|
+
return $dara.cast<$_model.GetFileUploadInfoResponse>(await this.callApi(params, req, runtime), new $_model.GetFileUploadInfoResponse({}));
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Retrieves file upload information.
|
|
1869
|
+
*
|
|
1870
|
+
* @remarks
|
|
1871
|
+
* Visitor information is filled in on the lead capture page when visitors execute a cloud flow. Therefore, the usage mode of cloud applications does not generate visitor information.
|
|
1872
|
+
*
|
|
1873
|
+
* @param request - GetFileUploadInfoRequest
|
|
1874
|
+
* @returns GetFileUploadInfoResponse
|
|
1875
|
+
*/
|
|
1876
|
+
async getFileUploadInfo(request: $_model.GetFileUploadInfoRequest): Promise<$_model.GetFileUploadInfoResponse> {
|
|
1877
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1878
|
+
return await this.getFileUploadInfoWithOptions(request, runtime);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1833
1881
|
/**
|
|
1834
1882
|
* Queries the details of a model provider template.
|
|
1835
1883
|
*
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetFileUploadInfoRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The file type. Currently supported values: BrowserBookmarks and BrowserRestrictionUrls.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* BrowserBookmarks
|
|
14
|
+
*/
|
|
15
|
+
fileType?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
fileType: 'FileType',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
fileType: 'string',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
validate() {
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetFileUploadInfoResponseBody } from "./GetFileUploadInfoResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetFileUploadInfoResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetFileUploadInfoResponseBody;
|
|
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: GetFileUploadInfoResponseBody,
|
|
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,164 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetFileUploadInfoResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The temporary AccessKey ID returned by Security Token Service (STS).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* LTA****
|
|
12
|
+
*/
|
|
13
|
+
accessKeyId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The bucket name.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* appstream-*
|
|
20
|
+
*/
|
|
21
|
+
bucketName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The expiration time.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 600
|
|
28
|
+
*/
|
|
29
|
+
expiration?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The folder path.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* cn-shanghai/aig_upm/***
|
|
36
|
+
*/
|
|
37
|
+
filePath?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The maximum file size in bytes.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 52428800
|
|
44
|
+
*/
|
|
45
|
+
maxFileSize?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The OSS endpoint.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* oss-cn-shanghai.aliyuncs.com
|
|
52
|
+
*/
|
|
53
|
+
ossPoint?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The PostObject policy (Base64-encoded).
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ***
|
|
60
|
+
*/
|
|
61
|
+
policy?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The request ID.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* F591F0EA-AA10-52D2-ADA3-68397887B17C
|
|
68
|
+
*/
|
|
69
|
+
requestId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The PostObject policy signature (HMAC-SHA1).
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ****************************
|
|
76
|
+
*/
|
|
77
|
+
signature?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The temporary token returned by STS.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* C*****
|
|
84
|
+
*/
|
|
85
|
+
stsToken?: string;
|
|
86
|
+
static names(): { [key: string]: string } {
|
|
87
|
+
return {
|
|
88
|
+
accessKeyId: 'AccessKeyId',
|
|
89
|
+
bucketName: 'BucketName',
|
|
90
|
+
expiration: 'Expiration',
|
|
91
|
+
filePath: 'FilePath',
|
|
92
|
+
maxFileSize: 'MaxFileSize',
|
|
93
|
+
ossPoint: 'OssPoint',
|
|
94
|
+
policy: 'Policy',
|
|
95
|
+
requestId: 'RequestId',
|
|
96
|
+
signature: 'Signature',
|
|
97
|
+
stsToken: 'StsToken',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static types(): { [key: string]: any } {
|
|
102
|
+
return {
|
|
103
|
+
accessKeyId: 'string',
|
|
104
|
+
bucketName: 'string',
|
|
105
|
+
expiration: 'string',
|
|
106
|
+
filePath: 'string',
|
|
107
|
+
maxFileSize: 'number',
|
|
108
|
+
ossPoint: 'string',
|
|
109
|
+
policy: 'string',
|
|
110
|
+
requestId: 'string',
|
|
111
|
+
signature: 'string',
|
|
112
|
+
stsToken: 'string',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
validate() {
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
constructor(map?: { [key: string]: any }) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export class GetFileUploadInfoResponseBody extends $dara.Model {
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* Returns None.
|
|
129
|
+
*/
|
|
130
|
+
data?: GetFileUploadInfoResponseBodyData;
|
|
131
|
+
/**
|
|
132
|
+
* @remarks
|
|
133
|
+
* The request ID.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
|
|
137
|
+
*/
|
|
138
|
+
requestId?: string;
|
|
139
|
+
static names(): { [key: string]: string } {
|
|
140
|
+
return {
|
|
141
|
+
data: 'Data',
|
|
142
|
+
requestId: 'RequestId',
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static types(): { [key: string]: any } {
|
|
147
|
+
return {
|
|
148
|
+
data: GetFileUploadInfoResponseBodyData,
|
|
149
|
+
requestId: 'string',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
155
|
+
(this.data as any).validate();
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -35,6 +35,7 @@ export { GetAppInstanceGroupResponseBodyAppInstanceGroupModelsNodePool } from '.
|
|
|
35
35
|
export { GetAppInstanceGroupResponseBodyAppInstanceGroupModelsOtaInfo } from './GetAppInstanceGroupResponseBody';
|
|
36
36
|
export { GetAppInstanceGroupResponseBodyAppInstanceGroupModelsTags } from './GetAppInstanceGroupResponseBody';
|
|
37
37
|
export { GetAppInstanceGroupResponseBodyAppInstanceGroupModels } from './GetAppInstanceGroupResponseBody';
|
|
38
|
+
export { GetFileUploadInfoResponseBodyData } from './GetFileUploadInfoResponseBody';
|
|
38
39
|
export { GetModelProviderTemplateResponseBodyData } from './GetModelProviderTemplateResponseBody';
|
|
39
40
|
export { GetResourcePriceResponseBodyPriceListPricePromotions } from './GetResourcePriceResponseBody';
|
|
40
41
|
export { GetResourcePriceResponseBodyPriceListPrice } from './GetResourcePriceResponseBody';
|
|
@@ -217,6 +218,9 @@ export { GetConnectionTicketResponse } from './GetConnectionTicketResponse';
|
|
|
217
218
|
export { GetDebugAppInstanceRequest } from './GetDebugAppInstanceRequest';
|
|
218
219
|
export { GetDebugAppInstanceResponseBody } from './GetDebugAppInstanceResponseBody';
|
|
219
220
|
export { GetDebugAppInstanceResponse } from './GetDebugAppInstanceResponse';
|
|
221
|
+
export { GetFileUploadInfoRequest } from './GetFileUploadInfoRequest';
|
|
222
|
+
export { GetFileUploadInfoResponseBody } from './GetFileUploadInfoResponseBody';
|
|
223
|
+
export { GetFileUploadInfoResponse } from './GetFileUploadInfoResponse';
|
|
220
224
|
export { GetModelProviderTemplateRequest } from './GetModelProviderTemplateRequest';
|
|
221
225
|
export { GetModelProviderTemplateResponseBody } from './GetModelProviderTemplateResponseBody';
|
|
222
226
|
export { GetModelProviderTemplateResponse } from './GetModelProviderTemplateResponse';
|