@alicloud/ecd20200930 3.0.1 → 3.1.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.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.7",
24
+ "@alicloud/openapi-client": "^0.4.8",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
@@ -29,4 +29,4 @@
29
29
  "dist",
30
30
  "src"
31
31
  ]
32
- }
32
+ }
package/src/client.ts CHANGED
@@ -9773,6 +9773,78 @@ export class DisableDesktopsInGroupResponse extends $tea.Model {
9773
9773
  }
9774
9774
  }
9775
9775
 
9776
+ export class DisconnectDesktopSessionsRequest extends $tea.Model {
9777
+ preCheck?: boolean;
9778
+ regionId?: string;
9779
+ sessions?: DisconnectDesktopSessionsRequestSessions[];
9780
+ static names(): { [key: string]: string } {
9781
+ return {
9782
+ preCheck: 'PreCheck',
9783
+ regionId: 'RegionId',
9784
+ sessions: 'Sessions',
9785
+ };
9786
+ }
9787
+
9788
+ static types(): { [key: string]: any } {
9789
+ return {
9790
+ preCheck: 'boolean',
9791
+ regionId: 'string',
9792
+ sessions: { 'type': 'array', 'itemType': DisconnectDesktopSessionsRequestSessions },
9793
+ };
9794
+ }
9795
+
9796
+ constructor(map?: { [key: string]: any }) {
9797
+ super(map);
9798
+ }
9799
+ }
9800
+
9801
+ export class DisconnectDesktopSessionsResponseBody extends $tea.Model {
9802
+ invalidSessions?: DisconnectDesktopSessionsResponseBodyInvalidSessions[];
9803
+ requestId?: string;
9804
+ static names(): { [key: string]: string } {
9805
+ return {
9806
+ invalidSessions: 'InvalidSessions',
9807
+ requestId: 'RequestId',
9808
+ };
9809
+ }
9810
+
9811
+ static types(): { [key: string]: any } {
9812
+ return {
9813
+ invalidSessions: { 'type': 'array', 'itemType': DisconnectDesktopSessionsResponseBodyInvalidSessions },
9814
+ requestId: 'string',
9815
+ };
9816
+ }
9817
+
9818
+ constructor(map?: { [key: string]: any }) {
9819
+ super(map);
9820
+ }
9821
+ }
9822
+
9823
+ export class DisconnectDesktopSessionsResponse extends $tea.Model {
9824
+ headers?: { [key: string]: string };
9825
+ statusCode?: number;
9826
+ body?: DisconnectDesktopSessionsResponseBody;
9827
+ static names(): { [key: string]: string } {
9828
+ return {
9829
+ headers: 'headers',
9830
+ statusCode: 'statusCode',
9831
+ body: 'body',
9832
+ };
9833
+ }
9834
+
9835
+ static types(): { [key: string]: any } {
9836
+ return {
9837
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9838
+ statusCode: 'number',
9839
+ body: DisconnectDesktopSessionsResponseBody,
9840
+ };
9841
+ }
9842
+
9843
+ constructor(map?: { [key: string]: any }) {
9844
+ super(map);
9845
+ }
9846
+ }
9847
+
9776
9848
  export class DissociateNetworkPackageRequest extends $tea.Model {
9777
9849
  networkPackageId?: string;
9778
9850
  regionId?: string;
@@ -20948,6 +21020,50 @@ export class DescribeZonesResponseBodyZones extends $tea.Model {
20948
21020
  }
20949
21021
  }
20950
21022
 
21023
+ export class DisconnectDesktopSessionsRequestSessions extends $tea.Model {
21024
+ desktopId?: string;
21025
+ endUserId?: string;
21026
+ static names(): { [key: string]: string } {
21027
+ return {
21028
+ desktopId: 'DesktopId',
21029
+ endUserId: 'EndUserId',
21030
+ };
21031
+ }
21032
+
21033
+ static types(): { [key: string]: any } {
21034
+ return {
21035
+ desktopId: 'string',
21036
+ endUserId: 'string',
21037
+ };
21038
+ }
21039
+
21040
+ constructor(map?: { [key: string]: any }) {
21041
+ super(map);
21042
+ }
21043
+ }
21044
+
21045
+ export class DisconnectDesktopSessionsResponseBodyInvalidSessions extends $tea.Model {
21046
+ desktopId?: string;
21047
+ endUserId?: string;
21048
+ static names(): { [key: string]: string } {
21049
+ return {
21050
+ desktopId: 'DesktopId',
21051
+ endUserId: 'EndUserId',
21052
+ };
21053
+ }
21054
+
21055
+ static types(): { [key: string]: any } {
21056
+ return {
21057
+ desktopId: 'string',
21058
+ endUserId: 'string',
21059
+ };
21060
+ }
21061
+
21062
+ constructor(map?: { [key: string]: any }) {
21063
+ super(map);
21064
+ }
21065
+ }
21066
+
20951
21067
  export class ExportDesktopListInfoRequestTag extends $tea.Model {
20952
21068
  key?: string;
20953
21069
  value?: string;
@@ -22117,6 +22233,7 @@ export default class Client extends OpenApi {
22117
22233
 
22118
22234
  constructor(config: $OpenApi.Config) {
22119
22235
  super(config);
22236
+ this._signatureAlgorithm = "v2";
22120
22237
  this._endpointRule = "regional";
22121
22238
  this.checkConfig(config);
22122
22239
  this._endpoint = this.getEndpoint("ecd", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -28572,6 +28689,43 @@ export default class Client extends OpenApi {
28572
28689
  return await this.disableDesktopsInGroupWithOptions(request, runtime);
28573
28690
  }
28574
28691
 
28692
+ async disconnectDesktopSessionsWithOptions(request: DisconnectDesktopSessionsRequest, runtime: $Util.RuntimeOptions): Promise<DisconnectDesktopSessionsResponse> {
28693
+ Util.validateModel(request);
28694
+ let query = { };
28695
+ if (!Util.isUnset(request.preCheck)) {
28696
+ query["PreCheck"] = request.preCheck;
28697
+ }
28698
+
28699
+ if (!Util.isUnset(request.regionId)) {
28700
+ query["RegionId"] = request.regionId;
28701
+ }
28702
+
28703
+ if (!Util.isUnset(request.sessions)) {
28704
+ query["Sessions"] = request.sessions;
28705
+ }
28706
+
28707
+ let req = new $OpenApi.OpenApiRequest({
28708
+ query: OpenApiUtil.query(query),
28709
+ });
28710
+ let params = new $OpenApi.Params({
28711
+ action: "DisconnectDesktopSessions",
28712
+ version: "2020-09-30",
28713
+ protocol: "HTTPS",
28714
+ pathname: "/",
28715
+ method: "POST",
28716
+ authType: "AK",
28717
+ style: "RPC",
28718
+ reqBodyType: "formData",
28719
+ bodyType: "json",
28720
+ });
28721
+ return $tea.cast<DisconnectDesktopSessionsResponse>(await this.callApi(params, req, runtime), new DisconnectDesktopSessionsResponse({}));
28722
+ }
28723
+
28724
+ async disconnectDesktopSessions(request: DisconnectDesktopSessionsRequest): Promise<DisconnectDesktopSessionsResponse> {
28725
+ let runtime = new $Util.RuntimeOptions({ });
28726
+ return await this.disconnectDesktopSessionsWithOptions(request, runtime);
28727
+ }
28728
+
28575
28729
  async dissociateNetworkPackageWithOptions(request: DissociateNetworkPackageRequest, runtime: $Util.RuntimeOptions): Promise<DissociateNetworkPackageResponse> {
28576
28730
  Util.validateModel(request);
28577
28731
  let query = { };