@huaweicloud/huaweicloud-sdk-aad 3.1.64
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-aad.d.ts +3 -0
- package/huaweicloud-sdk-aad.d.ts.map +1 -0
- package/huaweicloud-sdk-aad.js +32 -0
- package/huaweicloud-sdk-aad.js.map +1 -0
- package/package.json +23 -0
- package/v1/AadClient.d.ts +895 -0
- package/v1/AadClient.d.ts.map +1 -0
- package/v1/AadClient.js +1779 -0
- package/v1/AadClient.js.map +1 -0
- package/v1/AadRegion.d.ts +7 -0
- package/v1/AadRegion.d.ts.map +1 -0
- package/v1/AadRegion.js +22 -0
- package/v1/AadRegion.js.map +1 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListRequest.d.ts +11 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListRequest.d.ts.map +1 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListRequest.js +24 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListRequest.js.map +1 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListResponse.d.ts +5 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListResponse.d.ts.map +1 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListResponse.js +11 -0
- package/v1/model/AddPolicyBlackAndWhiteIpListResponse.js.map +1 -0
- package/v1/model/AlarmBody.d.ts +8 -0
- package/v1/model/AlarmBody.d.ts.map +1 -0
- package/v1/model/AlarmBody.js +20 -0
- package/v1/model/AlarmBody.js.map +1 -0
- package/v1/model/AssociateIpToPolicyRequest.d.ts +11 -0
- package/v1/model/AssociateIpToPolicyRequest.d.ts.map +1 -0
- package/v1/model/AssociateIpToPolicyRequest.js +24 -0
- package/v1/model/AssociateIpToPolicyRequest.js.map +1 -0
- package/v1/model/AssociateIpToPolicyResponse.d.ts +5 -0
- package/v1/model/AssociateIpToPolicyResponse.d.ts.map +1 -0
- package/v1/model/AssociateIpToPolicyResponse.js +11 -0
- package/v1/model/AssociateIpToPolicyResponse.js.map +1 -0
- package/v1/model/BatchCreateInstanceIpRuleRequest.d.ts +13 -0
- package/v1/model/BatchCreateInstanceIpRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateInstanceIpRuleRequest.js +29 -0
- package/v1/model/BatchCreateInstanceIpRuleRequest.js.map +1 -0
- package/v1/model/BatchCreateInstanceIpRuleResponse.d.ts +9 -0
- package/v1/model/BatchCreateInstanceIpRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateInstanceIpRuleResponse.js +21 -0
- package/v1/model/BatchCreateInstanceIpRuleResponse.js.map +1 -0
- package/v1/model/BatchDeleteInstanceIpRuleRequest.d.ts +13 -0
- package/v1/model/BatchDeleteInstanceIpRuleRequest.d.ts.map +1 -0
- package/v1/model/BatchDeleteInstanceIpRuleRequest.js +29 -0
- package/v1/model/BatchDeleteInstanceIpRuleRequest.js.map +1 -0
- package/v1/model/BatchDeleteInstanceIpRuleResponse.d.ts +9 -0
- package/v1/model/BatchDeleteInstanceIpRuleResponse.d.ts.map +1 -0
- package/v1/model/BatchDeleteInstanceIpRuleResponse.js +21 -0
- package/v1/model/BatchDeleteInstanceIpRuleResponse.js.map +1 -0
- package/v1/model/BatchIdBody.d.ts +6 -0
- package/v1/model/BatchIdBody.d.ts.map +1 -0
- package/v1/model/BatchIdBody.js +13 -0
- package/v1/model/BatchIdBody.js.map +1 -0
- package/v1/model/BatchTransferRuleBody.d.ts +7 -0
- package/v1/model/BatchTransferRuleBody.d.ts.map +1 -0
- package/v1/model/BatchTransferRuleBody.js +13 -0
- package/v1/model/BatchTransferRuleBody.js.map +1 -0
- package/v1/model/BlackWhiteIpRequestBody.d.ts +18 -0
- package/v1/model/BlackWhiteIpRequestBody.d.ts.map +1 -0
- package/v1/model/BlackWhiteIpRequestBody.js +34 -0
- package/v1/model/BlackWhiteIpRequestBody.js.map +1 -0
- package/v1/model/BlockListBlockingList.d.ts +25 -0
- package/v1/model/BlockListBlockingList.d.ts.map +1 -0
- package/v1/model/BlockListBlockingList.js +51 -0
- package/v1/model/BlockListBlockingList.js.map +1 -0
- package/v1/model/Bw.d.ts +12 -0
- package/v1/model/Bw.d.ts.map +1 -0
- package/v1/model/Bw.js +31 -0
- package/v1/model/Bw.js.map +1 -0
- package/v1/model/CreatePolicyRequest.d.ts +7 -0
- package/v1/model/CreatePolicyRequest.d.ts.map +1 -0
- package/v1/model/CreatePolicyRequest.js +13 -0
- package/v1/model/CreatePolicyRequest.js.map +1 -0
- package/v1/model/CreatePolicyRequestBody.d.ts +12 -0
- package/v1/model/CreatePolicyRequestBody.d.ts.map +1 -0
- package/v1/model/CreatePolicyRequestBody.js +29 -0
- package/v1/model/CreatePolicyRequestBody.js.map +1 -0
- package/v1/model/CreatePolicyResponse.d.ts +19 -0
- package/v1/model/CreatePolicyResponse.d.ts.map +1 -0
- package/v1/model/CreatePolicyResponse.js +43 -0
- package/v1/model/CreatePolicyResponse.js.map +1 -0
- package/v1/model/DeleteAlarmConfigRequest.d.ts +4 -0
- package/v1/model/DeleteAlarmConfigRequest.d.ts.map +1 -0
- package/v1/model/DeleteAlarmConfigRequest.js +9 -0
- package/v1/model/DeleteAlarmConfigRequest.js.map +1 -0
- package/v1/model/DeleteAlarmConfigResponse.d.ts +9 -0
- package/v1/model/DeleteAlarmConfigResponse.d.ts.map +1 -0
- package/v1/model/DeleteAlarmConfigResponse.js +21 -0
- package/v1/model/DeleteAlarmConfigResponse.js.map +1 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListRequest.d.ts +11 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListRequest.d.ts.map +1 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListRequest.js +24 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListRequest.js.map +1 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListResponse.d.ts +5 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListResponse.d.ts.map +1 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListResponse.js +11 -0
- package/v1/model/DeletePolicyBlackAndWhiteIpListResponse.js.map +1 -0
- package/v1/model/DeletePolicyRequest.d.ts +8 -0
- package/v1/model/DeletePolicyRequest.d.ts.map +1 -0
- package/v1/model/DeletePolicyRequest.js +20 -0
- package/v1/model/DeletePolicyRequest.js.map +1 -0
- package/v1/model/DeletePolicyResponse.d.ts +5 -0
- package/v1/model/DeletePolicyResponse.d.ts.map +1 -0
- package/v1/model/DeletePolicyResponse.js +11 -0
- package/v1/model/DeletePolicyResponse.js.map +1 -0
- package/v1/model/DisassociateIpFromPolicyRequest.d.ts +11 -0
- package/v1/model/DisassociateIpFromPolicyRequest.d.ts.map +1 -0
- package/v1/model/DisassociateIpFromPolicyRequest.js +24 -0
- package/v1/model/DisassociateIpFromPolicyRequest.js.map +1 -0
- package/v1/model/DisassociateIpFromPolicyResponse.d.ts +5 -0
- package/v1/model/DisassociateIpFromPolicyResponse.d.ts.map +1 -0
- package/v1/model/DisassociateIpFromPolicyResponse.js +11 -0
- package/v1/model/DisassociateIpFromPolicyResponse.js.map +1 -0
- package/v1/model/DomainInfo.d.ts +32 -0
- package/v1/model/DomainInfo.d.ts.map +1 -0
- package/v1/model/DomainInfo.js +77 -0
- package/v1/model/DomainInfo.js.map +1 -0
- package/v1/model/DomainRealServerInfo.d.ts +12 -0
- package/v1/model/DomainRealServerInfo.d.ts.map +1 -0
- package/v1/model/DomainRealServerInfo.js +29 -0
- package/v1/model/DomainRealServerInfo.js.map +1 -0
- package/v1/model/ExecuteUnblockIpRequest.d.ts +11 -0
- package/v1/model/ExecuteUnblockIpRequest.d.ts.map +1 -0
- package/v1/model/ExecuteUnblockIpRequest.js +24 -0
- package/v1/model/ExecuteUnblockIpRequest.js.map +1 -0
- package/v1/model/ExecuteUnblockIpRequestBody.d.ts +10 -0
- package/v1/model/ExecuteUnblockIpRequestBody.d.ts.map +1 -0
- package/v1/model/ExecuteUnblockIpRequestBody.js +24 -0
- package/v1/model/ExecuteUnblockIpRequestBody.js.map +1 -0
- package/v1/model/ExecuteUnblockIpResponse.d.ts +11 -0
- package/v1/model/ExecuteUnblockIpResponse.d.ts.map +1 -0
- package/v1/model/ExecuteUnblockIpResponse.js +25 -0
- package/v1/model/ExecuteUnblockIpResponse.js.map +1 -0
- package/v1/model/InstanceInfo.d.ts +31 -0
- package/v1/model/InstanceInfo.d.ts.map +1 -0
- package/v1/model/InstanceInfo.js +73 -0
- package/v1/model/InstanceInfo.js.map +1 -0
- package/v1/model/InstanceIpInfo.d.ts +22 -0
- package/v1/model/InstanceIpInfo.d.ts.map +1 -0
- package/v1/model/InstanceIpInfo.js +53 -0
- package/v1/model/InstanceIpInfo.js.map +1 -0
- package/v1/model/IpBindingBody.d.ts +12 -0
- package/v1/model/IpBindingBody.d.ts.map +1 -0
- package/v1/model/IpBindingBody.js +31 -0
- package/v1/model/IpBindingBody.js.map +1 -0
- package/v1/model/IpStatusDetail.d.ts +12 -0
- package/v1/model/IpStatusDetail.d.ts.map +1 -0
- package/v1/model/IpStatusDetail.js +31 -0
- package/v1/model/IpStatusDetail.js.map +1 -0
- package/v1/model/ListBlockIpsRequest.d.ts +8 -0
- package/v1/model/ListBlockIpsRequest.d.ts.map +1 -0
- package/v1/model/ListBlockIpsRequest.js +20 -0
- package/v1/model/ListBlockIpsRequest.js.map +1 -0
- package/v1/model/ListBlockIpsResponse.d.ts +12 -0
- package/v1/model/ListBlockIpsResponse.d.ts.map +1 -0
- package/v1/model/ListBlockIpsResponse.js +25 -0
- package/v1/model/ListBlockIpsResponse.js.map +1 -0
- package/v1/model/ListDomainRequest.d.ts +4 -0
- package/v1/model/ListDomainRequest.d.ts.map +1 -0
- package/v1/model/ListDomainRequest.js +9 -0
- package/v1/model/ListDomainRequest.js.map +1 -0
- package/v1/model/ListDomainResponse.d.ts +10 -0
- package/v1/model/ListDomainResponse.d.ts.map +1 -0
- package/v1/model/ListDomainResponse.js +19 -0
- package/v1/model/ListDomainResponse.js.map +1 -0
- package/v1/model/ListInstanceIdRequest.d.ts +8 -0
- package/v1/model/ListInstanceIdRequest.d.ts.map +1 -0
- package/v1/model/ListInstanceIdRequest.js +20 -0
- package/v1/model/ListInstanceIdRequest.js.map +1 -0
- package/v1/model/ListInstanceIdResponse.d.ts +9 -0
- package/v1/model/ListInstanceIdResponse.d.ts.map +1 -0
- package/v1/model/ListInstanceIdResponse.js +21 -0
- package/v1/model/ListInstanceIdResponse.js.map +1 -0
- package/v1/model/ListInstanceIpRuleRequest.d.ts +10 -0
- package/v1/model/ListInstanceIpRuleRequest.d.ts.map +1 -0
- package/v1/model/ListInstanceIpRuleRequest.js +25 -0
- package/v1/model/ListInstanceIpRuleRequest.js.map +1 -0
- package/v1/model/ListInstanceIpRuleResponse.d.ts +10 -0
- package/v1/model/ListInstanceIpRuleResponse.d.ts.map +1 -0
- package/v1/model/ListInstanceIpRuleResponse.js +19 -0
- package/v1/model/ListInstanceIpRuleResponse.js.map +1 -0
- package/v1/model/ListInstanceRequest.d.ts +4 -0
- package/v1/model/ListInstanceRequest.d.ts.map +1 -0
- package/v1/model/ListInstanceRequest.js +9 -0
- package/v1/model/ListInstanceRequest.js.map +1 -0
- package/v1/model/ListInstanceResponse.d.ts +10 -0
- package/v1/model/ListInstanceResponse.d.ts.map +1 -0
- package/v1/model/ListInstanceResponse.js +19 -0
- package/v1/model/ListInstanceResponse.js.map +1 -0
- package/v1/model/ListPackageRequest.d.ts +4 -0
- package/v1/model/ListPackageRequest.d.ts.map +1 -0
- package/v1/model/ListPackageRequest.js +9 -0
- package/v1/model/ListPackageRequest.js.map +1 -0
- package/v1/model/ListPackageResponse.d.ts +10 -0
- package/v1/model/ListPackageResponse.d.ts.map +1 -0
- package/v1/model/ListPackageResponse.js +19 -0
- package/v1/model/ListPackageResponse.js.map +1 -0
- package/v1/model/ListPeakRequest.d.ts +18 -0
- package/v1/model/ListPeakRequest.d.ts.map +1 -0
- package/v1/model/ListPeakRequest.js +47 -0
- package/v1/model/ListPeakRequest.js.map +1 -0
- package/v1/model/ListPeakResponse.d.ts +21 -0
- package/v1/model/ListPeakResponse.d.ts.map +1 -0
- package/v1/model/ListPeakResponse.js +49 -0
- package/v1/model/ListPeakResponse.js.map +1 -0
- package/v1/model/ListPolicyRequest.d.ts +12 -0
- package/v1/model/ListPolicyRequest.d.ts.map +1 -0
- package/v1/model/ListPolicyRequest.js +27 -0
- package/v1/model/ListPolicyRequest.js.map +1 -0
- package/v1/model/ListPolicyResponse.d.ts +10 -0
- package/v1/model/ListPolicyResponse.d.ts.map +1 -0
- package/v1/model/ListPolicyResponse.js +19 -0
- package/v1/model/ListPolicyResponse.js.map +1 -0
- package/v1/model/ListProtectedIpRequest.d.ts +20 -0
- package/v1/model/ListProtectedIpRequest.d.ts.map +1 -0
- package/v1/model/ListProtectedIpRequest.js +45 -0
- package/v1/model/ListProtectedIpRequest.js.map +1 -0
- package/v1/model/ListProtectedIpResponse.d.ts +10 -0
- package/v1/model/ListProtectedIpResponse.d.ts.map +1 -0
- package/v1/model/ListProtectedIpResponse.js +19 -0
- package/v1/model/ListProtectedIpResponse.js.map +1 -0
- package/v1/model/ListUnblockQuotaStatisticsRequest.d.ts +8 -0
- package/v1/model/ListUnblockQuotaStatisticsRequest.d.ts.map +1 -0
- package/v1/model/ListUnblockQuotaStatisticsRequest.js +20 -0
- package/v1/model/ListUnblockQuotaStatisticsRequest.js.map +1 -0
- package/v1/model/ListUnblockQuotaStatisticsResponse.d.ts +31 -0
- package/v1/model/ListUnblockQuotaStatisticsResponse.d.ts.map +1 -0
- package/v1/model/ListUnblockQuotaStatisticsResponse.js +64 -0
- package/v1/model/ListUnblockQuotaStatisticsResponse.js.map +1 -0
- package/v1/model/ListUnboundProtectedIpRequest.d.ts +12 -0
- package/v1/model/ListUnboundProtectedIpRequest.d.ts.map +1 -0
- package/v1/model/ListUnboundProtectedIpRequest.js +28 -0
- package/v1/model/ListUnboundProtectedIpRequest.js.map +1 -0
- package/v1/model/ListUnboundProtectedIpResponse.d.ts +10 -0
- package/v1/model/ListUnboundProtectedIpResponse.d.ts.map +1 -0
- package/v1/model/ListUnboundProtectedIpResponse.js +19 -0
- package/v1/model/ListUnboundProtectedIpResponse.js.map +1 -0
- package/v1/model/PackageResponse.d.ts +108 -0
- package/v1/model/PackageResponse.d.ts.map +1 -0
- package/v1/model/PackageResponse.js +260 -0
- package/v1/model/PackageResponse.js.map +1 -0
- package/v1/model/PolicyResponse.d.ts +28 -0
- package/v1/model/PolicyResponse.d.ts.map +1 -0
- package/v1/model/PolicyResponse.js +73 -0
- package/v1/model/PolicyResponse.js.map +1 -0
- package/v1/model/PopPolicy.d.ts +50 -0
- package/v1/model/PopPolicy.d.ts.map +1 -0
- package/v1/model/PopPolicy.js +121 -0
- package/v1/model/PopPolicy.js.map +1 -0
- package/v1/model/ProtectedIpResponse.d.ts +72 -0
- package/v1/model/ProtectedIpResponse.d.ts.map +1 -0
- package/v1/model/ProtectedIpResponse.js +140 -0
- package/v1/model/ProtectedIpResponse.js.map +1 -0
- package/v1/model/ShowAlarmConfigRequest.d.ts +4 -0
- package/v1/model/ShowAlarmConfigRequest.d.ts.map +1 -0
- package/v1/model/ShowAlarmConfigRequest.js +9 -0
- package/v1/model/ShowAlarmConfigRequest.js.map +1 -0
- package/v1/model/ShowAlarmConfigResponse.d.ts +9 -0
- package/v1/model/ShowAlarmConfigResponse.d.ts.map +1 -0
- package/v1/model/ShowAlarmConfigResponse.js +21 -0
- package/v1/model/ShowAlarmConfigResponse.js.map +1 -0
- package/v1/model/ShowBlockStatisticsRequest.d.ts +8 -0
- package/v1/model/ShowBlockStatisticsRequest.d.ts.map +1 -0
- package/v1/model/ShowBlockStatisticsRequest.js +20 -0
- package/v1/model/ShowBlockStatisticsRequest.js.map +1 -0
- package/v1/model/ShowBlockStatisticsResponse.d.ts +21 -0
- package/v1/model/ShowBlockStatisticsResponse.d.ts.map +1 -0
- package/v1/model/ShowBlockStatisticsResponse.js +51 -0
- package/v1/model/ShowBlockStatisticsResponse.js.map +1 -0
- package/v1/model/ShowPolicyRequest.d.ts +8 -0
- package/v1/model/ShowPolicyRequest.d.ts.map +1 -0
- package/v1/model/ShowPolicyRequest.js +20 -0
- package/v1/model/ShowPolicyRequest.js.map +1 -0
- package/v1/model/ShowPolicyResponse.d.ts +22 -0
- package/v1/model/ShowPolicyResponse.d.ts.map +1 -0
- package/v1/model/ShowPolicyResponse.js +49 -0
- package/v1/model/ShowPolicyResponse.js.map +1 -0
- package/v1/model/ShowUnblockRecordRequest.d.ts +16 -0
- package/v1/model/ShowUnblockRecordRequest.d.ts.map +1 -0
- package/v1/model/ShowUnblockRecordRequest.js +42 -0
- package/v1/model/ShowUnblockRecordRequest.js.map +1 -0
- package/v1/model/ShowUnblockRecordResponse.d.ts +16 -0
- package/v1/model/ShowUnblockRecordResponse.d.ts.map +1 -0
- package/v1/model/ShowUnblockRecordResponse.js +35 -0
- package/v1/model/ShowUnblockRecordResponse.js.map +1 -0
- package/v1/model/TransferRuleBody.d.ts +20 -0
- package/v1/model/TransferRuleBody.d.ts.map +1 -0
- package/v1/model/TransferRuleBody.js +49 -0
- package/v1/model/TransferRuleBody.js.map +1 -0
- package/v1/model/TransferRuleInfo.d.ts +30 -0
- package/v1/model/TransferRuleInfo.d.ts.map +1 -0
- package/v1/model/TransferRuleInfo.js +73 -0
- package/v1/model/TransferRuleInfo.js.map +1 -0
- package/v1/model/UnblockRecordResponseUnblockRecord.d.ts +47 -0
- package/v1/model/UnblockRecordResponseUnblockRecord.d.ts.map +1 -0
- package/v1/model/UnblockRecordResponseUnblockRecord.js +90 -0
- package/v1/model/UnblockRecordResponseUnblockRecord.js.map +1 -0
- package/v1/model/UpdateAlarmConfigRequest.d.ts +7 -0
- package/v1/model/UpdateAlarmConfigRequest.d.ts.map +1 -0
- package/v1/model/UpdateAlarmConfigRequest.js +13 -0
- package/v1/model/UpdateAlarmConfigRequest.js.map +1 -0
- package/v1/model/UpdateAlarmConfigResponse.d.ts +9 -0
- package/v1/model/UpdateAlarmConfigResponse.d.ts.map +1 -0
- package/v1/model/UpdateAlarmConfigResponse.js +21 -0
- package/v1/model/UpdateAlarmConfigResponse.js.map +1 -0
- package/v1/model/UpdateDomainRequest.d.ts +11 -0
- package/v1/model/UpdateDomainRequest.d.ts.map +1 -0
- package/v1/model/UpdateDomainRequest.js +24 -0
- package/v1/model/UpdateDomainRequest.js.map +1 -0
- package/v1/model/UpdateDomainResponse.d.ts +5 -0
- package/v1/model/UpdateDomainResponse.d.ts.map +1 -0
- package/v1/model/UpdateDomainResponse.js +11 -0
- package/v1/model/UpdateDomainResponse.js.map +1 -0
- package/v1/model/UpdateInstanceIpRuleRequest.d.ts +17 -0
- package/v1/model/UpdateInstanceIpRuleRequest.d.ts.map +1 -0
- package/v1/model/UpdateInstanceIpRuleRequest.js +40 -0
- package/v1/model/UpdateInstanceIpRuleRequest.js.map +1 -0
- package/v1/model/UpdateInstanceIpRuleResponse.d.ts +5 -0
- package/v1/model/UpdateInstanceIpRuleResponse.d.ts.map +1 -0
- package/v1/model/UpdateInstanceIpRuleResponse.js +11 -0
- package/v1/model/UpdateInstanceIpRuleResponse.js.map +1 -0
- package/v1/model/UpdatePackageIpRequest.d.ts +11 -0
- package/v1/model/UpdatePackageIpRequest.d.ts.map +1 -0
- package/v1/model/UpdatePackageIpRequest.js +24 -0
- package/v1/model/UpdatePackageIpRequest.js.map +1 -0
- package/v1/model/UpdatePackageIpRequestBody.d.ts +9 -0
- package/v1/model/UpdatePackageIpRequestBody.d.ts.map +1 -0
- package/v1/model/UpdatePackageIpRequestBody.js +20 -0
- package/v1/model/UpdatePackageIpRequestBody.js.map +1 -0
- package/v1/model/UpdatePackageIpResponse.d.ts +5 -0
- package/v1/model/UpdatePackageIpResponse.d.ts.map +1 -0
- package/v1/model/UpdatePackageIpResponse.js +11 -0
- package/v1/model/UpdatePackageIpResponse.js.map +1 -0
- package/v1/model/UpdatePackageNameRequest.d.ts +11 -0
- package/v1/model/UpdatePackageNameRequest.d.ts.map +1 -0
- package/v1/model/UpdatePackageNameRequest.js +24 -0
- package/v1/model/UpdatePackageNameRequest.js.map +1 -0
- package/v1/model/UpdatePackageNameRequestBody.d.ts +6 -0
- package/v1/model/UpdatePackageNameRequestBody.d.ts.map +1 -0
- package/v1/model/UpdatePackageNameRequestBody.js +14 -0
- package/v1/model/UpdatePackageNameRequestBody.js.map +1 -0
- package/v1/model/UpdatePackageNameResponse.d.ts +5 -0
- package/v1/model/UpdatePackageNameResponse.d.ts.map +1 -0
- package/v1/model/UpdatePackageNameResponse.js +11 -0
- package/v1/model/UpdatePackageNameResponse.js.map +1 -0
- package/v1/model/UpdatePolicyRequest.d.ts +11 -0
- package/v1/model/UpdatePolicyRequest.d.ts.map +1 -0
- package/v1/model/UpdatePolicyRequest.js +24 -0
- package/v1/model/UpdatePolicyRequest.js.map +1 -0
- package/v1/model/UpdatePolicyRequestBody.d.ts +20 -0
- package/v1/model/UpdatePolicyRequestBody.d.ts.map +1 -0
- package/v1/model/UpdatePolicyRequestBody.js +34 -0
- package/v1/model/UpdatePolicyRequestBody.js.map +1 -0
- package/v1/model/UpdatePolicyResponse.d.ts +5 -0
- package/v1/model/UpdatePolicyResponse.d.ts.map +1 -0
- package/v1/model/UpdatePolicyResponse.js +11 -0
- package/v1/model/UpdatePolicyResponse.js.map +1 -0
- package/v1/model/UpdateProtectedIpBody.d.ts +8 -0
- package/v1/model/UpdateProtectedIpBody.d.ts.map +1 -0
- package/v1/model/UpdateProtectedIpBody.js +19 -0
- package/v1/model/UpdateProtectedIpBody.js.map +1 -0
- package/v1/model/UpdateProtectedIpInPolicyBody.d.ts +27 -0
- package/v1/model/UpdateProtectedIpInPolicyBody.d.ts.map +1 -0
- package/v1/model/UpdateProtectedIpInPolicyBody.js +44 -0
- package/v1/model/UpdateProtectedIpInPolicyBody.js.map +1 -0
- package/v1/model/UpdateTagForProtectedIpRequest.d.ts +7 -0
- package/v1/model/UpdateTagForProtectedIpRequest.d.ts.map +1 -0
- package/v1/model/UpdateTagForProtectedIpRequest.js +13 -0
- package/v1/model/UpdateTagForProtectedIpRequest.js.map +1 -0
- package/v1/model/UpdateTagForProtectedIpResponse.d.ts +5 -0
- package/v1/model/UpdateTagForProtectedIpResponse.d.ts.map +1 -0
- package/v1/model/UpdateTagForProtectedIpResponse.js +11 -0
- package/v1/model/UpdateTagForProtectedIpResponse.js.map +1 -0
- package/v1/public-api.d.ts +94 -0
- package/v1/public-api.d.ts.map +1 -0
- package/v1/public-api.js +110 -0
- package/v1/public-api.js.map +1 -0
package/v1/AadClient.js
ADDED
@@ -0,0 +1,1779 @@
|
|
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 AddPolicyBlackAndWhiteIpListRequest_1 = require("./model/AddPolicyBlackAndWhiteIpListRequest");
|
6
|
+
const AssociateIpToPolicyRequest_1 = require("./model/AssociateIpToPolicyRequest");
|
7
|
+
const BatchCreateInstanceIpRuleRequest_1 = require("./model/BatchCreateInstanceIpRuleRequest");
|
8
|
+
const BatchDeleteInstanceIpRuleRequest_1 = require("./model/BatchDeleteInstanceIpRuleRequest");
|
9
|
+
const CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
|
10
|
+
const DeletePolicyBlackAndWhiteIpListRequest_1 = require("./model/DeletePolicyBlackAndWhiteIpListRequest");
|
11
|
+
const DeletePolicyRequest_1 = require("./model/DeletePolicyRequest");
|
12
|
+
const DisassociateIpFromPolicyRequest_1 = require("./model/DisassociateIpFromPolicyRequest");
|
13
|
+
const ExecuteUnblockIpRequest_1 = require("./model/ExecuteUnblockIpRequest");
|
14
|
+
const ListBlockIpsRequest_1 = require("./model/ListBlockIpsRequest");
|
15
|
+
const ListInstanceIdRequest_1 = require("./model/ListInstanceIdRequest");
|
16
|
+
const ListInstanceIpRuleRequest_1 = require("./model/ListInstanceIpRuleRequest");
|
17
|
+
const ListPeakRequest_1 = require("./model/ListPeakRequest");
|
18
|
+
const ListPolicyRequest_1 = require("./model/ListPolicyRequest");
|
19
|
+
const ListProtectedIpRequest_1 = require("./model/ListProtectedIpRequest");
|
20
|
+
const ListUnblockQuotaStatisticsRequest_1 = require("./model/ListUnblockQuotaStatisticsRequest");
|
21
|
+
const ListUnboundProtectedIpRequest_1 = require("./model/ListUnboundProtectedIpRequest");
|
22
|
+
const ShowBlockStatisticsRequest_1 = require("./model/ShowBlockStatisticsRequest");
|
23
|
+
const ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
|
24
|
+
const ShowUnblockRecordRequest_1 = require("./model/ShowUnblockRecordRequest");
|
25
|
+
const UpdateAlarmConfigRequest_1 = require("./model/UpdateAlarmConfigRequest");
|
26
|
+
const UpdateDomainRequest_1 = require("./model/UpdateDomainRequest");
|
27
|
+
const UpdateInstanceIpRuleRequest_1 = require("./model/UpdateInstanceIpRuleRequest");
|
28
|
+
const UpdatePackageIpRequest_1 = require("./model/UpdatePackageIpRequest");
|
29
|
+
const UpdatePackageNameRequest_1 = require("./model/UpdatePackageNameRequest");
|
30
|
+
const UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
|
31
|
+
const UpdateTagForProtectedIpRequest_1 = require("./model/UpdateTagForProtectedIpRequest");
|
32
|
+
class AadClient {
|
33
|
+
static newBuilder() {
|
34
|
+
return new ClientBuilder_1.ClientBuilder(newClient, 'GlobalCredentials');
|
35
|
+
}
|
36
|
+
constructor(client) {
|
37
|
+
this.hcClient = client;
|
38
|
+
}
|
39
|
+
getPath() {
|
40
|
+
return __dirname;
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* 解封IP
|
44
|
+
*
|
45
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
46
|
+
*
|
47
|
+
* @summary 解封IP
|
48
|
+
* @param {string} domainId 租户id
|
49
|
+
* @param {ExecuteUnblockIpRequestBody} executeUnblockIpRequestBody ip地址
|
50
|
+
* @param {*} [options] Override http request option.
|
51
|
+
* @throws {RequiredError}
|
52
|
+
*/
|
53
|
+
executeUnblockIp(executeUnblockIpRequest) {
|
54
|
+
const options = (0, exports.ParamCreater)().executeUnblockIp(executeUnblockIpRequest);
|
55
|
+
// @ts-ignore
|
56
|
+
options['responseHeaders'] = [''];
|
57
|
+
return this.hcClient.sendRequest(options);
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* 查询租户封堵列表
|
61
|
+
*
|
62
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
63
|
+
*
|
64
|
+
* @summary 查询租户封堵列表
|
65
|
+
* @param {string} domainId 租户id
|
66
|
+
* @param {*} [options] Override http request option.
|
67
|
+
* @throws {RequiredError}
|
68
|
+
*/
|
69
|
+
listBlockIps(listBlockIpsRequest) {
|
70
|
+
const options = (0, exports.ParamCreater)().listBlockIps(listBlockIpsRequest);
|
71
|
+
// @ts-ignore
|
72
|
+
options['responseHeaders'] = [''];
|
73
|
+
return this.hcClient.sendRequest(options);
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* 查询解封配额
|
77
|
+
*
|
78
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
79
|
+
*
|
80
|
+
* @summary 查询解封配额
|
81
|
+
* @param {string} domainId 租户id
|
82
|
+
* @param {*} [options] Override http request option.
|
83
|
+
* @throws {RequiredError}
|
84
|
+
*/
|
85
|
+
listUnblockQuotaStatistics(listUnblockQuotaStatisticsRequest) {
|
86
|
+
const options = (0, exports.ParamCreater)().listUnblockQuotaStatistics(listUnblockQuotaStatisticsRequest);
|
87
|
+
// @ts-ignore
|
88
|
+
options['responseHeaders'] = [''];
|
89
|
+
return this.hcClient.sendRequest(options);
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* 查询封堵统计数据
|
93
|
+
*
|
94
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
95
|
+
*
|
96
|
+
* @summary 查询封堵统计数据
|
97
|
+
* @param {string} domainId 租户id
|
98
|
+
* @param {*} [options] Override http request option.
|
99
|
+
* @throws {RequiredError}
|
100
|
+
*/
|
101
|
+
showBlockStatistics(showBlockStatisticsRequest) {
|
102
|
+
const options = (0, exports.ParamCreater)().showBlockStatistics(showBlockStatisticsRequest);
|
103
|
+
// @ts-ignore
|
104
|
+
options['responseHeaders'] = [''];
|
105
|
+
return this.hcClient.sendRequest(options);
|
106
|
+
}
|
107
|
+
/**
|
108
|
+
* 查询租户解封记录
|
109
|
+
*
|
110
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
111
|
+
*
|
112
|
+
* @summary 查询租户解封记录
|
113
|
+
* @param {string} domainId 租户id
|
114
|
+
* @param {number} startTime 开始时间
|
115
|
+
* @param {number} endTime 结束时间
|
116
|
+
* @param {*} [options] Override http request option.
|
117
|
+
* @throws {RequiredError}
|
118
|
+
*/
|
119
|
+
showUnblockRecord(showUnblockRecordRequest) {
|
120
|
+
const options = (0, exports.ParamCreater)().showUnblockRecord(showUnblockRecordRequest);
|
121
|
+
// @ts-ignore
|
122
|
+
options['responseHeaders'] = [''];
|
123
|
+
return this.hcClient.sendRequest(options);
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* 策略添加黑白名单
|
127
|
+
*
|
128
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
129
|
+
*
|
130
|
+
* @summary 策略添加黑白名单
|
131
|
+
* @param {string} policyId 策略id
|
132
|
+
* @param {BlackWhiteIpRequestBody} addPolicyBlackAndWhiteIpListRequestBody 添加黑白名单的请求体
|
133
|
+
* @param {*} [options] Override http request option.
|
134
|
+
* @throws {RequiredError}
|
135
|
+
*/
|
136
|
+
addPolicyBlackAndWhiteIpList(addPolicyBlackAndWhiteIpListRequest) {
|
137
|
+
const options = (0, exports.ParamCreater)().addPolicyBlackAndWhiteIpList(addPolicyBlackAndWhiteIpListRequest);
|
138
|
+
// @ts-ignore
|
139
|
+
options['responseHeaders'] = [''];
|
140
|
+
return this.hcClient.sendRequest(options);
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* 策略绑定防护对象
|
144
|
+
*
|
145
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
146
|
+
*
|
147
|
+
* @summary 策略绑定防护对象
|
148
|
+
* @param {string} policyId 策略id
|
149
|
+
* @param {IpBindingBody} associateIpToPolicyRequestBody 策略绑定ip的请求体
|
150
|
+
* @param {*} [options] Override http request option.
|
151
|
+
* @throws {RequiredError}
|
152
|
+
*/
|
153
|
+
associateIpToPolicy(associateIpToPolicyRequest) {
|
154
|
+
const options = (0, exports.ParamCreater)().associateIpToPolicy(associateIpToPolicyRequest);
|
155
|
+
// @ts-ignore
|
156
|
+
options['responseHeaders'] = [''];
|
157
|
+
return this.hcClient.sendRequest(options);
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* 批量创建高防实例IP的转发规则
|
161
|
+
*
|
162
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
163
|
+
*
|
164
|
+
* @summary 批量创建高防实例IP的转发规则
|
165
|
+
* @param {string} instanceId 实例Id
|
166
|
+
* @param {string} ip 单个 IP
|
167
|
+
* @param {BatchTransferRuleBody} batchCreateInstanceIpRuleRequestBody 批量创建的转发规则信息
|
168
|
+
* @param {*} [options] Override http request option.
|
169
|
+
* @throws {RequiredError}
|
170
|
+
*/
|
171
|
+
batchCreateInstanceIpRule(batchCreateInstanceIpRuleRequest) {
|
172
|
+
const options = (0, exports.ParamCreater)().batchCreateInstanceIpRule(batchCreateInstanceIpRuleRequest);
|
173
|
+
// @ts-ignore
|
174
|
+
options['responseHeaders'] = [''];
|
175
|
+
return this.hcClient.sendRequest(options);
|
176
|
+
}
|
177
|
+
/**
|
178
|
+
* 批量删除高防实例IP的转发规则
|
179
|
+
*
|
180
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
181
|
+
*
|
182
|
+
* @summary 批量删除高防实例IP的转发规则
|
183
|
+
* @param {string} instanceId 实例Id
|
184
|
+
* @param {string} ip 单个 IP
|
185
|
+
* @param {BatchIdBody} batchDeleteInstanceIpRuleRequestBody 批量删除的转发规则信息
|
186
|
+
* @param {*} [options] Override http request option.
|
187
|
+
* @throws {RequiredError}
|
188
|
+
*/
|
189
|
+
batchDeleteInstanceIpRule(batchDeleteInstanceIpRuleRequest) {
|
190
|
+
const options = (0, exports.ParamCreater)().batchDeleteInstanceIpRule(batchDeleteInstanceIpRuleRequest);
|
191
|
+
// @ts-ignore
|
192
|
+
options['responseHeaders'] = [''];
|
193
|
+
return this.hcClient.sendRequest(options);
|
194
|
+
}
|
195
|
+
/**
|
196
|
+
* 创建策略
|
197
|
+
*
|
198
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
199
|
+
*
|
200
|
+
* @summary 创建策略
|
201
|
+
* @param {CreatePolicyRequestBody} createPolicyRequestBody 创建策略请求体
|
202
|
+
* @param {*} [options] Override http request option.
|
203
|
+
* @throws {RequiredError}
|
204
|
+
*/
|
205
|
+
createPolicy(createPolicyRequest) {
|
206
|
+
const options = (0, exports.ParamCreater)().createPolicy(createPolicyRequest);
|
207
|
+
// @ts-ignore
|
208
|
+
options['responseHeaders'] = [''];
|
209
|
+
return this.hcClient.sendRequest(options);
|
210
|
+
}
|
211
|
+
/**
|
212
|
+
* 删除告警配置
|
213
|
+
*
|
214
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
215
|
+
*
|
216
|
+
* @summary 删除告警配置
|
217
|
+
* @param {*} [options] Override http request option.
|
218
|
+
* @throws {RequiredError}
|
219
|
+
*/
|
220
|
+
deleteAlarmConfig(deleteAlarmConfigRequest) {
|
221
|
+
const options = (0, exports.ParamCreater)().deleteAlarmConfig();
|
222
|
+
// @ts-ignore
|
223
|
+
options['responseHeaders'] = [''];
|
224
|
+
return this.hcClient.sendRequest(options);
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* 删除策略
|
228
|
+
*
|
229
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
230
|
+
*
|
231
|
+
* @summary 删除策略
|
232
|
+
* @param {string} policyId 策略id
|
233
|
+
* @param {*} [options] Override http request option.
|
234
|
+
* @throws {RequiredError}
|
235
|
+
*/
|
236
|
+
deletePolicy(deletePolicyRequest) {
|
237
|
+
const options = (0, exports.ParamCreater)().deletePolicy(deletePolicyRequest);
|
238
|
+
// @ts-ignore
|
239
|
+
options['responseHeaders'] = [''];
|
240
|
+
return this.hcClient.sendRequest(options);
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* 策略删除黑白名单
|
244
|
+
*
|
245
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
246
|
+
*
|
247
|
+
* @summary 策略删除黑白名单
|
248
|
+
* @param {string} policyId 策略id
|
249
|
+
* @param {BlackWhiteIpRequestBody} deletePolicyBlackAndWhiteIpListRequestBody 删除黑白名单的请求体
|
250
|
+
* @param {*} [options] Override http request option.
|
251
|
+
* @throws {RequiredError}
|
252
|
+
*/
|
253
|
+
deletePolicyBlackAndWhiteIpList(deletePolicyBlackAndWhiteIpListRequest) {
|
254
|
+
const options = (0, exports.ParamCreater)().deletePolicyBlackAndWhiteIpList(deletePolicyBlackAndWhiteIpListRequest);
|
255
|
+
// @ts-ignore
|
256
|
+
options['responseHeaders'] = [''];
|
257
|
+
return this.hcClient.sendRequest(options);
|
258
|
+
}
|
259
|
+
/**
|
260
|
+
* 策略解绑防护对象
|
261
|
+
*
|
262
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
263
|
+
*
|
264
|
+
* @summary 策略解绑防护对象
|
265
|
+
* @param {string} policyId 策略id
|
266
|
+
* @param {IpBindingBody} disassociateIpFromPolicyRequestBody 策略解绑ip的请求体
|
267
|
+
* @param {*} [options] Override http request option.
|
268
|
+
* @throws {RequiredError}
|
269
|
+
*/
|
270
|
+
disassociateIpFromPolicy(disassociateIpFromPolicyRequest) {
|
271
|
+
const options = (0, exports.ParamCreater)().disassociateIpFromPolicy(disassociateIpFromPolicyRequest);
|
272
|
+
// @ts-ignore
|
273
|
+
options['responseHeaders'] = [''];
|
274
|
+
return this.hcClient.sendRequest(options);
|
275
|
+
}
|
276
|
+
/**
|
277
|
+
* 查询域名列表
|
278
|
+
*
|
279
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
280
|
+
*
|
281
|
+
* @summary 查询域名列表
|
282
|
+
* @param {*} [options] Override http request option.
|
283
|
+
* @throws {RequiredError}
|
284
|
+
*/
|
285
|
+
listDomain(listDomainRequest) {
|
286
|
+
const options = (0, exports.ParamCreater)().listDomain();
|
287
|
+
// @ts-ignore
|
288
|
+
options['responseHeaders'] = [''];
|
289
|
+
return this.hcClient.sendRequest(options);
|
290
|
+
}
|
291
|
+
/**
|
292
|
+
* 查询高防实例列表
|
293
|
+
*
|
294
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
295
|
+
*
|
296
|
+
* @summary 查询高防实例列表
|
297
|
+
* @param {*} [options] Override http request option.
|
298
|
+
* @throws {RequiredError}
|
299
|
+
*/
|
300
|
+
listInstance(listInstanceRequest) {
|
301
|
+
const options = (0, exports.ParamCreater)().listInstance();
|
302
|
+
// @ts-ignore
|
303
|
+
options['responseHeaders'] = [''];
|
304
|
+
return this.hcClient.sendRequest(options);
|
305
|
+
}
|
306
|
+
/**
|
307
|
+
* 查询域名关联的实例ID
|
308
|
+
*
|
309
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
310
|
+
*
|
311
|
+
* @summary 查询域名关联的实例ID
|
312
|
+
* @param {string} domainId 域名ID
|
313
|
+
* @param {*} [options] Override http request option.
|
314
|
+
* @throws {RequiredError}
|
315
|
+
*/
|
316
|
+
listInstanceId(listInstanceIdRequest) {
|
317
|
+
const options = (0, exports.ParamCreater)().listInstanceId(listInstanceIdRequest);
|
318
|
+
// @ts-ignore
|
319
|
+
options['responseHeaders'] = [''];
|
320
|
+
return this.hcClient.sendRequest(options);
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* 查询高防实例IP的转发规则列表
|
324
|
+
*
|
325
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
326
|
+
*
|
327
|
+
* @summary 查询高防实例IP的转发规则列表
|
328
|
+
* @param {string} instanceId 实例Id
|
329
|
+
* @param {string} ip 单个 IP
|
330
|
+
* @param {*} [options] Override http request option.
|
331
|
+
* @throws {RequiredError}
|
332
|
+
*/
|
333
|
+
listInstanceIpRule(listInstanceIpRuleRequest) {
|
334
|
+
const options = (0, exports.ParamCreater)().listInstanceIpRule(listInstanceIpRuleRequest);
|
335
|
+
// @ts-ignore
|
336
|
+
options['responseHeaders'] = [''];
|
337
|
+
return this.hcClient.sendRequest(options);
|
338
|
+
}
|
339
|
+
/**
|
340
|
+
* 查询防护包列表
|
341
|
+
*
|
342
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
343
|
+
*
|
344
|
+
* @summary 查询防护包列表
|
345
|
+
* @param {*} [options] Override http request option.
|
346
|
+
* @throws {RequiredError}
|
347
|
+
*/
|
348
|
+
listPackage(listPackageRequest) {
|
349
|
+
const options = (0, exports.ParamCreater)().listPackage();
|
350
|
+
// @ts-ignore
|
351
|
+
options['responseHeaders'] = [''];
|
352
|
+
return this.hcClient.sendRequest(options);
|
353
|
+
}
|
354
|
+
/**
|
355
|
+
* 查询流量峰值、攻击计数
|
356
|
+
*
|
357
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
358
|
+
*
|
359
|
+
* @summary 查询流量峰值、攻击计数
|
360
|
+
* @param {string} instanceId 实例Id
|
361
|
+
* @param {string} ip 单个 IP
|
362
|
+
* @param {string} startTime 开始时间,毫秒时间戳
|
363
|
+
* @param {string} endTime 结束时间,毫秒时间戳
|
364
|
+
* @param {*} [options] Override http request option.
|
365
|
+
* @throws {RequiredError}
|
366
|
+
*/
|
367
|
+
listPeak(listPeakRequest) {
|
368
|
+
const options = (0, exports.ParamCreater)().listPeak(listPeakRequest);
|
369
|
+
// @ts-ignore
|
370
|
+
options['responseHeaders'] = [''];
|
371
|
+
return this.hcClient.sendRequest(options);
|
372
|
+
}
|
373
|
+
/**
|
374
|
+
* 查询策略列表
|
375
|
+
*
|
376
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
377
|
+
*
|
378
|
+
* @summary 查询策略列表
|
379
|
+
* @param {number} [offset] 开始查询的偏移量,默认值:0
|
380
|
+
* @param {number} [limit] 每页显示的条目数量,默认值:2000
|
381
|
+
* @param {string} [policyName] 策略名
|
382
|
+
* @param {*} [options] Override http request option.
|
383
|
+
* @throws {RequiredError}
|
384
|
+
*/
|
385
|
+
listPolicy(listPolicyRequest) {
|
386
|
+
const options = (0, exports.ParamCreater)().listPolicy(listPolicyRequest);
|
387
|
+
// @ts-ignore
|
388
|
+
options['responseHeaders'] = [''];
|
389
|
+
return this.hcClient.sendRequest(options);
|
390
|
+
}
|
391
|
+
/**
|
392
|
+
* 查询防护对象列表
|
393
|
+
*
|
394
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
395
|
+
*
|
396
|
+
* @summary 查询防护对象列表
|
397
|
+
* @param {number} [offset] 开始查询的偏移量,默认值:0
|
398
|
+
* @param {number} [limit] 每页显示的条目数量,默认值:2000
|
399
|
+
* @param {string} [packageId] 防护包id
|
400
|
+
* @param {string} [policyId] 策略id
|
401
|
+
* @param {string} [ip] 防护ip
|
402
|
+
* @param {string} [tag] 本地标签
|
403
|
+
* @param {*} [options] Override http request option.
|
404
|
+
* @throws {RequiredError}
|
405
|
+
*/
|
406
|
+
listProtectedIp(listProtectedIpRequest) {
|
407
|
+
const options = (0, exports.ParamCreater)().listProtectedIp(listProtectedIpRequest);
|
408
|
+
// @ts-ignore
|
409
|
+
options['responseHeaders'] = [''];
|
410
|
+
return this.hcClient.sendRequest(options);
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* 查询可绑定的防护对象列表
|
414
|
+
*
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
416
|
+
*
|
417
|
+
* @summary 查询可绑定的防护对象列表
|
418
|
+
* @param {string} packageId 防护包id
|
419
|
+
* @param {number} [offset] 开始查询的偏移量,默认值:0
|
420
|
+
* @param {number} [limit] 每页显示的条目数量,默认值:2000
|
421
|
+
* @param {*} [options] Override http request option.
|
422
|
+
* @throws {RequiredError}
|
423
|
+
*/
|
424
|
+
listUnboundProtectedIp(listUnboundProtectedIpRequest) {
|
425
|
+
const options = (0, exports.ParamCreater)().listUnboundProtectedIp(listUnboundProtectedIpRequest);
|
426
|
+
// @ts-ignore
|
427
|
+
options['responseHeaders'] = [''];
|
428
|
+
return this.hcClient.sendRequest(options);
|
429
|
+
}
|
430
|
+
/**
|
431
|
+
* 查询告警配置
|
432
|
+
*
|
433
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
434
|
+
*
|
435
|
+
* @summary 查询告警配置
|
436
|
+
* @param {*} [options] Override http request option.
|
437
|
+
* @throws {RequiredError}
|
438
|
+
*/
|
439
|
+
showAlarmConfig(showAlarmConfigRequest) {
|
440
|
+
const options = (0, exports.ParamCreater)().showAlarmConfig();
|
441
|
+
// @ts-ignore
|
442
|
+
options['responseHeaders'] = [''];
|
443
|
+
return this.hcClient.sendRequest(options);
|
444
|
+
}
|
445
|
+
/**
|
446
|
+
* 查询策略详情
|
447
|
+
*
|
448
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
449
|
+
*
|
450
|
+
* @summary 查询策略详情
|
451
|
+
* @param {string} policyId 策略id
|
452
|
+
* @param {*} [options] Override http request option.
|
453
|
+
* @throws {RequiredError}
|
454
|
+
*/
|
455
|
+
showPolicy(showPolicyRequest) {
|
456
|
+
const options = (0, exports.ParamCreater)().showPolicy(showPolicyRequest);
|
457
|
+
// @ts-ignore
|
458
|
+
options['responseHeaders'] = [''];
|
459
|
+
return this.hcClient.sendRequest(options);
|
460
|
+
}
|
461
|
+
/**
|
462
|
+
* 设置告警配置
|
463
|
+
*
|
464
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
465
|
+
*
|
466
|
+
* @summary 设置告警配置
|
467
|
+
* @param {AlarmBody} updateAlarmConfigRequestBody AlarmBody object that needs to be added to the store
|
468
|
+
* @param {*} [options] Override http request option.
|
469
|
+
* @throws {RequiredError}
|
470
|
+
*/
|
471
|
+
updateAlarmConfig(updateAlarmConfigRequest) {
|
472
|
+
const options = (0, exports.ParamCreater)().updateAlarmConfig(updateAlarmConfigRequest);
|
473
|
+
// @ts-ignore
|
474
|
+
options['responseHeaders'] = [''];
|
475
|
+
return this.hcClient.sendRequest(options);
|
476
|
+
}
|
477
|
+
/**
|
478
|
+
* 更新域名源站配置信息
|
479
|
+
*
|
480
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
481
|
+
*
|
482
|
+
* @summary 更新域名信息
|
483
|
+
* @param {string} domainId 域名ID
|
484
|
+
* @param {DomainRealServerInfo} updateDomainRequestBody 域名信息
|
485
|
+
* @param {*} [options] Override http request option.
|
486
|
+
* @throws {RequiredError}
|
487
|
+
*/
|
488
|
+
updateDomain(updateDomainRequest) {
|
489
|
+
const options = (0, exports.ParamCreater)().updateDomain(updateDomainRequest);
|
490
|
+
// @ts-ignore
|
491
|
+
options['responseHeaders'] = [''];
|
492
|
+
return this.hcClient.sendRequest(options);
|
493
|
+
}
|
494
|
+
/**
|
495
|
+
* 修改高防实例转发配置的源站IP
|
496
|
+
*
|
497
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
498
|
+
*
|
499
|
+
* @summary 修改高防实例转发配置的源站IP
|
500
|
+
* @param {string} instanceId 实例Id
|
501
|
+
* @param {string} ip 单个 IP
|
502
|
+
* @param {string} ruleId 规则ID
|
503
|
+
* @param {TransferRuleBody} updateInstanceIpRuleRequestBody 转发规则信息
|
504
|
+
* @param {*} [options] Override http request option.
|
505
|
+
* @throws {RequiredError}
|
506
|
+
*/
|
507
|
+
updateInstanceIpRule(updateInstanceIpRuleRequest) {
|
508
|
+
const options = (0, exports.ParamCreater)().updateInstanceIpRule(updateInstanceIpRuleRequest);
|
509
|
+
// @ts-ignore
|
510
|
+
options['responseHeaders'] = [''];
|
511
|
+
return this.hcClient.sendRequest(options);
|
512
|
+
}
|
513
|
+
/**
|
514
|
+
* 更新防护包绑定的全量防护对象
|
515
|
+
*
|
516
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
517
|
+
*
|
518
|
+
* @summary 更新防护包绑定的全量防护对象
|
519
|
+
* @param {string} packageId 防护包id
|
520
|
+
* @param {UpdatePackageIpRequestBody} updatePackageIpRequestBody 防护包绑定全量ip的请求体
|
521
|
+
* @param {*} [options] Override http request option.
|
522
|
+
* @throws {RequiredError}
|
523
|
+
*/
|
524
|
+
updatePackageIp(updatePackageIpRequest) {
|
525
|
+
const options = (0, exports.ParamCreater)().updatePackageIp(updatePackageIpRequest);
|
526
|
+
// @ts-ignore
|
527
|
+
options['responseHeaders'] = [''];
|
528
|
+
return this.hcClient.sendRequest(options);
|
529
|
+
}
|
530
|
+
/**
|
531
|
+
* 更新防护包名字
|
532
|
+
*
|
533
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
534
|
+
*
|
535
|
+
* @summary 更新防护包名字
|
536
|
+
* @param {string} packageId 防护包id
|
537
|
+
* @param {UpdatePackageNameRequestBody} updatePackageNameRequestBody 更新防护包名的请求体
|
538
|
+
* @param {*} [options] Override http request option.
|
539
|
+
* @throws {RequiredError}
|
540
|
+
*/
|
541
|
+
updatePackageName(updatePackageNameRequest) {
|
542
|
+
const options = (0, exports.ParamCreater)().updatePackageName(updatePackageNameRequest);
|
543
|
+
// @ts-ignore
|
544
|
+
options['responseHeaders'] = [''];
|
545
|
+
return this.hcClient.sendRequest(options);
|
546
|
+
}
|
547
|
+
/**
|
548
|
+
* 更新策略
|
549
|
+
*
|
550
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
551
|
+
*
|
552
|
+
* @summary 更新策略
|
553
|
+
* @param {string} policyId 策略id
|
554
|
+
* @param {UpdatePolicyRequestBody} updatePolicyRequestBody 更新策略的请求体
|
555
|
+
* @param {*} [options] Override http request option.
|
556
|
+
* @throws {RequiredError}
|
557
|
+
*/
|
558
|
+
updatePolicy(updatePolicyRequest) {
|
559
|
+
const options = (0, exports.ParamCreater)().updatePolicy(updatePolicyRequest);
|
560
|
+
// @ts-ignore
|
561
|
+
options['responseHeaders'] = [''];
|
562
|
+
return this.hcClient.sendRequest(options);
|
563
|
+
}
|
564
|
+
/**
|
565
|
+
* 防护对象设置标签
|
566
|
+
*
|
567
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
568
|
+
*
|
569
|
+
* @summary 防护对象设置标签
|
570
|
+
* @param {UpdateProtectedIpBody} updateTagForProtectedIpRequestBody 更新ip标签的请求体
|
571
|
+
* @param {*} [options] Override http request option.
|
572
|
+
* @throws {RequiredError}
|
573
|
+
*/
|
574
|
+
updateTagForProtectedIp(updateTagForProtectedIpRequest) {
|
575
|
+
const options = (0, exports.ParamCreater)().updateTagForProtectedIp(updateTagForProtectedIpRequest);
|
576
|
+
// @ts-ignore
|
577
|
+
options['responseHeaders'] = [''];
|
578
|
+
return this.hcClient.sendRequest(options);
|
579
|
+
}
|
580
|
+
}
|
581
|
+
exports.AadClient = AadClient;
|
582
|
+
const ParamCreater = function () {
|
583
|
+
return {
|
584
|
+
/**
|
585
|
+
* 解封IP
|
586
|
+
*
|
587
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
588
|
+
*/
|
589
|
+
executeUnblockIp(executeUnblockIpRequest) {
|
590
|
+
const options = {
|
591
|
+
method: "POST",
|
592
|
+
url: "/v1/unblockservice/{domain_id}/unblock",
|
593
|
+
contentType: "application/json",
|
594
|
+
queryParams: {},
|
595
|
+
pathParams: {},
|
596
|
+
headers: {},
|
597
|
+
data: {}
|
598
|
+
};
|
599
|
+
const localVarHeaderParameter = {};
|
600
|
+
let body;
|
601
|
+
let domainId;
|
602
|
+
if (executeUnblockIpRequest !== null && executeUnblockIpRequest !== undefined) {
|
603
|
+
if (executeUnblockIpRequest instanceof ExecuteUnblockIpRequest_1.ExecuteUnblockIpRequest) {
|
604
|
+
domainId = executeUnblockIpRequest.domainId;
|
605
|
+
body = executeUnblockIpRequest.body;
|
606
|
+
}
|
607
|
+
else {
|
608
|
+
domainId = executeUnblockIpRequest['domain_id'];
|
609
|
+
body = executeUnblockIpRequest['body'];
|
610
|
+
}
|
611
|
+
}
|
612
|
+
if (domainId === null || domainId === undefined) {
|
613
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling executeUnblockIp.');
|
614
|
+
}
|
615
|
+
if (body === null || body === undefined) {
|
616
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
617
|
+
}
|
618
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
619
|
+
options.data = body !== undefined ? body : {};
|
620
|
+
options.pathParams = { 'domain_id': domainId, };
|
621
|
+
options.headers = localVarHeaderParameter;
|
622
|
+
return options;
|
623
|
+
},
|
624
|
+
/**
|
625
|
+
* 查询租户封堵列表
|
626
|
+
*
|
627
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
628
|
+
*/
|
629
|
+
listBlockIps(listBlockIpsRequest) {
|
630
|
+
const options = {
|
631
|
+
method: "GET",
|
632
|
+
url: "/v1/unblockservice/{domain_id}/block-list",
|
633
|
+
contentType: "application/json",
|
634
|
+
queryParams: {},
|
635
|
+
pathParams: {},
|
636
|
+
headers: {}
|
637
|
+
};
|
638
|
+
const localVarHeaderParameter = {};
|
639
|
+
let domainId;
|
640
|
+
if (listBlockIpsRequest !== null && listBlockIpsRequest !== undefined) {
|
641
|
+
if (listBlockIpsRequest instanceof ListBlockIpsRequest_1.ListBlockIpsRequest) {
|
642
|
+
domainId = listBlockIpsRequest.domainId;
|
643
|
+
}
|
644
|
+
else {
|
645
|
+
domainId = listBlockIpsRequest['domain_id'];
|
646
|
+
}
|
647
|
+
}
|
648
|
+
if (domainId === null || domainId === undefined) {
|
649
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling listBlockIps.');
|
650
|
+
}
|
651
|
+
options.pathParams = { 'domain_id': domainId, };
|
652
|
+
options.headers = localVarHeaderParameter;
|
653
|
+
return options;
|
654
|
+
},
|
655
|
+
/**
|
656
|
+
* 查询解封配额
|
657
|
+
*
|
658
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
659
|
+
*/
|
660
|
+
listUnblockQuotaStatistics(listUnblockQuotaStatisticsRequest) {
|
661
|
+
const options = {
|
662
|
+
method: "GET",
|
663
|
+
url: "/v1/unblockservice/{domain_id}/unblock-quota-statistics",
|
664
|
+
contentType: "application/json",
|
665
|
+
queryParams: {},
|
666
|
+
pathParams: {},
|
667
|
+
headers: {}
|
668
|
+
};
|
669
|
+
const localVarHeaderParameter = {};
|
670
|
+
let domainId;
|
671
|
+
if (listUnblockQuotaStatisticsRequest !== null && listUnblockQuotaStatisticsRequest !== undefined) {
|
672
|
+
if (listUnblockQuotaStatisticsRequest instanceof ListUnblockQuotaStatisticsRequest_1.ListUnblockQuotaStatisticsRequest) {
|
673
|
+
domainId = listUnblockQuotaStatisticsRequest.domainId;
|
674
|
+
}
|
675
|
+
else {
|
676
|
+
domainId = listUnblockQuotaStatisticsRequest['domain_id'];
|
677
|
+
}
|
678
|
+
}
|
679
|
+
if (domainId === null || domainId === undefined) {
|
680
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling listUnblockQuotaStatistics.');
|
681
|
+
}
|
682
|
+
options.pathParams = { 'domain_id': domainId, };
|
683
|
+
options.headers = localVarHeaderParameter;
|
684
|
+
return options;
|
685
|
+
},
|
686
|
+
/**
|
687
|
+
* 查询封堵统计数据
|
688
|
+
*
|
689
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
690
|
+
*/
|
691
|
+
showBlockStatistics(showBlockStatisticsRequest) {
|
692
|
+
const options = {
|
693
|
+
method: "GET",
|
694
|
+
url: "/v1/unblockservice/{domain_id}/block-statistics",
|
695
|
+
contentType: "application/json",
|
696
|
+
queryParams: {},
|
697
|
+
pathParams: {},
|
698
|
+
headers: {}
|
699
|
+
};
|
700
|
+
const localVarHeaderParameter = {};
|
701
|
+
let domainId;
|
702
|
+
if (showBlockStatisticsRequest !== null && showBlockStatisticsRequest !== undefined) {
|
703
|
+
if (showBlockStatisticsRequest instanceof ShowBlockStatisticsRequest_1.ShowBlockStatisticsRequest) {
|
704
|
+
domainId = showBlockStatisticsRequest.domainId;
|
705
|
+
}
|
706
|
+
else {
|
707
|
+
domainId = showBlockStatisticsRequest['domain_id'];
|
708
|
+
}
|
709
|
+
}
|
710
|
+
if (domainId === null || domainId === undefined) {
|
711
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showBlockStatistics.');
|
712
|
+
}
|
713
|
+
options.pathParams = { 'domain_id': domainId, };
|
714
|
+
options.headers = localVarHeaderParameter;
|
715
|
+
return options;
|
716
|
+
},
|
717
|
+
/**
|
718
|
+
* 查询租户解封记录
|
719
|
+
*
|
720
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
721
|
+
*/
|
722
|
+
showUnblockRecord(showUnblockRecordRequest) {
|
723
|
+
const options = {
|
724
|
+
method: "GET",
|
725
|
+
url: "/v1/unblockservice/{domain_id}/unblock-record",
|
726
|
+
contentType: "application/json",
|
727
|
+
queryParams: {},
|
728
|
+
pathParams: {},
|
729
|
+
headers: {}
|
730
|
+
};
|
731
|
+
const localVarHeaderParameter = {};
|
732
|
+
const localVarQueryParameter = {};
|
733
|
+
let domainId;
|
734
|
+
let startTime;
|
735
|
+
let endTime;
|
736
|
+
if (showUnblockRecordRequest !== null && showUnblockRecordRequest !== undefined) {
|
737
|
+
if (showUnblockRecordRequest instanceof ShowUnblockRecordRequest_1.ShowUnblockRecordRequest) {
|
738
|
+
domainId = showUnblockRecordRequest.domainId;
|
739
|
+
startTime = showUnblockRecordRequest.startTime;
|
740
|
+
endTime = showUnblockRecordRequest.endTime;
|
741
|
+
}
|
742
|
+
else {
|
743
|
+
domainId = showUnblockRecordRequest['domain_id'];
|
744
|
+
startTime = showUnblockRecordRequest['start_time'];
|
745
|
+
endTime = showUnblockRecordRequest['end_time'];
|
746
|
+
}
|
747
|
+
}
|
748
|
+
if (domainId === null || domainId === undefined) {
|
749
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showUnblockRecord.');
|
750
|
+
}
|
751
|
+
if (startTime === null || startTime === undefined) {
|
752
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showUnblockRecord.');
|
753
|
+
}
|
754
|
+
if (startTime !== null && startTime !== undefined) {
|
755
|
+
localVarQueryParameter['start_time'] = startTime;
|
756
|
+
}
|
757
|
+
if (endTime === null || endTime === undefined) {
|
758
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showUnblockRecord.');
|
759
|
+
}
|
760
|
+
if (endTime !== null && endTime !== undefined) {
|
761
|
+
localVarQueryParameter['end_time'] = endTime;
|
762
|
+
}
|
763
|
+
options.queryParams = localVarQueryParameter;
|
764
|
+
options.pathParams = { 'domain_id': domainId, };
|
765
|
+
options.headers = localVarHeaderParameter;
|
766
|
+
return options;
|
767
|
+
},
|
768
|
+
/**
|
769
|
+
* 策略添加黑白名单
|
770
|
+
*
|
771
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
772
|
+
*/
|
773
|
+
addPolicyBlackAndWhiteIpList(addPolicyBlackAndWhiteIpListRequest) {
|
774
|
+
const options = {
|
775
|
+
method: "POST",
|
776
|
+
url: "/v1/cnad/policies/{policy_id}/ip-list/add",
|
777
|
+
contentType: "application/json",
|
778
|
+
queryParams: {},
|
779
|
+
pathParams: {},
|
780
|
+
headers: {},
|
781
|
+
data: {}
|
782
|
+
};
|
783
|
+
const localVarHeaderParameter = {};
|
784
|
+
let body;
|
785
|
+
let policyId;
|
786
|
+
if (addPolicyBlackAndWhiteIpListRequest !== null && addPolicyBlackAndWhiteIpListRequest !== undefined) {
|
787
|
+
if (addPolicyBlackAndWhiteIpListRequest instanceof AddPolicyBlackAndWhiteIpListRequest_1.AddPolicyBlackAndWhiteIpListRequest) {
|
788
|
+
policyId = addPolicyBlackAndWhiteIpListRequest.policyId;
|
789
|
+
body = addPolicyBlackAndWhiteIpListRequest.body;
|
790
|
+
}
|
791
|
+
else {
|
792
|
+
policyId = addPolicyBlackAndWhiteIpListRequest['policy_id'];
|
793
|
+
body = addPolicyBlackAndWhiteIpListRequest['body'];
|
794
|
+
}
|
795
|
+
}
|
796
|
+
if (policyId === null || policyId === undefined) {
|
797
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling addPolicyBlackAndWhiteIpList.');
|
798
|
+
}
|
799
|
+
if (body === null || body === undefined) {
|
800
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
801
|
+
}
|
802
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
803
|
+
options.data = body !== undefined ? body : {};
|
804
|
+
options.pathParams = { 'policy_id': policyId, };
|
805
|
+
options.headers = localVarHeaderParameter;
|
806
|
+
return options;
|
807
|
+
},
|
808
|
+
/**
|
809
|
+
* 策略绑定防护对象
|
810
|
+
*
|
811
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
812
|
+
*/
|
813
|
+
associateIpToPolicy(associateIpToPolicyRequest) {
|
814
|
+
const options = {
|
815
|
+
method: "POST",
|
816
|
+
url: "/v1/cnad/policies/{policy_id}/bind",
|
817
|
+
contentType: "application/json",
|
818
|
+
queryParams: {},
|
819
|
+
pathParams: {},
|
820
|
+
headers: {},
|
821
|
+
data: {}
|
822
|
+
};
|
823
|
+
const localVarHeaderParameter = {};
|
824
|
+
let body;
|
825
|
+
let policyId;
|
826
|
+
if (associateIpToPolicyRequest !== null && associateIpToPolicyRequest !== undefined) {
|
827
|
+
if (associateIpToPolicyRequest instanceof AssociateIpToPolicyRequest_1.AssociateIpToPolicyRequest) {
|
828
|
+
policyId = associateIpToPolicyRequest.policyId;
|
829
|
+
body = associateIpToPolicyRequest.body;
|
830
|
+
}
|
831
|
+
else {
|
832
|
+
policyId = associateIpToPolicyRequest['policy_id'];
|
833
|
+
body = associateIpToPolicyRequest['body'];
|
834
|
+
}
|
835
|
+
}
|
836
|
+
if (policyId === null || policyId === undefined) {
|
837
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling associateIpToPolicy.');
|
838
|
+
}
|
839
|
+
if (body === null || body === undefined) {
|
840
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
841
|
+
}
|
842
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
843
|
+
options.data = body !== undefined ? body : {};
|
844
|
+
options.pathParams = { 'policy_id': policyId, };
|
845
|
+
options.headers = localVarHeaderParameter;
|
846
|
+
return options;
|
847
|
+
},
|
848
|
+
/**
|
849
|
+
* 批量创建高防实例IP的转发规则
|
850
|
+
*
|
851
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
852
|
+
*/
|
853
|
+
batchCreateInstanceIpRule(batchCreateInstanceIpRuleRequest) {
|
854
|
+
const options = {
|
855
|
+
method: "POST",
|
856
|
+
url: "/v1/aad/instances/{instance_id}/{ip}/rules/batch-create",
|
857
|
+
contentType: "application/json",
|
858
|
+
queryParams: {},
|
859
|
+
pathParams: {},
|
860
|
+
headers: {},
|
861
|
+
data: {}
|
862
|
+
};
|
863
|
+
const localVarHeaderParameter = {};
|
864
|
+
let body;
|
865
|
+
let instanceId;
|
866
|
+
let ip;
|
867
|
+
if (batchCreateInstanceIpRuleRequest !== null && batchCreateInstanceIpRuleRequest !== undefined) {
|
868
|
+
if (batchCreateInstanceIpRuleRequest instanceof BatchCreateInstanceIpRuleRequest_1.BatchCreateInstanceIpRuleRequest) {
|
869
|
+
instanceId = batchCreateInstanceIpRuleRequest.instanceId;
|
870
|
+
ip = batchCreateInstanceIpRuleRequest.ip;
|
871
|
+
body = batchCreateInstanceIpRuleRequest.body;
|
872
|
+
}
|
873
|
+
else {
|
874
|
+
instanceId = batchCreateInstanceIpRuleRequest['instance_id'];
|
875
|
+
ip = batchCreateInstanceIpRuleRequest['ip'];
|
876
|
+
body = batchCreateInstanceIpRuleRequest['body'];
|
877
|
+
}
|
878
|
+
}
|
879
|
+
if (instanceId === null || instanceId === undefined) {
|
880
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling batchCreateInstanceIpRule.');
|
881
|
+
}
|
882
|
+
if (ip === null || ip === undefined) {
|
883
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling batchCreateInstanceIpRule.');
|
884
|
+
}
|
885
|
+
if (body === null || body === undefined) {
|
886
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
887
|
+
}
|
888
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
889
|
+
options.data = body !== undefined ? body : {};
|
890
|
+
options.pathParams = { 'instance_id': instanceId, 'ip': ip, };
|
891
|
+
options.headers = localVarHeaderParameter;
|
892
|
+
return options;
|
893
|
+
},
|
894
|
+
/**
|
895
|
+
* 批量删除高防实例IP的转发规则
|
896
|
+
*
|
897
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
898
|
+
*/
|
899
|
+
batchDeleteInstanceIpRule(batchDeleteInstanceIpRuleRequest) {
|
900
|
+
const options = {
|
901
|
+
method: "POST",
|
902
|
+
url: "/v1/aad/instances/{instance_id}/{ip}/rules/batch-delete",
|
903
|
+
contentType: "application/json",
|
904
|
+
queryParams: {},
|
905
|
+
pathParams: {},
|
906
|
+
headers: {},
|
907
|
+
data: {}
|
908
|
+
};
|
909
|
+
const localVarHeaderParameter = {};
|
910
|
+
let body;
|
911
|
+
let instanceId;
|
912
|
+
let ip;
|
913
|
+
if (batchDeleteInstanceIpRuleRequest !== null && batchDeleteInstanceIpRuleRequest !== undefined) {
|
914
|
+
if (batchDeleteInstanceIpRuleRequest instanceof BatchDeleteInstanceIpRuleRequest_1.BatchDeleteInstanceIpRuleRequest) {
|
915
|
+
instanceId = batchDeleteInstanceIpRuleRequest.instanceId;
|
916
|
+
ip = batchDeleteInstanceIpRuleRequest.ip;
|
917
|
+
body = batchDeleteInstanceIpRuleRequest.body;
|
918
|
+
}
|
919
|
+
else {
|
920
|
+
instanceId = batchDeleteInstanceIpRuleRequest['instance_id'];
|
921
|
+
ip = batchDeleteInstanceIpRuleRequest['ip'];
|
922
|
+
body = batchDeleteInstanceIpRuleRequest['body'];
|
923
|
+
}
|
924
|
+
}
|
925
|
+
if (instanceId === null || instanceId === undefined) {
|
926
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling batchDeleteInstanceIpRule.');
|
927
|
+
}
|
928
|
+
if (ip === null || ip === undefined) {
|
929
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling batchDeleteInstanceIpRule.');
|
930
|
+
}
|
931
|
+
if (body === null || body === undefined) {
|
932
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
933
|
+
}
|
934
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
935
|
+
options.data = body !== undefined ? body : {};
|
936
|
+
options.pathParams = { 'instance_id': instanceId, 'ip': ip, };
|
937
|
+
options.headers = localVarHeaderParameter;
|
938
|
+
return options;
|
939
|
+
},
|
940
|
+
/**
|
941
|
+
* 创建策略
|
942
|
+
*
|
943
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
944
|
+
*/
|
945
|
+
createPolicy(createPolicyRequest) {
|
946
|
+
const options = {
|
947
|
+
method: "POST",
|
948
|
+
url: "/v1/cnad/policies",
|
949
|
+
contentType: "application/json",
|
950
|
+
queryParams: {},
|
951
|
+
pathParams: {},
|
952
|
+
headers: {},
|
953
|
+
data: {}
|
954
|
+
};
|
955
|
+
const localVarHeaderParameter = {};
|
956
|
+
let body;
|
957
|
+
if (createPolicyRequest !== null && createPolicyRequest !== undefined) {
|
958
|
+
if (createPolicyRequest instanceof CreatePolicyRequest_1.CreatePolicyRequest) {
|
959
|
+
body = createPolicyRequest.body;
|
960
|
+
}
|
961
|
+
else {
|
962
|
+
body = createPolicyRequest['body'];
|
963
|
+
}
|
964
|
+
}
|
965
|
+
if (body === null || body === undefined) {
|
966
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
967
|
+
}
|
968
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
969
|
+
options.data = body !== undefined ? body : {};
|
970
|
+
options.headers = localVarHeaderParameter;
|
971
|
+
return options;
|
972
|
+
},
|
973
|
+
/**
|
974
|
+
* 删除告警配置
|
975
|
+
*
|
976
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
977
|
+
*/
|
978
|
+
deleteAlarmConfig() {
|
979
|
+
const options = {
|
980
|
+
method: "DELETE",
|
981
|
+
url: "/v1/cnad/alarm-config",
|
982
|
+
contentType: "application/json",
|
983
|
+
queryParams: {},
|
984
|
+
pathParams: {},
|
985
|
+
headers: {}
|
986
|
+
};
|
987
|
+
const localVarHeaderParameter = {};
|
988
|
+
options.headers = localVarHeaderParameter;
|
989
|
+
return options;
|
990
|
+
},
|
991
|
+
/**
|
992
|
+
* 删除策略
|
993
|
+
*
|
994
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
995
|
+
*/
|
996
|
+
deletePolicy(deletePolicyRequest) {
|
997
|
+
const options = {
|
998
|
+
method: "DELETE",
|
999
|
+
url: "/v1/cnad/policies/{policy_id}",
|
1000
|
+
contentType: "application/json",
|
1001
|
+
queryParams: {},
|
1002
|
+
pathParams: {},
|
1003
|
+
headers: {}
|
1004
|
+
};
|
1005
|
+
const localVarHeaderParameter = {};
|
1006
|
+
let policyId;
|
1007
|
+
if (deletePolicyRequest !== null && deletePolicyRequest !== undefined) {
|
1008
|
+
if (deletePolicyRequest instanceof DeletePolicyRequest_1.DeletePolicyRequest) {
|
1009
|
+
policyId = deletePolicyRequest.policyId;
|
1010
|
+
}
|
1011
|
+
else {
|
1012
|
+
policyId = deletePolicyRequest['policy_id'];
|
1013
|
+
}
|
1014
|
+
}
|
1015
|
+
if (policyId === null || policyId === undefined) {
|
1016
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling deletePolicy.');
|
1017
|
+
}
|
1018
|
+
options.pathParams = { 'policy_id': policyId, };
|
1019
|
+
options.headers = localVarHeaderParameter;
|
1020
|
+
return options;
|
1021
|
+
},
|
1022
|
+
/**
|
1023
|
+
* 策略删除黑白名单
|
1024
|
+
*
|
1025
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1026
|
+
*/
|
1027
|
+
deletePolicyBlackAndWhiteIpList(deletePolicyBlackAndWhiteIpListRequest) {
|
1028
|
+
const options = {
|
1029
|
+
method: "POST",
|
1030
|
+
url: "/v1/cnad/policies/{policy_id}/ip-list/delete",
|
1031
|
+
contentType: "application/json",
|
1032
|
+
queryParams: {},
|
1033
|
+
pathParams: {},
|
1034
|
+
headers: {},
|
1035
|
+
data: {}
|
1036
|
+
};
|
1037
|
+
const localVarHeaderParameter = {};
|
1038
|
+
let body;
|
1039
|
+
let policyId;
|
1040
|
+
if (deletePolicyBlackAndWhiteIpListRequest !== null && deletePolicyBlackAndWhiteIpListRequest !== undefined) {
|
1041
|
+
if (deletePolicyBlackAndWhiteIpListRequest instanceof DeletePolicyBlackAndWhiteIpListRequest_1.DeletePolicyBlackAndWhiteIpListRequest) {
|
1042
|
+
policyId = deletePolicyBlackAndWhiteIpListRequest.policyId;
|
1043
|
+
body = deletePolicyBlackAndWhiteIpListRequest.body;
|
1044
|
+
}
|
1045
|
+
else {
|
1046
|
+
policyId = deletePolicyBlackAndWhiteIpListRequest['policy_id'];
|
1047
|
+
body = deletePolicyBlackAndWhiteIpListRequest['body'];
|
1048
|
+
}
|
1049
|
+
}
|
1050
|
+
if (policyId === null || policyId === undefined) {
|
1051
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling deletePolicyBlackAndWhiteIpList.');
|
1052
|
+
}
|
1053
|
+
if (body === null || body === undefined) {
|
1054
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1055
|
+
}
|
1056
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1057
|
+
options.data = body !== undefined ? body : {};
|
1058
|
+
options.pathParams = { 'policy_id': policyId, };
|
1059
|
+
options.headers = localVarHeaderParameter;
|
1060
|
+
return options;
|
1061
|
+
},
|
1062
|
+
/**
|
1063
|
+
* 策略解绑防护对象
|
1064
|
+
*
|
1065
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1066
|
+
*/
|
1067
|
+
disassociateIpFromPolicy(disassociateIpFromPolicyRequest) {
|
1068
|
+
const options = {
|
1069
|
+
method: "POST",
|
1070
|
+
url: "/v1/cnad/policies/{policy_id}/unbind",
|
1071
|
+
contentType: "application/json",
|
1072
|
+
queryParams: {},
|
1073
|
+
pathParams: {},
|
1074
|
+
headers: {},
|
1075
|
+
data: {}
|
1076
|
+
};
|
1077
|
+
const localVarHeaderParameter = {};
|
1078
|
+
let body;
|
1079
|
+
let policyId;
|
1080
|
+
if (disassociateIpFromPolicyRequest !== null && disassociateIpFromPolicyRequest !== undefined) {
|
1081
|
+
if (disassociateIpFromPolicyRequest instanceof DisassociateIpFromPolicyRequest_1.DisassociateIpFromPolicyRequest) {
|
1082
|
+
policyId = disassociateIpFromPolicyRequest.policyId;
|
1083
|
+
body = disassociateIpFromPolicyRequest.body;
|
1084
|
+
}
|
1085
|
+
else {
|
1086
|
+
policyId = disassociateIpFromPolicyRequest['policy_id'];
|
1087
|
+
body = disassociateIpFromPolicyRequest['body'];
|
1088
|
+
}
|
1089
|
+
}
|
1090
|
+
if (policyId === null || policyId === undefined) {
|
1091
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling disassociateIpFromPolicy.');
|
1092
|
+
}
|
1093
|
+
if (body === null || body === undefined) {
|
1094
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1095
|
+
}
|
1096
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1097
|
+
options.data = body !== undefined ? body : {};
|
1098
|
+
options.pathParams = { 'policy_id': policyId, };
|
1099
|
+
options.headers = localVarHeaderParameter;
|
1100
|
+
return options;
|
1101
|
+
},
|
1102
|
+
/**
|
1103
|
+
* 查询域名列表
|
1104
|
+
*
|
1105
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1106
|
+
*/
|
1107
|
+
listDomain() {
|
1108
|
+
const options = {
|
1109
|
+
method: "GET",
|
1110
|
+
url: "/v1/aad/protected-domains",
|
1111
|
+
contentType: "application/json",
|
1112
|
+
queryParams: {},
|
1113
|
+
pathParams: {},
|
1114
|
+
headers: {}
|
1115
|
+
};
|
1116
|
+
const localVarHeaderParameter = {};
|
1117
|
+
options.headers = localVarHeaderParameter;
|
1118
|
+
return options;
|
1119
|
+
},
|
1120
|
+
/**
|
1121
|
+
* 查询高防实例列表
|
1122
|
+
*
|
1123
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1124
|
+
*/
|
1125
|
+
listInstance() {
|
1126
|
+
const options = {
|
1127
|
+
method: "GET",
|
1128
|
+
url: "/v1/aad/instances",
|
1129
|
+
contentType: "application/json",
|
1130
|
+
queryParams: {},
|
1131
|
+
pathParams: {},
|
1132
|
+
headers: {}
|
1133
|
+
};
|
1134
|
+
const localVarHeaderParameter = {};
|
1135
|
+
options.headers = localVarHeaderParameter;
|
1136
|
+
return options;
|
1137
|
+
},
|
1138
|
+
/**
|
1139
|
+
* 查询域名关联的实例ID
|
1140
|
+
*
|
1141
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1142
|
+
*/
|
1143
|
+
listInstanceId(listInstanceIdRequest) {
|
1144
|
+
const options = {
|
1145
|
+
method: "GET",
|
1146
|
+
url: "/v1/aad/protected-domains/{domain_id}",
|
1147
|
+
contentType: "application/json",
|
1148
|
+
queryParams: {},
|
1149
|
+
pathParams: {},
|
1150
|
+
headers: {}
|
1151
|
+
};
|
1152
|
+
const localVarHeaderParameter = {};
|
1153
|
+
let domainId;
|
1154
|
+
if (listInstanceIdRequest !== null && listInstanceIdRequest !== undefined) {
|
1155
|
+
if (listInstanceIdRequest instanceof ListInstanceIdRequest_1.ListInstanceIdRequest) {
|
1156
|
+
domainId = listInstanceIdRequest.domainId;
|
1157
|
+
}
|
1158
|
+
else {
|
1159
|
+
domainId = listInstanceIdRequest['domain_id'];
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
if (domainId === null || domainId === undefined) {
|
1163
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling listInstanceId.');
|
1164
|
+
}
|
1165
|
+
options.pathParams = { 'domain_id': domainId, };
|
1166
|
+
options.headers = localVarHeaderParameter;
|
1167
|
+
return options;
|
1168
|
+
},
|
1169
|
+
/**
|
1170
|
+
* 查询高防实例IP的转发规则列表
|
1171
|
+
*
|
1172
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1173
|
+
*/
|
1174
|
+
listInstanceIpRule(listInstanceIpRuleRequest) {
|
1175
|
+
const options = {
|
1176
|
+
method: "GET",
|
1177
|
+
url: "/v1/aad/instances/{instance_id}/{ip}/rules",
|
1178
|
+
contentType: "application/json",
|
1179
|
+
queryParams: {},
|
1180
|
+
pathParams: {},
|
1181
|
+
headers: {}
|
1182
|
+
};
|
1183
|
+
const localVarHeaderParameter = {};
|
1184
|
+
let instanceId;
|
1185
|
+
let ip;
|
1186
|
+
if (listInstanceIpRuleRequest !== null && listInstanceIpRuleRequest !== undefined) {
|
1187
|
+
if (listInstanceIpRuleRequest instanceof ListInstanceIpRuleRequest_1.ListInstanceIpRuleRequest) {
|
1188
|
+
instanceId = listInstanceIpRuleRequest.instanceId;
|
1189
|
+
ip = listInstanceIpRuleRequest.ip;
|
1190
|
+
}
|
1191
|
+
else {
|
1192
|
+
instanceId = listInstanceIpRuleRequest['instance_id'];
|
1193
|
+
ip = listInstanceIpRuleRequest['ip'];
|
1194
|
+
}
|
1195
|
+
}
|
1196
|
+
if (instanceId === null || instanceId === undefined) {
|
1197
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listInstanceIpRule.');
|
1198
|
+
}
|
1199
|
+
if (ip === null || ip === undefined) {
|
1200
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling listInstanceIpRule.');
|
1201
|
+
}
|
1202
|
+
options.pathParams = { 'instance_id': instanceId, 'ip': ip, };
|
1203
|
+
options.headers = localVarHeaderParameter;
|
1204
|
+
return options;
|
1205
|
+
},
|
1206
|
+
/**
|
1207
|
+
* 查询防护包列表
|
1208
|
+
*
|
1209
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1210
|
+
*/
|
1211
|
+
listPackage() {
|
1212
|
+
const options = {
|
1213
|
+
method: "GET",
|
1214
|
+
url: "/v1/cnad/packages",
|
1215
|
+
contentType: "application/json",
|
1216
|
+
queryParams: {},
|
1217
|
+
pathParams: {},
|
1218
|
+
headers: {}
|
1219
|
+
};
|
1220
|
+
const localVarHeaderParameter = {};
|
1221
|
+
options.headers = localVarHeaderParameter;
|
1222
|
+
return options;
|
1223
|
+
},
|
1224
|
+
/**
|
1225
|
+
* 查询流量峰值、攻击计数
|
1226
|
+
*
|
1227
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1228
|
+
*/
|
1229
|
+
listPeak(listPeakRequest) {
|
1230
|
+
const options = {
|
1231
|
+
method: "GET",
|
1232
|
+
url: "/v1/aad/instances/{instance_id}/{ip}/ddos-statistics",
|
1233
|
+
contentType: "application/json",
|
1234
|
+
queryParams: {},
|
1235
|
+
pathParams: {},
|
1236
|
+
headers: {}
|
1237
|
+
};
|
1238
|
+
const localVarHeaderParameter = {};
|
1239
|
+
const localVarQueryParameter = {};
|
1240
|
+
let instanceId;
|
1241
|
+
let ip;
|
1242
|
+
let startTime;
|
1243
|
+
let endTime;
|
1244
|
+
if (listPeakRequest !== null && listPeakRequest !== undefined) {
|
1245
|
+
if (listPeakRequest instanceof ListPeakRequest_1.ListPeakRequest) {
|
1246
|
+
instanceId = listPeakRequest.instanceId;
|
1247
|
+
ip = listPeakRequest.ip;
|
1248
|
+
startTime = listPeakRequest.startTime;
|
1249
|
+
endTime = listPeakRequest.endTime;
|
1250
|
+
}
|
1251
|
+
else {
|
1252
|
+
instanceId = listPeakRequest['instance_id'];
|
1253
|
+
ip = listPeakRequest['ip'];
|
1254
|
+
startTime = listPeakRequest['start_time'];
|
1255
|
+
endTime = listPeakRequest['end_time'];
|
1256
|
+
}
|
1257
|
+
}
|
1258
|
+
if (instanceId === null || instanceId === undefined) {
|
1259
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listPeak.');
|
1260
|
+
}
|
1261
|
+
if (ip === null || ip === undefined) {
|
1262
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling listPeak.');
|
1263
|
+
}
|
1264
|
+
if (startTime === null || startTime === undefined) {
|
1265
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listPeak.');
|
1266
|
+
}
|
1267
|
+
if (startTime !== null && startTime !== undefined) {
|
1268
|
+
localVarQueryParameter['start_time'] = startTime;
|
1269
|
+
}
|
1270
|
+
if (endTime === null || endTime === undefined) {
|
1271
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listPeak.');
|
1272
|
+
}
|
1273
|
+
if (endTime !== null && endTime !== undefined) {
|
1274
|
+
localVarQueryParameter['end_time'] = endTime;
|
1275
|
+
}
|
1276
|
+
options.queryParams = localVarQueryParameter;
|
1277
|
+
options.pathParams = { 'instance_id': instanceId, 'ip': ip, };
|
1278
|
+
options.headers = localVarHeaderParameter;
|
1279
|
+
return options;
|
1280
|
+
},
|
1281
|
+
/**
|
1282
|
+
* 查询策略列表
|
1283
|
+
*
|
1284
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1285
|
+
*/
|
1286
|
+
listPolicy(listPolicyRequest) {
|
1287
|
+
const options = {
|
1288
|
+
method: "GET",
|
1289
|
+
url: "/v1/cnad/policies",
|
1290
|
+
contentType: "application/json",
|
1291
|
+
queryParams: {},
|
1292
|
+
pathParams: {},
|
1293
|
+
headers: {}
|
1294
|
+
};
|
1295
|
+
const localVarHeaderParameter = {};
|
1296
|
+
const localVarQueryParameter = {};
|
1297
|
+
let offset;
|
1298
|
+
let limit;
|
1299
|
+
let policyName;
|
1300
|
+
if (listPolicyRequest !== null && listPolicyRequest !== undefined) {
|
1301
|
+
if (listPolicyRequest instanceof ListPolicyRequest_1.ListPolicyRequest) {
|
1302
|
+
offset = listPolicyRequest.offset;
|
1303
|
+
limit = listPolicyRequest.limit;
|
1304
|
+
policyName = listPolicyRequest.policyName;
|
1305
|
+
}
|
1306
|
+
else {
|
1307
|
+
offset = listPolicyRequest['offset'];
|
1308
|
+
limit = listPolicyRequest['limit'];
|
1309
|
+
policyName = listPolicyRequest['policy_name'];
|
1310
|
+
}
|
1311
|
+
}
|
1312
|
+
if (offset !== null && offset !== undefined) {
|
1313
|
+
localVarQueryParameter['offset'] = offset;
|
1314
|
+
}
|
1315
|
+
if (limit !== null && limit !== undefined) {
|
1316
|
+
localVarQueryParameter['limit'] = limit;
|
1317
|
+
}
|
1318
|
+
if (policyName !== null && policyName !== undefined) {
|
1319
|
+
localVarQueryParameter['policy_name'] = policyName;
|
1320
|
+
}
|
1321
|
+
options.queryParams = localVarQueryParameter;
|
1322
|
+
options.headers = localVarHeaderParameter;
|
1323
|
+
return options;
|
1324
|
+
},
|
1325
|
+
/**
|
1326
|
+
* 查询防护对象列表
|
1327
|
+
*
|
1328
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1329
|
+
*/
|
1330
|
+
listProtectedIp(listProtectedIpRequest) {
|
1331
|
+
const options = {
|
1332
|
+
method: "GET",
|
1333
|
+
url: "/v1/cnad/protected-ips",
|
1334
|
+
contentType: "application/json",
|
1335
|
+
queryParams: {},
|
1336
|
+
pathParams: {},
|
1337
|
+
headers: {}
|
1338
|
+
};
|
1339
|
+
const localVarHeaderParameter = {};
|
1340
|
+
const localVarQueryParameter = {};
|
1341
|
+
let offset;
|
1342
|
+
let limit;
|
1343
|
+
let packageId;
|
1344
|
+
let policyId;
|
1345
|
+
let ip;
|
1346
|
+
let tag;
|
1347
|
+
if (listProtectedIpRequest !== null && listProtectedIpRequest !== undefined) {
|
1348
|
+
if (listProtectedIpRequest instanceof ListProtectedIpRequest_1.ListProtectedIpRequest) {
|
1349
|
+
offset = listProtectedIpRequest.offset;
|
1350
|
+
limit = listProtectedIpRequest.limit;
|
1351
|
+
packageId = listProtectedIpRequest.packageId;
|
1352
|
+
policyId = listProtectedIpRequest.policyId;
|
1353
|
+
ip = listProtectedIpRequest.ip;
|
1354
|
+
tag = listProtectedIpRequest.tag;
|
1355
|
+
}
|
1356
|
+
else {
|
1357
|
+
offset = listProtectedIpRequest['offset'];
|
1358
|
+
limit = listProtectedIpRequest['limit'];
|
1359
|
+
packageId = listProtectedIpRequest['package_id'];
|
1360
|
+
policyId = listProtectedIpRequest['policy_id'];
|
1361
|
+
ip = listProtectedIpRequest['ip'];
|
1362
|
+
tag = listProtectedIpRequest['tag'];
|
1363
|
+
}
|
1364
|
+
}
|
1365
|
+
if (offset !== null && offset !== undefined) {
|
1366
|
+
localVarQueryParameter['offset'] = offset;
|
1367
|
+
}
|
1368
|
+
if (limit !== null && limit !== undefined) {
|
1369
|
+
localVarQueryParameter['limit'] = limit;
|
1370
|
+
}
|
1371
|
+
if (packageId !== null && packageId !== undefined) {
|
1372
|
+
localVarQueryParameter['package_id'] = packageId;
|
1373
|
+
}
|
1374
|
+
if (policyId !== null && policyId !== undefined) {
|
1375
|
+
localVarQueryParameter['policy_id'] = policyId;
|
1376
|
+
}
|
1377
|
+
if (ip !== null && ip !== undefined) {
|
1378
|
+
localVarQueryParameter['ip'] = ip;
|
1379
|
+
}
|
1380
|
+
if (tag !== null && tag !== undefined) {
|
1381
|
+
localVarQueryParameter['tag'] = tag;
|
1382
|
+
}
|
1383
|
+
options.queryParams = localVarQueryParameter;
|
1384
|
+
options.headers = localVarHeaderParameter;
|
1385
|
+
return options;
|
1386
|
+
},
|
1387
|
+
/**
|
1388
|
+
* 查询可绑定的防护对象列表
|
1389
|
+
*
|
1390
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1391
|
+
*/
|
1392
|
+
listUnboundProtectedIp(listUnboundProtectedIpRequest) {
|
1393
|
+
const options = {
|
1394
|
+
method: "GET",
|
1395
|
+
url: "/v1/cnad/packages/{package_id}/unbound-protected-ips",
|
1396
|
+
contentType: "application/json",
|
1397
|
+
queryParams: {},
|
1398
|
+
pathParams: {},
|
1399
|
+
headers: {}
|
1400
|
+
};
|
1401
|
+
const localVarHeaderParameter = {};
|
1402
|
+
const localVarQueryParameter = {};
|
1403
|
+
let packageId;
|
1404
|
+
let offset;
|
1405
|
+
let limit;
|
1406
|
+
if (listUnboundProtectedIpRequest !== null && listUnboundProtectedIpRequest !== undefined) {
|
1407
|
+
if (listUnboundProtectedIpRequest instanceof ListUnboundProtectedIpRequest_1.ListUnboundProtectedIpRequest) {
|
1408
|
+
packageId = listUnboundProtectedIpRequest.packageId;
|
1409
|
+
offset = listUnboundProtectedIpRequest.offset;
|
1410
|
+
limit = listUnboundProtectedIpRequest.limit;
|
1411
|
+
}
|
1412
|
+
else {
|
1413
|
+
packageId = listUnboundProtectedIpRequest['package_id'];
|
1414
|
+
offset = listUnboundProtectedIpRequest['offset'];
|
1415
|
+
limit = listUnboundProtectedIpRequest['limit'];
|
1416
|
+
}
|
1417
|
+
}
|
1418
|
+
if (packageId === null || packageId === undefined) {
|
1419
|
+
throw new RequiredError('packageId', 'Required parameter packageId was null or undefined when calling listUnboundProtectedIp.');
|
1420
|
+
}
|
1421
|
+
if (offset !== null && offset !== undefined) {
|
1422
|
+
localVarQueryParameter['offset'] = offset;
|
1423
|
+
}
|
1424
|
+
if (limit !== null && limit !== undefined) {
|
1425
|
+
localVarQueryParameter['limit'] = limit;
|
1426
|
+
}
|
1427
|
+
options.queryParams = localVarQueryParameter;
|
1428
|
+
options.pathParams = { 'package_id': packageId, };
|
1429
|
+
options.headers = localVarHeaderParameter;
|
1430
|
+
return options;
|
1431
|
+
},
|
1432
|
+
/**
|
1433
|
+
* 查询告警配置
|
1434
|
+
*
|
1435
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1436
|
+
*/
|
1437
|
+
showAlarmConfig() {
|
1438
|
+
const options = {
|
1439
|
+
method: "GET",
|
1440
|
+
url: "/v1/cnad/alarm-config",
|
1441
|
+
contentType: "application/json",
|
1442
|
+
queryParams: {},
|
1443
|
+
pathParams: {},
|
1444
|
+
headers: {}
|
1445
|
+
};
|
1446
|
+
const localVarHeaderParameter = {};
|
1447
|
+
options.headers = localVarHeaderParameter;
|
1448
|
+
return options;
|
1449
|
+
},
|
1450
|
+
/**
|
1451
|
+
* 查询策略详情
|
1452
|
+
*
|
1453
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1454
|
+
*/
|
1455
|
+
showPolicy(showPolicyRequest) {
|
1456
|
+
const options = {
|
1457
|
+
method: "GET",
|
1458
|
+
url: "/v1/cnad/policies/{policy_id}",
|
1459
|
+
contentType: "application/json",
|
1460
|
+
queryParams: {},
|
1461
|
+
pathParams: {},
|
1462
|
+
headers: {}
|
1463
|
+
};
|
1464
|
+
const localVarHeaderParameter = {};
|
1465
|
+
let policyId;
|
1466
|
+
if (showPolicyRequest !== null && showPolicyRequest !== undefined) {
|
1467
|
+
if (showPolicyRequest instanceof ShowPolicyRequest_1.ShowPolicyRequest) {
|
1468
|
+
policyId = showPolicyRequest.policyId;
|
1469
|
+
}
|
1470
|
+
else {
|
1471
|
+
policyId = showPolicyRequest['policy_id'];
|
1472
|
+
}
|
1473
|
+
}
|
1474
|
+
if (policyId === null || policyId === undefined) {
|
1475
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling showPolicy.');
|
1476
|
+
}
|
1477
|
+
options.pathParams = { 'policy_id': policyId, };
|
1478
|
+
options.headers = localVarHeaderParameter;
|
1479
|
+
return options;
|
1480
|
+
},
|
1481
|
+
/**
|
1482
|
+
* 设置告警配置
|
1483
|
+
*
|
1484
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1485
|
+
*/
|
1486
|
+
updateAlarmConfig(updateAlarmConfigRequest) {
|
1487
|
+
const options = {
|
1488
|
+
method: "POST",
|
1489
|
+
url: "/v1/cnad/alarm-config",
|
1490
|
+
contentType: "application/json",
|
1491
|
+
queryParams: {},
|
1492
|
+
pathParams: {},
|
1493
|
+
headers: {},
|
1494
|
+
data: {}
|
1495
|
+
};
|
1496
|
+
const localVarHeaderParameter = {};
|
1497
|
+
let body;
|
1498
|
+
if (updateAlarmConfigRequest !== null && updateAlarmConfigRequest !== undefined) {
|
1499
|
+
if (updateAlarmConfigRequest instanceof UpdateAlarmConfigRequest_1.UpdateAlarmConfigRequest) {
|
1500
|
+
body = updateAlarmConfigRequest.body;
|
1501
|
+
}
|
1502
|
+
else {
|
1503
|
+
body = updateAlarmConfigRequest['body'];
|
1504
|
+
}
|
1505
|
+
}
|
1506
|
+
if (body === null || body === undefined) {
|
1507
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1508
|
+
}
|
1509
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1510
|
+
options.data = body !== undefined ? body : {};
|
1511
|
+
options.headers = localVarHeaderParameter;
|
1512
|
+
return options;
|
1513
|
+
},
|
1514
|
+
/**
|
1515
|
+
* 更新域名源站配置信息
|
1516
|
+
*
|
1517
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1518
|
+
*/
|
1519
|
+
updateDomain(updateDomainRequest) {
|
1520
|
+
const options = {
|
1521
|
+
method: "PUT",
|
1522
|
+
url: "/v1/aad/protected-domains/{domain_id}",
|
1523
|
+
contentType: "application/json",
|
1524
|
+
queryParams: {},
|
1525
|
+
pathParams: {},
|
1526
|
+
headers: {},
|
1527
|
+
data: {}
|
1528
|
+
};
|
1529
|
+
const localVarHeaderParameter = {};
|
1530
|
+
let body;
|
1531
|
+
let domainId;
|
1532
|
+
if (updateDomainRequest !== null && updateDomainRequest !== undefined) {
|
1533
|
+
if (updateDomainRequest instanceof UpdateDomainRequest_1.UpdateDomainRequest) {
|
1534
|
+
domainId = updateDomainRequest.domainId;
|
1535
|
+
body = updateDomainRequest.body;
|
1536
|
+
}
|
1537
|
+
else {
|
1538
|
+
domainId = updateDomainRequest['domain_id'];
|
1539
|
+
body = updateDomainRequest['body'];
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
if (domainId === null || domainId === undefined) {
|
1543
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateDomain.');
|
1544
|
+
}
|
1545
|
+
if (body === null || body === undefined) {
|
1546
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1547
|
+
}
|
1548
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1549
|
+
options.data = body !== undefined ? body : {};
|
1550
|
+
options.pathParams = { 'domain_id': domainId, };
|
1551
|
+
options.headers = localVarHeaderParameter;
|
1552
|
+
return options;
|
1553
|
+
},
|
1554
|
+
/**
|
1555
|
+
* 修改高防实例转发配置的源站IP
|
1556
|
+
*
|
1557
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1558
|
+
*/
|
1559
|
+
updateInstanceIpRule(updateInstanceIpRuleRequest) {
|
1560
|
+
const options = {
|
1561
|
+
method: "PUT",
|
1562
|
+
url: "/v1/aad/instances/{instance_id}/{ip}/rules/{rule_id}",
|
1563
|
+
contentType: "application/json",
|
1564
|
+
queryParams: {},
|
1565
|
+
pathParams: {},
|
1566
|
+
headers: {},
|
1567
|
+
data: {}
|
1568
|
+
};
|
1569
|
+
const localVarHeaderParameter = {};
|
1570
|
+
let body;
|
1571
|
+
let instanceId;
|
1572
|
+
let ip;
|
1573
|
+
let ruleId;
|
1574
|
+
if (updateInstanceIpRuleRequest !== null && updateInstanceIpRuleRequest !== undefined) {
|
1575
|
+
if (updateInstanceIpRuleRequest instanceof UpdateInstanceIpRuleRequest_1.UpdateInstanceIpRuleRequest) {
|
1576
|
+
instanceId = updateInstanceIpRuleRequest.instanceId;
|
1577
|
+
ip = updateInstanceIpRuleRequest.ip;
|
1578
|
+
ruleId = updateInstanceIpRuleRequest.ruleId;
|
1579
|
+
body = updateInstanceIpRuleRequest.body;
|
1580
|
+
}
|
1581
|
+
else {
|
1582
|
+
instanceId = updateInstanceIpRuleRequest['instance_id'];
|
1583
|
+
ip = updateInstanceIpRuleRequest['ip'];
|
1584
|
+
ruleId = updateInstanceIpRuleRequest['rule_id'];
|
1585
|
+
body = updateInstanceIpRuleRequest['body'];
|
1586
|
+
}
|
1587
|
+
}
|
1588
|
+
if (instanceId === null || instanceId === undefined) {
|
1589
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateInstanceIpRule.');
|
1590
|
+
}
|
1591
|
+
if (ip === null || ip === undefined) {
|
1592
|
+
throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling updateInstanceIpRule.');
|
1593
|
+
}
|
1594
|
+
if (ruleId === null || ruleId === undefined) {
|
1595
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling updateInstanceIpRule.');
|
1596
|
+
}
|
1597
|
+
if (body === null || body === undefined) {
|
1598
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1599
|
+
}
|
1600
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1601
|
+
options.data = body !== undefined ? body : {};
|
1602
|
+
options.pathParams = { 'instance_id': instanceId, 'ip': ip, 'rule_id': ruleId, };
|
1603
|
+
options.headers = localVarHeaderParameter;
|
1604
|
+
return options;
|
1605
|
+
},
|
1606
|
+
/**
|
1607
|
+
* 更新防护包绑定的全量防护对象
|
1608
|
+
*
|
1609
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1610
|
+
*/
|
1611
|
+
updatePackageIp(updatePackageIpRequest) {
|
1612
|
+
const options = {
|
1613
|
+
method: "POST",
|
1614
|
+
url: "/v1/cnad/packages/{package_id}/protected-ips",
|
1615
|
+
contentType: "application/json",
|
1616
|
+
queryParams: {},
|
1617
|
+
pathParams: {},
|
1618
|
+
headers: {},
|
1619
|
+
data: {}
|
1620
|
+
};
|
1621
|
+
const localVarHeaderParameter = {};
|
1622
|
+
let body;
|
1623
|
+
let packageId;
|
1624
|
+
if (updatePackageIpRequest !== null && updatePackageIpRequest !== undefined) {
|
1625
|
+
if (updatePackageIpRequest instanceof UpdatePackageIpRequest_1.UpdatePackageIpRequest) {
|
1626
|
+
packageId = updatePackageIpRequest.packageId;
|
1627
|
+
body = updatePackageIpRequest.body;
|
1628
|
+
}
|
1629
|
+
else {
|
1630
|
+
packageId = updatePackageIpRequest['package_id'];
|
1631
|
+
body = updatePackageIpRequest['body'];
|
1632
|
+
}
|
1633
|
+
}
|
1634
|
+
if (packageId === null || packageId === undefined) {
|
1635
|
+
throw new RequiredError('packageId', 'Required parameter packageId was null or undefined when calling updatePackageIp.');
|
1636
|
+
}
|
1637
|
+
if (body === null || body === undefined) {
|
1638
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1639
|
+
}
|
1640
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1641
|
+
options.data = body !== undefined ? body : {};
|
1642
|
+
options.pathParams = { 'package_id': packageId, };
|
1643
|
+
options.headers = localVarHeaderParameter;
|
1644
|
+
return options;
|
1645
|
+
},
|
1646
|
+
/**
|
1647
|
+
* 更新防护包名字
|
1648
|
+
*
|
1649
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1650
|
+
*/
|
1651
|
+
updatePackageName(updatePackageNameRequest) {
|
1652
|
+
const options = {
|
1653
|
+
method: "PUT",
|
1654
|
+
url: "/v1/cnad/packages/{package_id}/name",
|
1655
|
+
contentType: "application/json",
|
1656
|
+
queryParams: {},
|
1657
|
+
pathParams: {},
|
1658
|
+
headers: {},
|
1659
|
+
data: {}
|
1660
|
+
};
|
1661
|
+
const localVarHeaderParameter = {};
|
1662
|
+
let body;
|
1663
|
+
let packageId;
|
1664
|
+
if (updatePackageNameRequest !== null && updatePackageNameRequest !== undefined) {
|
1665
|
+
if (updatePackageNameRequest instanceof UpdatePackageNameRequest_1.UpdatePackageNameRequest) {
|
1666
|
+
packageId = updatePackageNameRequest.packageId;
|
1667
|
+
body = updatePackageNameRequest.body;
|
1668
|
+
}
|
1669
|
+
else {
|
1670
|
+
packageId = updatePackageNameRequest['package_id'];
|
1671
|
+
body = updatePackageNameRequest['body'];
|
1672
|
+
}
|
1673
|
+
}
|
1674
|
+
if (packageId === null || packageId === undefined) {
|
1675
|
+
throw new RequiredError('packageId', 'Required parameter packageId was null or undefined when calling updatePackageName.');
|
1676
|
+
}
|
1677
|
+
if (body === null || body === undefined) {
|
1678
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1679
|
+
}
|
1680
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1681
|
+
options.data = body !== undefined ? body : {};
|
1682
|
+
options.pathParams = { 'package_id': packageId, };
|
1683
|
+
options.headers = localVarHeaderParameter;
|
1684
|
+
return options;
|
1685
|
+
},
|
1686
|
+
/**
|
1687
|
+
* 更新策略
|
1688
|
+
*
|
1689
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1690
|
+
*/
|
1691
|
+
updatePolicy(updatePolicyRequest) {
|
1692
|
+
const options = {
|
1693
|
+
method: "PUT",
|
1694
|
+
url: "/v1/cnad/policies/{policy_id}",
|
1695
|
+
contentType: "application/json",
|
1696
|
+
queryParams: {},
|
1697
|
+
pathParams: {},
|
1698
|
+
headers: {},
|
1699
|
+
data: {}
|
1700
|
+
};
|
1701
|
+
const localVarHeaderParameter = {};
|
1702
|
+
let body;
|
1703
|
+
let policyId;
|
1704
|
+
if (updatePolicyRequest !== null && updatePolicyRequest !== undefined) {
|
1705
|
+
if (updatePolicyRequest instanceof UpdatePolicyRequest_1.UpdatePolicyRequest) {
|
1706
|
+
policyId = updatePolicyRequest.policyId;
|
1707
|
+
body = updatePolicyRequest.body;
|
1708
|
+
}
|
1709
|
+
else {
|
1710
|
+
policyId = updatePolicyRequest['policy_id'];
|
1711
|
+
body = updatePolicyRequest['body'];
|
1712
|
+
}
|
1713
|
+
}
|
1714
|
+
if (policyId === null || policyId === undefined) {
|
1715
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling updatePolicy.');
|
1716
|
+
}
|
1717
|
+
if (body === null || body === undefined) {
|
1718
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1719
|
+
}
|
1720
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1721
|
+
options.data = body !== undefined ? body : {};
|
1722
|
+
options.pathParams = { 'policy_id': policyId, };
|
1723
|
+
options.headers = localVarHeaderParameter;
|
1724
|
+
return options;
|
1725
|
+
},
|
1726
|
+
/**
|
1727
|
+
* 防护对象设置标签
|
1728
|
+
*
|
1729
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1730
|
+
*/
|
1731
|
+
updateTagForProtectedIp(updateTagForProtectedIpRequest) {
|
1732
|
+
const options = {
|
1733
|
+
method: "PUT",
|
1734
|
+
url: "/v1/cnad/protected-ips/tags",
|
1735
|
+
contentType: "application/json",
|
1736
|
+
queryParams: {},
|
1737
|
+
pathParams: {},
|
1738
|
+
headers: {},
|
1739
|
+
data: {}
|
1740
|
+
};
|
1741
|
+
const localVarHeaderParameter = {};
|
1742
|
+
let body;
|
1743
|
+
if (updateTagForProtectedIpRequest !== null && updateTagForProtectedIpRequest !== undefined) {
|
1744
|
+
if (updateTagForProtectedIpRequest instanceof UpdateTagForProtectedIpRequest_1.UpdateTagForProtectedIpRequest) {
|
1745
|
+
body = updateTagForProtectedIpRequest.body;
|
1746
|
+
}
|
1747
|
+
else {
|
1748
|
+
body = updateTagForProtectedIpRequest['body'];
|
1749
|
+
}
|
1750
|
+
}
|
1751
|
+
if (body === null || body === undefined) {
|
1752
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1753
|
+
}
|
1754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1755
|
+
options.data = body !== undefined ? body : {};
|
1756
|
+
options.headers = localVarHeaderParameter;
|
1757
|
+
return options;
|
1758
|
+
},
|
1759
|
+
};
|
1760
|
+
};
|
1761
|
+
exports.ParamCreater = ParamCreater;
|
1762
|
+
function newClient(client) {
|
1763
|
+
return new AadClient(client);
|
1764
|
+
}
|
1765
|
+
/**
|
1766
|
+
*
|
1767
|
+
* @export
|
1768
|
+
* @class RequiredError
|
1769
|
+
* @extends {Error}
|
1770
|
+
*/
|
1771
|
+
class RequiredError extends Error {
|
1772
|
+
constructor(field, msg) {
|
1773
|
+
super(msg);
|
1774
|
+
this.field = field;
|
1775
|
+
this.name = "RequiredError";
|
1776
|
+
}
|
1777
|
+
}
|
1778
|
+
exports.RequiredError = RequiredError;
|
1779
|
+
//# sourceMappingURL=AadClient.js.map
|