@alicloud/cloudfw20171207 2.0.0 → 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 +47 -2
- package/dist/client.js +86 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +103 -2
package/dist/client.d.ts
CHANGED
|
@@ -3730,6 +3730,49 @@ export declare class PutEnableFwSwitchResponse extends $tea.Model {
|
|
|
3730
3730
|
[key: string]: any;
|
|
3731
3731
|
});
|
|
3732
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
|
+
}
|
|
3733
3776
|
export declare class ResetVpcFirewallRuleHitCountRequest extends $tea.Model {
|
|
3734
3777
|
aclUuid?: string;
|
|
3735
3778
|
lang?: string;
|
|
@@ -5191,7 +5234,7 @@ export default class Client extends OpenApi {
|
|
|
5191
5234
|
*/
|
|
5192
5235
|
batchCopyVpcFirewallControlPolicy(request: BatchCopyVpcFirewallControlPolicyRequest): Promise<BatchCopyVpcFirewallControlPolicyResponse>;
|
|
5193
5236
|
/**
|
|
5194
|
-
* 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.
|
|
5195
5238
|
*
|
|
5196
5239
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
5197
5240
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -5199,7 +5242,7 @@ export default class Client extends OpenApi {
|
|
|
5199
5242
|
*/
|
|
5200
5243
|
createNatFirewallControlPolicyWithOptions(request: CreateNatFirewallControlPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreateNatFirewallControlPolicyResponse>;
|
|
5201
5244
|
/**
|
|
5202
|
-
* 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.
|
|
5203
5246
|
*
|
|
5204
5247
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
5205
5248
|
* @return CreateNatFirewallControlPolicyResponse
|
|
@@ -6102,6 +6145,8 @@ export default class Client extends OpenApi {
|
|
|
6102
6145
|
* @return PutEnableFwSwitchResponse
|
|
6103
6146
|
*/
|
|
6104
6147
|
putEnableFwSwitch(request: PutEnableFwSwitchRequest): Promise<PutEnableFwSwitchResponse>;
|
|
6148
|
+
releasePostInstanceWithOptions(request: ReleasePostInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ReleasePostInstanceResponse>;
|
|
6149
|
+
releasePostInstance(request: ReleasePostInstanceRequest): Promise<ReleasePostInstanceResponse>;
|
|
6105
6150
|
/**
|
|
6106
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.
|
|
6107
6152
|
* ## Limits
|
package/dist/client.js
CHANGED
|
@@ -5327,6 +5327,64 @@ class PutEnableFwSwitchResponse extends $tea.Model {
|
|
|
5327
5327
|
}
|
|
5328
5328
|
}
|
|
5329
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;
|
|
5330
5388
|
class ResetVpcFirewallRuleHitCountRequest extends $tea.Model {
|
|
5331
5389
|
constructor(map) {
|
|
5332
5390
|
super(map);
|
|
@@ -7762,7 +7820,7 @@ class Client extends openapi_client_1.default {
|
|
|
7762
7820
|
return await this.batchCopyVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
7763
7821
|
}
|
|
7764
7822
|
/**
|
|
7765
|
-
* 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.
|
|
7766
7824
|
*
|
|
7767
7825
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
7768
7826
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7860,7 +7918,7 @@ class Client extends openapi_client_1.default {
|
|
|
7860
7918
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateNatFirewallControlPolicyResponse({}));
|
|
7861
7919
|
}
|
|
7862
7920
|
/**
|
|
7863
|
-
* 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.
|
|
7864
7922
|
*
|
|
7865
7923
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
7866
7924
|
* @return CreateNatFirewallControlPolicyResponse
|
|
@@ -11869,6 +11927,32 @@ class Client extends openapi_client_1.default {
|
|
|
11869
11927
|
let runtime = new $Util.RuntimeOptions({});
|
|
11870
11928
|
return await this.putEnableFwSwitchWithOptions(request, runtime);
|
|
11871
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
|
+
}
|
|
11872
11956
|
/**
|
|
11873
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.
|
|
11874
11958
|
* ## Limits
|