@alicloud/ecd20200930 3.3.1 → 3.4.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 +82 -0
- package/dist/client.js +172 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +223 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -6107,6 +6107,99 @@ export class DescribeCustomizedListHeadersResponse extends $tea.Model {
|
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
6109
|
|
|
6110
|
+
export class DescribeDesktopGroupSessionsRequest extends $tea.Model {
|
|
6111
|
+
endTime?: string;
|
|
6112
|
+
endUserId?: string;
|
|
6113
|
+
maxResults?: number;
|
|
6114
|
+
nextToken?: string;
|
|
6115
|
+
ownType?: number;
|
|
6116
|
+
regionId?: string;
|
|
6117
|
+
sessionStatus?: string;
|
|
6118
|
+
startTime?: string;
|
|
6119
|
+
static names(): { [key: string]: string } {
|
|
6120
|
+
return {
|
|
6121
|
+
endTime: 'EndTime',
|
|
6122
|
+
endUserId: 'EndUserId',
|
|
6123
|
+
maxResults: 'MaxResults',
|
|
6124
|
+
nextToken: 'NextToken',
|
|
6125
|
+
ownType: 'OwnType',
|
|
6126
|
+
regionId: 'RegionId',
|
|
6127
|
+
sessionStatus: 'SessionStatus',
|
|
6128
|
+
startTime: 'StartTime',
|
|
6129
|
+
};
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6132
|
+
static types(): { [key: string]: any } {
|
|
6133
|
+
return {
|
|
6134
|
+
endTime: 'string',
|
|
6135
|
+
endUserId: 'string',
|
|
6136
|
+
maxResults: 'number',
|
|
6137
|
+
nextToken: 'string',
|
|
6138
|
+
ownType: 'number',
|
|
6139
|
+
regionId: 'string',
|
|
6140
|
+
sessionStatus: 'string',
|
|
6141
|
+
startTime: 'string',
|
|
6142
|
+
};
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
constructor(map?: { [key: string]: any }) {
|
|
6146
|
+
super(map);
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6149
|
+
|
|
6150
|
+
export class DescribeDesktopGroupSessionsResponseBody extends $tea.Model {
|
|
6151
|
+
nextToken?: string;
|
|
6152
|
+
requestId?: string;
|
|
6153
|
+
sessions?: DescribeDesktopGroupSessionsResponseBodySessions[];
|
|
6154
|
+
totalCount?: number;
|
|
6155
|
+
static names(): { [key: string]: string } {
|
|
6156
|
+
return {
|
|
6157
|
+
nextToken: 'NextToken',
|
|
6158
|
+
requestId: 'RequestId',
|
|
6159
|
+
sessions: 'Sessions',
|
|
6160
|
+
totalCount: 'TotalCount',
|
|
6161
|
+
};
|
|
6162
|
+
}
|
|
6163
|
+
|
|
6164
|
+
static types(): { [key: string]: any } {
|
|
6165
|
+
return {
|
|
6166
|
+
nextToken: 'string',
|
|
6167
|
+
requestId: 'string',
|
|
6168
|
+
sessions: { 'type': 'array', 'itemType': DescribeDesktopGroupSessionsResponseBodySessions },
|
|
6169
|
+
totalCount: 'number',
|
|
6170
|
+
};
|
|
6171
|
+
}
|
|
6172
|
+
|
|
6173
|
+
constructor(map?: { [key: string]: any }) {
|
|
6174
|
+
super(map);
|
|
6175
|
+
}
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
export class DescribeDesktopGroupSessionsResponse extends $tea.Model {
|
|
6179
|
+
headers?: { [key: string]: string };
|
|
6180
|
+
statusCode?: number;
|
|
6181
|
+
body?: DescribeDesktopGroupSessionsResponseBody;
|
|
6182
|
+
static names(): { [key: string]: string } {
|
|
6183
|
+
return {
|
|
6184
|
+
headers: 'headers',
|
|
6185
|
+
statusCode: 'statusCode',
|
|
6186
|
+
body: 'body',
|
|
6187
|
+
};
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
static types(): { [key: string]: any } {
|
|
6191
|
+
return {
|
|
6192
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6193
|
+
statusCode: 'number',
|
|
6194
|
+
body: DescribeDesktopGroupSessionsResponseBody,
|
|
6195
|
+
};
|
|
6196
|
+
}
|
|
6197
|
+
|
|
6198
|
+
constructor(map?: { [key: string]: any }) {
|
|
6199
|
+
super(map);
|
|
6200
|
+
}
|
|
6201
|
+
}
|
|
6202
|
+
|
|
6110
6203
|
export class DescribeDesktopGroupsRequest extends $tea.Model {
|
|
6111
6204
|
bundleId?: string[];
|
|
6112
6205
|
desktopGroupId?: string;
|
|
@@ -18059,6 +18152,79 @@ export class DescribeCustomizedListHeadersResponseBodyHeaders extends $tea.Model
|
|
|
18059
18152
|
}
|
|
18060
18153
|
}
|
|
18061
18154
|
|
|
18155
|
+
export class DescribeDesktopGroupSessionsResponseBodySessions extends $tea.Model {
|
|
18156
|
+
clientIp?: string;
|
|
18157
|
+
clientOS?: string;
|
|
18158
|
+
clientVersion?: string;
|
|
18159
|
+
desktopGroupId?: string;
|
|
18160
|
+
desktopGroupName?: string;
|
|
18161
|
+
desktopId?: string;
|
|
18162
|
+
endUserApplyCoordinateTime?: number;
|
|
18163
|
+
endUserId?: string;
|
|
18164
|
+
lastSessionEndTime?: string;
|
|
18165
|
+
lastSessionStartTime?: string;
|
|
18166
|
+
latestConnectionTime?: number;
|
|
18167
|
+
officeSiteId?: string;
|
|
18168
|
+
officeSiteName?: string;
|
|
18169
|
+
osType?: string;
|
|
18170
|
+
ownType?: number;
|
|
18171
|
+
protocolType?: string;
|
|
18172
|
+
sessionIdleTime?: number;
|
|
18173
|
+
sessionStatus?: string;
|
|
18174
|
+
totalConnectionDuration?: number;
|
|
18175
|
+
static names(): { [key: string]: string } {
|
|
18176
|
+
return {
|
|
18177
|
+
clientIp: 'ClientIp',
|
|
18178
|
+
clientOS: 'ClientOS',
|
|
18179
|
+
clientVersion: 'ClientVersion',
|
|
18180
|
+
desktopGroupId: 'DesktopGroupId',
|
|
18181
|
+
desktopGroupName: 'DesktopGroupName',
|
|
18182
|
+
desktopId: 'DesktopId',
|
|
18183
|
+
endUserApplyCoordinateTime: 'EndUserApplyCoordinateTime',
|
|
18184
|
+
endUserId: 'EndUserId',
|
|
18185
|
+
lastSessionEndTime: 'LastSessionEndTime',
|
|
18186
|
+
lastSessionStartTime: 'LastSessionStartTime',
|
|
18187
|
+
latestConnectionTime: 'LatestConnectionTime',
|
|
18188
|
+
officeSiteId: 'OfficeSiteId',
|
|
18189
|
+
officeSiteName: 'OfficeSiteName',
|
|
18190
|
+
osType: 'OsType',
|
|
18191
|
+
ownType: 'OwnType',
|
|
18192
|
+
protocolType: 'ProtocolType',
|
|
18193
|
+
sessionIdleTime: 'SessionIdleTime',
|
|
18194
|
+
sessionStatus: 'SessionStatus',
|
|
18195
|
+
totalConnectionDuration: 'TotalConnectionDuration',
|
|
18196
|
+
};
|
|
18197
|
+
}
|
|
18198
|
+
|
|
18199
|
+
static types(): { [key: string]: any } {
|
|
18200
|
+
return {
|
|
18201
|
+
clientIp: 'string',
|
|
18202
|
+
clientOS: 'string',
|
|
18203
|
+
clientVersion: 'string',
|
|
18204
|
+
desktopGroupId: 'string',
|
|
18205
|
+
desktopGroupName: 'string',
|
|
18206
|
+
desktopId: 'string',
|
|
18207
|
+
endUserApplyCoordinateTime: 'number',
|
|
18208
|
+
endUserId: 'string',
|
|
18209
|
+
lastSessionEndTime: 'string',
|
|
18210
|
+
lastSessionStartTime: 'string',
|
|
18211
|
+
latestConnectionTime: 'number',
|
|
18212
|
+
officeSiteId: 'string',
|
|
18213
|
+
officeSiteName: 'string',
|
|
18214
|
+
osType: 'string',
|
|
18215
|
+
ownType: 'number',
|
|
18216
|
+
protocolType: 'string',
|
|
18217
|
+
sessionIdleTime: 'number',
|
|
18218
|
+
sessionStatus: 'string',
|
|
18219
|
+
totalConnectionDuration: 'number',
|
|
18220
|
+
};
|
|
18221
|
+
}
|
|
18222
|
+
|
|
18223
|
+
constructor(map?: { [key: string]: any }) {
|
|
18224
|
+
super(map);
|
|
18225
|
+
}
|
|
18226
|
+
}
|
|
18227
|
+
|
|
18062
18228
|
export class DescribeDesktopGroupsResponseBodyDesktopGroupsCountPerStatus extends $tea.Model {
|
|
18063
18229
|
count?: number;
|
|
18064
18230
|
status?: string;
|
|
@@ -26478,6 +26644,63 @@ export default class Client extends OpenApi {
|
|
|
26478
26644
|
return await this.describeCustomizedListHeadersWithOptions(request, runtime);
|
|
26479
26645
|
}
|
|
26480
26646
|
|
|
26647
|
+
async describeDesktopGroupSessionsWithOptions(request: DescribeDesktopGroupSessionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDesktopGroupSessionsResponse> {
|
|
26648
|
+
Util.validateModel(request);
|
|
26649
|
+
let query = { };
|
|
26650
|
+
if (!Util.isUnset(request.endTime)) {
|
|
26651
|
+
query["EndTime"] = request.endTime;
|
|
26652
|
+
}
|
|
26653
|
+
|
|
26654
|
+
if (!Util.isUnset(request.endUserId)) {
|
|
26655
|
+
query["EndUserId"] = request.endUserId;
|
|
26656
|
+
}
|
|
26657
|
+
|
|
26658
|
+
if (!Util.isUnset(request.maxResults)) {
|
|
26659
|
+
query["MaxResults"] = request.maxResults;
|
|
26660
|
+
}
|
|
26661
|
+
|
|
26662
|
+
if (!Util.isUnset(request.nextToken)) {
|
|
26663
|
+
query["NextToken"] = request.nextToken;
|
|
26664
|
+
}
|
|
26665
|
+
|
|
26666
|
+
if (!Util.isUnset(request.ownType)) {
|
|
26667
|
+
query["OwnType"] = request.ownType;
|
|
26668
|
+
}
|
|
26669
|
+
|
|
26670
|
+
if (!Util.isUnset(request.regionId)) {
|
|
26671
|
+
query["RegionId"] = request.regionId;
|
|
26672
|
+
}
|
|
26673
|
+
|
|
26674
|
+
if (!Util.isUnset(request.sessionStatus)) {
|
|
26675
|
+
query["SessionStatus"] = request.sessionStatus;
|
|
26676
|
+
}
|
|
26677
|
+
|
|
26678
|
+
if (!Util.isUnset(request.startTime)) {
|
|
26679
|
+
query["StartTime"] = request.startTime;
|
|
26680
|
+
}
|
|
26681
|
+
|
|
26682
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
26683
|
+
query: OpenApiUtil.query(query),
|
|
26684
|
+
});
|
|
26685
|
+
let params = new $OpenApi.Params({
|
|
26686
|
+
action: "DescribeDesktopGroupSessions",
|
|
26687
|
+
version: "2020-09-30",
|
|
26688
|
+
protocol: "HTTPS",
|
|
26689
|
+
pathname: "/",
|
|
26690
|
+
method: "POST",
|
|
26691
|
+
authType: "AK",
|
|
26692
|
+
style: "RPC",
|
|
26693
|
+
reqBodyType: "formData",
|
|
26694
|
+
bodyType: "json",
|
|
26695
|
+
});
|
|
26696
|
+
return $tea.cast<DescribeDesktopGroupSessionsResponse>(await this.callApi(params, req, runtime), new DescribeDesktopGroupSessionsResponse({}));
|
|
26697
|
+
}
|
|
26698
|
+
|
|
26699
|
+
async describeDesktopGroupSessions(request: DescribeDesktopGroupSessionsRequest): Promise<DescribeDesktopGroupSessionsResponse> {
|
|
26700
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
26701
|
+
return await this.describeDesktopGroupSessionsWithOptions(request, runtime);
|
|
26702
|
+
}
|
|
26703
|
+
|
|
26481
26704
|
async describeDesktopGroupsWithOptions(request: DescribeDesktopGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDesktopGroupsResponse> {
|
|
26482
26705
|
Util.validateModel(request);
|
|
26483
26706
|
let query = { };
|