@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -6820,6 +6820,78 @@ export class PutEnableFwSwitchResponse extends $tea.Model {
|
|
|
6820
6820
|
}
|
|
6821
6821
|
}
|
|
6822
6822
|
|
|
6823
|
+
export class ReleasePostInstanceRequest extends $tea.Model {
|
|
6824
|
+
instanceId?: string;
|
|
6825
|
+
static names(): { [key: string]: string } {
|
|
6826
|
+
return {
|
|
6827
|
+
instanceId: 'InstanceId',
|
|
6828
|
+
};
|
|
6829
|
+
}
|
|
6830
|
+
|
|
6831
|
+
static types(): { [key: string]: any } {
|
|
6832
|
+
return {
|
|
6833
|
+
instanceId: 'string',
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
|
|
6837
|
+
constructor(map?: { [key: string]: any }) {
|
|
6838
|
+
super(map);
|
|
6839
|
+
}
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6842
|
+
export class ReleasePostInstanceResponseBody extends $tea.Model {
|
|
6843
|
+
httpStatusCode?: number;
|
|
6844
|
+
releaseStatus?: boolean;
|
|
6845
|
+
requestId?: string;
|
|
6846
|
+
success?: boolean;
|
|
6847
|
+
static names(): { [key: string]: string } {
|
|
6848
|
+
return {
|
|
6849
|
+
httpStatusCode: 'HttpStatusCode',
|
|
6850
|
+
releaseStatus: 'ReleaseStatus',
|
|
6851
|
+
requestId: 'RequestId',
|
|
6852
|
+
success: 'Success',
|
|
6853
|
+
};
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6856
|
+
static types(): { [key: string]: any } {
|
|
6857
|
+
return {
|
|
6858
|
+
httpStatusCode: 'number',
|
|
6859
|
+
releaseStatus: 'boolean',
|
|
6860
|
+
requestId: 'string',
|
|
6861
|
+
success: 'boolean',
|
|
6862
|
+
};
|
|
6863
|
+
}
|
|
6864
|
+
|
|
6865
|
+
constructor(map?: { [key: string]: any }) {
|
|
6866
|
+
super(map);
|
|
6867
|
+
}
|
|
6868
|
+
}
|
|
6869
|
+
|
|
6870
|
+
export class ReleasePostInstanceResponse extends $tea.Model {
|
|
6871
|
+
headers: { [key: string]: string };
|
|
6872
|
+
statusCode: number;
|
|
6873
|
+
body: ReleasePostInstanceResponseBody;
|
|
6874
|
+
static names(): { [key: string]: string } {
|
|
6875
|
+
return {
|
|
6876
|
+
headers: 'headers',
|
|
6877
|
+
statusCode: 'statusCode',
|
|
6878
|
+
body: 'body',
|
|
6879
|
+
};
|
|
6880
|
+
}
|
|
6881
|
+
|
|
6882
|
+
static types(): { [key: string]: any } {
|
|
6883
|
+
return {
|
|
6884
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6885
|
+
statusCode: 'number',
|
|
6886
|
+
body: ReleasePostInstanceResponseBody,
|
|
6887
|
+
};
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
constructor(map?: { [key: string]: any }) {
|
|
6891
|
+
super(map);
|
|
6892
|
+
}
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6823
6895
|
export class ResetVpcFirewallRuleHitCountRequest extends $tea.Model {
|
|
6824
6896
|
aclUuid?: string;
|
|
6825
6897
|
lang?: string;
|
|
@@ -9995,7 +10067,7 @@ export default class Client extends OpenApi {
|
|
|
9995
10067
|
}
|
|
9996
10068
|
|
|
9997
10069
|
/**
|
|
9998
|
-
* You can
|
|
10070
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
9999
10071
|
*
|
|
10000
10072
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
10001
10073
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10118,7 +10190,7 @@ export default class Client extends OpenApi {
|
|
|
10118
10190
|
}
|
|
10119
10191
|
|
|
10120
10192
|
/**
|
|
10121
|
-
* You can
|
|
10193
|
+
* You can call this operation to create a policy that allows, denies, or monitors the traffic that passes through the NAT firewall.
|
|
10122
10194
|
*
|
|
10123
10195
|
* @param request CreateNatFirewallControlPolicyRequest
|
|
10124
10196
|
* @return CreateNatFirewallControlPolicyResponse
|
|
@@ -14806,6 +14878,35 @@ export default class Client extends OpenApi {
|
|
|
14806
14878
|
return await this.putEnableFwSwitchWithOptions(request, runtime);
|
|
14807
14879
|
}
|
|
14808
14880
|
|
|
14881
|
+
async releasePostInstanceWithOptions(request: ReleasePostInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ReleasePostInstanceResponse> {
|
|
14882
|
+
Util.validateModel(request);
|
|
14883
|
+
let query = { };
|
|
14884
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
14885
|
+
query["InstanceId"] = request.instanceId;
|
|
14886
|
+
}
|
|
14887
|
+
|
|
14888
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14889
|
+
query: OpenApiUtil.query(query),
|
|
14890
|
+
});
|
|
14891
|
+
let params = new $OpenApi.Params({
|
|
14892
|
+
action: "ReleasePostInstance",
|
|
14893
|
+
version: "2017-12-07",
|
|
14894
|
+
protocol: "HTTPS",
|
|
14895
|
+
pathname: "/",
|
|
14896
|
+
method: "POST",
|
|
14897
|
+
authType: "AK",
|
|
14898
|
+
style: "RPC",
|
|
14899
|
+
reqBodyType: "formData",
|
|
14900
|
+
bodyType: "json",
|
|
14901
|
+
});
|
|
14902
|
+
return $tea.cast<ReleasePostInstanceResponse>(await this.callApi(params, req, runtime), new ReleasePostInstanceResponse({}));
|
|
14903
|
+
}
|
|
14904
|
+
|
|
14905
|
+
async releasePostInstance(request: ReleasePostInstanceRequest): Promise<ReleasePostInstanceResponse> {
|
|
14906
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14907
|
+
return await this.releasePostInstanceWithOptions(request, runtime);
|
|
14908
|
+
}
|
|
14909
|
+
|
|
14809
14910
|
/**
|
|
14810
14911
|
* 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.
|
|
14811
14912
|
* ## Limits
|