@alicloud/ecd20200930 3.3.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ecd20200930",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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;
@@ -15240,18 +15333,22 @@ export class RenewNetworkPackagesResponse extends $tea.Model {
15240
15333
 
15241
15334
  export class ResetDesktopsRequest extends $tea.Model {
15242
15335
  desktopGroupId?: string;
15336
+ desktopGroupIds?: string[];
15243
15337
  desktopId?: string[];
15244
15338
  imageId?: string;
15245
15339
  payType?: string;
15246
15340
  regionId?: string;
15341
+ resetScope?: string;
15247
15342
  resetType?: string;
15248
15343
  static names(): { [key: string]: string } {
15249
15344
  return {
15250
15345
  desktopGroupId: 'DesktopGroupId',
15346
+ desktopGroupIds: 'DesktopGroupIds',
15251
15347
  desktopId: 'DesktopId',
15252
15348
  imageId: 'ImageId',
15253
15349
  payType: 'PayType',
15254
15350
  regionId: 'RegionId',
15351
+ resetScope: 'ResetScope',
15255
15352
  resetType: 'ResetType',
15256
15353
  };
15257
15354
  }
@@ -15259,10 +15356,12 @@ export class ResetDesktopsRequest extends $tea.Model {
15259
15356
  static types(): { [key: string]: any } {
15260
15357
  return {
15261
15358
  desktopGroupId: 'string',
15359
+ desktopGroupIds: { 'type': 'array', 'itemType': 'string' },
15262
15360
  desktopId: { 'type': 'array', 'itemType': 'string' },
15263
15361
  imageId: 'string',
15264
15362
  payType: 'string',
15265
15363
  regionId: 'string',
15364
+ resetScope: 'string',
15266
15365
  resetType: 'string',
15267
15366
  };
15268
15367
  }
@@ -18053,6 +18152,79 @@ export class DescribeCustomizedListHeadersResponseBodyHeaders extends $tea.Model
18053
18152
  }
18054
18153
  }
18055
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
+
18056
18228
  export class DescribeDesktopGroupsResponseBodyDesktopGroupsCountPerStatus extends $tea.Model {
18057
18229
  count?: number;
18058
18230
  status?: string;
@@ -26472,6 +26644,63 @@ export default class Client extends OpenApi {
26472
26644
  return await this.describeCustomizedListHeadersWithOptions(request, runtime);
26473
26645
  }
26474
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
+
26475
26704
  async describeDesktopGroupsWithOptions(request: DescribeDesktopGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDesktopGroupsResponse> {
26476
26705
  Util.validateModel(request);
26477
26706
  let query = { };
@@ -32474,6 +32703,10 @@ export default class Client extends OpenApi {
32474
32703
  query["DesktopGroupId"] = request.desktopGroupId;
32475
32704
  }
32476
32705
 
32706
+ if (!Util.isUnset(request.desktopGroupIds)) {
32707
+ query["DesktopGroupIds"] = request.desktopGroupIds;
32708
+ }
32709
+
32477
32710
  if (!Util.isUnset(request.desktopId)) {
32478
32711
  query["DesktopId"] = request.desktopId;
32479
32712
  }
@@ -32490,6 +32723,10 @@ export default class Client extends OpenApi {
32490
32723
  query["RegionId"] = request.regionId;
32491
32724
  }
32492
32725
 
32726
+ if (!Util.isUnset(request.resetScope)) {
32727
+ query["ResetScope"] = request.resetScope;
32728
+ }
32729
+
32493
32730
  if (!Util.isUnset(request.resetType)) {
32494
32731
  query["ResetType"] = request.resetType;
32495
32732
  }