@huaweicloud/huaweicloud-sdk-aad 3.1.117 → 3.1.118
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-aad.d.ts +1 -0
- package/huaweicloud-sdk-aad.d.ts.map +1 -1
- package/huaweicloud-sdk-aad.js +2 -1
- package/huaweicloud-sdk-aad.js.map +1 -1
- package/package.json +2 -2
- package/v1/AadClient.d.ts +56 -0
- package/v1/AadClient.d.ts.map +1 -1
- package/v1/AadClient.js +116 -0
- package/v1/AadClient.js.map +1 -1
- package/v1/model/AssociateIpToPolicyAndPackageRequest.d.ts +11 -0
- package/v1/model/AssociateIpToPolicyAndPackageRequest.d.ts.map +1 -0
- package/v1/model/AssociateIpToPolicyAndPackageRequest.js +24 -0
- package/v1/model/AssociateIpToPolicyAndPackageRequest.js.map +1 -0
- package/v1/model/AssociateIpToPolicyAndPackageResponse.d.ts +5 -0
- package/v1/model/AssociateIpToPolicyAndPackageResponse.d.ts.map +1 -0
- package/v1/model/AssociateIpToPolicyAndPackageResponse.js +11 -0
- package/v1/model/AssociateIpToPolicyAndPackageResponse.js.map +1 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageRequest.d.ts +11 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageRequest.d.ts.map +1 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageRequest.js +24 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageRequest.js.map +1 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageResponse.d.ts +5 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageResponse.d.ts.map +1 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageResponse.js +11 -0
- package/v1/model/DisassociateIpFromPolicyAndPackageResponse.js.map +1 -0
- package/v1/model/IpBindingV3Body.d.ts +8 -0
- package/v1/model/IpBindingV3Body.d.ts.map +1 -0
- package/v1/model/IpBindingV3Body.js +20 -0
- package/v1/model/IpBindingV3Body.js.map +1 -0
- package/v1/public-api.d.ts +5 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +5 -0
- package/v1/public-api.js.map +1 -1
- package/v2/AadClient.d.ts +554 -0
- package/v2/AadClient.d.ts.map +1 -0
- package/v2/AadClient.js +1276 -0
- package/v2/AadClient.js.map +1 -0
- package/v2/AadRegion.d.ts +8 -0
- package/v2/AadRegion.d.ts.map +1 -0
- package/v2/AadRegion.js +24 -0
- package/v2/AadRegion.js.map +1 -0
- package/v2/model/ActionInfo.d.ts +9 -0
- package/v2/model/ActionInfo.d.ts.map +1 -0
- package/v2/model/ActionInfo.js +17 -0
- package/v2/model/ActionInfo.js.map +1 -0
- package/v2/model/Backend.d.ts +10 -0
- package/v2/model/Backend.d.ts.map +1 -0
- package/v2/model/Backend.js +21 -0
- package/v2/model/Backend.js.map +1 -0
- package/v2/model/BlackWhiteListRule.d.ts +14 -0
- package/v2/model/BlackWhiteListRule.d.ts.map +1 -0
- package/v2/model/BlackWhiteListRule.js +31 -0
- package/v2/model/BlackWhiteListRule.js.map +1 -0
- package/v2/model/BwListIps.d.ts +8 -0
- package/v2/model/BwListIps.d.ts.map +1 -0
- package/v2/model/BwListIps.js +17 -0
- package/v2/model/BwListIps.js.map +1 -0
- package/v2/model/CertInfo.d.ts +22 -0
- package/v2/model/CertInfo.d.ts.map +1 -0
- package/v2/model/CertInfo.js +58 -0
- package/v2/model/CertInfo.js.map +1 -0
- package/v2/model/Condition.d.ts +14 -0
- package/v2/model/Condition.d.ts.map +1 -0
- package/v2/model/Condition.js +31 -0
- package/v2/model/Condition.js.map +1 -0
- package/v2/model/CreateAadDomainRequestBody.d.ts +42 -0
- package/v2/model/CreateAadDomainRequestBody.d.ts.map +1 -0
- package/v2/model/CreateAadDomainRequestBody.js +110 -0
- package/v2/model/CreateAadDomainRequestBody.js.map +1 -0
- package/v2/model/CreateDomainRequest.d.ts +7 -0
- package/v2/model/CreateDomainRequest.d.ts.map +1 -0
- package/v2/model/CreateDomainRequest.js +13 -0
- package/v2/model/CreateDomainRequest.js.map +1 -0
- package/v2/model/CreateDomainResponse.d.ts +11 -0
- package/v2/model/CreateDomainResponse.d.ts.map +1 -0
- package/v2/model/CreateDomainResponse.js +25 -0
- package/v2/model/CreateDomainResponse.js.map +1 -0
- package/v2/model/Curve.d.ts +12 -0
- package/v2/model/Curve.d.ts.map +1 -0
- package/v2/model/Curve.js +27 -0
- package/v2/model/Curve.js.map +1 -0
- package/v2/model/DeleteDomainRequest.d.ts +7 -0
- package/v2/model/DeleteDomainRequest.d.ts.map +1 -0
- package/v2/model/DeleteDomainRequest.js +13 -0
- package/v2/model/DeleteDomainRequest.js.map +1 -0
- package/v2/model/DeleteDomainResponse.d.ts +7 -0
- package/v2/model/DeleteDomainResponse.d.ts.map +1 -0
- package/v2/model/DeleteDomainResponse.js +15 -0
- package/v2/model/DeleteDomainResponse.js.map +1 -0
- package/v2/model/DeleteDomainV2RequestBody.d.ts +8 -0
- package/v2/model/DeleteDomainV2RequestBody.d.ts.map +1 -0
- package/v2/model/DeleteDomainV2RequestBody.js +20 -0
- package/v2/model/DeleteDomainV2RequestBody.js.map +1 -0
- package/v2/model/DetailInfo.d.ts +7 -0
- package/v2/model/DetailInfo.d.ts.map +1 -0
- package/v2/model/DetailInfo.js +13 -0
- package/v2/model/DetailInfo.js.map +1 -0
- package/v2/model/EmptyJsonResponse.d.ts +4 -0
- package/v2/model/EmptyJsonResponse.d.ts.map +1 -0
- package/v2/model/EmptyJsonResponse.js +9 -0
- package/v2/model/EmptyJsonResponse.js.map +1 -0
- package/v2/model/FlowBps.d.ts +14 -0
- package/v2/model/FlowBps.d.ts.map +1 -0
- package/v2/model/FlowBps.js +33 -0
- package/v2/model/FlowBps.js.map +1 -0
- package/v2/model/FlowPps.d.ts +14 -0
- package/v2/model/FlowPps.d.ts.map +1 -0
- package/v2/model/FlowPps.js +33 -0
- package/v2/model/FlowPps.js.map +1 -0
- package/v2/model/FrequencyControlRule.d.ts +65 -0
- package/v2/model/FrequencyControlRule.d.ts.map +1 -0
- package/v2/model/FrequencyControlRule.js +147 -0
- package/v2/model/FrequencyControlRule.js.map +1 -0
- package/v2/model/InstanceDomainItem.d.ts +46 -0
- package/v2/model/InstanceDomainItem.d.ts.map +1 -0
- package/v2/model/InstanceDomainItem.js +113 -0
- package/v2/model/InstanceDomainItem.js.map +1 -0
- package/v2/model/Ips.d.ts +24 -0
- package/v2/model/Ips.d.ts.map +1 -0
- package/v2/model/Ips.js +57 -0
- package/v2/model/Ips.js.map +1 -0
- package/v2/model/ListConnectionNumberData.d.ts +9 -0
- package/v2/model/ListConnectionNumberData.d.ts.map +1 -0
- package/v2/model/ListConnectionNumberData.js +17 -0
- package/v2/model/ListConnectionNumberData.js.map +1 -0
- package/v2/model/ListConnectionNumberDataList.d.ts +8 -0
- package/v2/model/ListConnectionNumberDataList.d.ts.map +1 -0
- package/v2/model/ListConnectionNumberDataList.js +17 -0
- package/v2/model/ListConnectionNumberDataList.js.map +1 -0
- package/v2/model/ListDDoSAttackEventRequest.d.ts +11 -0
- package/v2/model/ListDDoSAttackEventRequest.d.ts.map +1 -0
- package/v2/model/ListDDoSAttackEventRequest.js +24 -0
- package/v2/model/ListDDoSAttackEventRequest.js.map +1 -0
- package/v2/model/ListDDoSAttackEventRequestBody.d.ts +30 -0
- package/v2/model/ListDDoSAttackEventRequestBody.d.ts.map +1 -0
- package/v2/model/ListDDoSAttackEventRequestBody.js +76 -0
- package/v2/model/ListDDoSAttackEventRequestBody.js.map +1 -0
- package/v2/model/ListDDoSAttackEventResponse.d.ts +10 -0
- package/v2/model/ListDDoSAttackEventResponse.d.ts.map +1 -0
- package/v2/model/ListDDoSAttackEventResponse.js +19 -0
- package/v2/model/ListDDoSAttackEventResponse.js.map +1 -0
- package/v2/model/ListDDoSConnectionNumberRequest.d.ts +18 -0
- package/v2/model/ListDDoSConnectionNumberRequest.d.ts.map +1 -0
- package/v2/model/ListDDoSConnectionNumberRequest.js +47 -0
- package/v2/model/ListDDoSConnectionNumberRequest.js.map +1 -0
- package/v2/model/ListDDoSConnectionNumberResponse.d.ts +8 -0
- package/v2/model/ListDDoSConnectionNumberResponse.d.ts.map +1 -0
- package/v2/model/ListDDoSConnectionNumberResponse.js +15 -0
- package/v2/model/ListDDoSConnectionNumberResponse.js.map +1 -0
- package/v2/model/ListDDoSEventData.d.ts +48 -0
- package/v2/model/ListDDoSEventData.d.ts.map +1 -0
- package/v2/model/ListDDoSEventData.js +119 -0
- package/v2/model/ListDDoSEventData.js.map +1 -0
- package/v2/model/ListDDoSFlowRequest.d.ts +20 -0
- package/v2/model/ListDDoSFlowRequest.d.ts.map +1 -0
- package/v2/model/ListDDoSFlowRequest.js +52 -0
- package/v2/model/ListDDoSFlowRequest.js.map +1 -0
- package/v2/model/ListDDoSFlowResponse.d.ts +15 -0
- package/v2/model/ListDDoSFlowResponse.d.ts.map +1 -0
- package/v2/model/ListDDoSFlowResponse.js +31 -0
- package/v2/model/ListDDoSFlowResponse.js.map +1 -0
- package/v2/model/ListFrequencyControlRuleRequest.d.ts +8 -0
- package/v2/model/ListFrequencyControlRuleRequest.d.ts.map +1 -0
- package/v2/model/ListFrequencyControlRuleRequest.js +20 -0
- package/v2/model/ListFrequencyControlRuleRequest.js.map +1 -0
- package/v2/model/ListFrequencyControlRuleResponse.d.ts +10 -0
- package/v2/model/ListFrequencyControlRuleResponse.d.ts.map +1 -0
- package/v2/model/ListFrequencyControlRuleResponse.js +19 -0
- package/v2/model/ListFrequencyControlRuleResponse.js.map +1 -0
- package/v2/model/ListInstanceDomainsRequest.d.ts +8 -0
- package/v2/model/ListInstanceDomainsRequest.d.ts.map +1 -0
- package/v2/model/ListInstanceDomainsRequest.js +20 -0
- package/v2/model/ListInstanceDomainsRequest.js.map +1 -0
- package/v2/model/ListInstanceDomainsResponse.d.ts +16 -0
- package/v2/model/ListInstanceDomainsResponse.d.ts.map +1 -0
- package/v2/model/ListInstanceDomainsResponse.js +35 -0
- package/v2/model/ListInstanceDomainsResponse.js.map +1 -0
- package/v2/model/ListWafAttackEventRequest.d.ts +26 -0
- package/v2/model/ListWafAttackEventRequest.d.ts.map +1 -0
- package/v2/model/ListWafAttackEventRequest.js +59 -0
- package/v2/model/ListWafAttackEventRequest.js.map +1 -0
- package/v2/model/ListWafAttackEventResponse.d.ts +10 -0
- package/v2/model/ListWafAttackEventResponse.d.ts.map +1 -0
- package/v2/model/ListWafAttackEventResponse.js +19 -0
- package/v2/model/ListWafAttackEventResponse.js.map +1 -0
- package/v2/model/ListWafAttackEventlist.d.ts +21 -0
- package/v2/model/ListWafAttackEventlist.d.ts.map +1 -0
- package/v2/model/ListWafAttackEventlist.js +41 -0
- package/v2/model/ListWafAttackEventlist.js.map +1 -0
- package/v2/model/ListWafBandwidthRequest.d.ts +24 -0
- package/v2/model/ListWafBandwidthRequest.d.ts.map +1 -0
- package/v2/model/ListWafBandwidthRequest.js +58 -0
- package/v2/model/ListWafBandwidthRequest.js.map +1 -0
- package/v2/model/ListWafBandwidthResponse.d.ts +8 -0
- package/v2/model/ListWafBandwidthResponse.d.ts.map +1 -0
- package/v2/model/ListWafBandwidthResponse.js +15 -0
- package/v2/model/ListWafBandwidthResponse.js.map +1 -0
- package/v2/model/ListWafCustomRuleRequest.d.ts +12 -0
- package/v2/model/ListWafCustomRuleRequest.d.ts.map +1 -0
- package/v2/model/ListWafCustomRuleRequest.js +31 -0
- package/v2/model/ListWafCustomRuleRequest.js.map +1 -0
- package/v2/model/ListWafCustomRuleResponse.d.ts +10 -0
- package/v2/model/ListWafCustomRuleResponse.d.ts.map +1 -0
- package/v2/model/ListWafCustomRuleResponse.js +19 -0
- package/v2/model/ListWafCustomRuleResponse.js.map +1 -0
- package/v2/model/ListWafGeoIpRuleRequest.d.ts +12 -0
- package/v2/model/ListWafGeoIpRuleRequest.d.ts.map +1 -0
- package/v2/model/ListWafGeoIpRuleRequest.js +31 -0
- package/v2/model/ListWafGeoIpRuleRequest.js.map +1 -0
- package/v2/model/ListWafGeoIpRuleResponse.d.ts +10 -0
- package/v2/model/ListWafGeoIpRuleResponse.d.ts.map +1 -0
- package/v2/model/ListWafGeoIpRuleResponse.js +19 -0
- package/v2/model/ListWafGeoIpRuleResponse.js.map +1 -0
- package/v2/model/ListWafQpsRequest.d.ts +24 -0
- package/v2/model/ListWafQpsRequest.d.ts.map +1 -0
- package/v2/model/ListWafQpsRequest.js +58 -0
- package/v2/model/ListWafQpsRequest.js.map +1 -0
- package/v2/model/ListWafQpsResponse.d.ts +8 -0
- package/v2/model/ListWafQpsResponse.d.ts.map +1 -0
- package/v2/model/ListWafQpsResponse.js +15 -0
- package/v2/model/ListWafQpsResponse.js.map +1 -0
- package/v2/model/ListWafWhiteIpRuleRequest.d.ts +12 -0
- package/v2/model/ListWafWhiteIpRuleRequest.d.ts.map +1 -0
- package/v2/model/ListWafWhiteIpRuleRequest.js +31 -0
- package/v2/model/ListWafWhiteIpRuleRequest.js.map +1 -0
- package/v2/model/ListWafWhiteIpRuleResponse.d.ts +12 -0
- package/v2/model/ListWafWhiteIpRuleResponse.d.ts.map +1 -0
- package/v2/model/ListWafWhiteIpRuleResponse.js +23 -0
- package/v2/model/ListWafWhiteIpRuleResponse.js.map +1 -0
- package/v2/model/ListWhiteBlackIpRuleRequest.d.ts +10 -0
- package/v2/model/ListWhiteBlackIpRuleRequest.d.ts.map +1 -0
- package/v2/model/ListWhiteBlackIpRuleRequest.js +25 -0
- package/v2/model/ListWhiteBlackIpRuleRequest.js.map +1 -0
- package/v2/model/ListWhiteBlackIpRuleResponse.d.ts +10 -0
- package/v2/model/ListWhiteBlackIpRuleResponse.d.ts.map +1 -0
- package/v2/model/ListWhiteBlackIpRuleResponse.js +19 -0
- package/v2/model/ListWhiteBlackIpRuleResponse.js.map +1 -0
- package/v2/model/PageRespInfo.d.ts +10 -0
- package/v2/model/PageRespInfo.d.ts.map +1 -0
- package/v2/model/PageRespInfo.js +23 -0
- package/v2/model/PageRespInfo.js.map +1 -0
- package/v2/model/Point.d.ts +18 -0
- package/v2/model/Point.d.ts.map +1 -0
- package/v2/model/Point.js +39 -0
- package/v2/model/Point.js.map +1 -0
- package/v2/model/ShowDomainCertificateRequest.d.ts +8 -0
- package/v2/model/ShowDomainCertificateRequest.d.ts.map +1 -0
- package/v2/model/ShowDomainCertificateRequest.js +20 -0
- package/v2/model/ShowDomainCertificateRequest.js.map +1 -0
- package/v2/model/ShowDomainCertificateResponse.d.ts +18 -0
- package/v2/model/ShowDomainCertificateResponse.d.ts.map +1 -0
- package/v2/model/ShowDomainCertificateResponse.js +41 -0
- package/v2/model/ShowDomainCertificateResponse.js.map +1 -0
- package/v2/model/ShowFlowBlockRequest.d.ts +8 -0
- package/v2/model/ShowFlowBlockRequest.d.ts.map +1 -0
- package/v2/model/ShowFlowBlockRequest.js +20 -0
- package/v2/model/ShowFlowBlockRequest.js.map +1 -0
- package/v2/model/ShowFlowBlockResponse.d.ts +10 -0
- package/v2/model/ShowFlowBlockResponse.d.ts.map +1 -0
- package/v2/model/ShowFlowBlockResponse.js +19 -0
- package/v2/model/ShowFlowBlockResponse.js.map +1 -0
- package/v2/model/ShowWafPolicyRequest.d.ts +12 -0
- package/v2/model/ShowWafPolicyRequest.d.ts.map +1 -0
- package/v2/model/ShowWafPolicyRequest.js +31 -0
- package/v2/model/ShowWafPolicyRequest.js.map +1 -0
- package/v2/model/ShowWafPolicyResponse.d.ts +20 -0
- package/v2/model/ShowWafPolicyResponse.d.ts.map +1 -0
- package/v2/model/ShowWafPolicyResponse.js +43 -0
- package/v2/model/ShowWafPolicyResponse.js.map +1 -0
- package/v2/model/ShowWafQpsRequest.d.ts +20 -0
- package/v2/model/ShowWafQpsRequest.d.ts.map +1 -0
- package/v2/model/ShowWafQpsRequest.js +47 -0
- package/v2/model/ShowWafQpsRequest.js.map +1 -0
- package/v2/model/ShowWafQpsResponse.d.ts +7 -0
- package/v2/model/ShowWafQpsResponse.d.ts.map +1 -0
- package/v2/model/ShowWafQpsResponse.js +15 -0
- package/v2/model/ShowWafQpsResponse.js.map +1 -0
- package/v2/model/TagCondition.d.ts +8 -0
- package/v2/model/TagCondition.d.ts.map +1 -0
- package/v2/model/TagCondition.js +17 -0
- package/v2/model/TagCondition.js.map +1 -0
- package/v2/model/UpgradeInstanceData.d.ts +24 -0
- package/v2/model/UpgradeInstanceData.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceData.js +59 -0
- package/v2/model/UpgradeInstanceData.js.map +1 -0
- package/v2/model/UpgradeInstanceSpecRequest.d.ts +7 -0
- package/v2/model/UpgradeInstanceSpecRequest.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceSpecRequest.js +13 -0
- package/v2/model/UpgradeInstanceSpecRequest.js.map +1 -0
- package/v2/model/UpgradeInstanceSpecResponse.d.ts +9 -0
- package/v2/model/UpgradeInstanceSpecResponse.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceSpecResponse.js +21 -0
- package/v2/model/UpgradeInstanceSpecResponse.js.map +1 -0
- package/v2/model/UpgradeInstanceSpecV2RequestBody.d.ts +13 -0
- package/v2/model/UpgradeInstanceSpecV2RequestBody.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceSpecV2RequestBody.js +31 -0
- package/v2/model/UpgradeInstanceSpecV2RequestBody.js.map +1 -0
- package/v2/model/WafCustomCondition.d.ts +14 -0
- package/v2/model/WafCustomCondition.d.ts.map +1 -0
- package/v2/model/WafCustomCondition.js +34 -0
- package/v2/model/WafCustomCondition.js.map +1 -0
- package/v2/model/WafCustomRule.d.ts +30 -0
- package/v2/model/WafCustomRule.d.ts.map +1 -0
- package/v2/model/WafCustomRule.js +63 -0
- package/v2/model/WafCustomRule.js.map +1 -0
- package/v2/model/WafCustomRuleAction.d.ts +6 -0
- package/v2/model/WafCustomRuleAction.d.ts.map +1 -0
- package/v2/model/WafCustomRuleAction.js +13 -0
- package/v2/model/WafCustomRuleAction.js.map +1 -0
- package/v2/model/WafGeoIpRule.d.ts +18 -0
- package/v2/model/WafGeoIpRule.d.ts.map +1 -0
- package/v2/model/WafGeoIpRule.js +39 -0
- package/v2/model/WafGeoIpRule.js.map +1 -0
- package/v2/model/WafPolicyOptions.d.ts +16 -0
- package/v2/model/WafPolicyOptions.d.ts.map +1 -0
- package/v2/model/WafPolicyOptions.js +35 -0
- package/v2/model/WafPolicyOptions.js.map +1 -0
- package/v2/public-api.d.ts +73 -0
- package/v2/public-api.d.ts.map +1 -0
- package/v2/public-api.js +89 -0
- package/v2/public-api.js.map +1 -0
package/v2/AadClient.js
ADDED
@@ -0,0 +1,1276 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RequiredError = exports.ParamCreater = exports.AadClient = void 0;
|
4
|
+
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
5
|
+
const CreateDomainRequest_1 = require("./model/CreateDomainRequest");
|
6
|
+
const DeleteDomainRequest_1 = require("./model/DeleteDomainRequest");
|
7
|
+
const ListDDoSAttackEventRequest_1 = require("./model/ListDDoSAttackEventRequest");
|
8
|
+
const ListDDoSConnectionNumberRequest_1 = require("./model/ListDDoSConnectionNumberRequest");
|
9
|
+
const ListDDoSFlowRequest_1 = require("./model/ListDDoSFlowRequest");
|
10
|
+
const ListFrequencyControlRuleRequest_1 = require("./model/ListFrequencyControlRuleRequest");
|
11
|
+
const ListInstanceDomainsRequest_1 = require("./model/ListInstanceDomainsRequest");
|
12
|
+
const ListWafAttackEventRequest_1 = require("./model/ListWafAttackEventRequest");
|
13
|
+
const ListWafBandwidthRequest_1 = require("./model/ListWafBandwidthRequest");
|
14
|
+
const ListWafCustomRuleRequest_1 = require("./model/ListWafCustomRuleRequest");
|
15
|
+
const ListWafGeoIpRuleRequest_1 = require("./model/ListWafGeoIpRuleRequest");
|
16
|
+
const ListWafQpsRequest_1 = require("./model/ListWafQpsRequest");
|
17
|
+
const ListWafWhiteIpRuleRequest_1 = require("./model/ListWafWhiteIpRuleRequest");
|
18
|
+
const ListWhiteBlackIpRuleRequest_1 = require("./model/ListWhiteBlackIpRuleRequest");
|
19
|
+
const ShowDomainCertificateRequest_1 = require("./model/ShowDomainCertificateRequest");
|
20
|
+
const ShowFlowBlockRequest_1 = require("./model/ShowFlowBlockRequest");
|
21
|
+
const ShowWafPolicyRequest_1 = require("./model/ShowWafPolicyRequest");
|
22
|
+
const ShowWafQpsRequest_1 = require("./model/ShowWafQpsRequest");
|
23
|
+
const UpgradeInstanceSpecRequest_1 = require("./model/UpgradeInstanceSpecRequest");
|
24
|
+
class AadClient {
|
25
|
+
static newBuilder() {
|
26
|
+
return new ClientBuilder_1.ClientBuilder(newClient, 'GlobalCredentials');
|
27
|
+
}
|
28
|
+
constructor(client) {
|
29
|
+
this.hcClient = client;
|
30
|
+
}
|
31
|
+
getPath() {
|
32
|
+
return __dirname;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* 创建防护域名
|
36
|
+
*
|
37
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
38
|
+
*
|
39
|
+
* @summary 创建防护域名
|
40
|
+
* @param {CreateAadDomainRequestBody} createAadDomainRequestBody 防护域名信息
|
41
|
+
* @param {*} [options] Override http request option.
|
42
|
+
* @throws {RequiredError}
|
43
|
+
*/
|
44
|
+
createDomain(createDomainRequest) {
|
45
|
+
const options = (0, exports.ParamCreater)().createDomain(createDomainRequest);
|
46
|
+
// @ts-ignore
|
47
|
+
options['responseHeaders'] = [''];
|
48
|
+
return this.hcClient.sendRequest(options);
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* 查询DDoS攻击事件列表
|
52
|
+
*
|
53
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
54
|
+
*
|
55
|
+
* @summary 查询DDoS攻击事件列表
|
56
|
+
* @param {string} instanceId 实例id
|
57
|
+
* @param {ListDDoSAttackEventRequestBody} listDDoSAttackEventRequestBody ListDDoSAttackEventRequestBody
|
58
|
+
* @param {*} [options] Override http request option.
|
59
|
+
* @throws {RequiredError}
|
60
|
+
*/
|
61
|
+
listDDoSAttackEvent(listDDoSAttackEventRequest) {
|
62
|
+
const options = (0, exports.ParamCreater)().listDDoSAttackEvent(listDDoSAttackEventRequest);
|
63
|
+
// @ts-ignore
|
64
|
+
options['responseHeaders'] = [''];
|
65
|
+
return this.hcClient.sendRequest(options);
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* 查询新建连接数和并发连接数
|
69
|
+
*
|
70
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
71
|
+
*
|
72
|
+
* @summary 查询新建连接数和并发连接数
|
73
|
+
* @param {string} startTime 开始时间(毫秒时间戳)
|
74
|
+
* @param {string} endTime 结束时间(毫秒时间戳)
|
75
|
+
* @param {string} instanceId 实例id
|
76
|
+
* @param {string} ip 高防ip
|
77
|
+
* @param {*} [options] Override http request option.
|
78
|
+
* @throws {RequiredError}
|
79
|
+
*/
|
80
|
+
listDDoSConnectionNumber(listDDoSConnectionNumberRequest) {
|
81
|
+
const options = (0, exports.ParamCreater)().listDDoSConnectionNumber(listDDoSConnectionNumberRequest);
|
82
|
+
// @ts-ignore
|
83
|
+
options['responseHeaders'] = [''];
|
84
|
+
return this.hcClient.sendRequest(options);
|
85
|
+
}
|
86
|
+
/**
|
87
|
+
* 查询DDoS攻击防护BPS/PPS流量
|
88
|
+
*
|
89
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
90
|
+
*
|
91
|
+
* @summary 查询DDoS攻击防护BPS/PPS流量
|
92
|
+
* @param {string} instanceId 实例ID
|
93
|
+
* @param {string} ip 高防IP
|
94
|
+
* @param {string} type 请求类型 pps、bps
|
95
|
+
* @param {string} startTime 开始时间(毫秒时间戳)
|
96
|
+
* @param {string} endTime 结束时间(毫秒时间戳)
|
97
|
+
* @param {*} [options] Override http request option.
|
98
|
+
* @throws {RequiredError}
|
99
|
+
*/
|
100
|
+
listDDoSFlow(listDDoSFlowRequest) {
|
101
|
+
const options = (0, exports.ParamCreater)().listDDoSFlow(listDDoSFlowRequest);
|
102
|
+
// @ts-ignore
|
103
|
+
options['responseHeaders'] = [''];
|
104
|
+
return this.hcClient.sendRequest(options);
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* 查询频率控制规则列表
|
108
|
+
*
|
109
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
110
|
+
*
|
111
|
+
* @summary 查询频率控制规则列表
|
112
|
+
* @param {string} domainName 域名
|
113
|
+
* @param {*} [options] Override http request option.
|
114
|
+
* @throws {RequiredError}
|
115
|
+
*/
|
116
|
+
listFrequencyControlRule(listFrequencyControlRuleRequest) {
|
117
|
+
const options = (0, exports.ParamCreater)().listFrequencyControlRule(listFrequencyControlRuleRequest);
|
118
|
+
// @ts-ignore
|
119
|
+
options['responseHeaders'] = [''];
|
120
|
+
return this.hcClient.sendRequest(options);
|
121
|
+
}
|
122
|
+
/**
|
123
|
+
* 查询实例关联的域名信息
|
124
|
+
*
|
125
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
126
|
+
*
|
127
|
+
* @summary 查询实例关联的域名信息
|
128
|
+
* @param {string} instanceId 实例id
|
129
|
+
* @param {*} [options] Override http request option.
|
130
|
+
* @throws {RequiredError}
|
131
|
+
*/
|
132
|
+
listInstanceDomains(listInstanceDomainsRequest) {
|
133
|
+
const options = (0, exports.ParamCreater)().listInstanceDomains(listInstanceDomainsRequest);
|
134
|
+
// @ts-ignore
|
135
|
+
options['responseHeaders'] = [''];
|
136
|
+
return this.hcClient.sendRequest(options);
|
137
|
+
}
|
138
|
+
/**
|
139
|
+
* 查询攻击事件列表
|
140
|
+
*
|
141
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
142
|
+
*
|
143
|
+
* @summary 查询攻击事件列表
|
144
|
+
* @param {string} [domains] 不传时代表全部域名
|
145
|
+
* @param {string} [startTime] 开始时间(毫秒时间戳)
|
146
|
+
* @param {string} [endTime] 结束时间(毫秒时间戳)
|
147
|
+
* @param {string} [recent] 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空
|
148
|
+
* @param {number} [overseasType] 实例类型,0-大陆,1-海外
|
149
|
+
* @param {string} [sip] 攻击源IP
|
150
|
+
* @param {number} [limit] limit
|
151
|
+
* @param {number} [offset] offset
|
152
|
+
* @param {*} [options] Override http request option.
|
153
|
+
* @throws {RequiredError}
|
154
|
+
*/
|
155
|
+
listWafAttackEvent(listWafAttackEventRequest) {
|
156
|
+
const options = (0, exports.ParamCreater)().listWafAttackEvent(listWafAttackEventRequest);
|
157
|
+
// @ts-ignore
|
158
|
+
options['responseHeaders'] = [''];
|
159
|
+
return this.hcClient.sendRequest(options);
|
160
|
+
}
|
161
|
+
/**
|
162
|
+
* 带宽曲线
|
163
|
+
*
|
164
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
165
|
+
*
|
166
|
+
* @summary 带宽曲线
|
167
|
+
* @param {string} valueType 平均值 mean、峰值 peak
|
168
|
+
* @param {string} [domains] 不传时代表全部域名
|
169
|
+
* @param {string} [startTime] 开始时间(毫秒时间戳)
|
170
|
+
* @param {string} [endTime] 结束时间(毫秒时间戳)
|
171
|
+
* @param {string} [recent] 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空
|
172
|
+
* @param {number} [overseasType] 实例类型,0-大陆,1-海外
|
173
|
+
* @param {*} [options] Override http request option.
|
174
|
+
* @throws {RequiredError}
|
175
|
+
*/
|
176
|
+
listWafBandwidth(listWafBandwidthRequest) {
|
177
|
+
const options = (0, exports.ParamCreater)().listWafBandwidth(listWafBandwidthRequest);
|
178
|
+
// @ts-ignore
|
179
|
+
options['responseHeaders'] = [''];
|
180
|
+
return this.hcClient.sendRequest(options);
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
* 查询精准防护规则
|
184
|
+
*
|
185
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
186
|
+
*
|
187
|
+
* @summary 查询精准防护规则
|
188
|
+
* @param {string} domainName 域名
|
189
|
+
* @param {number} overseasType 防护区域,0-大陆,1-海外
|
190
|
+
* @param {*} [options] Override http request option.
|
191
|
+
* @throws {RequiredError}
|
192
|
+
*/
|
193
|
+
listWafCustomRule(listWafCustomRuleRequest) {
|
194
|
+
const options = (0, exports.ParamCreater)().listWafCustomRule(listWafCustomRuleRequest);
|
195
|
+
// @ts-ignore
|
196
|
+
options['responseHeaders'] = [''];
|
197
|
+
return this.hcClient.sendRequest(options);
|
198
|
+
}
|
199
|
+
/**
|
200
|
+
* 查询区域封禁规则
|
201
|
+
*
|
202
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
203
|
+
*
|
204
|
+
* @summary 查询区域封禁规则
|
205
|
+
* @param {string} domainName 域名
|
206
|
+
* @param {number} overseasType 防护区域,0-大陆,1-海外
|
207
|
+
* @param {*} [options] Override http request option.
|
208
|
+
* @throws {RequiredError}
|
209
|
+
*/
|
210
|
+
listWafGeoIpRule(listWafGeoIpRuleRequest) {
|
211
|
+
const options = (0, exports.ParamCreater)().listWafGeoIpRule(listWafGeoIpRuleRequest);
|
212
|
+
// @ts-ignore
|
213
|
+
options['responseHeaders'] = [''];
|
214
|
+
return this.hcClient.sendRequest(options);
|
215
|
+
}
|
216
|
+
/**
|
217
|
+
* 查询请求QPS
|
218
|
+
*
|
219
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
220
|
+
*
|
221
|
+
* @summary 查询请求QPS
|
222
|
+
* @param {string} valueType 用于 QPS、带宽: 平均值 mean、峰值 peak;用于 响应状态码: 源站返回值 source 、高防返回值 proxy
|
223
|
+
* @param {string} [domains] 不传时代表全部域名
|
224
|
+
* @param {string} [startTime] 开始时间(毫秒时间戳)
|
225
|
+
* @param {string} [endTime] 结束时间(毫秒时间戳)
|
226
|
+
* @param {string} [recent] 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空
|
227
|
+
* @param {number} [overseasType] 实例类型,0-大陆,1-海外
|
228
|
+
* @param {*} [options] Override http request option.
|
229
|
+
* @throws {RequiredError}
|
230
|
+
*/
|
231
|
+
listWafQps(listWafQpsRequest) {
|
232
|
+
const options = (0, exports.ParamCreater)().listWafQps(listWafQpsRequest);
|
233
|
+
// @ts-ignore
|
234
|
+
options['responseHeaders'] = [''];
|
235
|
+
return this.hcClient.sendRequest(options);
|
236
|
+
}
|
237
|
+
/**
|
238
|
+
* 防护策略web-cc黑白名单-查询黑白名单规则
|
239
|
+
*
|
240
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
241
|
+
*
|
242
|
+
* @summary 防护策略web-cc黑白名单-查询黑白名单规则
|
243
|
+
* @param {string} domainName 域名
|
244
|
+
* @param {number} overseasType 防护区域,0-大陆,1-海外
|
245
|
+
* @param {*} [options] Override http request option.
|
246
|
+
* @throws {RequiredError}
|
247
|
+
*/
|
248
|
+
listWafWhiteIpRule(listWafWhiteIpRuleRequest) {
|
249
|
+
const options = (0, exports.ParamCreater)().listWafWhiteIpRule(listWafWhiteIpRuleRequest);
|
250
|
+
// @ts-ignore
|
251
|
+
options['responseHeaders'] = [''];
|
252
|
+
return this.hcClient.sendRequest(options);
|
253
|
+
}
|
254
|
+
/**
|
255
|
+
* 查询DDoS攻击防护的黑白名单列表
|
256
|
+
*
|
257
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
258
|
+
*
|
259
|
+
* @summary 查询DDoS攻击防护的黑白名单列表
|
260
|
+
* @param {string} type white-白名单,black-黑名单
|
261
|
+
* @param {string} instanceId instanceId
|
262
|
+
* @param {*} [options] Override http request option.
|
263
|
+
* @throws {RequiredError}
|
264
|
+
*/
|
265
|
+
listWhiteBlackIpRule(listWhiteBlackIpRuleRequest) {
|
266
|
+
const options = (0, exports.ParamCreater)().listWhiteBlackIpRule(listWhiteBlackIpRuleRequest);
|
267
|
+
// @ts-ignore
|
268
|
+
options['responseHeaders'] = [''];
|
269
|
+
return this.hcClient.sendRequest(options);
|
270
|
+
}
|
271
|
+
/**
|
272
|
+
* 查询域名关联的证书信息
|
273
|
+
*
|
274
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
275
|
+
*
|
276
|
+
* @summary 查询域名关联的证书信息
|
277
|
+
* @param {string} domainId 域名id
|
278
|
+
* @param {*} [options] Override http request option.
|
279
|
+
* @throws {RequiredError}
|
280
|
+
*/
|
281
|
+
showDomainCertificate(showDomainCertificateRequest) {
|
282
|
+
const options = (0, exports.ParamCreater)().showDomainCertificate(showDomainCertificateRequest);
|
283
|
+
// @ts-ignore
|
284
|
+
options['responseHeaders'] = [''];
|
285
|
+
return this.hcClient.sendRequest(options);
|
286
|
+
}
|
287
|
+
/**
|
288
|
+
* 查询流量封禁信息
|
289
|
+
*
|
290
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
291
|
+
*
|
292
|
+
* @summary 查询流量封禁信息
|
293
|
+
* @param {string} instanceId instanceId
|
294
|
+
* @param {*} [options] Override http request option.
|
295
|
+
* @throws {RequiredError}
|
296
|
+
*/
|
297
|
+
showFlowBlock(showFlowBlockRequest) {
|
298
|
+
const options = (0, exports.ParamCreater)().showFlowBlock(showFlowBlockRequest);
|
299
|
+
// @ts-ignore
|
300
|
+
options['responseHeaders'] = [''];
|
301
|
+
return this.hcClient.sendRequest(options);
|
302
|
+
}
|
303
|
+
/**
|
304
|
+
* 查询WEB防护策略配置
|
305
|
+
*
|
306
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
307
|
+
*
|
308
|
+
* @summary 查询WEB防护策略配置
|
309
|
+
* @param {string} domainName 域名
|
310
|
+
* @param {number} overseasType 防护区域,0-大陆,1-海外
|
311
|
+
* @param {*} [options] Override http request option.
|
312
|
+
* @throws {RequiredError}
|
313
|
+
*/
|
314
|
+
showWafPolicy(showWafPolicyRequest) {
|
315
|
+
const options = (0, exports.ParamCreater)().showWafPolicy(showWafPolicyRequest);
|
316
|
+
// @ts-ignore
|
317
|
+
options['responseHeaders'] = [''];
|
318
|
+
return this.hcClient.sendRequest(options);
|
319
|
+
}
|
320
|
+
/**
|
321
|
+
* 查询CC攻击防护请求QPS
|
322
|
+
*
|
323
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
324
|
+
*
|
325
|
+
* @summary 查询CC攻击防护请求QPS
|
326
|
+
* @param {string} [recent] 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空
|
327
|
+
* @param {string} [domains] 查询域名
|
328
|
+
* @param {string} [startTime] 开始时间(毫秒时间戳)
|
329
|
+
* @param {string} [endTime] 结束时间(毫秒时间戳)
|
330
|
+
* @param {number} [overseasType] 防护区域,0-大陆,1-海外
|
331
|
+
* @param {*} [options] Override http request option.
|
332
|
+
* @throws {RequiredError}
|
333
|
+
*/
|
334
|
+
showWafQps(showWafQpsRequest) {
|
335
|
+
const options = (0, exports.ParamCreater)().showWafQps(showWafQpsRequest);
|
336
|
+
// @ts-ignore
|
337
|
+
options['responseHeaders'] = [''];
|
338
|
+
return this.hcClient.sendRequest(options);
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* 修改实例规格
|
342
|
+
*
|
343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
344
|
+
*
|
345
|
+
* @summary 修改实例规格
|
346
|
+
* @param {UpgradeInstanceSpecV2RequestBody} upgradeInstanceSpecV2RequestBody 修改实例规格请求
|
347
|
+
* @param {*} [options] Override http request option.
|
348
|
+
* @throws {RequiredError}
|
349
|
+
*/
|
350
|
+
upgradeInstanceSpec(upgradeInstanceSpecRequest) {
|
351
|
+
const options = (0, exports.ParamCreater)().upgradeInstanceSpec(upgradeInstanceSpecRequest);
|
352
|
+
// @ts-ignore
|
353
|
+
options['responseHeaders'] = [''];
|
354
|
+
return this.hcClient.sendRequest(options);
|
355
|
+
}
|
356
|
+
/**
|
357
|
+
* 删除防护域名
|
358
|
+
*
|
359
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
360
|
+
*
|
361
|
+
* @summary 删除防护域名
|
362
|
+
* @param {DeleteDomainV2RequestBody} deleteDomainV2RequestBody 删除防护域名信息
|
363
|
+
* @param {*} [options] Override http request option.
|
364
|
+
* @throws {RequiredError}
|
365
|
+
*/
|
366
|
+
deleteDomain(deleteDomainRequest) {
|
367
|
+
const options = (0, exports.ParamCreater)().deleteDomain(deleteDomainRequest);
|
368
|
+
// @ts-ignore
|
369
|
+
options['responseHeaders'] = [''];
|
370
|
+
return this.hcClient.sendRequest(options);
|
371
|
+
}
|
372
|
+
}
|
373
|
+
exports.AadClient = AadClient;
|
374
|
+
const ParamCreater = function () {
|
375
|
+
return {
|
376
|
+
/**
|
377
|
+
* 创建防护域名
|
378
|
+
*
|
379
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
380
|
+
*/
|
381
|
+
createDomain(createDomainRequest) {
|
382
|
+
const options = {
|
383
|
+
method: "POST",
|
384
|
+
url: "/v2/aad/domains",
|
385
|
+
contentType: "application/json",
|
386
|
+
queryParams: {},
|
387
|
+
pathParams: {},
|
388
|
+
headers: {},
|
389
|
+
data: {}
|
390
|
+
};
|
391
|
+
const localVarHeaderParameter = {};
|
392
|
+
let body;
|
393
|
+
if (createDomainRequest !== null && createDomainRequest !== undefined) {
|
394
|
+
if (createDomainRequest instanceof CreateDomainRequest_1.CreateDomainRequest) {
|
395
|
+
body = createDomainRequest.body;
|
396
|
+
}
|
397
|
+
else {
|
398
|
+
body = createDomainRequest['body'];
|
399
|
+
}
|
400
|
+
}
|
401
|
+
if (body === null || body === undefined) {
|
402
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
403
|
+
}
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
405
|
+
options.data = body !== undefined ? body : {};
|
406
|
+
options.headers = localVarHeaderParameter;
|
407
|
+
return options;
|
408
|
+
},
|
409
|
+
/**
|
410
|
+
* 查询DDoS攻击事件列表
|
411
|
+
*
|
412
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
413
|
+
*/
|
414
|
+
listDDoSAttackEvent(listDDoSAttackEventRequest) {
|
415
|
+
const options = {
|
416
|
+
method: "POST",
|
417
|
+
url: "/v2/aad/instances/{instance_id}/ddos-info/attack/events",
|
418
|
+
contentType: "application/json",
|
419
|
+
queryParams: {},
|
420
|
+
pathParams: {},
|
421
|
+
headers: {},
|
422
|
+
data: {}
|
423
|
+
};
|
424
|
+
const localVarHeaderParameter = {};
|
425
|
+
let body;
|
426
|
+
let instanceId;
|
427
|
+
if (listDDoSAttackEventRequest !== null && listDDoSAttackEventRequest !== undefined) {
|
428
|
+
if (listDDoSAttackEventRequest instanceof ListDDoSAttackEventRequest_1.ListDDoSAttackEventRequest) {
|
429
|
+
instanceId = listDDoSAttackEventRequest.instanceId;
|
430
|
+
body = listDDoSAttackEventRequest.body;
|
431
|
+
}
|
432
|
+
else {
|
433
|
+
instanceId = listDDoSAttackEventRequest['instance_id'];
|
434
|
+
body = listDDoSAttackEventRequest['body'];
|
435
|
+
}
|
436
|
+
}
|
437
|
+
if (instanceId === null || instanceId === undefined) {
|
438
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDDoSAttackEvent.');
|
439
|
+
}
|
440
|
+
if (body === null || body === undefined) {
|
441
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
442
|
+
}
|
443
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
444
|
+
options.data = body !== undefined ? body : {};
|
445
|
+
options.pathParams = { 'instance_id': instanceId, };
|
446
|
+
options.headers = localVarHeaderParameter;
|
447
|
+
return options;
|
448
|
+
},
|
449
|
+
/**
|
450
|
+
* 查询新建连接数和并发连接数
|
451
|
+
*
|
452
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
453
|
+
*/
|
454
|
+
listDDoSConnectionNumber(listDDoSConnectionNumberRequest) {
|
455
|
+
const options = {
|
456
|
+
method: "GET",
|
457
|
+
url: "/v2/aad/instances/{instance_id}/ddos-info/flow/connection-numbers",
|
458
|
+
contentType: "application/json",
|
459
|
+
queryParams: {},
|
460
|
+
pathParams: {},
|
461
|
+
headers: {}
|
462
|
+
};
|
463
|
+
const localVarHeaderParameter = {};
|
464
|
+
const localVarQueryParameter = {};
|
465
|
+
let startTime;
|
466
|
+
let endTime;
|
467
|
+
let instanceId;
|
468
|
+
let ip;
|
469
|
+
if (listDDoSConnectionNumberRequest !== null && listDDoSConnectionNumberRequest !== undefined) {
|
470
|
+
if (listDDoSConnectionNumberRequest instanceof ListDDoSConnectionNumberRequest_1.ListDDoSConnectionNumberRequest) {
|
471
|
+
startTime = listDDoSConnectionNumberRequest.startTime;
|
472
|
+
endTime = listDDoSConnectionNumberRequest.endTime;
|
473
|
+
instanceId = listDDoSConnectionNumberRequest.instanceId;
|
474
|
+
ip = listDDoSConnectionNumberRequest.ip;
|
475
|
+
}
|
476
|
+
else {
|
477
|
+
startTime = listDDoSConnectionNumberRequest['start_time'];
|
478
|
+
endTime = listDDoSConnectionNumberRequest['end_time'];
|
479
|
+
instanceId = listDDoSConnectionNumberRequest['instance_id'];
|
480
|
+
ip = listDDoSConnectionNumberRequest['ip'];
|
481
|
+
}
|
482
|
+
}
|
483
|
+
if (startTime === null || startTime === undefined) {
|
484
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listDDoSConnectionNumber.');
|
485
|
+
}
|
486
|
+
if (startTime !== null && startTime !== undefined) {
|
487
|
+
localVarQueryParameter['start_time'] = startTime;
|
488
|
+
}
|
489
|
+
if (endTime === null || endTime === undefined) {
|
490
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listDDoSConnectionNumber.');
|
491
|
+
}
|
492
|
+
if (endTime !== null && endTime !== undefined) {
|
493
|
+
localVarQueryParameter['end_time'] = endTime;
|
494
|
+
}
|
495
|
+
if (instanceId === null || instanceId === undefined) {
|
496
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDDoSConnectionNumber.');
|
497
|
+
}
|
498
|
+
if (ip === null || ip === undefined) {
|
499
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling listDDoSConnectionNumber.');
|
500
|
+
}
|
501
|
+
if (ip !== null && ip !== undefined) {
|
502
|
+
localVarQueryParameter['ip'] = ip;
|
503
|
+
}
|
504
|
+
options.queryParams = localVarQueryParameter;
|
505
|
+
options.pathParams = { 'instance_id': instanceId, };
|
506
|
+
options.headers = localVarHeaderParameter;
|
507
|
+
return options;
|
508
|
+
},
|
509
|
+
/**
|
510
|
+
* 查询DDoS攻击防护BPS/PPS流量
|
511
|
+
*
|
512
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
513
|
+
*/
|
514
|
+
listDDoSFlow(listDDoSFlowRequest) {
|
515
|
+
const options = {
|
516
|
+
method: "GET",
|
517
|
+
url: "/v2/aad/instances/{instance_id}/ddos-info/flow",
|
518
|
+
contentType: "application/json",
|
519
|
+
queryParams: {},
|
520
|
+
pathParams: {},
|
521
|
+
headers: {}
|
522
|
+
};
|
523
|
+
const localVarHeaderParameter = {};
|
524
|
+
const localVarQueryParameter = {};
|
525
|
+
let instanceId;
|
526
|
+
let ip;
|
527
|
+
let type;
|
528
|
+
let startTime;
|
529
|
+
let endTime;
|
530
|
+
if (listDDoSFlowRequest !== null && listDDoSFlowRequest !== undefined) {
|
531
|
+
if (listDDoSFlowRequest instanceof ListDDoSFlowRequest_1.ListDDoSFlowRequest) {
|
532
|
+
instanceId = listDDoSFlowRequest.instanceId;
|
533
|
+
ip = listDDoSFlowRequest.ip;
|
534
|
+
type = listDDoSFlowRequest.type;
|
535
|
+
startTime = listDDoSFlowRequest.startTime;
|
536
|
+
endTime = listDDoSFlowRequest.endTime;
|
537
|
+
}
|
538
|
+
else {
|
539
|
+
instanceId = listDDoSFlowRequest['instance_id'];
|
540
|
+
ip = listDDoSFlowRequest['ip'];
|
541
|
+
type = listDDoSFlowRequest['type'];
|
542
|
+
startTime = listDDoSFlowRequest['start_time'];
|
543
|
+
endTime = listDDoSFlowRequest['end_time'];
|
544
|
+
}
|
545
|
+
}
|
546
|
+
if (instanceId === null || instanceId === undefined) {
|
547
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listDDoSFlow.');
|
548
|
+
}
|
549
|
+
if (ip === null || ip === undefined) {
|
550
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling listDDoSFlow.');
|
551
|
+
}
|
552
|
+
if (ip !== null && ip !== undefined) {
|
553
|
+
localVarQueryParameter['ip'] = ip;
|
554
|
+
}
|
555
|
+
if (type === null || type === undefined) {
|
556
|
+
throw new RequiredError('type', 'Required parameter type was null or undefined when calling listDDoSFlow.');
|
557
|
+
}
|
558
|
+
if (type !== null && type !== undefined) {
|
559
|
+
localVarQueryParameter['type'] = type;
|
560
|
+
}
|
561
|
+
if (startTime === null || startTime === undefined) {
|
562
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listDDoSFlow.');
|
563
|
+
}
|
564
|
+
if (startTime !== null && startTime !== undefined) {
|
565
|
+
localVarQueryParameter['start_time'] = startTime;
|
566
|
+
}
|
567
|
+
if (endTime === null || endTime === undefined) {
|
568
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listDDoSFlow.');
|
569
|
+
}
|
570
|
+
if (endTime !== null && endTime !== undefined) {
|
571
|
+
localVarQueryParameter['end_time'] = endTime;
|
572
|
+
}
|
573
|
+
options.queryParams = localVarQueryParameter;
|
574
|
+
options.pathParams = { 'instance_id': instanceId, };
|
575
|
+
options.headers = localVarHeaderParameter;
|
576
|
+
return options;
|
577
|
+
},
|
578
|
+
/**
|
579
|
+
* 查询频率控制规则列表
|
580
|
+
*
|
581
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
582
|
+
*/
|
583
|
+
listFrequencyControlRule(listFrequencyControlRuleRequest) {
|
584
|
+
const options = {
|
585
|
+
method: "GET",
|
586
|
+
url: "/v2/aad/policies/waf/frequency-control-rule",
|
587
|
+
contentType: "application/json",
|
588
|
+
queryParams: {},
|
589
|
+
pathParams: {},
|
590
|
+
headers: {}
|
591
|
+
};
|
592
|
+
const localVarHeaderParameter = {};
|
593
|
+
const localVarQueryParameter = {};
|
594
|
+
let domainName;
|
595
|
+
if (listFrequencyControlRuleRequest !== null && listFrequencyControlRuleRequest !== undefined) {
|
596
|
+
if (listFrequencyControlRuleRequest instanceof ListFrequencyControlRuleRequest_1.ListFrequencyControlRuleRequest) {
|
597
|
+
domainName = listFrequencyControlRuleRequest.domainName;
|
598
|
+
}
|
599
|
+
else {
|
600
|
+
domainName = listFrequencyControlRuleRequest['domain_name'];
|
601
|
+
}
|
602
|
+
}
|
603
|
+
if (domainName === null || domainName === undefined) {
|
604
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listFrequencyControlRule.');
|
605
|
+
}
|
606
|
+
if (domainName !== null && domainName !== undefined) {
|
607
|
+
localVarQueryParameter['domain_name'] = domainName;
|
608
|
+
}
|
609
|
+
options.queryParams = localVarQueryParameter;
|
610
|
+
options.headers = localVarHeaderParameter;
|
611
|
+
return options;
|
612
|
+
},
|
613
|
+
/**
|
614
|
+
* 查询实例关联的域名信息
|
615
|
+
*
|
616
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
617
|
+
*/
|
618
|
+
listInstanceDomains(listInstanceDomainsRequest) {
|
619
|
+
const options = {
|
620
|
+
method: "GET",
|
621
|
+
url: "/v2/aad/instances/{instance_id}/domains",
|
622
|
+
contentType: "application/json",
|
623
|
+
queryParams: {},
|
624
|
+
pathParams: {},
|
625
|
+
headers: {}
|
626
|
+
};
|
627
|
+
const localVarHeaderParameter = {};
|
628
|
+
let instanceId;
|
629
|
+
if (listInstanceDomainsRequest !== null && listInstanceDomainsRequest !== undefined) {
|
630
|
+
if (listInstanceDomainsRequest instanceof ListInstanceDomainsRequest_1.ListInstanceDomainsRequest) {
|
631
|
+
instanceId = listInstanceDomainsRequest.instanceId;
|
632
|
+
}
|
633
|
+
else {
|
634
|
+
instanceId = listInstanceDomainsRequest['instance_id'];
|
635
|
+
}
|
636
|
+
}
|
637
|
+
if (instanceId === null || instanceId === undefined) {
|
638
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listInstanceDomains.');
|
639
|
+
}
|
640
|
+
options.pathParams = { 'instance_id': instanceId, };
|
641
|
+
options.headers = localVarHeaderParameter;
|
642
|
+
return options;
|
643
|
+
},
|
644
|
+
/**
|
645
|
+
* 查询攻击事件列表
|
646
|
+
*
|
647
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
648
|
+
*/
|
649
|
+
listWafAttackEvent(listWafAttackEventRequest) {
|
650
|
+
const options = {
|
651
|
+
method: "GET",
|
652
|
+
url: "/v2/aad/domains/waf-info/attack/event",
|
653
|
+
contentType: "application/json",
|
654
|
+
queryParams: {},
|
655
|
+
pathParams: {},
|
656
|
+
headers: {}
|
657
|
+
};
|
658
|
+
const localVarHeaderParameter = {};
|
659
|
+
const localVarQueryParameter = {};
|
660
|
+
let domains;
|
661
|
+
let startTime;
|
662
|
+
let endTime;
|
663
|
+
let recent;
|
664
|
+
let overseasType;
|
665
|
+
let sip;
|
666
|
+
let limit;
|
667
|
+
let offset;
|
668
|
+
if (listWafAttackEventRequest !== null && listWafAttackEventRequest !== undefined) {
|
669
|
+
if (listWafAttackEventRequest instanceof ListWafAttackEventRequest_1.ListWafAttackEventRequest) {
|
670
|
+
domains = listWafAttackEventRequest.domains;
|
671
|
+
startTime = listWafAttackEventRequest.startTime;
|
672
|
+
endTime = listWafAttackEventRequest.endTime;
|
673
|
+
recent = listWafAttackEventRequest.recent;
|
674
|
+
overseasType = listWafAttackEventRequest.overseasType;
|
675
|
+
sip = listWafAttackEventRequest.sip;
|
676
|
+
limit = listWafAttackEventRequest.limit;
|
677
|
+
offset = listWafAttackEventRequest.offset;
|
678
|
+
}
|
679
|
+
else {
|
680
|
+
domains = listWafAttackEventRequest['domains'];
|
681
|
+
startTime = listWafAttackEventRequest['start_time'];
|
682
|
+
endTime = listWafAttackEventRequest['end_time'];
|
683
|
+
recent = listWafAttackEventRequest['recent'];
|
684
|
+
overseasType = listWafAttackEventRequest['overseas_type'];
|
685
|
+
sip = listWafAttackEventRequest['sip'];
|
686
|
+
limit = listWafAttackEventRequest['limit'];
|
687
|
+
offset = listWafAttackEventRequest['offset'];
|
688
|
+
}
|
689
|
+
}
|
690
|
+
if (domains !== null && domains !== undefined) {
|
691
|
+
localVarQueryParameter['domains'] = domains;
|
692
|
+
}
|
693
|
+
if (startTime !== null && startTime !== undefined) {
|
694
|
+
localVarQueryParameter['start_time'] = startTime;
|
695
|
+
}
|
696
|
+
if (endTime !== null && endTime !== undefined) {
|
697
|
+
localVarQueryParameter['end_time'] = endTime;
|
698
|
+
}
|
699
|
+
if (recent !== null && recent !== undefined) {
|
700
|
+
localVarQueryParameter['recent'] = recent;
|
701
|
+
}
|
702
|
+
if (overseasType !== null && overseasType !== undefined) {
|
703
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
704
|
+
}
|
705
|
+
if (sip !== null && sip !== undefined) {
|
706
|
+
localVarQueryParameter['sip'] = sip;
|
707
|
+
}
|
708
|
+
if (limit !== null && limit !== undefined) {
|
709
|
+
localVarQueryParameter['limit'] = limit;
|
710
|
+
}
|
711
|
+
if (offset !== null && offset !== undefined) {
|
712
|
+
localVarQueryParameter['offset'] = offset;
|
713
|
+
}
|
714
|
+
options.queryParams = localVarQueryParameter;
|
715
|
+
options.headers = localVarHeaderParameter;
|
716
|
+
return options;
|
717
|
+
},
|
718
|
+
/**
|
719
|
+
* 带宽曲线
|
720
|
+
*
|
721
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
722
|
+
*/
|
723
|
+
listWafBandwidth(listWafBandwidthRequest) {
|
724
|
+
const options = {
|
725
|
+
method: "GET",
|
726
|
+
url: "/v2/aad/domains/waf-info/flow/bandwidth",
|
727
|
+
contentType: "application/json",
|
728
|
+
queryParams: {},
|
729
|
+
pathParams: {},
|
730
|
+
headers: {}
|
731
|
+
};
|
732
|
+
const localVarHeaderParameter = {};
|
733
|
+
const localVarQueryParameter = {};
|
734
|
+
let valueType;
|
735
|
+
let domains;
|
736
|
+
let startTime;
|
737
|
+
let endTime;
|
738
|
+
let recent;
|
739
|
+
let overseasType;
|
740
|
+
if (listWafBandwidthRequest !== null && listWafBandwidthRequest !== undefined) {
|
741
|
+
if (listWafBandwidthRequest instanceof ListWafBandwidthRequest_1.ListWafBandwidthRequest) {
|
742
|
+
valueType = listWafBandwidthRequest.valueType;
|
743
|
+
domains = listWafBandwidthRequest.domains;
|
744
|
+
startTime = listWafBandwidthRequest.startTime;
|
745
|
+
endTime = listWafBandwidthRequest.endTime;
|
746
|
+
recent = listWafBandwidthRequest.recent;
|
747
|
+
overseasType = listWafBandwidthRequest.overseasType;
|
748
|
+
}
|
749
|
+
else {
|
750
|
+
valueType = listWafBandwidthRequest['value_type'];
|
751
|
+
domains = listWafBandwidthRequest['domains'];
|
752
|
+
startTime = listWafBandwidthRequest['start_time'];
|
753
|
+
endTime = listWafBandwidthRequest['end_time'];
|
754
|
+
recent = listWafBandwidthRequest['recent'];
|
755
|
+
overseasType = listWafBandwidthRequest['overseas_type'];
|
756
|
+
}
|
757
|
+
}
|
758
|
+
if (valueType === null || valueType === undefined) {
|
759
|
+
throw new RequiredError('valueType', 'Required parameter valueType was null or undefined when calling listWafBandwidth.');
|
760
|
+
}
|
761
|
+
if (valueType !== null && valueType !== undefined) {
|
762
|
+
localVarQueryParameter['value_type'] = valueType;
|
763
|
+
}
|
764
|
+
if (domains !== null && domains !== undefined) {
|
765
|
+
localVarQueryParameter['domains'] = domains;
|
766
|
+
}
|
767
|
+
if (startTime !== null && startTime !== undefined) {
|
768
|
+
localVarQueryParameter['start_time'] = startTime;
|
769
|
+
}
|
770
|
+
if (endTime !== null && endTime !== undefined) {
|
771
|
+
localVarQueryParameter['end_time'] = endTime;
|
772
|
+
}
|
773
|
+
if (recent !== null && recent !== undefined) {
|
774
|
+
localVarQueryParameter['recent'] = recent;
|
775
|
+
}
|
776
|
+
if (overseasType !== null && overseasType !== undefined) {
|
777
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
778
|
+
}
|
779
|
+
options.queryParams = localVarQueryParameter;
|
780
|
+
options.headers = localVarHeaderParameter;
|
781
|
+
return options;
|
782
|
+
},
|
783
|
+
/**
|
784
|
+
* 查询精准防护规则
|
785
|
+
*
|
786
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
787
|
+
*/
|
788
|
+
listWafCustomRule(listWafCustomRuleRequest) {
|
789
|
+
const options = {
|
790
|
+
method: "GET",
|
791
|
+
url: "/v2/aad/policies/waf/custom-rule",
|
792
|
+
contentType: "application/json",
|
793
|
+
queryParams: {},
|
794
|
+
pathParams: {},
|
795
|
+
headers: {}
|
796
|
+
};
|
797
|
+
const localVarHeaderParameter = {};
|
798
|
+
const localVarQueryParameter = {};
|
799
|
+
let domainName;
|
800
|
+
let overseasType;
|
801
|
+
if (listWafCustomRuleRequest !== null && listWafCustomRuleRequest !== undefined) {
|
802
|
+
if (listWafCustomRuleRequest instanceof ListWafCustomRuleRequest_1.ListWafCustomRuleRequest) {
|
803
|
+
domainName = listWafCustomRuleRequest.domainName;
|
804
|
+
overseasType = listWafCustomRuleRequest.overseasType;
|
805
|
+
}
|
806
|
+
else {
|
807
|
+
domainName = listWafCustomRuleRequest['domain_name'];
|
808
|
+
overseasType = listWafCustomRuleRequest['overseas_type'];
|
809
|
+
}
|
810
|
+
}
|
811
|
+
if (domainName === null || domainName === undefined) {
|
812
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listWafCustomRule.');
|
813
|
+
}
|
814
|
+
if (domainName !== null && domainName !== undefined) {
|
815
|
+
localVarQueryParameter['domain_name'] = domainName;
|
816
|
+
}
|
817
|
+
if (overseasType === null || overseasType === undefined) {
|
818
|
+
throw new RequiredError('overseasType', 'Required parameter overseasType was null or undefined when calling listWafCustomRule.');
|
819
|
+
}
|
820
|
+
if (overseasType !== null && overseasType !== undefined) {
|
821
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
822
|
+
}
|
823
|
+
options.queryParams = localVarQueryParameter;
|
824
|
+
options.headers = localVarHeaderParameter;
|
825
|
+
return options;
|
826
|
+
},
|
827
|
+
/**
|
828
|
+
* 查询区域封禁规则
|
829
|
+
*
|
830
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
831
|
+
*/
|
832
|
+
listWafGeoIpRule(listWafGeoIpRuleRequest) {
|
833
|
+
const options = {
|
834
|
+
method: "GET",
|
835
|
+
url: "/v2/aad/policies/waf/geoip-rule",
|
836
|
+
contentType: "application/json",
|
837
|
+
queryParams: {},
|
838
|
+
pathParams: {},
|
839
|
+
headers: {}
|
840
|
+
};
|
841
|
+
const localVarHeaderParameter = {};
|
842
|
+
const localVarQueryParameter = {};
|
843
|
+
let domainName;
|
844
|
+
let overseasType;
|
845
|
+
if (listWafGeoIpRuleRequest !== null && listWafGeoIpRuleRequest !== undefined) {
|
846
|
+
if (listWafGeoIpRuleRequest instanceof ListWafGeoIpRuleRequest_1.ListWafGeoIpRuleRequest) {
|
847
|
+
domainName = listWafGeoIpRuleRequest.domainName;
|
848
|
+
overseasType = listWafGeoIpRuleRequest.overseasType;
|
849
|
+
}
|
850
|
+
else {
|
851
|
+
domainName = listWafGeoIpRuleRequest['domain_name'];
|
852
|
+
overseasType = listWafGeoIpRuleRequest['overseas_type'];
|
853
|
+
}
|
854
|
+
}
|
855
|
+
if (domainName === null || domainName === undefined) {
|
856
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listWafGeoIpRule.');
|
857
|
+
}
|
858
|
+
if (domainName !== null && domainName !== undefined) {
|
859
|
+
localVarQueryParameter['domain_name'] = domainName;
|
860
|
+
}
|
861
|
+
if (overseasType === null || overseasType === undefined) {
|
862
|
+
throw new RequiredError('overseasType', 'Required parameter overseasType was null or undefined when calling listWafGeoIpRule.');
|
863
|
+
}
|
864
|
+
if (overseasType !== null && overseasType !== undefined) {
|
865
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
866
|
+
}
|
867
|
+
options.queryParams = localVarQueryParameter;
|
868
|
+
options.headers = localVarHeaderParameter;
|
869
|
+
return options;
|
870
|
+
},
|
871
|
+
/**
|
872
|
+
* 查询请求QPS
|
873
|
+
*
|
874
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
875
|
+
*/
|
876
|
+
listWafQps(listWafQpsRequest) {
|
877
|
+
const options = {
|
878
|
+
method: "GET",
|
879
|
+
url: "/v2/aad/domains/waf-info/flow/qps",
|
880
|
+
contentType: "application/json",
|
881
|
+
queryParams: {},
|
882
|
+
pathParams: {},
|
883
|
+
headers: {}
|
884
|
+
};
|
885
|
+
const localVarHeaderParameter = {};
|
886
|
+
const localVarQueryParameter = {};
|
887
|
+
let valueType;
|
888
|
+
let domains;
|
889
|
+
let startTime;
|
890
|
+
let endTime;
|
891
|
+
let recent;
|
892
|
+
let overseasType;
|
893
|
+
if (listWafQpsRequest !== null && listWafQpsRequest !== undefined) {
|
894
|
+
if (listWafQpsRequest instanceof ListWafQpsRequest_1.ListWafQpsRequest) {
|
895
|
+
valueType = listWafQpsRequest.valueType;
|
896
|
+
domains = listWafQpsRequest.domains;
|
897
|
+
startTime = listWafQpsRequest.startTime;
|
898
|
+
endTime = listWafQpsRequest.endTime;
|
899
|
+
recent = listWafQpsRequest.recent;
|
900
|
+
overseasType = listWafQpsRequest.overseasType;
|
901
|
+
}
|
902
|
+
else {
|
903
|
+
valueType = listWafQpsRequest['value_type'];
|
904
|
+
domains = listWafQpsRequest['domains'];
|
905
|
+
startTime = listWafQpsRequest['start_time'];
|
906
|
+
endTime = listWafQpsRequest['end_time'];
|
907
|
+
recent = listWafQpsRequest['recent'];
|
908
|
+
overseasType = listWafQpsRequest['overseas_type'];
|
909
|
+
}
|
910
|
+
}
|
911
|
+
if (valueType === null || valueType === undefined) {
|
912
|
+
throw new RequiredError('valueType', 'Required parameter valueType was null or undefined when calling listWafQps.');
|
913
|
+
}
|
914
|
+
if (valueType !== null && valueType !== undefined) {
|
915
|
+
localVarQueryParameter['value_type'] = valueType;
|
916
|
+
}
|
917
|
+
if (domains !== null && domains !== undefined) {
|
918
|
+
localVarQueryParameter['domains'] = domains;
|
919
|
+
}
|
920
|
+
if (startTime !== null && startTime !== undefined) {
|
921
|
+
localVarQueryParameter['start_time'] = startTime;
|
922
|
+
}
|
923
|
+
if (endTime !== null && endTime !== undefined) {
|
924
|
+
localVarQueryParameter['end_time'] = endTime;
|
925
|
+
}
|
926
|
+
if (recent !== null && recent !== undefined) {
|
927
|
+
localVarQueryParameter['recent'] = recent;
|
928
|
+
}
|
929
|
+
if (overseasType !== null && overseasType !== undefined) {
|
930
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
931
|
+
}
|
932
|
+
options.queryParams = localVarQueryParameter;
|
933
|
+
options.headers = localVarHeaderParameter;
|
934
|
+
return options;
|
935
|
+
},
|
936
|
+
/**
|
937
|
+
* 防护策略web-cc黑白名单-查询黑白名单规则
|
938
|
+
*
|
939
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
940
|
+
*/
|
941
|
+
listWafWhiteIpRule(listWafWhiteIpRuleRequest) {
|
942
|
+
const options = {
|
943
|
+
method: "GET",
|
944
|
+
url: "/v2/aad/policies/waf/blackwhite-list",
|
945
|
+
contentType: "application/json",
|
946
|
+
queryParams: {},
|
947
|
+
pathParams: {},
|
948
|
+
headers: {}
|
949
|
+
};
|
950
|
+
const localVarHeaderParameter = {};
|
951
|
+
const localVarQueryParameter = {};
|
952
|
+
let domainName;
|
953
|
+
let overseasType;
|
954
|
+
if (listWafWhiteIpRuleRequest !== null && listWafWhiteIpRuleRequest !== undefined) {
|
955
|
+
if (listWafWhiteIpRuleRequest instanceof ListWafWhiteIpRuleRequest_1.ListWafWhiteIpRuleRequest) {
|
956
|
+
domainName = listWafWhiteIpRuleRequest.domainName;
|
957
|
+
overseasType = listWafWhiteIpRuleRequest.overseasType;
|
958
|
+
}
|
959
|
+
else {
|
960
|
+
domainName = listWafWhiteIpRuleRequest['domain_name'];
|
961
|
+
overseasType = listWafWhiteIpRuleRequest['overseas_type'];
|
962
|
+
}
|
963
|
+
}
|
964
|
+
if (domainName === null || domainName === undefined) {
|
965
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listWafWhiteIpRule.');
|
966
|
+
}
|
967
|
+
if (domainName !== null && domainName !== undefined) {
|
968
|
+
localVarQueryParameter['domain_name'] = domainName;
|
969
|
+
}
|
970
|
+
if (overseasType === null || overseasType === undefined) {
|
971
|
+
throw new RequiredError('overseasType', 'Required parameter overseasType was null or undefined when calling listWafWhiteIpRule.');
|
972
|
+
}
|
973
|
+
if (overseasType !== null && overseasType !== undefined) {
|
974
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
975
|
+
}
|
976
|
+
options.queryParams = localVarQueryParameter;
|
977
|
+
options.headers = localVarHeaderParameter;
|
978
|
+
return options;
|
979
|
+
},
|
980
|
+
/**
|
981
|
+
* 查询DDoS攻击防护的黑白名单列表
|
982
|
+
*
|
983
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
984
|
+
*/
|
985
|
+
listWhiteBlackIpRule(listWhiteBlackIpRuleRequest) {
|
986
|
+
const options = {
|
987
|
+
method: "GET",
|
988
|
+
url: "/v2/aad/policies/ddos/blackwhite-list",
|
989
|
+
contentType: "application/json",
|
990
|
+
queryParams: {},
|
991
|
+
pathParams: {},
|
992
|
+
headers: {}
|
993
|
+
};
|
994
|
+
const localVarHeaderParameter = {};
|
995
|
+
const localVarQueryParameter = {};
|
996
|
+
let type;
|
997
|
+
let instanceId;
|
998
|
+
if (listWhiteBlackIpRuleRequest !== null && listWhiteBlackIpRuleRequest !== undefined) {
|
999
|
+
if (listWhiteBlackIpRuleRequest instanceof ListWhiteBlackIpRuleRequest_1.ListWhiteBlackIpRuleRequest) {
|
1000
|
+
type = listWhiteBlackIpRuleRequest.type;
|
1001
|
+
instanceId = listWhiteBlackIpRuleRequest.instanceId;
|
1002
|
+
}
|
1003
|
+
else {
|
1004
|
+
type = listWhiteBlackIpRuleRequest['type'];
|
1005
|
+
instanceId = listWhiteBlackIpRuleRequest['instance_id'];
|
1006
|
+
}
|
1007
|
+
}
|
1008
|
+
if (type === null || type === undefined) {
|
1009
|
+
throw new RequiredError('type', 'Required parameter type was null or undefined when calling listWhiteBlackIpRule.');
|
1010
|
+
}
|
1011
|
+
if (type !== null && type !== undefined) {
|
1012
|
+
localVarQueryParameter['type'] = type;
|
1013
|
+
}
|
1014
|
+
if (instanceId === null || instanceId === undefined) {
|
1015
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listWhiteBlackIpRule.');
|
1016
|
+
}
|
1017
|
+
if (instanceId !== null && instanceId !== undefined) {
|
1018
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
1019
|
+
}
|
1020
|
+
options.queryParams = localVarQueryParameter;
|
1021
|
+
options.headers = localVarHeaderParameter;
|
1022
|
+
return options;
|
1023
|
+
},
|
1024
|
+
/**
|
1025
|
+
* 查询域名关联的证书信息
|
1026
|
+
*
|
1027
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1028
|
+
*/
|
1029
|
+
showDomainCertificate(showDomainCertificateRequest) {
|
1030
|
+
const options = {
|
1031
|
+
method: "GET",
|
1032
|
+
url: "/v2/aad/domains/{domain_id}/certificate",
|
1033
|
+
contentType: "application/json",
|
1034
|
+
queryParams: {},
|
1035
|
+
pathParams: {},
|
1036
|
+
headers: {}
|
1037
|
+
};
|
1038
|
+
const localVarHeaderParameter = {};
|
1039
|
+
let domainId;
|
1040
|
+
if (showDomainCertificateRequest !== null && showDomainCertificateRequest !== undefined) {
|
1041
|
+
if (showDomainCertificateRequest instanceof ShowDomainCertificateRequest_1.ShowDomainCertificateRequest) {
|
1042
|
+
domainId = showDomainCertificateRequest.domainId;
|
1043
|
+
}
|
1044
|
+
else {
|
1045
|
+
domainId = showDomainCertificateRequest['domain_id'];
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
if (domainId === null || domainId === undefined) {
|
1049
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showDomainCertificate.');
|
1050
|
+
}
|
1051
|
+
options.pathParams = { 'domain_id': domainId, };
|
1052
|
+
options.headers = localVarHeaderParameter;
|
1053
|
+
return options;
|
1054
|
+
},
|
1055
|
+
/**
|
1056
|
+
* 查询流量封禁信息
|
1057
|
+
*
|
1058
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1059
|
+
*/
|
1060
|
+
showFlowBlock(showFlowBlockRequest) {
|
1061
|
+
const options = {
|
1062
|
+
method: "GET",
|
1063
|
+
url: "/v2/aad/policies/ddos/flow-block",
|
1064
|
+
contentType: "application/json",
|
1065
|
+
queryParams: {},
|
1066
|
+
pathParams: {},
|
1067
|
+
headers: {}
|
1068
|
+
};
|
1069
|
+
const localVarHeaderParameter = {};
|
1070
|
+
const localVarQueryParameter = {};
|
1071
|
+
let instanceId;
|
1072
|
+
if (showFlowBlockRequest !== null && showFlowBlockRequest !== undefined) {
|
1073
|
+
if (showFlowBlockRequest instanceof ShowFlowBlockRequest_1.ShowFlowBlockRequest) {
|
1074
|
+
instanceId = showFlowBlockRequest.instanceId;
|
1075
|
+
}
|
1076
|
+
else {
|
1077
|
+
instanceId = showFlowBlockRequest['instance_id'];
|
1078
|
+
}
|
1079
|
+
}
|
1080
|
+
if (instanceId === null || instanceId === undefined) {
|
1081
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showFlowBlock.');
|
1082
|
+
}
|
1083
|
+
if (instanceId !== null && instanceId !== undefined) {
|
1084
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
1085
|
+
}
|
1086
|
+
options.queryParams = localVarQueryParameter;
|
1087
|
+
options.headers = localVarHeaderParameter;
|
1088
|
+
return options;
|
1089
|
+
},
|
1090
|
+
/**
|
1091
|
+
* 查询WEB防护策略配置
|
1092
|
+
*
|
1093
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1094
|
+
*/
|
1095
|
+
showWafPolicy(showWafPolicyRequest) {
|
1096
|
+
const options = {
|
1097
|
+
method: "GET",
|
1098
|
+
url: "/v2/aad/policies/waf",
|
1099
|
+
contentType: "application/json",
|
1100
|
+
queryParams: {},
|
1101
|
+
pathParams: {},
|
1102
|
+
headers: {}
|
1103
|
+
};
|
1104
|
+
const localVarHeaderParameter = {};
|
1105
|
+
const localVarQueryParameter = {};
|
1106
|
+
let domainName;
|
1107
|
+
let overseasType;
|
1108
|
+
if (showWafPolicyRequest !== null && showWafPolicyRequest !== undefined) {
|
1109
|
+
if (showWafPolicyRequest instanceof ShowWafPolicyRequest_1.ShowWafPolicyRequest) {
|
1110
|
+
domainName = showWafPolicyRequest.domainName;
|
1111
|
+
overseasType = showWafPolicyRequest.overseasType;
|
1112
|
+
}
|
1113
|
+
else {
|
1114
|
+
domainName = showWafPolicyRequest['domain_name'];
|
1115
|
+
overseasType = showWafPolicyRequest['overseas_type'];
|
1116
|
+
}
|
1117
|
+
}
|
1118
|
+
if (domainName === null || domainName === undefined) {
|
1119
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showWafPolicy.');
|
1120
|
+
}
|
1121
|
+
if (domainName !== null && domainName !== undefined) {
|
1122
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1123
|
+
}
|
1124
|
+
if (overseasType === null || overseasType === undefined) {
|
1125
|
+
throw new RequiredError('overseasType', 'Required parameter overseasType was null or undefined when calling showWafPolicy.');
|
1126
|
+
}
|
1127
|
+
if (overseasType !== null && overseasType !== undefined) {
|
1128
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
1129
|
+
}
|
1130
|
+
options.queryParams = localVarQueryParameter;
|
1131
|
+
options.headers = localVarHeaderParameter;
|
1132
|
+
return options;
|
1133
|
+
},
|
1134
|
+
/**
|
1135
|
+
* 查询CC攻击防护请求QPS
|
1136
|
+
*
|
1137
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1138
|
+
*/
|
1139
|
+
showWafQps(showWafQpsRequest) {
|
1140
|
+
const options = {
|
1141
|
+
method: "GET",
|
1142
|
+
url: "/v2/aad/domains/waf-info/flow/request/peak",
|
1143
|
+
contentType: "application/json",
|
1144
|
+
queryParams: {},
|
1145
|
+
pathParams: {},
|
1146
|
+
headers: {}
|
1147
|
+
};
|
1148
|
+
const localVarHeaderParameter = {};
|
1149
|
+
const localVarQueryParameter = {};
|
1150
|
+
let recent;
|
1151
|
+
let domains;
|
1152
|
+
let startTime;
|
1153
|
+
let endTime;
|
1154
|
+
let overseasType;
|
1155
|
+
if (showWafQpsRequest !== null && showWafQpsRequest !== undefined) {
|
1156
|
+
if (showWafQpsRequest instanceof ShowWafQpsRequest_1.ShowWafQpsRequest) {
|
1157
|
+
recent = showWafQpsRequest.recent;
|
1158
|
+
domains = showWafQpsRequest.domains;
|
1159
|
+
startTime = showWafQpsRequest.startTime;
|
1160
|
+
endTime = showWafQpsRequest.endTime;
|
1161
|
+
overseasType = showWafQpsRequest.overseasType;
|
1162
|
+
}
|
1163
|
+
else {
|
1164
|
+
recent = showWafQpsRequest['recent'];
|
1165
|
+
domains = showWafQpsRequest['domains'];
|
1166
|
+
startTime = showWafQpsRequest['start_time'];
|
1167
|
+
endTime = showWafQpsRequest['end_time'];
|
1168
|
+
overseasType = showWafQpsRequest['overseas_type'];
|
1169
|
+
}
|
1170
|
+
}
|
1171
|
+
if (recent !== null && recent !== undefined) {
|
1172
|
+
localVarQueryParameter['recent'] = recent;
|
1173
|
+
}
|
1174
|
+
if (domains !== null && domains !== undefined) {
|
1175
|
+
localVarQueryParameter['domains'] = domains;
|
1176
|
+
}
|
1177
|
+
if (startTime !== null && startTime !== undefined) {
|
1178
|
+
localVarQueryParameter['start_time'] = startTime;
|
1179
|
+
}
|
1180
|
+
if (endTime !== null && endTime !== undefined) {
|
1181
|
+
localVarQueryParameter['end_time'] = endTime;
|
1182
|
+
}
|
1183
|
+
if (overseasType !== null && overseasType !== undefined) {
|
1184
|
+
localVarQueryParameter['overseas_type'] = overseasType;
|
1185
|
+
}
|
1186
|
+
options.queryParams = localVarQueryParameter;
|
1187
|
+
options.headers = localVarHeaderParameter;
|
1188
|
+
return options;
|
1189
|
+
},
|
1190
|
+
/**
|
1191
|
+
* 修改实例规格
|
1192
|
+
*
|
1193
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1194
|
+
*/
|
1195
|
+
upgradeInstanceSpec(upgradeInstanceSpecRequest) {
|
1196
|
+
const options = {
|
1197
|
+
method: "PUT",
|
1198
|
+
url: "/v2/aad/instance",
|
1199
|
+
contentType: "application/json",
|
1200
|
+
queryParams: {},
|
1201
|
+
pathParams: {},
|
1202
|
+
headers: {},
|
1203
|
+
data: {}
|
1204
|
+
};
|
1205
|
+
const localVarHeaderParameter = {};
|
1206
|
+
let body;
|
1207
|
+
if (upgradeInstanceSpecRequest !== null && upgradeInstanceSpecRequest !== undefined) {
|
1208
|
+
if (upgradeInstanceSpecRequest instanceof UpgradeInstanceSpecRequest_1.UpgradeInstanceSpecRequest) {
|
1209
|
+
body = upgradeInstanceSpecRequest.body;
|
1210
|
+
}
|
1211
|
+
else {
|
1212
|
+
body = upgradeInstanceSpecRequest['body'];
|
1213
|
+
}
|
1214
|
+
}
|
1215
|
+
if (body === null || body === undefined) {
|
1216
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1217
|
+
}
|
1218
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1219
|
+
options.data = body !== undefined ? body : {};
|
1220
|
+
options.headers = localVarHeaderParameter;
|
1221
|
+
return options;
|
1222
|
+
},
|
1223
|
+
/**
|
1224
|
+
* 删除防护域名
|
1225
|
+
*
|
1226
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1227
|
+
*/
|
1228
|
+
deleteDomain(deleteDomainRequest) {
|
1229
|
+
const options = {
|
1230
|
+
method: "DELETE",
|
1231
|
+
url: "/v2/aad/domains",
|
1232
|
+
contentType: "application/json",
|
1233
|
+
queryParams: {},
|
1234
|
+
pathParams: {},
|
1235
|
+
headers: {},
|
1236
|
+
data: {}
|
1237
|
+
};
|
1238
|
+
const localVarHeaderParameter = {};
|
1239
|
+
let body;
|
1240
|
+
if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) {
|
1241
|
+
if (deleteDomainRequest instanceof DeleteDomainRequest_1.DeleteDomainRequest) {
|
1242
|
+
body = deleteDomainRequest.body;
|
1243
|
+
}
|
1244
|
+
else {
|
1245
|
+
body = deleteDomainRequest['body'];
|
1246
|
+
}
|
1247
|
+
}
|
1248
|
+
if (body === null || body === undefined) {
|
1249
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1250
|
+
}
|
1251
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1252
|
+
options.data = body !== undefined ? body : {};
|
1253
|
+
options.headers = localVarHeaderParameter;
|
1254
|
+
return options;
|
1255
|
+
},
|
1256
|
+
};
|
1257
|
+
};
|
1258
|
+
exports.ParamCreater = ParamCreater;
|
1259
|
+
function newClient(client) {
|
1260
|
+
return new AadClient(client);
|
1261
|
+
}
|
1262
|
+
/**
|
1263
|
+
*
|
1264
|
+
* @export
|
1265
|
+
* @class RequiredError
|
1266
|
+
* @extends {Error}
|
1267
|
+
*/
|
1268
|
+
class RequiredError extends Error {
|
1269
|
+
constructor(field, msg) {
|
1270
|
+
super(msg);
|
1271
|
+
this.field = field;
|
1272
|
+
this.name = "RequiredError";
|
1273
|
+
}
|
1274
|
+
}
|
1275
|
+
exports.RequiredError = RequiredError;
|
1276
|
+
//# sourceMappingURL=AadClient.js.map
|