@alicloud/ecd20200930 4.13.1 → 4.14.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 +15 -0
- package/dist/client.js +42 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeSecurityGroupAttributeRequest.d.ts +23 -0
- package/dist/models/DescribeSecurityGroupAttributeRequest.js +60 -0
- package/dist/models/DescribeSecurityGroupAttributeRequest.js.map +1 -0
- package/dist/models/DescribeSecurityGroupAttributeResponse.d.ts +19 -0
- package/dist/models/DescribeSecurityGroupAttributeResponse.js +69 -0
- package/dist/models/DescribeSecurityGroupAttributeResponse.js.map +1 -0
- package/dist/models/DescribeSecurityGroupAttributeResponseBody.d.ts +17 -0
- package/dist/models/DescribeSecurityGroupAttributeResponseBody.js +69 -0
- package/dist/models/DescribeSecurityGroupAttributeResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +14 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +46 -0
- package/src/models/DescribeSecurityGroupAttributeRequest.ts +38 -0
- package/src/models/DescribeSecurityGroupAttributeResponse.ts +40 -0
- package/src/models/DescribeSecurityGroupAttributeResponseBody.ts +40 -0
- package/src/models/model.ts +3 -0
package/src/client.ts
CHANGED
|
@@ -10592,6 +10592,52 @@ export default class Client extends OpenApi {
|
|
|
10592
10592
|
return await this.describeRouteTableListWithOptions(request, runtime);
|
|
10593
10593
|
}
|
|
10594
10594
|
|
|
10595
|
+
/**
|
|
10596
|
+
* 查询办公网络维度安全组策略
|
|
10597
|
+
*
|
|
10598
|
+
* @param request - DescribeSecurityGroupAttributeRequest
|
|
10599
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10600
|
+
* @returns DescribeSecurityGroupAttributeResponse
|
|
10601
|
+
*/
|
|
10602
|
+
async describeSecurityGroupAttributeWithOptions(request: $_model.DescribeSecurityGroupAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSecurityGroupAttributeResponse> {
|
|
10603
|
+
request.validate();
|
|
10604
|
+
let query = { };
|
|
10605
|
+
if (!$dara.isNull(request.officeSiteId)) {
|
|
10606
|
+
query["OfficeSiteId"] = request.officeSiteId;
|
|
10607
|
+
}
|
|
10608
|
+
|
|
10609
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10610
|
+
query["RegionId"] = request.regionId;
|
|
10611
|
+
}
|
|
10612
|
+
|
|
10613
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10614
|
+
query: OpenApiUtil.query(query),
|
|
10615
|
+
});
|
|
10616
|
+
let params = new $OpenApiUtil.Params({
|
|
10617
|
+
action: "DescribeSecurityGroupAttribute",
|
|
10618
|
+
version: "2020-09-30",
|
|
10619
|
+
protocol: "HTTPS",
|
|
10620
|
+
pathname: "/",
|
|
10621
|
+
method: "POST",
|
|
10622
|
+
authType: "AK",
|
|
10623
|
+
style: "RPC",
|
|
10624
|
+
reqBodyType: "formData",
|
|
10625
|
+
bodyType: "json",
|
|
10626
|
+
});
|
|
10627
|
+
return $dara.cast<$_model.DescribeSecurityGroupAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeSecurityGroupAttributeResponse({}));
|
|
10628
|
+
}
|
|
10629
|
+
|
|
10630
|
+
/**
|
|
10631
|
+
* 查询办公网络维度安全组策略
|
|
10632
|
+
*
|
|
10633
|
+
* @param request - DescribeSecurityGroupAttributeRequest
|
|
10634
|
+
* @returns DescribeSecurityGroupAttributeResponse
|
|
10635
|
+
*/
|
|
10636
|
+
async describeSecurityGroupAttribute(request: $_model.DescribeSecurityGroupAttributeRequest): Promise<$_model.DescribeSecurityGroupAttributeResponse> {
|
|
10637
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10638
|
+
return await this.describeSecurityGroupAttributeWithOptions(request, runtime);
|
|
10639
|
+
}
|
|
10640
|
+
|
|
10595
10641
|
/**
|
|
10596
10642
|
* Queries the session statistics of a region.
|
|
10597
10643
|
*
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeSecurityGroupAttributeRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
officeSiteId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*/
|
|
15
|
+
regionId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
officeSiteId: 'OfficeSiteId',
|
|
19
|
+
regionId: 'RegionId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
officeSiteId: 'string',
|
|
26
|
+
regionId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeSecurityGroupAttributeResponseBody } from "./DescribeSecurityGroupAttributeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeSecurityGroupAttributeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeSecurityGroupAttributeResponseBody;
|
|
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: DescribeSecurityGroupAttributeResponseBody,
|
|
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,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { Permission } from "./Permission";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeSecurityGroupAttributeResponseBody extends $dara.Model {
|
|
7
|
+
egressPermissions?: Permission[];
|
|
8
|
+
ingressPermissions?: Permission[];
|
|
9
|
+
requestId?: string;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
egressPermissions: 'EgressPermissions',
|
|
13
|
+
ingressPermissions: 'IngressPermissions',
|
|
14
|
+
requestId: 'RequestId',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
egressPermissions: { 'type': 'array', 'itemType': Permission },
|
|
21
|
+
ingressPermissions: { 'type': 'array', 'itemType': Permission },
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(Array.isArray(this.egressPermissions)) {
|
|
28
|
+
$dara.Model.validateArray(this.egressPermissions);
|
|
29
|
+
}
|
|
30
|
+
if(Array.isArray(this.ingressPermissions)) {
|
|
31
|
+
$dara.Model.validateArray(this.ingressPermissions);
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -701,6 +701,9 @@ export { DescribeRouteEntryListResponse } from './DescribeRouteEntryListResponse
|
|
|
701
701
|
export { DescribeRouteTableListRequest } from './DescribeRouteTableListRequest';
|
|
702
702
|
export { DescribeRouteTableListResponseBody } from './DescribeRouteTableListResponseBody';
|
|
703
703
|
export { DescribeRouteTableListResponse } from './DescribeRouteTableListResponse';
|
|
704
|
+
export { DescribeSecurityGroupAttributeRequest } from './DescribeSecurityGroupAttributeRequest';
|
|
705
|
+
export { DescribeSecurityGroupAttributeResponseBody } from './DescribeSecurityGroupAttributeResponseBody';
|
|
706
|
+
export { DescribeSecurityGroupAttributeResponse } from './DescribeSecurityGroupAttributeResponse';
|
|
704
707
|
export { DescribeSessionStatisticRequest } from './DescribeSessionStatisticRequest';
|
|
705
708
|
export { DescribeSessionStatisticResponseBody } from './DescribeSessionStatisticResponseBody';
|
|
706
709
|
export { DescribeSessionStatisticResponse } from './DescribeSessionStatisticResponse';
|