@alicloud/cloudfw20171207 1.5.1 → 2.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/dist/client.d.ts +50 -2
- package/dist/client.js +98 -5
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +120 -6
package/dist/client.d.ts
CHANGED
|
@@ -2945,6 +2945,7 @@ export declare class ModifyNatFirewallControlPolicyRequest extends $tea.Model {
|
|
|
2945
2945
|
destPortType?: string;
|
|
2946
2946
|
destination?: string;
|
|
2947
2947
|
destinationType?: string;
|
|
2948
|
+
direction?: string;
|
|
2948
2949
|
domainResolveType?: string;
|
|
2949
2950
|
endTime?: number;
|
|
2950
2951
|
lang?: string;
|
|
@@ -2998,6 +2999,7 @@ export declare class ModifyNatFirewallControlPolicyResponse extends $tea.Model {
|
|
|
2998
2999
|
}
|
|
2999
3000
|
export declare class ModifyNatFirewallControlPolicyPositionRequest extends $tea.Model {
|
|
3000
3001
|
aclUuid?: string;
|
|
3002
|
+
direction?: string;
|
|
3001
3003
|
lang?: string;
|
|
3002
3004
|
natGatewayId?: string;
|
|
3003
3005
|
newOrder?: number;
|
|
@@ -3728,6 +3730,49 @@ export declare class PutEnableFwSwitchResponse extends $tea.Model {
|
|
|
3728
3730
|
[key: string]: any;
|
|
3729
3731
|
});
|
|
3730
3732
|
}
|
|
3733
|
+
export declare class ReleasePostInstanceRequest extends $tea.Model {
|
|
3734
|
+
instanceId?: string;
|
|
3735
|
+
static names(): {
|
|
3736
|
+
[key: string]: string;
|
|
3737
|
+
};
|
|
3738
|
+
static types(): {
|
|
3739
|
+
[key: string]: any;
|
|
3740
|
+
};
|
|
3741
|
+
constructor(map?: {
|
|
3742
|
+
[key: string]: any;
|
|
3743
|
+
});
|
|
3744
|
+
}
|
|
3745
|
+
export declare class ReleasePostInstanceResponseBody extends $tea.Model {
|
|
3746
|
+
httpStatusCode?: number;
|
|
3747
|
+
releaseStatus?: boolean;
|
|
3748
|
+
requestId?: string;
|
|
3749
|
+
success?: boolean;
|
|
3750
|
+
static names(): {
|
|
3751
|
+
[key: string]: string;
|
|
3752
|
+
};
|
|
3753
|
+
static types(): {
|
|
3754
|
+
[key: string]: any;
|
|
3755
|
+
};
|
|
3756
|
+
constructor(map?: {
|
|
3757
|
+
[key: string]: any;
|
|
3758
|
+
});
|
|
3759
|
+
}
|
|
3760
|
+
export declare class ReleasePostInstanceResponse extends $tea.Model {
|
|
3761
|
+
headers: {
|
|
3762
|
+
[key: string]: string;
|
|
3763
|
+
};
|
|
3764
|
+
statusCode: number;
|
|
3765
|
+
body: ReleasePostInstanceResponseBody;
|
|
3766
|
+
static names(): {
|
|
3767
|
+
[key: string]: string;
|
|
3768
|
+
};
|
|
3769
|
+
static types(): {
|
|
3770
|
+
[key: string]: any;
|
|
3771
|
+
};
|
|
3772
|
+
constructor(map?: {
|
|
3773
|
+
[key: string]: any;
|
|
3774
|
+
});
|
|
3775
|
+
}
|
|
3731
3776
|
export declare class ResetVpcFirewallRuleHitCountRequest extends $tea.Model {
|
|
3732
3777
|
aclUuid?: string;
|
|
3733
3778
|
lang?: string;
|
|
@@ -4543,6 +4588,7 @@ export declare class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList ext
|
|
|
4543
4588
|
aclGroupId?: string;
|
|
4544
4589
|
aclGroupName?: string;
|
|
4545
4590
|
aclRuleCount?: number;
|
|
4591
|
+
isDefault?: boolean;
|
|
4546
4592
|
memberUid?: string;
|
|
4547
4593
|
static names(): {
|
|
4548
4594
|
[key: string]: string;
|
|
@@ -5188,7 +5234,7 @@ export default class Client extends OpenApi {
|
|
|
5188
5234
|
*/
|
|
5189
5235
|
batchCopyVpcFirewallControlPolicy(request: BatchCopyVpcFirewallControlPolicyRequest): Promise<BatchCopyVpcFirewallControlPolicyResponse>;
|
|
5190
5236
|
/**
|
|
5191
|
-
* You can
|
|
5237
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
5192
5238
|
*
|
|
5193
5239
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
5194
5240
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -5196,7 +5242,7 @@ export default class Client extends OpenApi {
|
|
|
5196
5242
|
*/
|
|
5197
5243
|
createNatFirewallControlPolicyWithOptions(request: CreateNatFirewallControlPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreateNatFirewallControlPolicyResponse>;
|
|
5198
5244
|
/**
|
|
5199
|
-
* You can
|
|
5245
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
5200
5246
|
*
|
|
5201
5247
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
5202
5248
|
* @return CreateNatFirewallControlPolicyResponse
|
|
@@ -6099,6 +6145,8 @@ export default class Client extends OpenApi {
|
|
|
6099
6145
|
* @return PutEnableFwSwitchResponse
|
|
6100
6146
|
*/
|
|
6101
6147
|
putEnableFwSwitch(request: PutEnableFwSwitchRequest): Promise<PutEnableFwSwitchResponse>;
|
|
6148
|
+
releasePostInstanceWithOptions(request: ReleasePostInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ReleasePostInstanceResponse>;
|
|
6149
|
+
releasePostInstance(request: ReleasePostInstanceRequest): Promise<ReleasePostInstanceResponse>;
|
|
6102
6150
|
/**
|
|
6103
6151
|
* You can call the ResetVpcFirewallRuleHitCount operation to clear the count on hits of an access control policy that is created for a VPC firewall in a specific policy group.
|
|
6104
6152
|
* ## Limits
|
package/dist/client.js
CHANGED
|
@@ -4236,6 +4236,7 @@ class ModifyNatFirewallControlPolicyRequest extends $tea.Model {
|
|
|
4236
4236
|
destPortType: 'DestPortType',
|
|
4237
4237
|
destination: 'Destination',
|
|
4238
4238
|
destinationType: 'DestinationType',
|
|
4239
|
+
direction: 'Direction',
|
|
4239
4240
|
domainResolveType: 'DomainResolveType',
|
|
4240
4241
|
endTime: 'EndTime',
|
|
4241
4242
|
lang: 'Lang',
|
|
@@ -4262,6 +4263,7 @@ class ModifyNatFirewallControlPolicyRequest extends $tea.Model {
|
|
|
4262
4263
|
destPortType: 'string',
|
|
4263
4264
|
destination: 'string',
|
|
4264
4265
|
destinationType: 'string',
|
|
4266
|
+
direction: 'string',
|
|
4265
4267
|
domainResolveType: 'string',
|
|
4266
4268
|
endTime: 'number',
|
|
4267
4269
|
lang: 'string',
|
|
@@ -4322,6 +4324,7 @@ class ModifyNatFirewallControlPolicyPositionRequest extends $tea.Model {
|
|
|
4322
4324
|
static names() {
|
|
4323
4325
|
return {
|
|
4324
4326
|
aclUuid: 'AclUuid',
|
|
4327
|
+
direction: 'Direction',
|
|
4325
4328
|
lang: 'Lang',
|
|
4326
4329
|
natGatewayId: 'NatGatewayId',
|
|
4327
4330
|
newOrder: 'NewOrder',
|
|
@@ -4330,6 +4333,7 @@ class ModifyNatFirewallControlPolicyPositionRequest extends $tea.Model {
|
|
|
4330
4333
|
static types() {
|
|
4331
4334
|
return {
|
|
4332
4335
|
aclUuid: 'string',
|
|
4336
|
+
direction: 'string',
|
|
4333
4337
|
lang: 'string',
|
|
4334
4338
|
natGatewayId: 'string',
|
|
4335
4339
|
newOrder: 'number',
|
|
@@ -5323,6 +5327,64 @@ class PutEnableFwSwitchResponse extends $tea.Model {
|
|
|
5323
5327
|
}
|
|
5324
5328
|
}
|
|
5325
5329
|
exports.PutEnableFwSwitchResponse = PutEnableFwSwitchResponse;
|
|
5330
|
+
class ReleasePostInstanceRequest extends $tea.Model {
|
|
5331
|
+
constructor(map) {
|
|
5332
|
+
super(map);
|
|
5333
|
+
}
|
|
5334
|
+
static names() {
|
|
5335
|
+
return {
|
|
5336
|
+
instanceId: 'InstanceId',
|
|
5337
|
+
};
|
|
5338
|
+
}
|
|
5339
|
+
static types() {
|
|
5340
|
+
return {
|
|
5341
|
+
instanceId: 'string',
|
|
5342
|
+
};
|
|
5343
|
+
}
|
|
5344
|
+
}
|
|
5345
|
+
exports.ReleasePostInstanceRequest = ReleasePostInstanceRequest;
|
|
5346
|
+
class ReleasePostInstanceResponseBody extends $tea.Model {
|
|
5347
|
+
constructor(map) {
|
|
5348
|
+
super(map);
|
|
5349
|
+
}
|
|
5350
|
+
static names() {
|
|
5351
|
+
return {
|
|
5352
|
+
httpStatusCode: 'HttpStatusCode',
|
|
5353
|
+
releaseStatus: 'ReleaseStatus',
|
|
5354
|
+
requestId: 'RequestId',
|
|
5355
|
+
success: 'Success',
|
|
5356
|
+
};
|
|
5357
|
+
}
|
|
5358
|
+
static types() {
|
|
5359
|
+
return {
|
|
5360
|
+
httpStatusCode: 'number',
|
|
5361
|
+
releaseStatus: 'boolean',
|
|
5362
|
+
requestId: 'string',
|
|
5363
|
+
success: 'boolean',
|
|
5364
|
+
};
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
exports.ReleasePostInstanceResponseBody = ReleasePostInstanceResponseBody;
|
|
5368
|
+
class ReleasePostInstanceResponse extends $tea.Model {
|
|
5369
|
+
constructor(map) {
|
|
5370
|
+
super(map);
|
|
5371
|
+
}
|
|
5372
|
+
static names() {
|
|
5373
|
+
return {
|
|
5374
|
+
headers: 'headers',
|
|
5375
|
+
statusCode: 'statusCode',
|
|
5376
|
+
body: 'body',
|
|
5377
|
+
};
|
|
5378
|
+
}
|
|
5379
|
+
static types() {
|
|
5380
|
+
return {
|
|
5381
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5382
|
+
statusCode: 'number',
|
|
5383
|
+
body: ReleasePostInstanceResponseBody,
|
|
5384
|
+
};
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5387
|
+
exports.ReleasePostInstanceResponse = ReleasePostInstanceResponse;
|
|
5326
5388
|
class ResetVpcFirewallRuleHitCountRequest extends $tea.Model {
|
|
5327
5389
|
constructor(map) {
|
|
5328
5390
|
super(map);
|
|
@@ -6606,6 +6668,7 @@ class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList extends $tea.Model
|
|
|
6606
6668
|
aclGroupId: 'AclGroupId',
|
|
6607
6669
|
aclGroupName: 'AclGroupName',
|
|
6608
6670
|
aclRuleCount: 'AclRuleCount',
|
|
6671
|
+
isDefault: 'IsDefault',
|
|
6609
6672
|
memberUid: 'MemberUid',
|
|
6610
6673
|
};
|
|
6611
6674
|
}
|
|
@@ -6614,6 +6677,7 @@ class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList extends $tea.Model
|
|
|
6614
6677
|
aclGroupId: 'string',
|
|
6615
6678
|
aclGroupName: 'string',
|
|
6616
6679
|
aclRuleCount: 'number',
|
|
6680
|
+
isDefault: 'boolean',
|
|
6617
6681
|
memberUid: 'string',
|
|
6618
6682
|
};
|
|
6619
6683
|
}
|
|
@@ -7756,7 +7820,7 @@ class Client extends openapi_client_1.default {
|
|
|
7756
7820
|
return await this.batchCopyVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
7757
7821
|
}
|
|
7758
7822
|
/**
|
|
7759
|
-
* You can
|
|
7823
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
7760
7824
|
*
|
|
7761
7825
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
7762
7826
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7854,7 +7918,7 @@ class Client extends openapi_client_1.default {
|
|
|
7854
7918
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateNatFirewallControlPolicyResponse({}));
|
|
7855
7919
|
}
|
|
7856
7920
|
/**
|
|
7857
|
-
* You can
|
|
7921
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
7858
7922
|
*
|
|
7859
7923
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
7860
7924
|
* @return CreateNatFirewallControlPolicyResponse
|
|
@@ -9990,9 +10054,6 @@ class Client extends openapi_client_1.default {
|
|
|
9990
10054
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9991
10055
|
query["Lang"] = request.lang;
|
|
9992
10056
|
}
|
|
9993
|
-
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9994
|
-
query["Lang"] = request.lang;
|
|
9995
|
-
}
|
|
9996
10057
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
9997
10058
|
query["PageSize"] = request.pageSize;
|
|
9998
10059
|
}
|
|
@@ -10938,6 +10999,9 @@ class Client extends openapi_client_1.default {
|
|
|
10938
10999
|
if (!tea_util_1.default.isUnset(request.destinationType)) {
|
|
10939
11000
|
query["DestinationType"] = request.destinationType;
|
|
10940
11001
|
}
|
|
11002
|
+
if (!tea_util_1.default.isUnset(request.direction)) {
|
|
11003
|
+
query["Direction"] = request.direction;
|
|
11004
|
+
}
|
|
10941
11005
|
if (!tea_util_1.default.isUnset(request.domainResolveType)) {
|
|
10942
11006
|
query["DomainResolveType"] = request.domainResolveType;
|
|
10943
11007
|
}
|
|
@@ -11009,6 +11073,9 @@ class Client extends openapi_client_1.default {
|
|
|
11009
11073
|
if (!tea_util_1.default.isUnset(request.aclUuid)) {
|
|
11010
11074
|
query["AclUuid"] = request.aclUuid;
|
|
11011
11075
|
}
|
|
11076
|
+
if (!tea_util_1.default.isUnset(request.direction)) {
|
|
11077
|
+
query["Direction"] = request.direction;
|
|
11078
|
+
}
|
|
11012
11079
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
11013
11080
|
query["Lang"] = request.lang;
|
|
11014
11081
|
}
|
|
@@ -11860,6 +11927,32 @@ class Client extends openapi_client_1.default {
|
|
|
11860
11927
|
let runtime = new $Util.RuntimeOptions({});
|
|
11861
11928
|
return await this.putEnableFwSwitchWithOptions(request, runtime);
|
|
11862
11929
|
}
|
|
11930
|
+
async releasePostInstanceWithOptions(request, runtime) {
|
|
11931
|
+
tea_util_1.default.validateModel(request);
|
|
11932
|
+
let query = {};
|
|
11933
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
11934
|
+
query["InstanceId"] = request.instanceId;
|
|
11935
|
+
}
|
|
11936
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11937
|
+
query: openapi_util_1.default.query(query),
|
|
11938
|
+
});
|
|
11939
|
+
let params = new $OpenApi.Params({
|
|
11940
|
+
action: "ReleasePostInstance",
|
|
11941
|
+
version: "2017-12-07",
|
|
11942
|
+
protocol: "HTTPS",
|
|
11943
|
+
pathname: "/",
|
|
11944
|
+
method: "POST",
|
|
11945
|
+
authType: "AK",
|
|
11946
|
+
style: "RPC",
|
|
11947
|
+
reqBodyType: "formData",
|
|
11948
|
+
bodyType: "json",
|
|
11949
|
+
});
|
|
11950
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ReleasePostInstanceResponse({}));
|
|
11951
|
+
}
|
|
11952
|
+
async releasePostInstance(request) {
|
|
11953
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
11954
|
+
return await this.releasePostInstanceWithOptions(request, runtime);
|
|
11955
|
+
}
|
|
11863
11956
|
/**
|
|
11864
11957
|
* You can call the ResetVpcFirewallRuleHitCount operation to clear the count on hits of an access control policy that is created for a VPC firewall in a specific policy group.
|
|
11865
11958
|
* ## Limits
|