@huaweicloud/huaweicloud-sdk-cfw 3.1.11
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/huaweicloud-sdk-cfw.d.ts +1 -0
- package/huaweicloud-sdk-cfw.js +17 -0
- package/package.json +19 -0
- package/v1/CfwClient.d.ts +1434 -0
- package/v1/CfwClient.js +3455 -0
- package/v1/CfwRegion.d.ts +16 -0
- package/v1/CfwRegion.js +47 -0
- package/v1/model/AddAddressItemsInfoDto.d.ts +12 -0
- package/v1/model/AddAddressItemsInfoDto.js +37 -0
- package/v1/model/AddAddressItemsInfoDtoAddressItems.d.ts +13 -0
- package/v1/model/AddAddressItemsInfoDtoAddressItems.js +36 -0
- package/v1/model/AddAddressItemsUsingPostRequest.d.ts +10 -0
- package/v1/model/AddAddressItemsUsingPostRequest.js +28 -0
- package/v1/model/AddAddressItemsUsingPostResponse.d.ts +7 -0
- package/v1/model/AddAddressItemsUsingPostResponse.js +31 -0
- package/v1/model/AddAddressSetDto.d.ts +23 -0
- package/v1/model/AddAddressSetDto.js +56 -0
- package/v1/model/AddAddressSetInfoUsingPostRequest.d.ts +10 -0
- package/v1/model/AddAddressSetInfoUsingPostRequest.js +28 -0
- package/v1/model/AddAddressSetInfoUsingPostResponse.d.ts +7 -0
- package/v1/model/AddAddressSetInfoUsingPostResponse.js +31 -0
- package/v1/model/AddBlackWhiteListDto.d.ts +23 -0
- package/v1/model/AddBlackWhiteListDto.js +74 -0
- package/v1/model/AddBlackWhiteListUsingPostRequest.d.ts +10 -0
- package/v1/model/AddBlackWhiteListUsingPostRequest.js +28 -0
- package/v1/model/AddBlackWhiteListUsingPostResponse.d.ts +7 -0
- package/v1/model/AddBlackWhiteListUsingPostResponse.js +31 -0
- package/v1/model/AddRuleAclDto.d.ts +21 -0
- package/v1/model/AddRuleAclDto.js +44 -0
- package/v1/model/AddRuleAclDtoRules.d.ts +83 -0
- package/v1/model/AddRuleAclDtoRules.js +189 -0
- package/v1/model/AddRuleAclUsingPostRequest.d.ts +10 -0
- package/v1/model/AddRuleAclUsingPostRequest.js +28 -0
- package/v1/model/AddRuleAclUsingPostResponse.d.ts +7 -0
- package/v1/model/AddRuleAclUsingPostResponse.js +31 -0
- package/v1/model/AddServiceItemsUsingPOSTRequestBody.d.ts +12 -0
- package/v1/model/AddServiceItemsUsingPOSTRequestBody.js +39 -0
- package/v1/model/AddServiceItemsUsingPOSTRequestBodyServiceItems.d.ts +21 -0
- package/v1/model/AddServiceItemsUsingPOSTRequestBodyServiceItems.js +66 -0
- package/v1/model/AddServiceItemsUsingPostRequest.d.ts +10 -0
- package/v1/model/AddServiceItemsUsingPostRequest.js +28 -0
- package/v1/model/AddServiceItemsUsingPostResponse.d.ts +7 -0
- package/v1/model/AddServiceItemsUsingPostResponse.js +31 -0
- package/v1/model/AddServiceSetUsingPOSTRequestBody.d.ts +11 -0
- package/v1/model/AddServiceSetUsingPOSTRequestBody.js +33 -0
- package/v1/model/AddServiceSetUsingPostRequest.d.ts +10 -0
- package/v1/model/AddServiceSetUsingPostRequest.js +28 -0
- package/v1/model/AddServiceSetUsingPostResponse.d.ts +7 -0
- package/v1/model/AddServiceSetUsingPostResponse.js +31 -0
- package/v1/model/AddressItemListResponseDTOData.d.ts +16 -0
- package/v1/model/AddressItemListResponseDTOData.js +39 -0
- package/v1/model/AddressItemListResponseDTODataRecords.d.ts +17 -0
- package/v1/model/AddressItemListResponseDTODataRecords.js +49 -0
- package/v1/model/AddressItems.d.ts +6 -0
- package/v1/model/AddressItems.js +13 -0
- package/v1/model/AddressSetDetailResponseDTOData.d.ts +21 -0
- package/v1/model/AddressSetDetailResponseDTOData.js +44 -0
- package/v1/model/AddressSetListResponseDTOData.d.ts +12 -0
- package/v1/model/AddressSetListResponseDTOData.js +25 -0
- package/v1/model/AddressSetListResponseDTODataRecords.d.ts +19 -0
- package/v1/model/AddressSetListResponseDTODataRecords.js +59 -0
- package/v1/model/BlackWhiteListResponseData.d.ts +16 -0
- package/v1/model/BlackWhiteListResponseData.js +39 -0
- package/v1/model/BlackWhiteListResponseDataRecords.d.ts +19 -0
- package/v1/model/BlackWhiteListResponseDataRecords.js +53 -0
- package/v1/model/ChangeEwProtectStatusRequest.d.ts +10 -0
- package/v1/model/ChangeEwProtectStatusRequest.js +28 -0
- package/v1/model/ChangeEwProtectStatusResponse.d.ts +11 -0
- package/v1/model/ChangeEwProtectStatusResponse.js +45 -0
- package/v1/model/ChangeIpsProtectModeUsingPostRequest.d.ts +10 -0
- package/v1/model/ChangeIpsProtectModeUsingPostRequest.js +28 -0
- package/v1/model/ChangeIpsProtectModeUsingPostResponse.d.ts +7 -0
- package/v1/model/ChangeIpsProtectModeUsingPostResponse.js +31 -0
- package/v1/model/ChangeIpsSwitchUsingPostRequest.d.ts +10 -0
- package/v1/model/ChangeIpsSwitchUsingPostRequest.js +28 -0
- package/v1/model/ChangeIpsSwitchUsingPostResponse.d.ts +11 -0
- package/v1/model/ChangeIpsSwitchUsingPostResponse.js +45 -0
- package/v1/model/ChangeProtectEipRequest.d.ts +10 -0
- package/v1/model/ChangeProtectEipRequest.js +28 -0
- package/v1/model/ChangeProtectEipResponse.d.ts +7 -0
- package/v1/model/ChangeProtectEipResponse.js +31 -0
- package/v1/model/ChangeProtectStatusRequestBody.d.ts +17 -0
- package/v1/model/ChangeProtectStatusRequestBody.js +38 -0
- package/v1/model/ClearAccessLogRuleHitCountsDto.d.ts +7 -0
- package/v1/model/ClearAccessLogRuleHitCountsDto.js +24 -0
- package/v1/model/CommonResponseDTOData.d.ts +5 -0
- package/v1/model/CommonResponseDTOData.js +13 -0
- package/v1/model/CountEipsRequest.d.ts +11 -0
- package/v1/model/CountEipsRequest.js +39 -0
- package/v1/model/CountEipsResponse.d.ts +16 -0
- package/v1/model/CountEipsResponse.js +69 -0
- package/v1/model/DeleteAclRuleCountRequest.d.ts +10 -0
- package/v1/model/DeleteAclRuleCountRequest.js +28 -0
- package/v1/model/DeleteAclRuleCountResponse.d.ts +6 -0
- package/v1/model/DeleteAclRuleCountResponse.js +31 -0
- package/v1/model/DeleteAddressItemUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteAddressItemUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteAddressItemUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteAddressItemUsingDeleteResponse.js +31 -0
- package/v1/model/DeleteAddressSetInfoUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteAddressSetInfoUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteAddressSetInfoUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteAddressSetInfoUsingDeleteResponse.js +31 -0
- package/v1/model/DeleteBlackWhiteListUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteBlackWhiteListUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteBlackWhiteListUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteBlackWhiteListUsingDeleteResponse.js +31 -0
- package/v1/model/DeleteRuleAclUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteRuleAclUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteRuleAclUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteRuleAclUsingDeleteResponse.js +31 -0
- package/v1/model/DeleteServiceItemUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteServiceItemUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteServiceItemUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteServiceItemUsingDeleteResponse.js +31 -0
- package/v1/model/DeleteServiceSetUsingDeleteRequest.d.ts +11 -0
- package/v1/model/DeleteServiceSetUsingDeleteRequest.js +39 -0
- package/v1/model/DeleteServiceSetUsingDeleteResponse.d.ts +7 -0
- package/v1/model/DeleteServiceSetUsingDeleteResponse.js +31 -0
- package/v1/model/DnsServersResponseDTO.d.ts +17 -0
- package/v1/model/DnsServersResponseDTO.js +55 -0
- package/v1/model/EipOperateProtectReq.d.ts +14 -0
- package/v1/model/EipOperateProtectReq.js +44 -0
- package/v1/model/EipOperateProtectReqIpInfos.d.ts +13 -0
- package/v1/model/EipOperateProtectReqIpInfos.js +41 -0
- package/v1/model/ErInstance.d.ts +21 -0
- package/v1/model/ErInstance.js +63 -0
- package/v1/model/EwProtectResourceInfo.d.ts +27 -0
- package/v1/model/EwProtectResourceInfo.js +96 -0
- package/v1/model/Flavor.d.ts +29 -0
- package/v1/model/Flavor.js +70 -0
- package/v1/model/GetEastWestFirewallResponseBody.d.ts +41 -0
- package/v1/model/GetEastWestFirewallResponseBody.js +113 -0
- package/v1/model/HttpQueryCfwAccessControllerLogsResponseDTOData.d.ts +10 -0
- package/v1/model/HttpQueryCfwAccessControllerLogsResponseDTOData.js +21 -0
- package/v1/model/HttpQueryCfwAccessControllerLogsResponseDTODataRecords.d.ts +41 -0
- package/v1/model/HttpQueryCfwAccessControllerLogsResponseDTODataRecords.js +133 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTOData.d.ts +10 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTOData.js +21 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +70 -0
- package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js +200 -0
- package/v1/model/HttpQueryCfwFlowLogsResponseDTOData.d.ts +10 -0
- package/v1/model/HttpQueryCfwFlowLogsResponseDTOData.js +21 -0
- package/v1/model/HttpQueryCfwFlowLogsResponseDTODataRecords.d.ts +49 -0
- package/v1/model/HttpQueryCfwFlowLogsResponseDTODataRecords.js +136 -0
- package/v1/model/IdObject.d.ts +5 -0
- package/v1/model/IdObject.js +13 -0
- package/v1/model/IpsProtectDTO.d.ts +9 -0
- package/v1/model/IpsProtectDTO.js +27 -0
- package/v1/model/IpsSwitchDTO.d.ts +21 -0
- package/v1/model/IpsSwitchDTO.js +52 -0
- package/v1/model/ListAccessControlLogsRequest.d.ts +68 -0
- package/v1/model/ListAccessControlLogsRequest.js +208 -0
- package/v1/model/ListAccessControlLogsResponse.d.ts +7 -0
- package/v1/model/ListAccessControlLogsResponse.js +31 -0
- package/v1/model/ListAddressItemsUsingGetRequest.d.ts +21 -0
- package/v1/model/ListAddressItemsUsingGetRequest.js +67 -0
- package/v1/model/ListAddressItemsUsingGetResponse.d.ts +7 -0
- package/v1/model/ListAddressItemsUsingGetResponse.js +31 -0
- package/v1/model/ListAddressSetDetailUsingGetRequest.d.ts +11 -0
- package/v1/model/ListAddressSetDetailUsingGetRequest.js +39 -0
- package/v1/model/ListAddressSetDetailUsingGetResponse.d.ts +7 -0
- package/v1/model/ListAddressSetDetailUsingGetResponse.js +31 -0
- package/v1/model/ListAddressSetListUsingGetRequest.d.ts +33 -0
- package/v1/model/ListAddressSetListUsingGetRequest.js +90 -0
- package/v1/model/ListAddressSetListUsingGetResponse.d.ts +7 -0
- package/v1/model/ListAddressSetListUsingGetResponse.js +31 -0
- package/v1/model/ListAttackLogsRequest.d.ts +93 -0
- package/v1/model/ListAttackLogsRequest.js +242 -0
- package/v1/model/ListAttackLogsResponse.d.ts +7 -0
- package/v1/model/ListAttackLogsResponse.js +31 -0
- package/v1/model/ListBlackWhiteListsUsingGetRequest.d.ts +44 -0
- package/v1/model/ListBlackWhiteListsUsingGetRequest.js +105 -0
- package/v1/model/ListBlackWhiteListsUsingGetResponse.d.ts +7 -0
- package/v1/model/ListBlackWhiteListsUsingGetResponse.js +31 -0
- package/v1/model/ListDnsServersRequest.d.ts +11 -0
- package/v1/model/ListDnsServersRequest.js +32 -0
- package/v1/model/ListDnsServersResponse.d.ts +9 -0
- package/v1/model/ListDnsServersResponse.js +35 -0
- package/v1/model/ListEastWestFirewallRequest.d.ts +11 -0
- package/v1/model/ListEastWestFirewallRequest.js +34 -0
- package/v1/model/ListEastWestFirewallResponse.d.ts +7 -0
- package/v1/model/ListEastWestFirewallResponse.js +31 -0
- package/v1/model/ListEipResourcesRequest.d.ts +52 -0
- package/v1/model/ListEipResourcesRequest.js +132 -0
- package/v1/model/ListEipResourcesResponse.d.ts +44 -0
- package/v1/model/ListEipResourcesResponse.js +142 -0
- package/v1/model/ListFirewallUsingGetRequest.d.ts +23 -0
- package/v1/model/ListFirewallUsingGetRequest.js +58 -0
- package/v1/model/ListFirewallUsingGetResponse.d.ts +79 -0
- package/v1/model/ListFirewallUsingGetResponse.js +203 -0
- package/v1/model/ListFlowLogsRequest.d.ts +76 -0
- package/v1/model/ListFlowLogsRequest.js +209 -0
- package/v1/model/ListFlowLogsResponse.d.ts +7 -0
- package/v1/model/ListFlowLogsResponse.js +31 -0
- package/v1/model/ListIpsProtectModeUsingPostRequest.d.ts +11 -0
- package/v1/model/ListIpsProtectModeUsingPostRequest.js +39 -0
- package/v1/model/ListIpsProtectModeUsingPostResponse.d.ts +10 -0
- package/v1/model/ListIpsProtectModeUsingPostResponse.js +45 -0
- package/v1/model/ListIpsSwitchStatusUsingGetRequest.d.ts +11 -0
- package/v1/model/ListIpsSwitchStatusUsingGetRequest.js +39 -0
- package/v1/model/ListIpsSwitchStatusUsingGetResponse.d.ts +16 -0
- package/v1/model/ListIpsSwitchStatusUsingGetResponse.js +69 -0
- package/v1/model/ListParseDomainDetailsRequest.d.ts +11 -0
- package/v1/model/ListParseDomainDetailsRequest.js +39 -0
- package/v1/model/ListParseDomainDetailsResponse.d.ts +6 -0
- package/v1/model/ListParseDomainDetailsResponse.js +31 -0
- package/v1/model/ListRuleAclUsingPutRequest.d.ts +14 -0
- package/v1/model/ListRuleAclUsingPutRequest.js +43 -0
- package/v1/model/ListRuleAclUsingPutResponse.d.ts +7 -0
- package/v1/model/ListRuleAclUsingPutResponse.js +31 -0
- package/v1/model/ListRuleAclsUsingGetRequest.d.ts +79 -0
- package/v1/model/ListRuleAclsUsingGetRequest.js +150 -0
- package/v1/model/ListRuleAclsUsingGetResponse.d.ts +7 -0
- package/v1/model/ListRuleAclsUsingGetResponse.js +31 -0
- package/v1/model/ListRuleHitCountDto.d.ts +7 -0
- package/v1/model/ListRuleHitCountDto.js +24 -0
- package/v1/model/ListRuleHitCountRequest.d.ts +10 -0
- package/v1/model/ListRuleHitCountRequest.js +28 -0
- package/v1/model/ListRuleHitCountResponse.d.ts +7 -0
- package/v1/model/ListRuleHitCountResponse.js +31 -0
- package/v1/model/ListServiceItemsDetailsRequest.d.ts +19 -0
- package/v1/model/ListServiceItemsDetailsRequest.js +63 -0
- package/v1/model/ListServiceItemsDetailsResponse.d.ts +7 -0
- package/v1/model/ListServiceItemsDetailsResponse.js +31 -0
- package/v1/model/ListServiceSetDetailsRequest.d.ts +11 -0
- package/v1/model/ListServiceSetDetailsRequest.js +39 -0
- package/v1/model/ListServiceSetDetailsResponse.d.ts +10 -0
- package/v1/model/ListServiceSetDetailsResponse.js +39 -0
- package/v1/model/ListServiceSetRequest.d.ts +19 -0
- package/v1/model/ListServiceSetRequest.js +63 -0
- package/v1/model/ListServiceSetResponse.d.ts +7 -0
- package/v1/model/ListServiceSetResponse.js +31 -0
- package/v1/model/ListVpcProtectsRequest.d.ts +11 -0
- package/v1/model/ListVpcProtectsRequest.js +39 -0
- package/v1/model/ListVpcProtectsResponse.d.ts +11 -0
- package/v1/model/ListVpcProtectsResponse.js +45 -0
- package/v1/model/OrderRuleAclDto.d.ts +9 -0
- package/v1/model/OrderRuleAclDto.js +27 -0
- package/v1/model/Packet.d.ts +13 -0
- package/v1/model/Packet.js +41 -0
- package/v1/model/ProtectObjectVO.d.ts +21 -0
- package/v1/model/ProtectObjectVO.js +50 -0
- package/v1/model/RuleAclListResponseDTOData.d.ts +16 -0
- package/v1/model/RuleAclListResponseDTOData.js +39 -0
- package/v1/model/RuleAclListResponseDTODataRecords.d.ts +62 -0
- package/v1/model/RuleAclListResponseDTODataRecords.js +162 -0
- package/v1/model/RuleAddressDto.d.ts +23 -0
- package/v1/model/RuleAddressDto.js +74 -0
- package/v1/model/RuleHitCountObject.d.ts +11 -0
- package/v1/model/RuleHitCountObject.js +37 -0
- package/v1/model/RuleHitCountRecords.d.ts +12 -0
- package/v1/model/RuleHitCountRecords.js +25 -0
- package/v1/model/RuleId.d.ts +5 -0
- package/v1/model/RuleId.js +13 -0
- package/v1/model/RuleIdList.d.ts +6 -0
- package/v1/model/RuleIdList.js +13 -0
- package/v1/model/RuleServiceDto.d.ts +23 -0
- package/v1/model/RuleServiceDto.js +74 -0
- package/v1/model/ServiceItemIds.d.ts +6 -0
- package/v1/model/ServiceItemIds.js +13 -0
- package/v1/model/ServiceItemListResponseDtoData.d.ts +12 -0
- package/v1/model/ServiceItemListResponseDtoData.js +25 -0
- package/v1/model/ServiceItemListResponseDtoDataRecords.d.ts +21 -0
- package/v1/model/ServiceItemListResponseDtoDataRecords.js +63 -0
- package/v1/model/ServiceSet.d.ts +17 -0
- package/v1/model/ServiceSet.js +49 -0
- package/v1/model/ServiceSetRecords.d.ts +12 -0
- package/v1/model/ServiceSetRecords.js +25 -0
- package/v1/model/SubnetInfo.d.ts +23 -0
- package/v1/model/SubnetInfo.js +69 -0
- package/v1/model/SuccessRspData.d.ts +5 -0
- package/v1/model/SuccessRspData.js +13 -0
- package/v1/model/Tag.d.ts +7 -0
- package/v1/model/Tag.js +17 -0
- package/v1/model/UpdateAddressSetDto.d.ts +7 -0
- package/v1/model/UpdateAddressSetDto.js +17 -0
- package/v1/model/UpdateAddressSetInfoUsingPutRequest.d.ts +14 -0
- package/v1/model/UpdateAddressSetInfoUsingPutRequest.js +43 -0
- package/v1/model/UpdateAddressSetInfoUsingPutResponse.d.ts +7 -0
- package/v1/model/UpdateAddressSetInfoUsingPutResponse.js +31 -0
- package/v1/model/UpdateBlackWhiteListDto.d.ts +15 -0
- package/v1/model/UpdateBlackWhiteListDto.js +39 -0
- package/v1/model/UpdateBlackWhiteListUsingPutRequest.d.ts +14 -0
- package/v1/model/UpdateBlackWhiteListUsingPutRequest.js +43 -0
- package/v1/model/UpdateBlackWhiteListUsingPutResponse.d.ts +7 -0
- package/v1/model/UpdateBlackWhiteListUsingPutResponse.js +31 -0
- package/v1/model/UpdateDnsServersRequest.d.ts +10 -0
- package/v1/model/UpdateDnsServersRequest.js +28 -0
- package/v1/model/UpdateDnsServersRequestBody.d.ts +8 -0
- package/v1/model/UpdateDnsServersRequestBody.js +23 -0
- package/v1/model/UpdateDnsServersRequestBodyDnsServer.d.ts +15 -0
- package/v1/model/UpdateDnsServersRequestBodyDnsServer.js +51 -0
- package/v1/model/UpdateDnsServersResponse.d.ts +6 -0
- package/v1/model/UpdateDnsServersResponse.js +31 -0
- package/v1/model/UpdateRuleAclDto.d.ts +82 -0
- package/v1/model/UpdateRuleAclDto.js +175 -0
- package/v1/model/UpdateRuleAclUsingPutRequest.d.ts +14 -0
- package/v1/model/UpdateRuleAclUsingPutRequest.js +43 -0
- package/v1/model/UpdateRuleAclUsingPutResponse.d.ts +7 -0
- package/v1/model/UpdateRuleAclUsingPutResponse.js +31 -0
- package/v1/model/UpdateServiceSetUsingPUTRequestBody.d.ts +7 -0
- package/v1/model/UpdateServiceSetUsingPUTRequestBody.js +17 -0
- package/v1/model/UpdateServiceSetUsingPutRequest.d.ts +14 -0
- package/v1/model/UpdateServiceSetUsingPutRequest.js +43 -0
- package/v1/model/UpdateServiceSetUsingPutResponse.d.ts +7 -0
- package/v1/model/UpdateServiceSetUsingPutResponse.js +31 -0
- package/v1/model/VPCProtectsVo.d.ts +26 -0
- package/v1/model/VPCProtectsVo.js +83 -0
- package/v1/model/VpcAttachmentDetail.d.ts +42 -0
- package/v1/model/VpcAttachmentDetail.js +127 -0
- package/v1/model/VpcDetail.d.ts +11 -0
- package/v1/model/VpcDetail.js +25 -0
- package/v1/public-api.d.ts +155 -0
- package/v1/public-api.js +171 -0
package/v1/CfwClient.js
ADDED
@@ -0,0 +1,3455 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.RequiredError = exports.ParamCreater = exports.CfwClient = void 0;
|
19
|
+
var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
20
|
+
var AddAddressItemsUsingPostRequest_1 = require("./model/AddAddressItemsUsingPostRequest");
|
21
|
+
var AddAddressSetInfoUsingPostRequest_1 = require("./model/AddAddressSetInfoUsingPostRequest");
|
22
|
+
var AddBlackWhiteListUsingPostRequest_1 = require("./model/AddBlackWhiteListUsingPostRequest");
|
23
|
+
var AddRuleAclUsingPostRequest_1 = require("./model/AddRuleAclUsingPostRequest");
|
24
|
+
var AddServiceItemsUsingPostRequest_1 = require("./model/AddServiceItemsUsingPostRequest");
|
25
|
+
var AddServiceSetUsingPostRequest_1 = require("./model/AddServiceSetUsingPostRequest");
|
26
|
+
var ChangeEwProtectStatusRequest_1 = require("./model/ChangeEwProtectStatusRequest");
|
27
|
+
var ChangeIpsProtectModeUsingPostRequest_1 = require("./model/ChangeIpsProtectModeUsingPostRequest");
|
28
|
+
var ChangeIpsSwitchUsingPostRequest_1 = require("./model/ChangeIpsSwitchUsingPostRequest");
|
29
|
+
var ChangeProtectEipRequest_1 = require("./model/ChangeProtectEipRequest");
|
30
|
+
var CountEipsRequest_1 = require("./model/CountEipsRequest");
|
31
|
+
var DeleteAclRuleCountRequest_1 = require("./model/DeleteAclRuleCountRequest");
|
32
|
+
var DeleteAddressItemUsingDeleteRequest_1 = require("./model/DeleteAddressItemUsingDeleteRequest");
|
33
|
+
var DeleteAddressSetInfoUsingDeleteRequest_1 = require("./model/DeleteAddressSetInfoUsingDeleteRequest");
|
34
|
+
var DeleteBlackWhiteListUsingDeleteRequest_1 = require("./model/DeleteBlackWhiteListUsingDeleteRequest");
|
35
|
+
var DeleteRuleAclUsingDeleteRequest_1 = require("./model/DeleteRuleAclUsingDeleteRequest");
|
36
|
+
var DeleteServiceItemUsingDeleteRequest_1 = require("./model/DeleteServiceItemUsingDeleteRequest");
|
37
|
+
var DeleteServiceSetUsingDeleteRequest_1 = require("./model/DeleteServiceSetUsingDeleteRequest");
|
38
|
+
var ListAccessControlLogsRequest_1 = require("./model/ListAccessControlLogsRequest");
|
39
|
+
var ListAddressItemsUsingGetRequest_1 = require("./model/ListAddressItemsUsingGetRequest");
|
40
|
+
var ListAddressSetDetailUsingGetRequest_1 = require("./model/ListAddressSetDetailUsingGetRequest");
|
41
|
+
var ListAddressSetListUsingGetRequest_1 = require("./model/ListAddressSetListUsingGetRequest");
|
42
|
+
var ListAttackLogsRequest_1 = require("./model/ListAttackLogsRequest");
|
43
|
+
var ListBlackWhiteListsUsingGetRequest_1 = require("./model/ListBlackWhiteListsUsingGetRequest");
|
44
|
+
var ListDnsServersRequest_1 = require("./model/ListDnsServersRequest");
|
45
|
+
var ListEastWestFirewallRequest_1 = require("./model/ListEastWestFirewallRequest");
|
46
|
+
var ListEipResourcesRequest_1 = require("./model/ListEipResourcesRequest");
|
47
|
+
var ListFirewallUsingGetRequest_1 = require("./model/ListFirewallUsingGetRequest");
|
48
|
+
var ListFlowLogsRequest_1 = require("./model/ListFlowLogsRequest");
|
49
|
+
var ListIpsProtectModeUsingPostRequest_1 = require("./model/ListIpsProtectModeUsingPostRequest");
|
50
|
+
var ListIpsSwitchStatusUsingGetRequest_1 = require("./model/ListIpsSwitchStatusUsingGetRequest");
|
51
|
+
var ListParseDomainDetailsRequest_1 = require("./model/ListParseDomainDetailsRequest");
|
52
|
+
var ListRuleAclUsingPutRequest_1 = require("./model/ListRuleAclUsingPutRequest");
|
53
|
+
var ListRuleAclsUsingGetRequest_1 = require("./model/ListRuleAclsUsingGetRequest");
|
54
|
+
var ListRuleHitCountRequest_1 = require("./model/ListRuleHitCountRequest");
|
55
|
+
var ListServiceItemsDetailsRequest_1 = require("./model/ListServiceItemsDetailsRequest");
|
56
|
+
var ListServiceSetDetailsRequest_1 = require("./model/ListServiceSetDetailsRequest");
|
57
|
+
var ListServiceSetRequest_1 = require("./model/ListServiceSetRequest");
|
58
|
+
var ListVpcProtectsRequest_1 = require("./model/ListVpcProtectsRequest");
|
59
|
+
var UpdateAddressSetInfoUsingPutRequest_1 = require("./model/UpdateAddressSetInfoUsingPutRequest");
|
60
|
+
var UpdateBlackWhiteListUsingPutRequest_1 = require("./model/UpdateBlackWhiteListUsingPutRequest");
|
61
|
+
var UpdateDnsServersRequest_1 = require("./model/UpdateDnsServersRequest");
|
62
|
+
var UpdateRuleAclUsingPutRequest_1 = require("./model/UpdateRuleAclUsingPutRequest");
|
63
|
+
var UpdateServiceSetUsingPutRequest_1 = require("./model/UpdateServiceSetUsingPutRequest");
|
64
|
+
var CfwClient = /** @class */ (function () {
|
65
|
+
function CfwClient(client) {
|
66
|
+
this.hcClient = client;
|
67
|
+
}
|
68
|
+
CfwClient.newBuilder = function () {
|
69
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
70
|
+
};
|
71
|
+
CfwClient.prototype.getPath = function () {
|
72
|
+
return __dirname;
|
73
|
+
};
|
74
|
+
/**
|
75
|
+
* 添加地址组成员
|
76
|
+
*
|
77
|
+
* 详细说明请参考华为云API Explorer。
|
78
|
+
* Please refer to Huawei cloud API Explorer for details.
|
79
|
+
*
|
80
|
+
* @summary 添加地址组成员
|
81
|
+
* @param {string} projectId 租户项目id
|
82
|
+
* @param {AddAddressItemsInfoDto} addAddressItemsUsingPOSTRequestBody 添加地址组成员请求体
|
83
|
+
* @param {*} [options] Override http request option.
|
84
|
+
* @throws {RequiredError}
|
85
|
+
*/
|
86
|
+
CfwClient.prototype.addAddressItemsUsingPost = function (addAddressItemsUsingPostRequest) {
|
87
|
+
var options = (0, exports.ParamCreater)().addAddressItemsUsingPost(addAddressItemsUsingPostRequest);
|
88
|
+
options['responseHeaders'] = [''];
|
89
|
+
// @ts-ignore
|
90
|
+
return this.hcClient.sendRequest(options);
|
91
|
+
};
|
92
|
+
/**
|
93
|
+
* 添加地址组
|
94
|
+
*
|
95
|
+
* 详细说明请参考华为云API Explorer。
|
96
|
+
* Please refer to Huawei cloud API Explorer for details.
|
97
|
+
*
|
98
|
+
* @summary 添加地址组
|
99
|
+
* @param {string} projectId 租户项目id
|
100
|
+
* @param {AddAddressSetDto} addAddressSetInfoUsingPOSTRequestBody 添加地址组请求体
|
101
|
+
* @param {*} [options] Override http request option.
|
102
|
+
* @throws {RequiredError}
|
103
|
+
*/
|
104
|
+
CfwClient.prototype.addAddressSetInfoUsingPost = function (addAddressSetInfoUsingPostRequest) {
|
105
|
+
var options = (0, exports.ParamCreater)().addAddressSetInfoUsingPost(addAddressSetInfoUsingPostRequest);
|
106
|
+
options['responseHeaders'] = [''];
|
107
|
+
// @ts-ignore
|
108
|
+
return this.hcClient.sendRequest(options);
|
109
|
+
};
|
110
|
+
/**
|
111
|
+
* 创建黑白名单规则
|
112
|
+
*
|
113
|
+
* 详细说明请参考华为云API Explorer。
|
114
|
+
* Please refer to Huawei cloud API Explorer for details.
|
115
|
+
*
|
116
|
+
* @summary 创建黑白名单规则
|
117
|
+
* @param {string} projectId 租户项目id
|
118
|
+
* @param {AddBlackWhiteListDto} addBlackWhiteListUsingPOSTRequestBody 添加黑白名单请求体
|
119
|
+
* @param {*} [options] Override http request option.
|
120
|
+
* @throws {RequiredError}
|
121
|
+
*/
|
122
|
+
CfwClient.prototype.addBlackWhiteListUsingPost = function (addBlackWhiteListUsingPostRequest) {
|
123
|
+
var options = (0, exports.ParamCreater)().addBlackWhiteListUsingPost(addBlackWhiteListUsingPostRequest);
|
124
|
+
options['responseHeaders'] = [''];
|
125
|
+
// @ts-ignore
|
126
|
+
return this.hcClient.sendRequest(options);
|
127
|
+
};
|
128
|
+
/**
|
129
|
+
* 批量添加服务组成员
|
130
|
+
*
|
131
|
+
* 详细说明请参考华为云API Explorer。
|
132
|
+
* Please refer to Huawei cloud API Explorer for details.
|
133
|
+
*
|
134
|
+
* @summary 新建服务成员
|
135
|
+
* @param {string} projectId 租户项目id
|
136
|
+
* @param {AddServiceItemsUsingPOSTRequestBody} addServiceItemsUsingPOSTRequestBody 创建服务组成员请求体
|
137
|
+
* @param {*} [options] Override http request option.
|
138
|
+
* @throws {RequiredError}
|
139
|
+
*/
|
140
|
+
CfwClient.prototype.addServiceItemsUsingPost = function (addServiceItemsUsingPostRequest) {
|
141
|
+
var options = (0, exports.ParamCreater)().addServiceItemsUsingPost(addServiceItemsUsingPostRequest);
|
142
|
+
options['responseHeaders'] = [''];
|
143
|
+
// @ts-ignore
|
144
|
+
return this.hcClient.sendRequest(options);
|
145
|
+
};
|
146
|
+
/**
|
147
|
+
* 创建服务组
|
148
|
+
*
|
149
|
+
* 详细说明请参考华为云API Explorer。
|
150
|
+
* Please refer to Huawei cloud API Explorer for details.
|
151
|
+
*
|
152
|
+
* @summary 新建服务组
|
153
|
+
* @param {string} projectId 租户项目id
|
154
|
+
* @param {AddServiceSetUsingPOSTRequestBody} addServiceSetUsingPOSTRequestBody 创建服务组请求体
|
155
|
+
* @param {*} [options] Override http request option.
|
156
|
+
* @throws {RequiredError}
|
157
|
+
*/
|
158
|
+
CfwClient.prototype.addServiceSetUsingPost = function (addServiceSetUsingPostRequest) {
|
159
|
+
var options = (0, exports.ParamCreater)().addServiceSetUsingPost(addServiceSetUsingPostRequest);
|
160
|
+
options['responseHeaders'] = [''];
|
161
|
+
// @ts-ignore
|
162
|
+
return this.hcClient.sendRequest(options);
|
163
|
+
};
|
164
|
+
/**
|
165
|
+
* 东西向防护资源防护开启/关闭
|
166
|
+
*
|
167
|
+
* 详细说明请参考华为云API Explorer。
|
168
|
+
* Please refer to Huawei cloud API Explorer for details.
|
169
|
+
*
|
170
|
+
* @summary 修改东西向防火墙防护状态
|
171
|
+
* @param {string} projectId 租户项目id
|
172
|
+
* @param {ChangeProtectStatusRequestBody} changeEwProtectStatusRequestBody 修改东西向防护状态请求体
|
173
|
+
* @param {*} [options] Override http request option.
|
174
|
+
* @throws {RequiredError}
|
175
|
+
*/
|
176
|
+
CfwClient.prototype.changeEwProtectStatus = function (changeEwProtectStatusRequest) {
|
177
|
+
var options = (0, exports.ParamCreater)().changeEwProtectStatus(changeEwProtectStatusRequest);
|
178
|
+
options['responseHeaders'] = [''];
|
179
|
+
// @ts-ignore
|
180
|
+
return this.hcClient.sendRequest(options);
|
181
|
+
};
|
182
|
+
/**
|
183
|
+
* 切换防护模式
|
184
|
+
*
|
185
|
+
* 详细说明请参考华为云API Explorer。
|
186
|
+
* Please refer to Huawei cloud API Explorer for details.
|
187
|
+
*
|
188
|
+
* @summary 切换防护模式
|
189
|
+
* @param {string} projectId 租户项目id
|
190
|
+
* @param {IpsProtectDTO} changeIpsProtectModeUsingPOSTRequestBody ChangeIpsProtectModeUsingPOSTRequestBody
|
191
|
+
* @param {*} [options] Override http request option.
|
192
|
+
* @throws {RequiredError}
|
193
|
+
*/
|
194
|
+
CfwClient.prototype.changeIpsProtectModeUsingPost = function (changeIpsProtectModeUsingPostRequest) {
|
195
|
+
var options = (0, exports.ParamCreater)().changeIpsProtectModeUsingPost(changeIpsProtectModeUsingPostRequest);
|
196
|
+
options['responseHeaders'] = [''];
|
197
|
+
// @ts-ignore
|
198
|
+
return this.hcClient.sendRequest(options);
|
199
|
+
};
|
200
|
+
/**
|
201
|
+
* 清除规则击中次数
|
202
|
+
*
|
203
|
+
* 详细说明请参考华为云API Explorer。
|
204
|
+
* Please refer to Huawei cloud API Explorer for details.
|
205
|
+
*
|
206
|
+
* @summary 删除规则击中次数
|
207
|
+
* @param {string} projectId project id
|
208
|
+
* @param {ClearAccessLogRuleHitCountsDto} deleteAclRuleCountRequestBody clear access log rule hit counts dto
|
209
|
+
* @param {*} [options] Override http request option.
|
210
|
+
* @throws {RequiredError}
|
211
|
+
*/
|
212
|
+
CfwClient.prototype.deleteAclRuleCount = function (deleteAclRuleCountRequest) {
|
213
|
+
var options = (0, exports.ParamCreater)().deleteAclRuleCount(deleteAclRuleCountRequest);
|
214
|
+
options['responseHeaders'] = [''];
|
215
|
+
// @ts-ignore
|
216
|
+
return this.hcClient.sendRequest(options);
|
217
|
+
};
|
218
|
+
/**
|
219
|
+
* 删除地址组成员
|
220
|
+
*
|
221
|
+
* 详细说明请参考华为云API Explorer。
|
222
|
+
* Please refer to Huawei cloud API Explorer for details.
|
223
|
+
*
|
224
|
+
* @summary 删除地址组成员
|
225
|
+
* @param {string} itemId 地址组成员id
|
226
|
+
* @param {string} projectId 租户项目id
|
227
|
+
* @param {*} [options] Override http request option.
|
228
|
+
* @throws {RequiredError}
|
229
|
+
*/
|
230
|
+
CfwClient.prototype.deleteAddressItemUsingDelete = function (deleteAddressItemUsingDeleteRequest) {
|
231
|
+
var options = (0, exports.ParamCreater)().deleteAddressItemUsingDelete(deleteAddressItemUsingDeleteRequest);
|
232
|
+
options['responseHeaders'] = [''];
|
233
|
+
// @ts-ignore
|
234
|
+
return this.hcClient.sendRequest(options);
|
235
|
+
};
|
236
|
+
/**
|
237
|
+
* 删除地址组
|
238
|
+
*
|
239
|
+
* 详细说明请参考华为云API Explorer。
|
240
|
+
* Please refer to Huawei cloud API Explorer for details.
|
241
|
+
*
|
242
|
+
* @summary 删除地址组
|
243
|
+
* @param {string} projectId 租户项目id
|
244
|
+
* @param {string} setId 地址组id
|
245
|
+
* @param {*} [options] Override http request option.
|
246
|
+
* @throws {RequiredError}
|
247
|
+
*/
|
248
|
+
CfwClient.prototype.deleteAddressSetInfoUsingDelete = function (deleteAddressSetInfoUsingDeleteRequest) {
|
249
|
+
var options = (0, exports.ParamCreater)().deleteAddressSetInfoUsingDelete(deleteAddressSetInfoUsingDeleteRequest);
|
250
|
+
options['responseHeaders'] = [''];
|
251
|
+
// @ts-ignore
|
252
|
+
return this.hcClient.sendRequest(options);
|
253
|
+
};
|
254
|
+
/**
|
255
|
+
* 删除黑白名单规则
|
256
|
+
*
|
257
|
+
* 详细说明请参考华为云API Explorer。
|
258
|
+
* Please refer to Huawei cloud API Explorer for details.
|
259
|
+
*
|
260
|
+
* @summary 删除黑白名单规则
|
261
|
+
* @param {string} projectId 租户项目id
|
262
|
+
* @param {string} listId 黑白名单id
|
263
|
+
* @param {*} [options] Override http request option.
|
264
|
+
* @throws {RequiredError}
|
265
|
+
*/
|
266
|
+
CfwClient.prototype.deleteBlackWhiteListUsingDelete = function (deleteBlackWhiteListUsingDeleteRequest) {
|
267
|
+
var options = (0, exports.ParamCreater)().deleteBlackWhiteListUsingDelete(deleteBlackWhiteListUsingDeleteRequest);
|
268
|
+
options['responseHeaders'] = [''];
|
269
|
+
// @ts-ignore
|
270
|
+
return this.hcClient.sendRequest(options);
|
271
|
+
};
|
272
|
+
/**
|
273
|
+
* 删除服务组成员
|
274
|
+
*
|
275
|
+
* 详细说明请参考华为云API Explorer。
|
276
|
+
* Please refer to Huawei cloud API Explorer for details.
|
277
|
+
*
|
278
|
+
* @summary 删除服务成员
|
279
|
+
* @param {string} projectId 租户项目id
|
280
|
+
* @param {string} itemId 服务组成员id
|
281
|
+
* @param {*} [options] Override http request option.
|
282
|
+
* @throws {RequiredError}
|
283
|
+
*/
|
284
|
+
CfwClient.prototype.deleteServiceItemUsingDelete = function (deleteServiceItemUsingDeleteRequest) {
|
285
|
+
var options = (0, exports.ParamCreater)().deleteServiceItemUsingDelete(deleteServiceItemUsingDeleteRequest);
|
286
|
+
options['responseHeaders'] = [''];
|
287
|
+
// @ts-ignore
|
288
|
+
return this.hcClient.sendRequest(options);
|
289
|
+
};
|
290
|
+
/**
|
291
|
+
* 删除服务组
|
292
|
+
*
|
293
|
+
* 详细说明请参考华为云API Explorer。
|
294
|
+
* Please refer to Huawei cloud API Explorer for details.
|
295
|
+
*
|
296
|
+
* @summary 删除服务组
|
297
|
+
* @param {string} projectId 租户项目id
|
298
|
+
* @param {string} setId 服务集合id
|
299
|
+
* @param {*} [options] Override http request option.
|
300
|
+
* @throws {RequiredError}
|
301
|
+
*/
|
302
|
+
CfwClient.prototype.deleteServiceSetUsingDelete = function (deleteServiceSetUsingDeleteRequest) {
|
303
|
+
var options = (0, exports.ParamCreater)().deleteServiceSetUsingDelete(deleteServiceSetUsingDeleteRequest);
|
304
|
+
options['responseHeaders'] = [''];
|
305
|
+
// @ts-ignore
|
306
|
+
return this.hcClient.sendRequest(options);
|
307
|
+
};
|
308
|
+
/**
|
309
|
+
* 查询访问控制日志
|
310
|
+
*
|
311
|
+
* 详细说明请参考华为云API Explorer。
|
312
|
+
* Please refer to Huawei cloud API Explorer for details.
|
313
|
+
*
|
314
|
+
* @summary 查询访问控制日志
|
315
|
+
* @param {string} projectId 租户项目id
|
316
|
+
* @param {string} fwInstanceId 防火墙实例ID
|
317
|
+
* @param {number} startTime 开始时间
|
318
|
+
* @param {number} endTime 结束时间
|
319
|
+
* @param {number} limit 每页显示个数
|
320
|
+
* @param {string} [ruleId] 规则ID
|
321
|
+
* @param {string} [srcIp] 源IP
|
322
|
+
* @param {number} [srcPort] 源端口
|
323
|
+
* @param {string} [dstIp] 目的IP
|
324
|
+
* @param {number} [dstPort] 目的端口
|
325
|
+
* @param {string} [protocol] 协议
|
326
|
+
* @param {string} [app] 应用协议
|
327
|
+
* @param {string} [logId] 文档ID,第一页为空,其他页不为空
|
328
|
+
* @param {number} [nextDate] 日期,第一页为空,其他页不为空
|
329
|
+
* @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
330
|
+
* @param {'internet' | 'nat' | 'vpc'} [logType] 日志类型
|
331
|
+
* @param {*} [options] Override http request option.
|
332
|
+
* @throws {RequiredError}
|
333
|
+
*/
|
334
|
+
CfwClient.prototype.listAccessControlLogs = function (listAccessControlLogsRequest) {
|
335
|
+
var options = (0, exports.ParamCreater)().listAccessControlLogs(listAccessControlLogsRequest);
|
336
|
+
options['responseHeaders'] = [''];
|
337
|
+
// @ts-ignore
|
338
|
+
return this.hcClient.sendRequest(options);
|
339
|
+
};
|
340
|
+
/**
|
341
|
+
* 查询地址组成员
|
342
|
+
*
|
343
|
+
* 详细说明请参考华为云API Explorer。
|
344
|
+
* Please refer to Huawei cloud API Explorer for details.
|
345
|
+
*
|
346
|
+
* @summary 查询地址组成员
|
347
|
+
* @param {string} projectId 租户项目id
|
348
|
+
* @param {string} setId 地址组id
|
349
|
+
* @param {number} limit 每页显示个数
|
350
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
351
|
+
* @param {string} [keyWord] 关键字
|
352
|
+
* @param {string} [address] ip地址
|
353
|
+
* @param {*} [options] Override http request option.
|
354
|
+
* @throws {RequiredError}
|
355
|
+
*/
|
356
|
+
CfwClient.prototype.listAddressItemsUsingGet = function (listAddressItemsUsingGetRequest) {
|
357
|
+
var options = (0, exports.ParamCreater)().listAddressItemsUsingGet(listAddressItemsUsingGetRequest);
|
358
|
+
options['responseHeaders'] = [''];
|
359
|
+
// @ts-ignore
|
360
|
+
return this.hcClient.sendRequest(options);
|
361
|
+
};
|
362
|
+
/**
|
363
|
+
* 查询地址组详细
|
364
|
+
*
|
365
|
+
* 详细说明请参考华为云API Explorer。
|
366
|
+
* Please refer to Huawei cloud API Explorer for details.
|
367
|
+
*
|
368
|
+
* @summary 查询地址组详细信息
|
369
|
+
* @param {string} projectId 租户项目id
|
370
|
+
* @param {string} setId 地址组id
|
371
|
+
* @param {*} [options] Override http request option.
|
372
|
+
* @throws {RequiredError}
|
373
|
+
*/
|
374
|
+
CfwClient.prototype.listAddressSetDetailUsingGet = function (listAddressSetDetailUsingGetRequest) {
|
375
|
+
var options = (0, exports.ParamCreater)().listAddressSetDetailUsingGet(listAddressSetDetailUsingGetRequest);
|
376
|
+
options['responseHeaders'] = [''];
|
377
|
+
// @ts-ignore
|
378
|
+
return this.hcClient.sendRequest(options);
|
379
|
+
};
|
380
|
+
/**
|
381
|
+
* 查询地址组列表
|
382
|
+
*
|
383
|
+
* 详细说明请参考华为云API Explorer。
|
384
|
+
* Please refer to Huawei cloud API Explorer for details.
|
385
|
+
*
|
386
|
+
* @summary 查询地址组列表
|
387
|
+
* @param {string} projectId 租户项目id
|
388
|
+
* @param {string} objectId 防护对象id
|
389
|
+
* @param {number} limit 每页显示个数
|
390
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
391
|
+
* @param {string} [keyWord] 关键字
|
392
|
+
* @param {string} [address] ip地址
|
393
|
+
* @param {0 | 1} [addressType] 地址类型0 ipv4,1 ipv6
|
394
|
+
* @param {*} [options] Override http request option.
|
395
|
+
* @throws {RequiredError}
|
396
|
+
*/
|
397
|
+
CfwClient.prototype.listAddressSetListUsingGet = function (listAddressSetListUsingGetRequest) {
|
398
|
+
var options = (0, exports.ParamCreater)().listAddressSetListUsingGet(listAddressSetListUsingGetRequest);
|
399
|
+
options['responseHeaders'] = [''];
|
400
|
+
// @ts-ignore
|
401
|
+
return this.hcClient.sendRequest(options);
|
402
|
+
};
|
403
|
+
/**
|
404
|
+
* 查询攻击日志
|
405
|
+
*
|
406
|
+
* 详细说明请参考华为云API Explorer。
|
407
|
+
* Please refer to Huawei cloud API Explorer for details.
|
408
|
+
*
|
409
|
+
* @summary 查询攻击日志
|
410
|
+
* @param {string} projectId 租户项目id
|
411
|
+
* @param {number} startTime 开始时间
|
412
|
+
* @param {number} endTime 结束时间
|
413
|
+
* @param {number} limit 每页显示个数
|
414
|
+
* @param {string} [srcIp] 源IP
|
415
|
+
* @param {number} [srcPort] 源端口号
|
416
|
+
* @param {string} [dstIp] 目的IP
|
417
|
+
* @param {number} [dstPort] 目的端口号
|
418
|
+
* @param {'6' | '17' | '1' | '58'} [protocol] 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空
|
419
|
+
* @param {string} [app] 应用协议
|
420
|
+
* @param {string} [logId] 日志ID,当是第一页时为空,不是第一页时不为空
|
421
|
+
* @param {number} [nextDate] 下个日期,当是第一页时为空,不是第一页时不为空
|
422
|
+
* @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
423
|
+
* @param {string} [fwInstanceId] 防火墙实例ID
|
424
|
+
* @param {'0' | '1'} [action] 动作0:permit,1:deny
|
425
|
+
* @param {'0' | '1'} [direction] 方向0:外到内1:内到外
|
426
|
+
* @param {string} [attackType] 入侵事件类型
|
427
|
+
* @param {string} [attackRule] 入侵事件规则
|
428
|
+
* @param {string} [level] 威胁等级
|
429
|
+
* @param {string} [source] 判断来源
|
430
|
+
* @param {*} [options] Override http request option.
|
431
|
+
* @throws {RequiredError}
|
432
|
+
*/
|
433
|
+
CfwClient.prototype.listAttackLogs = function (listAttackLogsRequest) {
|
434
|
+
var options = (0, exports.ParamCreater)().listAttackLogs(listAttackLogsRequest);
|
435
|
+
options['responseHeaders'] = [''];
|
436
|
+
// @ts-ignore
|
437
|
+
return this.hcClient.sendRequest(options);
|
438
|
+
};
|
439
|
+
/**
|
440
|
+
* 查询黑白名单列表
|
441
|
+
*
|
442
|
+
* 详细说明请参考华为云API Explorer。
|
443
|
+
* Please refer to Huawei cloud API Explorer for details.
|
444
|
+
*
|
445
|
+
* @summary 查询黑白名单列表
|
446
|
+
* @param {string} projectId 租户项目id
|
447
|
+
* @param {string} objectId 防护对象id
|
448
|
+
* @param {4 | 5} listType 黑白名单类型4:黑名单,5:白名单
|
449
|
+
* @param {number} limit 每页显示个数
|
450
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
451
|
+
* @param {0 | 1 | 2} [addressType] IP地址类型0:ipv4,1:ipv6,2:domain
|
452
|
+
* @param {string} [address] ip地址
|
453
|
+
* @param {string} [port] 端口
|
454
|
+
* @param {*} [options] Override http request option.
|
455
|
+
* @throws {RequiredError}
|
456
|
+
*/
|
457
|
+
CfwClient.prototype.listBlackWhiteListsUsingGet = function (listBlackWhiteListsUsingGetRequest) {
|
458
|
+
var options = (0, exports.ParamCreater)().listBlackWhiteListsUsingGet(listBlackWhiteListsUsingGetRequest);
|
459
|
+
options['responseHeaders'] = [''];
|
460
|
+
// @ts-ignore
|
461
|
+
return this.hcClient.sendRequest(options);
|
462
|
+
};
|
463
|
+
/**
|
464
|
+
* 查询dns服务器列表
|
465
|
+
*
|
466
|
+
* 详细说明请参考华为云API Explorer。
|
467
|
+
* Please refer to Huawei cloud API Explorer for details.
|
468
|
+
*
|
469
|
+
* @summary 查询dns服务器列表
|
470
|
+
* @param {string} projectId 租户项目id
|
471
|
+
* @param {number} [limit] 每页显示个数
|
472
|
+
* @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
473
|
+
* @param {*} [options] Override http request option.
|
474
|
+
* @throws {RequiredError}
|
475
|
+
*/
|
476
|
+
CfwClient.prototype.listDnsServers = function (listDnsServersRequest) {
|
477
|
+
var options = (0, exports.ParamCreater)().listDnsServers(listDnsServersRequest);
|
478
|
+
options['responseHeaders'] = [''];
|
479
|
+
// @ts-ignore
|
480
|
+
return this.hcClient.sendRequest(options);
|
481
|
+
};
|
482
|
+
/**
|
483
|
+
* 查询东西向防火墙信息
|
484
|
+
*
|
485
|
+
* 详细说明请参考华为云API Explorer。
|
486
|
+
* Please refer to Huawei cloud API Explorer for details.
|
487
|
+
*
|
488
|
+
* @summary 获取东西向防火墙信息
|
489
|
+
* @param {string} projectId 租户项目id
|
490
|
+
* @param {number} limit 每页显示个数
|
491
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
492
|
+
* @param {*} [options] Override http request option.
|
493
|
+
* @throws {RequiredError}
|
494
|
+
*/
|
495
|
+
CfwClient.prototype.listEastWestFirewall = function (listEastWestFirewallRequest) {
|
496
|
+
var options = (0, exports.ParamCreater)().listEastWestFirewall(listEastWestFirewallRequest);
|
497
|
+
options['responseHeaders'] = [''];
|
498
|
+
// @ts-ignore
|
499
|
+
return this.hcClient.sendRequest(options);
|
500
|
+
};
|
501
|
+
/**
|
502
|
+
* 查询防火墙实例
|
503
|
+
*
|
504
|
+
* 详细说明请参考华为云API Explorer。
|
505
|
+
* Please refer to Huawei cloud API Explorer for details.
|
506
|
+
*
|
507
|
+
* @summary 查询防火墙实例
|
508
|
+
* @param {string} projectId 租户项目id
|
509
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
510
|
+
* @param {number} limit 每页显示个数
|
511
|
+
* @param {0 | 1} serviceType 服务类型 0 南北向防火墙 1 东西向防火墙
|
512
|
+
* @param {*} [options] Override http request option.
|
513
|
+
* @throws {RequiredError}
|
514
|
+
*/
|
515
|
+
CfwClient.prototype.listFirewallUsingGet = function (listFirewallUsingGetRequest) {
|
516
|
+
var options = (0, exports.ParamCreater)().listFirewallUsingGet(listFirewallUsingGetRequest);
|
517
|
+
options['responseHeaders'] = [''];
|
518
|
+
// @ts-ignore
|
519
|
+
return this.hcClient.sendRequest(options);
|
520
|
+
};
|
521
|
+
/**
|
522
|
+
* 查询流日志
|
523
|
+
*
|
524
|
+
* 详细说明请参考华为云API Explorer。
|
525
|
+
* Please refer to Huawei cloud API Explorer for details.
|
526
|
+
*
|
527
|
+
* @summary 查询流日志
|
528
|
+
* @param {string} projectId 租户项目id
|
529
|
+
* @param {string} fwInstanceId 防火墙实例ID
|
530
|
+
* @param {number} startTime 开始时间
|
531
|
+
* @param {number} endTime 结束时间
|
532
|
+
* @param {number} limit 每页显示个数
|
533
|
+
* @param {string} [direction] 方向
|
534
|
+
* @param {'internet' | 'vpc' | 'nat'} [logType] 日志类型
|
535
|
+
* @param {string} [srcIp] 源IP
|
536
|
+
* @param {number} [srcPort] 源端口
|
537
|
+
* @param {string} [dstIp] 目的IP
|
538
|
+
* @param {number} [dstPort] 目的端口
|
539
|
+
* @param {'6' | '17' | '1' | '58'} [protocol] 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空
|
540
|
+
* @param {string} [app] 应用协议
|
541
|
+
* @param {string} [logId] 文档ID,首页时为null,非首页时不为null
|
542
|
+
* @param {number} [nextDate] 日期,首页时为null,非首页时不为null
|
543
|
+
* @param {number} [offset] 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
544
|
+
* @param {*} [options] Override http request option.
|
545
|
+
* @throws {RequiredError}
|
546
|
+
*/
|
547
|
+
CfwClient.prototype.listFlowLogs = function (listFlowLogsRequest) {
|
548
|
+
var options = (0, exports.ParamCreater)().listFlowLogs(listFlowLogsRequest);
|
549
|
+
options['responseHeaders'] = [''];
|
550
|
+
// @ts-ignore
|
551
|
+
return this.hcClient.sendRequest(options);
|
552
|
+
};
|
553
|
+
/**
|
554
|
+
* 查询防护模式
|
555
|
+
*
|
556
|
+
* 详细说明请参考华为云API Explorer。
|
557
|
+
* Please refer to Huawei cloud API Explorer for details.
|
558
|
+
*
|
559
|
+
* @summary 查询防护模式
|
560
|
+
* @param {string} projectId 租户项目id
|
561
|
+
* @param {string} objectId 防护对象id
|
562
|
+
* @param {*} [options] Override http request option.
|
563
|
+
* @throws {RequiredError}
|
564
|
+
*/
|
565
|
+
CfwClient.prototype.listIpsProtectModeUsingPost = function (listIpsProtectModeUsingPostRequest) {
|
566
|
+
var options = (0, exports.ParamCreater)().listIpsProtectModeUsingPost(listIpsProtectModeUsingPostRequest);
|
567
|
+
options['responseHeaders'] = [''];
|
568
|
+
// @ts-ignore
|
569
|
+
return this.hcClient.sendRequest(options);
|
570
|
+
};
|
571
|
+
/**
|
572
|
+
* 测试域名有效性
|
573
|
+
*
|
574
|
+
* 详细说明请参考华为云API Explorer。
|
575
|
+
* Please refer to Huawei cloud API Explorer for details.
|
576
|
+
*
|
577
|
+
* @summary 查询域名解析ip地址
|
578
|
+
* @param {string} projectId 租户项目id
|
579
|
+
* @param {string} domainName 域名
|
580
|
+
* @param {*} [options] Override http request option.
|
581
|
+
* @throws {RequiredError}
|
582
|
+
*/
|
583
|
+
CfwClient.prototype.listParseDomainDetails = function (listParseDomainDetailsRequest) {
|
584
|
+
var options = (0, exports.ParamCreater)().listParseDomainDetails(listParseDomainDetailsRequest);
|
585
|
+
options['responseHeaders'] = [''];
|
586
|
+
// @ts-ignore
|
587
|
+
return this.hcClient.sendRequest(options);
|
588
|
+
};
|
589
|
+
/**
|
590
|
+
* 获取规则击中次数
|
591
|
+
*
|
592
|
+
* 详细说明请参考华为云API Explorer。
|
593
|
+
* Please refer to Huawei cloud API Explorer for details.
|
594
|
+
*
|
595
|
+
* @summary 获取规则击中次数
|
596
|
+
* @param {string} projectId 租户项目id
|
597
|
+
* @param {ListRuleHitCountDto} [listRuleHitCountRequestBody] 获取规则击中次数DTO
|
598
|
+
* @param {*} [options] Override http request option.
|
599
|
+
* @throws {RequiredError}
|
600
|
+
*/
|
601
|
+
CfwClient.prototype.listRuleHitCount = function (listRuleHitCountRequest) {
|
602
|
+
var options = (0, exports.ParamCreater)().listRuleHitCount(listRuleHitCountRequest);
|
603
|
+
options['responseHeaders'] = [''];
|
604
|
+
// @ts-ignore
|
605
|
+
return this.hcClient.sendRequest(options);
|
606
|
+
};
|
607
|
+
/**
|
608
|
+
* 查询服务组成员列表
|
609
|
+
*
|
610
|
+
* 详细说明请参考华为云API Explorer。
|
611
|
+
* Please refer to Huawei cloud API Explorer for details.
|
612
|
+
*
|
613
|
+
* @summary 查询服务成员列表
|
614
|
+
* @param {string} projectId 租户项目id
|
615
|
+
* @param {string} setId 服务组id
|
616
|
+
* @param {number} limit 每页显示个数
|
617
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
618
|
+
* @param {string} [keyWord] 查询字段
|
619
|
+
* @param {*} [options] Override http request option.
|
620
|
+
* @throws {RequiredError}
|
621
|
+
*/
|
622
|
+
CfwClient.prototype.listServiceItemsDetails = function (listServiceItemsDetailsRequest) {
|
623
|
+
var options = (0, exports.ParamCreater)().listServiceItemsDetails(listServiceItemsDetailsRequest);
|
624
|
+
options['responseHeaders'] = [''];
|
625
|
+
// @ts-ignore
|
626
|
+
return this.hcClient.sendRequest(options);
|
627
|
+
};
|
628
|
+
/**
|
629
|
+
* 获取服务组列表
|
630
|
+
*
|
631
|
+
* 详细说明请参考华为云API Explorer。
|
632
|
+
* Please refer to Huawei cloud API Explorer for details.
|
633
|
+
*
|
634
|
+
* @summary 获取服务组列表
|
635
|
+
* @param {string} projectId 租户项目id
|
636
|
+
* @param {string} objectId 防护对象id
|
637
|
+
* @param {number} limit 每页查询个数
|
638
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
639
|
+
* @param {string} [keyWord] 关键字
|
640
|
+
* @param {*} [options] Override http request option.
|
641
|
+
* @throws {RequiredError}
|
642
|
+
*/
|
643
|
+
CfwClient.prototype.listServiceSet = function (listServiceSetRequest) {
|
644
|
+
var options = (0, exports.ParamCreater)().listServiceSet(listServiceSetRequest);
|
645
|
+
options['responseHeaders'] = [''];
|
646
|
+
// @ts-ignore
|
647
|
+
return this.hcClient.sendRequest(options);
|
648
|
+
};
|
649
|
+
/**
|
650
|
+
* 查询服务组细节
|
651
|
+
*
|
652
|
+
* 详细说明请参考华为云API Explorer。
|
653
|
+
* Please refer to Huawei cloud API Explorer for details.
|
654
|
+
*
|
655
|
+
* @summary 查询服务组详情
|
656
|
+
* @param {string} projectId 租户项目id
|
657
|
+
* @param {string} setId 服务组id
|
658
|
+
* @param {*} [options] Override http request option.
|
659
|
+
* @throws {RequiredError}
|
660
|
+
*/
|
661
|
+
CfwClient.prototype.listServiceSetDetails = function (listServiceSetDetailsRequest) {
|
662
|
+
var options = (0, exports.ParamCreater)().listServiceSetDetails(listServiceSetDetailsRequest);
|
663
|
+
options['responseHeaders'] = [''];
|
664
|
+
// @ts-ignore
|
665
|
+
return this.hcClient.sendRequest(options);
|
666
|
+
};
|
667
|
+
/**
|
668
|
+
* 更新地址组信息
|
669
|
+
*
|
670
|
+
* 详细说明请参考华为云API Explorer。
|
671
|
+
* Please refer to Huawei cloud API Explorer for details.
|
672
|
+
*
|
673
|
+
* @summary 更新地址组信息
|
674
|
+
* @param {string} projectId 租户项目id
|
675
|
+
* @param {string} setId 地址组id
|
676
|
+
* @param {UpdateAddressSetDto} updateAddressSetInfoUsingPUTRequestBody UpdateAddressSetInfoUsingPUTRequestBody
|
677
|
+
* @param {*} [options] Override http request option.
|
678
|
+
* @throws {RequiredError}
|
679
|
+
*/
|
680
|
+
CfwClient.prototype.updateAddressSetInfoUsingPut = function (updateAddressSetInfoUsingPutRequest) {
|
681
|
+
var options = (0, exports.ParamCreater)().updateAddressSetInfoUsingPut(updateAddressSetInfoUsingPutRequest);
|
682
|
+
options['responseHeaders'] = [''];
|
683
|
+
// @ts-ignore
|
684
|
+
return this.hcClient.sendRequest(options);
|
685
|
+
};
|
686
|
+
/**
|
687
|
+
* 更新黑白名单列表
|
688
|
+
*
|
689
|
+
* 详细说明请参考华为云API Explorer。
|
690
|
+
* Please refer to Huawei cloud API Explorer for details.
|
691
|
+
*
|
692
|
+
* @summary 更新黑白名单列表
|
693
|
+
* @param {string} projectId 租户项目id
|
694
|
+
* @param {string} listId 黑白名单列表id
|
695
|
+
* @param {UpdateBlackWhiteListDto} updateBlackWhiteListUsingPUTRequestBody 更新黑白名单请求体
|
696
|
+
* @param {*} [options] Override http request option.
|
697
|
+
* @throws {RequiredError}
|
698
|
+
*/
|
699
|
+
CfwClient.prototype.updateBlackWhiteListUsingPut = function (updateBlackWhiteListUsingPutRequest) {
|
700
|
+
var options = (0, exports.ParamCreater)().updateBlackWhiteListUsingPut(updateBlackWhiteListUsingPutRequest);
|
701
|
+
options['responseHeaders'] = [''];
|
702
|
+
// @ts-ignore
|
703
|
+
return this.hcClient.sendRequest(options);
|
704
|
+
};
|
705
|
+
/**
|
706
|
+
* 更新dns服务器列表
|
707
|
+
*
|
708
|
+
* 详细说明请参考华为云API Explorer。
|
709
|
+
* Please refer to Huawei cloud API Explorer for details.
|
710
|
+
*
|
711
|
+
* @summary 更新dns服务器列表
|
712
|
+
* @param {string} projectId 租户项目id
|
713
|
+
* @param {UpdateDnsServersRequestBody} updateDnsServersRequestBody 更新dns服务器列表请求体
|
714
|
+
* @param {*} [options] Override http request option.
|
715
|
+
* @throws {RequiredError}
|
716
|
+
*/
|
717
|
+
CfwClient.prototype.updateDnsServers = function (updateDnsServersRequest) {
|
718
|
+
var options = (0, exports.ParamCreater)().updateDnsServers(updateDnsServersRequest);
|
719
|
+
options['responseHeaders'] = [''];
|
720
|
+
// @ts-ignore
|
721
|
+
return this.hcClient.sendRequest(options);
|
722
|
+
};
|
723
|
+
/**
|
724
|
+
* 更新服务组
|
725
|
+
*
|
726
|
+
* 详细说明请参考华为云API Explorer。
|
727
|
+
* Please refer to Huawei cloud API Explorer for details.
|
728
|
+
*
|
729
|
+
* @summary 修改服务组
|
730
|
+
* @param {string} projectId 租户项目id
|
731
|
+
* @param {string} setId 服务组id
|
732
|
+
* @param {UpdateServiceSetUsingPUTRequestBody} updateServiceSetUsingPUTRequestBody 更新服务组的请求体
|
733
|
+
* @param {*} [options] Override http request option.
|
734
|
+
* @throws {RequiredError}
|
735
|
+
*/
|
736
|
+
CfwClient.prototype.updateServiceSetUsingPut = function (updateServiceSetUsingPutRequest) {
|
737
|
+
var options = (0, exports.ParamCreater)().updateServiceSetUsingPut(updateServiceSetUsingPutRequest);
|
738
|
+
options['responseHeaders'] = [''];
|
739
|
+
// @ts-ignore
|
740
|
+
return this.hcClient.sendRequest(options);
|
741
|
+
};
|
742
|
+
/**
|
743
|
+
* 创建ACL规则
|
744
|
+
*
|
745
|
+
* 详细说明请参考华为云API Explorer。
|
746
|
+
* Please refer to Huawei cloud API Explorer for details.
|
747
|
+
*
|
748
|
+
* @summary 创建ACL规则
|
749
|
+
* @param {string} projectId 租户项目id
|
750
|
+
* @param {AddRuleAclDto} addRuleAclUsingPOSTRequestBody 添加aclDto
|
751
|
+
* @param {*} [options] Override http request option.
|
752
|
+
* @throws {RequiredError}
|
753
|
+
*/
|
754
|
+
CfwClient.prototype.addRuleAclUsingPost = function (addRuleAclUsingPostRequest) {
|
755
|
+
var options = (0, exports.ParamCreater)().addRuleAclUsingPost(addRuleAclUsingPostRequest);
|
756
|
+
options['responseHeaders'] = [''];
|
757
|
+
// @ts-ignore
|
758
|
+
return this.hcClient.sendRequest(options);
|
759
|
+
};
|
760
|
+
/**
|
761
|
+
* 删除ACL规则组
|
762
|
+
*
|
763
|
+
* 详细说明请参考华为云API Explorer。
|
764
|
+
* Please refer to Huawei cloud API Explorer for details.
|
765
|
+
*
|
766
|
+
* @summary 删除ACL规则组
|
767
|
+
* @param {string} projectId 租户项目Id
|
768
|
+
* @param {string} aclRuleId 规则Id
|
769
|
+
* @param {*} [options] Override http request option.
|
770
|
+
* @throws {RequiredError}
|
771
|
+
*/
|
772
|
+
CfwClient.prototype.deleteRuleAclUsingDelete = function (deleteRuleAclUsingDeleteRequest) {
|
773
|
+
var options = (0, exports.ParamCreater)().deleteRuleAclUsingDelete(deleteRuleAclUsingDeleteRequest);
|
774
|
+
options['responseHeaders'] = [''];
|
775
|
+
// @ts-ignore
|
776
|
+
return this.hcClient.sendRequest(options);
|
777
|
+
};
|
778
|
+
/**
|
779
|
+
* ACL防护规则优先级设置
|
780
|
+
*
|
781
|
+
* 详细说明请参考华为云API Explorer。
|
782
|
+
* Please refer to Huawei cloud API Explorer for details.
|
783
|
+
*
|
784
|
+
* @summary ACL防护规则优先级设置
|
785
|
+
* @param {string} projectId 租户项目id
|
786
|
+
* @param {string} aclRuleId 规则id
|
787
|
+
* @param {OrderRuleAclDto} listRuleAclUsingPUTRequestBody 规则排序请求体
|
788
|
+
* @param {*} [options] Override http request option.
|
789
|
+
* @throws {RequiredError}
|
790
|
+
*/
|
791
|
+
CfwClient.prototype.listRuleAclUsingPut = function (listRuleAclUsingPutRequest) {
|
792
|
+
var options = (0, exports.ParamCreater)().listRuleAclUsingPut(listRuleAclUsingPutRequest);
|
793
|
+
options['responseHeaders'] = [''];
|
794
|
+
// @ts-ignore
|
795
|
+
return this.hcClient.sendRequest(options);
|
796
|
+
};
|
797
|
+
/**
|
798
|
+
* 查询防护规则
|
799
|
+
*
|
800
|
+
* 详细说明请参考华为云API Explorer。
|
801
|
+
* Please refer to Huawei cloud API Explorer for details.
|
802
|
+
*
|
803
|
+
* @summary 查询防护规则
|
804
|
+
* @param {string} projectId 租户项目id
|
805
|
+
* @param {string} objectId 防护对象Id
|
806
|
+
* @param {number} limit 每页显示个数
|
807
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
808
|
+
* @param {0 | 1 | 2} [type] 规则Type0:互联网规则,1:vpc规则, 2:nat规则
|
809
|
+
* @param {6 | 17 | 1 | 58} [protocol] 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1
|
810
|
+
* @param {string} [ip] ip地址
|
811
|
+
* @param {string} [name] 名称
|
812
|
+
* @param {number} [direction] 方向0:外到内1:内到外
|
813
|
+
* @param {0 | 1} [status] 规则下发状态 0:禁用,1:启用
|
814
|
+
* @param {0 | 1} [actionType] 动作0:permit,1:deny
|
815
|
+
* @param {0 | 1 | 2} [addressType] 地址类型0 ipv4,1 ipv6,2 domain
|
816
|
+
* @param {*} [options] Override http request option.
|
817
|
+
* @throws {RequiredError}
|
818
|
+
*/
|
819
|
+
CfwClient.prototype.listRuleAclsUsingGet = function (listRuleAclsUsingGetRequest) {
|
820
|
+
var options = (0, exports.ParamCreater)().listRuleAclsUsingGet(listRuleAclsUsingGetRequest);
|
821
|
+
options['responseHeaders'] = [''];
|
822
|
+
// @ts-ignore
|
823
|
+
return this.hcClient.sendRequest(options);
|
824
|
+
};
|
825
|
+
/**
|
826
|
+
* 更新ACL规则
|
827
|
+
*
|
828
|
+
* 详细说明请参考华为云API Explorer。
|
829
|
+
* Please refer to Huawei cloud API Explorer for details.
|
830
|
+
*
|
831
|
+
* @summary 更新ACL规则
|
832
|
+
* @param {string} projectId 租户项目id
|
833
|
+
* @param {string} aclRuleId 规则Id
|
834
|
+
* @param {UpdateRuleAclDto} updateRuleAclUsingPUTRequestBody 更新规则请求体
|
835
|
+
* @param {*} [options] Override http request option.
|
836
|
+
* @throws {RequiredError}
|
837
|
+
*/
|
838
|
+
CfwClient.prototype.updateRuleAclUsingPut = function (updateRuleAclUsingPutRequest) {
|
839
|
+
var options = (0, exports.ParamCreater)().updateRuleAclUsingPut(updateRuleAclUsingPutRequest);
|
840
|
+
options['responseHeaders'] = [''];
|
841
|
+
// @ts-ignore
|
842
|
+
return this.hcClient.sendRequest(options);
|
843
|
+
};
|
844
|
+
/**
|
845
|
+
* 开启关闭EIP
|
846
|
+
*
|
847
|
+
* 详细说明请参考华为云API Explorer。
|
848
|
+
* Please refer to Huawei cloud API Explorer for details.
|
849
|
+
*
|
850
|
+
* @summary 弹性IP开启关闭
|
851
|
+
* @param {string} projectId 租户项目ID
|
852
|
+
* @param {EipOperateProtectReq} changeProtectEipRequestBody 开启关闭EIP请求体
|
853
|
+
* @param {*} [options] Override http request option.
|
854
|
+
* @throws {RequiredError}
|
855
|
+
*/
|
856
|
+
CfwClient.prototype.changeProtectEip = function (changeProtectEipRequest) {
|
857
|
+
var options = (0, exports.ParamCreater)().changeProtectEip(changeProtectEipRequest);
|
858
|
+
options['responseHeaders'] = [''];
|
859
|
+
// @ts-ignore
|
860
|
+
return this.hcClient.sendRequest(options);
|
861
|
+
};
|
862
|
+
/**
|
863
|
+
* 查询Eip个数
|
864
|
+
*
|
865
|
+
* 详细说明请参考华为云API Explorer。
|
866
|
+
* Please refer to Huawei cloud API Explorer for details.
|
867
|
+
*
|
868
|
+
* @summary 查询Eip个数
|
869
|
+
* @param {string} projectId 租户项目ID
|
870
|
+
* @param {string} objectId 防护对象ID
|
871
|
+
* @param {*} [options] Override http request option.
|
872
|
+
* @throws {RequiredError}
|
873
|
+
*/
|
874
|
+
CfwClient.prototype.countEips = function (countEipsRequest) {
|
875
|
+
var options = (0, exports.ParamCreater)().countEips(countEipsRequest);
|
876
|
+
options['responseHeaders'] = [''];
|
877
|
+
// @ts-ignore
|
878
|
+
return this.hcClient.sendRequest(options);
|
879
|
+
};
|
880
|
+
/**
|
881
|
+
* 弹性IP列表查询
|
882
|
+
*
|
883
|
+
* 详细说明请参考华为云API Explorer。
|
884
|
+
* Please refer to Huawei cloud API Explorer for details.
|
885
|
+
*
|
886
|
+
* @summary 弹性IP列表查询
|
887
|
+
* @param {string} projectId 租户项目ID
|
888
|
+
* @param {string} objectId 防护对象ID
|
889
|
+
* @param {number} limit 每页显示个数
|
890
|
+
* @param {number} offset 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
|
891
|
+
* @param {string} [keyWord] 弹性公网ID/弹性公网IP
|
892
|
+
* @param {'null' | '0' | '1'} [status] 防护状态 null-全部 0-开启防护 1-关闭防护
|
893
|
+
* @param {0 | 1} [sync] 是否同步租户EIP数据 0-不同步 1-同步
|
894
|
+
* @param {string} [enterpriseProjectId] 企业项目id
|
895
|
+
* @param {string} [deviceKey] 设备键
|
896
|
+
* @param {number} [addressType] 地址类型0 ipv4,1 ipv6
|
897
|
+
* @param {*} [options] Override http request option.
|
898
|
+
* @throws {RequiredError}
|
899
|
+
*/
|
900
|
+
CfwClient.prototype.listEipResources = function (listEipResourcesRequest) {
|
901
|
+
var options = (0, exports.ParamCreater)().listEipResources(listEipResourcesRequest);
|
902
|
+
options['responseHeaders'] = [''];
|
903
|
+
// @ts-ignore
|
904
|
+
return this.hcClient.sendRequest(options);
|
905
|
+
};
|
906
|
+
/**
|
907
|
+
* 切换开关状态
|
908
|
+
*
|
909
|
+
* 详细说明请参考华为云API Explorer。
|
910
|
+
* Please refer to Huawei cloud API Explorer for details.
|
911
|
+
*
|
912
|
+
* @summary IPS特性开关操作
|
913
|
+
* @param {string} projectId project_id
|
914
|
+
* @param {IpsSwitchDTO} changeIpsSwitchUsingPOSTRequestBody ChangeIpsSwitchUsingPOSTRequestBody
|
915
|
+
* @param {*} [options] Override http request option.
|
916
|
+
* @throws {RequiredError}
|
917
|
+
*/
|
918
|
+
CfwClient.prototype.changeIpsSwitchUsingPost = function (changeIpsSwitchUsingPostRequest) {
|
919
|
+
var options = (0, exports.ParamCreater)().changeIpsSwitchUsingPost(changeIpsSwitchUsingPostRequest);
|
920
|
+
options['responseHeaders'] = [''];
|
921
|
+
// @ts-ignore
|
922
|
+
return this.hcClient.sendRequest(options);
|
923
|
+
};
|
924
|
+
/**
|
925
|
+
* 查询IPS特性开关状态
|
926
|
+
*
|
927
|
+
* 详细说明请参考华为云API Explorer。
|
928
|
+
* Please refer to Huawei cloud API Explorer for details.
|
929
|
+
*
|
930
|
+
* @summary 查询IPS特性开关状态
|
931
|
+
* @param {string} projectId project_id
|
932
|
+
* @param {string} objectId 防护对象id
|
933
|
+
* @param {*} [options] Override http request option.
|
934
|
+
* @throws {RequiredError}
|
935
|
+
*/
|
936
|
+
CfwClient.prototype.listIpsSwitchStatusUsingGet = function (listIpsSwitchStatusUsingGetRequest) {
|
937
|
+
var options = (0, exports.ParamCreater)().listIpsSwitchStatusUsingGet(listIpsSwitchStatusUsingGetRequest);
|
938
|
+
options['responseHeaders'] = [''];
|
939
|
+
// @ts-ignore
|
940
|
+
return this.hcClient.sendRequest(options);
|
941
|
+
};
|
942
|
+
/**
|
943
|
+
* 查询防护vpc信息
|
944
|
+
*
|
945
|
+
* 详细说明请参考华为云API Explorer。
|
946
|
+
* Please refer to Huawei cloud API Explorer for details.
|
947
|
+
*
|
948
|
+
* @summary 查询防护VPC数
|
949
|
+
* @param {string} projectId 租户项目id
|
950
|
+
* @param {string} objectId 防护对象id
|
951
|
+
* @param {*} [options] Override http request option.
|
952
|
+
* @throws {RequiredError}
|
953
|
+
*/
|
954
|
+
CfwClient.prototype.listVpcProtects = function (listVpcProtectsRequest) {
|
955
|
+
var options = (0, exports.ParamCreater)().listVpcProtects(listVpcProtectsRequest);
|
956
|
+
options['responseHeaders'] = [''];
|
957
|
+
// @ts-ignore
|
958
|
+
return this.hcClient.sendRequest(options);
|
959
|
+
};
|
960
|
+
return CfwClient;
|
961
|
+
}());
|
962
|
+
exports.CfwClient = CfwClient;
|
963
|
+
var ParamCreater = function () {
|
964
|
+
return {
|
965
|
+
/**
|
966
|
+
* 添加地址组成员
|
967
|
+
*
|
968
|
+
* 详细说明请参考华为云API Explorer。
|
969
|
+
* Please refer to Huawei cloud API Explorer for details.
|
970
|
+
*/
|
971
|
+
addAddressItemsUsingPost: function (addAddressItemsUsingPostRequest) {
|
972
|
+
var options = {
|
973
|
+
method: "POST",
|
974
|
+
url: "/v1/{project_id}/address-items",
|
975
|
+
contentType: "application/json",
|
976
|
+
queryParams: {},
|
977
|
+
pathParams: {},
|
978
|
+
headers: {},
|
979
|
+
data: {}
|
980
|
+
};
|
981
|
+
var localVarHeaderParameter = {};
|
982
|
+
var body;
|
983
|
+
var projectId;
|
984
|
+
if (addAddressItemsUsingPostRequest !== null && addAddressItemsUsingPostRequest !== undefined) {
|
985
|
+
if (addAddressItemsUsingPostRequest instanceof AddAddressItemsUsingPostRequest_1.AddAddressItemsUsingPostRequest) {
|
986
|
+
projectId = addAddressItemsUsingPostRequest.projectId;
|
987
|
+
body = addAddressItemsUsingPostRequest.body;
|
988
|
+
}
|
989
|
+
else {
|
990
|
+
projectId = addAddressItemsUsingPostRequest['project_id'];
|
991
|
+
body = addAddressItemsUsingPostRequest['body'];
|
992
|
+
}
|
993
|
+
}
|
994
|
+
if (projectId === null || projectId === undefined) {
|
995
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addAddressItemsUsingPost.');
|
996
|
+
}
|
997
|
+
if (body === null || body === undefined) {
|
998
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
999
|
+
}
|
1000
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1001
|
+
options.data = body !== undefined ? body : {};
|
1002
|
+
options.pathParams = { 'project_id': projectId, };
|
1003
|
+
options.headers = localVarHeaderParameter;
|
1004
|
+
return options;
|
1005
|
+
},
|
1006
|
+
/**
|
1007
|
+
* 添加地址组
|
1008
|
+
*
|
1009
|
+
* 详细说明请参考华为云API Explorer。
|
1010
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1011
|
+
*/
|
1012
|
+
addAddressSetInfoUsingPost: function (addAddressSetInfoUsingPostRequest) {
|
1013
|
+
var options = {
|
1014
|
+
method: "POST",
|
1015
|
+
url: "/v1/{project_id}/address-set",
|
1016
|
+
contentType: "application/json",
|
1017
|
+
queryParams: {},
|
1018
|
+
pathParams: {},
|
1019
|
+
headers: {},
|
1020
|
+
data: {}
|
1021
|
+
};
|
1022
|
+
var localVarHeaderParameter = {};
|
1023
|
+
var body;
|
1024
|
+
var projectId;
|
1025
|
+
if (addAddressSetInfoUsingPostRequest !== null && addAddressSetInfoUsingPostRequest !== undefined) {
|
1026
|
+
if (addAddressSetInfoUsingPostRequest instanceof AddAddressSetInfoUsingPostRequest_1.AddAddressSetInfoUsingPostRequest) {
|
1027
|
+
projectId = addAddressSetInfoUsingPostRequest.projectId;
|
1028
|
+
body = addAddressSetInfoUsingPostRequest.body;
|
1029
|
+
}
|
1030
|
+
else {
|
1031
|
+
projectId = addAddressSetInfoUsingPostRequest['project_id'];
|
1032
|
+
body = addAddressSetInfoUsingPostRequest['body'];
|
1033
|
+
}
|
1034
|
+
}
|
1035
|
+
if (projectId === null || projectId === undefined) {
|
1036
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addAddressSetInfoUsingPost.');
|
1037
|
+
}
|
1038
|
+
if (body === null || body === undefined) {
|
1039
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1040
|
+
}
|
1041
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1042
|
+
options.data = body !== undefined ? body : {};
|
1043
|
+
options.pathParams = { 'project_id': projectId, };
|
1044
|
+
options.headers = localVarHeaderParameter;
|
1045
|
+
return options;
|
1046
|
+
},
|
1047
|
+
/**
|
1048
|
+
* 创建黑白名单规则
|
1049
|
+
*
|
1050
|
+
* 详细说明请参考华为云API Explorer。
|
1051
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1052
|
+
*/
|
1053
|
+
addBlackWhiteListUsingPost: function (addBlackWhiteListUsingPostRequest) {
|
1054
|
+
var options = {
|
1055
|
+
method: "POST",
|
1056
|
+
url: "/v1/{project_id}/black-white-list",
|
1057
|
+
contentType: "application/json",
|
1058
|
+
queryParams: {},
|
1059
|
+
pathParams: {},
|
1060
|
+
headers: {},
|
1061
|
+
data: {}
|
1062
|
+
};
|
1063
|
+
var localVarHeaderParameter = {};
|
1064
|
+
var body;
|
1065
|
+
var projectId;
|
1066
|
+
if (addBlackWhiteListUsingPostRequest !== null && addBlackWhiteListUsingPostRequest !== undefined) {
|
1067
|
+
if (addBlackWhiteListUsingPostRequest instanceof AddBlackWhiteListUsingPostRequest_1.AddBlackWhiteListUsingPostRequest) {
|
1068
|
+
projectId = addBlackWhiteListUsingPostRequest.projectId;
|
1069
|
+
body = addBlackWhiteListUsingPostRequest.body;
|
1070
|
+
}
|
1071
|
+
else {
|
1072
|
+
projectId = addBlackWhiteListUsingPostRequest['project_id'];
|
1073
|
+
body = addBlackWhiteListUsingPostRequest['body'];
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
if (projectId === null || projectId === undefined) {
|
1077
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addBlackWhiteListUsingPost.');
|
1078
|
+
}
|
1079
|
+
if (body === null || body === undefined) {
|
1080
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1081
|
+
}
|
1082
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1083
|
+
options.data = body !== undefined ? body : {};
|
1084
|
+
options.pathParams = { 'project_id': projectId, };
|
1085
|
+
options.headers = localVarHeaderParameter;
|
1086
|
+
return options;
|
1087
|
+
},
|
1088
|
+
/**
|
1089
|
+
* 批量添加服务组成员
|
1090
|
+
*
|
1091
|
+
* 详细说明请参考华为云API Explorer。
|
1092
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1093
|
+
*/
|
1094
|
+
addServiceItemsUsingPost: function (addServiceItemsUsingPostRequest) {
|
1095
|
+
var options = {
|
1096
|
+
method: "POST",
|
1097
|
+
url: "/v1/{project_id}/service-items",
|
1098
|
+
contentType: "application/json",
|
1099
|
+
queryParams: {},
|
1100
|
+
pathParams: {},
|
1101
|
+
headers: {},
|
1102
|
+
data: {}
|
1103
|
+
};
|
1104
|
+
var localVarHeaderParameter = {};
|
1105
|
+
var body;
|
1106
|
+
var projectId;
|
1107
|
+
if (addServiceItemsUsingPostRequest !== null && addServiceItemsUsingPostRequest !== undefined) {
|
1108
|
+
if (addServiceItemsUsingPostRequest instanceof AddServiceItemsUsingPostRequest_1.AddServiceItemsUsingPostRequest) {
|
1109
|
+
projectId = addServiceItemsUsingPostRequest.projectId;
|
1110
|
+
body = addServiceItemsUsingPostRequest.body;
|
1111
|
+
}
|
1112
|
+
else {
|
1113
|
+
projectId = addServiceItemsUsingPostRequest['project_id'];
|
1114
|
+
body = addServiceItemsUsingPostRequest['body'];
|
1115
|
+
}
|
1116
|
+
}
|
1117
|
+
if (projectId === null || projectId === undefined) {
|
1118
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addServiceItemsUsingPost.');
|
1119
|
+
}
|
1120
|
+
if (body === null || body === undefined) {
|
1121
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1122
|
+
}
|
1123
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1124
|
+
options.data = body !== undefined ? body : {};
|
1125
|
+
options.pathParams = { 'project_id': projectId, };
|
1126
|
+
options.headers = localVarHeaderParameter;
|
1127
|
+
return options;
|
1128
|
+
},
|
1129
|
+
/**
|
1130
|
+
* 创建服务组
|
1131
|
+
*
|
1132
|
+
* 详细说明请参考华为云API Explorer。
|
1133
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1134
|
+
*/
|
1135
|
+
addServiceSetUsingPost: function (addServiceSetUsingPostRequest) {
|
1136
|
+
var options = {
|
1137
|
+
method: "POST",
|
1138
|
+
url: "/v1/{project_id}/service-set",
|
1139
|
+
contentType: "application/json",
|
1140
|
+
queryParams: {},
|
1141
|
+
pathParams: {},
|
1142
|
+
headers: {},
|
1143
|
+
data: {}
|
1144
|
+
};
|
1145
|
+
var localVarHeaderParameter = {};
|
1146
|
+
var body;
|
1147
|
+
var projectId;
|
1148
|
+
if (addServiceSetUsingPostRequest !== null && addServiceSetUsingPostRequest !== undefined) {
|
1149
|
+
if (addServiceSetUsingPostRequest instanceof AddServiceSetUsingPostRequest_1.AddServiceSetUsingPostRequest) {
|
1150
|
+
projectId = addServiceSetUsingPostRequest.projectId;
|
1151
|
+
body = addServiceSetUsingPostRequest.body;
|
1152
|
+
}
|
1153
|
+
else {
|
1154
|
+
projectId = addServiceSetUsingPostRequest['project_id'];
|
1155
|
+
body = addServiceSetUsingPostRequest['body'];
|
1156
|
+
}
|
1157
|
+
}
|
1158
|
+
if (projectId === null || projectId === undefined) {
|
1159
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addServiceSetUsingPost.');
|
1160
|
+
}
|
1161
|
+
if (body === null || body === undefined) {
|
1162
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1163
|
+
}
|
1164
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1165
|
+
options.data = body !== undefined ? body : {};
|
1166
|
+
options.pathParams = { 'project_id': projectId, };
|
1167
|
+
options.headers = localVarHeaderParameter;
|
1168
|
+
return options;
|
1169
|
+
},
|
1170
|
+
/**
|
1171
|
+
* 东西向防护资源防护开启/关闭
|
1172
|
+
*
|
1173
|
+
* 详细说明请参考华为云API Explorer。
|
1174
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1175
|
+
*/
|
1176
|
+
changeEwProtectStatus: function (changeEwProtectStatusRequest) {
|
1177
|
+
var options = {
|
1178
|
+
method: "POST",
|
1179
|
+
url: "/v1/{project_id}/firewall/east-west/protect",
|
1180
|
+
contentType: "application/json",
|
1181
|
+
queryParams: {},
|
1182
|
+
pathParams: {},
|
1183
|
+
headers: {},
|
1184
|
+
data: {}
|
1185
|
+
};
|
1186
|
+
var localVarHeaderParameter = {};
|
1187
|
+
var body;
|
1188
|
+
var projectId;
|
1189
|
+
if (changeEwProtectStatusRequest !== null && changeEwProtectStatusRequest !== undefined) {
|
1190
|
+
if (changeEwProtectStatusRequest instanceof ChangeEwProtectStatusRequest_1.ChangeEwProtectStatusRequest) {
|
1191
|
+
projectId = changeEwProtectStatusRequest.projectId;
|
1192
|
+
body = changeEwProtectStatusRequest.body;
|
1193
|
+
}
|
1194
|
+
else {
|
1195
|
+
projectId = changeEwProtectStatusRequest['project_id'];
|
1196
|
+
body = changeEwProtectStatusRequest['body'];
|
1197
|
+
}
|
1198
|
+
}
|
1199
|
+
if (projectId === null || projectId === undefined) {
|
1200
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeEwProtectStatus.');
|
1201
|
+
}
|
1202
|
+
if (body === null || body === undefined) {
|
1203
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1204
|
+
}
|
1205
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1206
|
+
options.data = body !== undefined ? body : {};
|
1207
|
+
options.pathParams = { 'project_id': projectId, };
|
1208
|
+
options.headers = localVarHeaderParameter;
|
1209
|
+
return options;
|
1210
|
+
},
|
1211
|
+
/**
|
1212
|
+
* 切换防护模式
|
1213
|
+
*
|
1214
|
+
* 详细说明请参考华为云API Explorer。
|
1215
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1216
|
+
*/
|
1217
|
+
changeIpsProtectModeUsingPost: function (changeIpsProtectModeUsingPostRequest) {
|
1218
|
+
var options = {
|
1219
|
+
method: "POST",
|
1220
|
+
url: "/v1/{project_id}/ips/protect",
|
1221
|
+
contentType: "application/json",
|
1222
|
+
queryParams: {},
|
1223
|
+
pathParams: {},
|
1224
|
+
headers: {},
|
1225
|
+
data: {}
|
1226
|
+
};
|
1227
|
+
var localVarHeaderParameter = {};
|
1228
|
+
var body;
|
1229
|
+
var projectId;
|
1230
|
+
if (changeIpsProtectModeUsingPostRequest !== null && changeIpsProtectModeUsingPostRequest !== undefined) {
|
1231
|
+
if (changeIpsProtectModeUsingPostRequest instanceof ChangeIpsProtectModeUsingPostRequest_1.ChangeIpsProtectModeUsingPostRequest) {
|
1232
|
+
projectId = changeIpsProtectModeUsingPostRequest.projectId;
|
1233
|
+
body = changeIpsProtectModeUsingPostRequest.body;
|
1234
|
+
}
|
1235
|
+
else {
|
1236
|
+
projectId = changeIpsProtectModeUsingPostRequest['project_id'];
|
1237
|
+
body = changeIpsProtectModeUsingPostRequest['body'];
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
if (projectId === null || projectId === undefined) {
|
1241
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeIpsProtectModeUsingPost.');
|
1242
|
+
}
|
1243
|
+
if (body === null || body === undefined) {
|
1244
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1245
|
+
}
|
1246
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1247
|
+
options.data = body !== undefined ? body : {};
|
1248
|
+
options.pathParams = { 'project_id': projectId, };
|
1249
|
+
options.headers = localVarHeaderParameter;
|
1250
|
+
return options;
|
1251
|
+
},
|
1252
|
+
/**
|
1253
|
+
* 清除规则击中次数
|
1254
|
+
*
|
1255
|
+
* 详细说明请参考华为云API Explorer。
|
1256
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1257
|
+
*/
|
1258
|
+
deleteAclRuleCount: function (deleteAclRuleCountRequest) {
|
1259
|
+
var options = {
|
1260
|
+
method: "DELETE",
|
1261
|
+
url: "/v1/{project_id}/acl-rule/count",
|
1262
|
+
contentType: "application/json",
|
1263
|
+
queryParams: {},
|
1264
|
+
pathParams: {},
|
1265
|
+
headers: {},
|
1266
|
+
data: {}
|
1267
|
+
};
|
1268
|
+
var localVarHeaderParameter = {};
|
1269
|
+
var body;
|
1270
|
+
var projectId;
|
1271
|
+
if (deleteAclRuleCountRequest !== null && deleteAclRuleCountRequest !== undefined) {
|
1272
|
+
if (deleteAclRuleCountRequest instanceof DeleteAclRuleCountRequest_1.DeleteAclRuleCountRequest) {
|
1273
|
+
projectId = deleteAclRuleCountRequest.projectId;
|
1274
|
+
body = deleteAclRuleCountRequest.body;
|
1275
|
+
}
|
1276
|
+
else {
|
1277
|
+
projectId = deleteAclRuleCountRequest['project_id'];
|
1278
|
+
body = deleteAclRuleCountRequest['body'];
|
1279
|
+
}
|
1280
|
+
}
|
1281
|
+
if (projectId === null || projectId === undefined) {
|
1282
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAclRuleCount.');
|
1283
|
+
}
|
1284
|
+
if (body === null || body === undefined) {
|
1285
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1286
|
+
}
|
1287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1288
|
+
options.data = body !== undefined ? body : {};
|
1289
|
+
options.pathParams = { 'project_id': projectId, };
|
1290
|
+
options.headers = localVarHeaderParameter;
|
1291
|
+
return options;
|
1292
|
+
},
|
1293
|
+
/**
|
1294
|
+
* 删除地址组成员
|
1295
|
+
*
|
1296
|
+
* 详细说明请参考华为云API Explorer。
|
1297
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1298
|
+
*/
|
1299
|
+
deleteAddressItemUsingDelete: function (deleteAddressItemUsingDeleteRequest) {
|
1300
|
+
var options = {
|
1301
|
+
method: "DELETE",
|
1302
|
+
url: "/v1/{project_id}/address-items/{item_id}",
|
1303
|
+
contentType: "application/json",
|
1304
|
+
queryParams: {},
|
1305
|
+
pathParams: {},
|
1306
|
+
headers: {},
|
1307
|
+
data: {}
|
1308
|
+
};
|
1309
|
+
var localVarHeaderParameter = {};
|
1310
|
+
var itemId;
|
1311
|
+
var projectId;
|
1312
|
+
if (deleteAddressItemUsingDeleteRequest !== null && deleteAddressItemUsingDeleteRequest !== undefined) {
|
1313
|
+
if (deleteAddressItemUsingDeleteRequest instanceof DeleteAddressItemUsingDeleteRequest_1.DeleteAddressItemUsingDeleteRequest) {
|
1314
|
+
itemId = deleteAddressItemUsingDeleteRequest.itemId;
|
1315
|
+
projectId = deleteAddressItemUsingDeleteRequest.projectId;
|
1316
|
+
}
|
1317
|
+
else {
|
1318
|
+
itemId = deleteAddressItemUsingDeleteRequest['item_id'];
|
1319
|
+
projectId = deleteAddressItemUsingDeleteRequest['project_id'];
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
if (itemId === null || itemId === undefined) {
|
1323
|
+
throw new RequiredError('itemId', 'Required parameter itemId was null or undefined when calling deleteAddressItemUsingDelete.');
|
1324
|
+
}
|
1325
|
+
if (projectId === null || projectId === undefined) {
|
1326
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAddressItemUsingDelete.');
|
1327
|
+
}
|
1328
|
+
options.pathParams = { 'item_id': itemId, 'project_id': projectId, };
|
1329
|
+
options.headers = localVarHeaderParameter;
|
1330
|
+
return options;
|
1331
|
+
},
|
1332
|
+
/**
|
1333
|
+
* 删除地址组
|
1334
|
+
*
|
1335
|
+
* 详细说明请参考华为云API Explorer。
|
1336
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1337
|
+
*/
|
1338
|
+
deleteAddressSetInfoUsingDelete: function (deleteAddressSetInfoUsingDeleteRequest) {
|
1339
|
+
var options = {
|
1340
|
+
method: "DELETE",
|
1341
|
+
url: "/v1/{project_id}/address-sets/{set_id}",
|
1342
|
+
contentType: "application/json",
|
1343
|
+
queryParams: {},
|
1344
|
+
pathParams: {},
|
1345
|
+
headers: {},
|
1346
|
+
data: {}
|
1347
|
+
};
|
1348
|
+
var localVarHeaderParameter = {};
|
1349
|
+
var projectId;
|
1350
|
+
var setId;
|
1351
|
+
if (deleteAddressSetInfoUsingDeleteRequest !== null && deleteAddressSetInfoUsingDeleteRequest !== undefined) {
|
1352
|
+
if (deleteAddressSetInfoUsingDeleteRequest instanceof DeleteAddressSetInfoUsingDeleteRequest_1.DeleteAddressSetInfoUsingDeleteRequest) {
|
1353
|
+
projectId = deleteAddressSetInfoUsingDeleteRequest.projectId;
|
1354
|
+
setId = deleteAddressSetInfoUsingDeleteRequest.setId;
|
1355
|
+
}
|
1356
|
+
else {
|
1357
|
+
projectId = deleteAddressSetInfoUsingDeleteRequest['project_id'];
|
1358
|
+
setId = deleteAddressSetInfoUsingDeleteRequest['set_id'];
|
1359
|
+
}
|
1360
|
+
}
|
1361
|
+
if (projectId === null || projectId === undefined) {
|
1362
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAddressSetInfoUsingDelete.');
|
1363
|
+
}
|
1364
|
+
if (setId === null || setId === undefined) {
|
1365
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling deleteAddressSetInfoUsingDelete.');
|
1366
|
+
}
|
1367
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
1368
|
+
options.headers = localVarHeaderParameter;
|
1369
|
+
return options;
|
1370
|
+
},
|
1371
|
+
/**
|
1372
|
+
* 删除黑白名单规则
|
1373
|
+
*
|
1374
|
+
* 详细说明请参考华为云API Explorer。
|
1375
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1376
|
+
*/
|
1377
|
+
deleteBlackWhiteListUsingDelete: function (deleteBlackWhiteListUsingDeleteRequest) {
|
1378
|
+
var options = {
|
1379
|
+
method: "DELETE",
|
1380
|
+
url: "/v1/{project_id}/black-white-list/{list_id}",
|
1381
|
+
contentType: "application/json",
|
1382
|
+
queryParams: {},
|
1383
|
+
pathParams: {},
|
1384
|
+
headers: {},
|
1385
|
+
data: {}
|
1386
|
+
};
|
1387
|
+
var localVarHeaderParameter = {};
|
1388
|
+
var projectId;
|
1389
|
+
var listId;
|
1390
|
+
if (deleteBlackWhiteListUsingDeleteRequest !== null && deleteBlackWhiteListUsingDeleteRequest !== undefined) {
|
1391
|
+
if (deleteBlackWhiteListUsingDeleteRequest instanceof DeleteBlackWhiteListUsingDeleteRequest_1.DeleteBlackWhiteListUsingDeleteRequest) {
|
1392
|
+
projectId = deleteBlackWhiteListUsingDeleteRequest.projectId;
|
1393
|
+
listId = deleteBlackWhiteListUsingDeleteRequest.listId;
|
1394
|
+
}
|
1395
|
+
else {
|
1396
|
+
projectId = deleteBlackWhiteListUsingDeleteRequest['project_id'];
|
1397
|
+
listId = deleteBlackWhiteListUsingDeleteRequest['list_id'];
|
1398
|
+
}
|
1399
|
+
}
|
1400
|
+
if (projectId === null || projectId === undefined) {
|
1401
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteBlackWhiteListUsingDelete.');
|
1402
|
+
}
|
1403
|
+
if (listId === null || listId === undefined) {
|
1404
|
+
throw new RequiredError('listId', 'Required parameter listId was null or undefined when calling deleteBlackWhiteListUsingDelete.');
|
1405
|
+
}
|
1406
|
+
options.pathParams = { 'project_id': projectId, 'list_id': listId, };
|
1407
|
+
options.headers = localVarHeaderParameter;
|
1408
|
+
return options;
|
1409
|
+
},
|
1410
|
+
/**
|
1411
|
+
* 删除服务组成员
|
1412
|
+
*
|
1413
|
+
* 详细说明请参考华为云API Explorer。
|
1414
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1415
|
+
*/
|
1416
|
+
deleteServiceItemUsingDelete: function (deleteServiceItemUsingDeleteRequest) {
|
1417
|
+
var options = {
|
1418
|
+
method: "DELETE",
|
1419
|
+
url: "/v1/{project_id}/service-items/{item_id}",
|
1420
|
+
contentType: "application/json",
|
1421
|
+
queryParams: {},
|
1422
|
+
pathParams: {},
|
1423
|
+
headers: {},
|
1424
|
+
data: {}
|
1425
|
+
};
|
1426
|
+
var localVarHeaderParameter = {};
|
1427
|
+
var projectId;
|
1428
|
+
var itemId;
|
1429
|
+
if (deleteServiceItemUsingDeleteRequest !== null && deleteServiceItemUsingDeleteRequest !== undefined) {
|
1430
|
+
if (deleteServiceItemUsingDeleteRequest instanceof DeleteServiceItemUsingDeleteRequest_1.DeleteServiceItemUsingDeleteRequest) {
|
1431
|
+
projectId = deleteServiceItemUsingDeleteRequest.projectId;
|
1432
|
+
itemId = deleteServiceItemUsingDeleteRequest.itemId;
|
1433
|
+
}
|
1434
|
+
else {
|
1435
|
+
projectId = deleteServiceItemUsingDeleteRequest['project_id'];
|
1436
|
+
itemId = deleteServiceItemUsingDeleteRequest['item_id'];
|
1437
|
+
}
|
1438
|
+
}
|
1439
|
+
if (projectId === null || projectId === undefined) {
|
1440
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteServiceItemUsingDelete.');
|
1441
|
+
}
|
1442
|
+
if (itemId === null || itemId === undefined) {
|
1443
|
+
throw new RequiredError('itemId', 'Required parameter itemId was null or undefined when calling deleteServiceItemUsingDelete.');
|
1444
|
+
}
|
1445
|
+
options.pathParams = { 'project_id': projectId, 'item_id': itemId, };
|
1446
|
+
options.headers = localVarHeaderParameter;
|
1447
|
+
return options;
|
1448
|
+
},
|
1449
|
+
/**
|
1450
|
+
* 删除服务组
|
1451
|
+
*
|
1452
|
+
* 详细说明请参考华为云API Explorer。
|
1453
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1454
|
+
*/
|
1455
|
+
deleteServiceSetUsingDelete: function (deleteServiceSetUsingDeleteRequest) {
|
1456
|
+
var options = {
|
1457
|
+
method: "DELETE",
|
1458
|
+
url: "/v1/{project_id}/service-sets/{set_id}",
|
1459
|
+
contentType: "application/json",
|
1460
|
+
queryParams: {},
|
1461
|
+
pathParams: {},
|
1462
|
+
headers: {},
|
1463
|
+
data: {}
|
1464
|
+
};
|
1465
|
+
var localVarHeaderParameter = {};
|
1466
|
+
var projectId;
|
1467
|
+
var setId;
|
1468
|
+
if (deleteServiceSetUsingDeleteRequest !== null && deleteServiceSetUsingDeleteRequest !== undefined) {
|
1469
|
+
if (deleteServiceSetUsingDeleteRequest instanceof DeleteServiceSetUsingDeleteRequest_1.DeleteServiceSetUsingDeleteRequest) {
|
1470
|
+
projectId = deleteServiceSetUsingDeleteRequest.projectId;
|
1471
|
+
setId = deleteServiceSetUsingDeleteRequest.setId;
|
1472
|
+
}
|
1473
|
+
else {
|
1474
|
+
projectId = deleteServiceSetUsingDeleteRequest['project_id'];
|
1475
|
+
setId = deleteServiceSetUsingDeleteRequest['set_id'];
|
1476
|
+
}
|
1477
|
+
}
|
1478
|
+
if (projectId === null || projectId === undefined) {
|
1479
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteServiceSetUsingDelete.');
|
1480
|
+
}
|
1481
|
+
if (setId === null || setId === undefined) {
|
1482
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling deleteServiceSetUsingDelete.');
|
1483
|
+
}
|
1484
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
1485
|
+
options.headers = localVarHeaderParameter;
|
1486
|
+
return options;
|
1487
|
+
},
|
1488
|
+
/**
|
1489
|
+
* 查询访问控制日志
|
1490
|
+
*
|
1491
|
+
* 详细说明请参考华为云API Explorer。
|
1492
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1493
|
+
*/
|
1494
|
+
listAccessControlLogs: function (listAccessControlLogsRequest) {
|
1495
|
+
var options = {
|
1496
|
+
method: "GET",
|
1497
|
+
url: "/v1/{project_id}/cfw/logs/access-control",
|
1498
|
+
contentType: "application/json",
|
1499
|
+
queryParams: {},
|
1500
|
+
pathParams: {},
|
1501
|
+
headers: {},
|
1502
|
+
data: {}
|
1503
|
+
};
|
1504
|
+
var localVarHeaderParameter = {};
|
1505
|
+
var localVarQueryParameter = {};
|
1506
|
+
var projectId;
|
1507
|
+
var fwInstanceId;
|
1508
|
+
var startTime;
|
1509
|
+
var endTime;
|
1510
|
+
var limit;
|
1511
|
+
var ruleId;
|
1512
|
+
var srcIp;
|
1513
|
+
var srcPort;
|
1514
|
+
var dstIp;
|
1515
|
+
var dstPort;
|
1516
|
+
var protocol;
|
1517
|
+
var app;
|
1518
|
+
var logId;
|
1519
|
+
var nextDate;
|
1520
|
+
var offset;
|
1521
|
+
var logType;
|
1522
|
+
if (listAccessControlLogsRequest !== null && listAccessControlLogsRequest !== undefined) {
|
1523
|
+
if (listAccessControlLogsRequest instanceof ListAccessControlLogsRequest_1.ListAccessControlLogsRequest) {
|
1524
|
+
projectId = listAccessControlLogsRequest.projectId;
|
1525
|
+
fwInstanceId = listAccessControlLogsRequest.fwInstanceId;
|
1526
|
+
startTime = listAccessControlLogsRequest.startTime;
|
1527
|
+
endTime = listAccessControlLogsRequest.endTime;
|
1528
|
+
limit = listAccessControlLogsRequest.limit;
|
1529
|
+
ruleId = listAccessControlLogsRequest.ruleId;
|
1530
|
+
srcIp = listAccessControlLogsRequest.srcIp;
|
1531
|
+
srcPort = listAccessControlLogsRequest.srcPort;
|
1532
|
+
dstIp = listAccessControlLogsRequest.dstIp;
|
1533
|
+
dstPort = listAccessControlLogsRequest.dstPort;
|
1534
|
+
protocol = listAccessControlLogsRequest.protocol;
|
1535
|
+
app = listAccessControlLogsRequest.app;
|
1536
|
+
logId = listAccessControlLogsRequest.logId;
|
1537
|
+
nextDate = listAccessControlLogsRequest.nextDate;
|
1538
|
+
offset = listAccessControlLogsRequest.offset;
|
1539
|
+
logType = listAccessControlLogsRequest.logType;
|
1540
|
+
}
|
1541
|
+
else {
|
1542
|
+
projectId = listAccessControlLogsRequest['project_id'];
|
1543
|
+
fwInstanceId = listAccessControlLogsRequest['fw_instance_id'];
|
1544
|
+
startTime = listAccessControlLogsRequest['start_time'];
|
1545
|
+
endTime = listAccessControlLogsRequest['end_time'];
|
1546
|
+
limit = listAccessControlLogsRequest['limit'];
|
1547
|
+
ruleId = listAccessControlLogsRequest['rule_id'];
|
1548
|
+
srcIp = listAccessControlLogsRequest['src_ip'];
|
1549
|
+
srcPort = listAccessControlLogsRequest['src_port'];
|
1550
|
+
dstIp = listAccessControlLogsRequest['dst_ip'];
|
1551
|
+
dstPort = listAccessControlLogsRequest['dst_port'];
|
1552
|
+
protocol = listAccessControlLogsRequest['protocol'];
|
1553
|
+
app = listAccessControlLogsRequest['app'];
|
1554
|
+
logId = listAccessControlLogsRequest['log_id'];
|
1555
|
+
nextDate = listAccessControlLogsRequest['next_date'];
|
1556
|
+
offset = listAccessControlLogsRequest['offset'];
|
1557
|
+
logType = listAccessControlLogsRequest['log_type'];
|
1558
|
+
}
|
1559
|
+
}
|
1560
|
+
if (projectId === null || projectId === undefined) {
|
1561
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAccessControlLogs.');
|
1562
|
+
}
|
1563
|
+
if (fwInstanceId === null || fwInstanceId === undefined) {
|
1564
|
+
throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listAccessControlLogs.');
|
1565
|
+
}
|
1566
|
+
if (fwInstanceId !== null && fwInstanceId !== undefined) {
|
1567
|
+
localVarQueryParameter['fw_instance_id'] = fwInstanceId;
|
1568
|
+
}
|
1569
|
+
if (startTime === null || startTime === undefined) {
|
1570
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listAccessControlLogs.');
|
1571
|
+
}
|
1572
|
+
if (startTime !== null && startTime !== undefined) {
|
1573
|
+
localVarQueryParameter['start_time'] = startTime;
|
1574
|
+
}
|
1575
|
+
if (endTime === null || endTime === undefined) {
|
1576
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listAccessControlLogs.');
|
1577
|
+
}
|
1578
|
+
if (endTime !== null && endTime !== undefined) {
|
1579
|
+
localVarQueryParameter['end_time'] = endTime;
|
1580
|
+
}
|
1581
|
+
if (limit === null || limit === undefined) {
|
1582
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAccessControlLogs.');
|
1583
|
+
}
|
1584
|
+
if (limit !== null && limit !== undefined) {
|
1585
|
+
localVarQueryParameter['limit'] = limit;
|
1586
|
+
}
|
1587
|
+
if (ruleId !== null && ruleId !== undefined) {
|
1588
|
+
localVarQueryParameter['rule_id'] = ruleId;
|
1589
|
+
}
|
1590
|
+
if (srcIp !== null && srcIp !== undefined) {
|
1591
|
+
localVarQueryParameter['src_ip'] = srcIp;
|
1592
|
+
}
|
1593
|
+
if (srcPort !== null && srcPort !== undefined) {
|
1594
|
+
localVarQueryParameter['src_port'] = srcPort;
|
1595
|
+
}
|
1596
|
+
if (dstIp !== null && dstIp !== undefined) {
|
1597
|
+
localVarQueryParameter['dst_ip'] = dstIp;
|
1598
|
+
}
|
1599
|
+
if (dstPort !== null && dstPort !== undefined) {
|
1600
|
+
localVarQueryParameter['dst_port'] = dstPort;
|
1601
|
+
}
|
1602
|
+
if (protocol !== null && protocol !== undefined) {
|
1603
|
+
localVarQueryParameter['protocol'] = protocol;
|
1604
|
+
}
|
1605
|
+
if (app !== null && app !== undefined) {
|
1606
|
+
localVarQueryParameter['app'] = app;
|
1607
|
+
}
|
1608
|
+
if (logId !== null && logId !== undefined) {
|
1609
|
+
localVarQueryParameter['log_id'] = logId;
|
1610
|
+
}
|
1611
|
+
if (nextDate !== null && nextDate !== undefined) {
|
1612
|
+
localVarQueryParameter['next_date'] = nextDate;
|
1613
|
+
}
|
1614
|
+
if (offset !== null && offset !== undefined) {
|
1615
|
+
localVarQueryParameter['offset'] = offset;
|
1616
|
+
}
|
1617
|
+
if (logType !== null && logType !== undefined) {
|
1618
|
+
localVarQueryParameter['log_type'] = logType;
|
1619
|
+
}
|
1620
|
+
options.queryParams = localVarQueryParameter;
|
1621
|
+
options.pathParams = { 'project_id': projectId, };
|
1622
|
+
options.headers = localVarHeaderParameter;
|
1623
|
+
return options;
|
1624
|
+
},
|
1625
|
+
/**
|
1626
|
+
* 查询地址组成员
|
1627
|
+
*
|
1628
|
+
* 详细说明请参考华为云API Explorer。
|
1629
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1630
|
+
*/
|
1631
|
+
listAddressItemsUsingGet: function (listAddressItemsUsingGetRequest) {
|
1632
|
+
var options = {
|
1633
|
+
method: "GET",
|
1634
|
+
url: "/v1/{project_id}/address-items",
|
1635
|
+
contentType: "application/json",
|
1636
|
+
queryParams: {},
|
1637
|
+
pathParams: {},
|
1638
|
+
headers: {},
|
1639
|
+
data: {}
|
1640
|
+
};
|
1641
|
+
var localVarHeaderParameter = {};
|
1642
|
+
var localVarQueryParameter = {};
|
1643
|
+
var projectId;
|
1644
|
+
var setId;
|
1645
|
+
var limit;
|
1646
|
+
var offset;
|
1647
|
+
var keyWord;
|
1648
|
+
var address;
|
1649
|
+
if (listAddressItemsUsingGetRequest !== null && listAddressItemsUsingGetRequest !== undefined) {
|
1650
|
+
if (listAddressItemsUsingGetRequest instanceof ListAddressItemsUsingGetRequest_1.ListAddressItemsUsingGetRequest) {
|
1651
|
+
projectId = listAddressItemsUsingGetRequest.projectId;
|
1652
|
+
setId = listAddressItemsUsingGetRequest.setId;
|
1653
|
+
limit = listAddressItemsUsingGetRequest.limit;
|
1654
|
+
offset = listAddressItemsUsingGetRequest.offset;
|
1655
|
+
keyWord = listAddressItemsUsingGetRequest.keyWord;
|
1656
|
+
address = listAddressItemsUsingGetRequest.address;
|
1657
|
+
}
|
1658
|
+
else {
|
1659
|
+
projectId = listAddressItemsUsingGetRequest['project_id'];
|
1660
|
+
setId = listAddressItemsUsingGetRequest['set_id'];
|
1661
|
+
limit = listAddressItemsUsingGetRequest['limit'];
|
1662
|
+
offset = listAddressItemsUsingGetRequest['offset'];
|
1663
|
+
keyWord = listAddressItemsUsingGetRequest['key_word'];
|
1664
|
+
address = listAddressItemsUsingGetRequest['address'];
|
1665
|
+
}
|
1666
|
+
}
|
1667
|
+
if (projectId === null || projectId === undefined) {
|
1668
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAddressItemsUsingGet.');
|
1669
|
+
}
|
1670
|
+
if (setId === null || setId === undefined) {
|
1671
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling listAddressItemsUsingGet.');
|
1672
|
+
}
|
1673
|
+
if (setId !== null && setId !== undefined) {
|
1674
|
+
localVarQueryParameter['set_id'] = setId;
|
1675
|
+
}
|
1676
|
+
if (limit === null || limit === undefined) {
|
1677
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAddressItemsUsingGet.');
|
1678
|
+
}
|
1679
|
+
if (limit !== null && limit !== undefined) {
|
1680
|
+
localVarQueryParameter['limit'] = limit;
|
1681
|
+
}
|
1682
|
+
if (offset === null || offset === undefined) {
|
1683
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listAddressItemsUsingGet.');
|
1684
|
+
}
|
1685
|
+
if (offset !== null && offset !== undefined) {
|
1686
|
+
localVarQueryParameter['offset'] = offset;
|
1687
|
+
}
|
1688
|
+
if (keyWord !== null && keyWord !== undefined) {
|
1689
|
+
localVarQueryParameter['key_word'] = keyWord;
|
1690
|
+
}
|
1691
|
+
if (address !== null && address !== undefined) {
|
1692
|
+
localVarQueryParameter['address'] = address;
|
1693
|
+
}
|
1694
|
+
options.queryParams = localVarQueryParameter;
|
1695
|
+
options.pathParams = { 'project_id': projectId, };
|
1696
|
+
options.headers = localVarHeaderParameter;
|
1697
|
+
return options;
|
1698
|
+
},
|
1699
|
+
/**
|
1700
|
+
* 查询地址组详细
|
1701
|
+
*
|
1702
|
+
* 详细说明请参考华为云API Explorer。
|
1703
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1704
|
+
*/
|
1705
|
+
listAddressSetDetailUsingGet: function (listAddressSetDetailUsingGetRequest) {
|
1706
|
+
var options = {
|
1707
|
+
method: "GET",
|
1708
|
+
url: "/v1/{project_id}/address-sets/{set_id}",
|
1709
|
+
contentType: "application/json",
|
1710
|
+
queryParams: {},
|
1711
|
+
pathParams: {},
|
1712
|
+
headers: {},
|
1713
|
+
data: {}
|
1714
|
+
};
|
1715
|
+
var localVarHeaderParameter = {};
|
1716
|
+
var projectId;
|
1717
|
+
var setId;
|
1718
|
+
if (listAddressSetDetailUsingGetRequest !== null && listAddressSetDetailUsingGetRequest !== undefined) {
|
1719
|
+
if (listAddressSetDetailUsingGetRequest instanceof ListAddressSetDetailUsingGetRequest_1.ListAddressSetDetailUsingGetRequest) {
|
1720
|
+
projectId = listAddressSetDetailUsingGetRequest.projectId;
|
1721
|
+
setId = listAddressSetDetailUsingGetRequest.setId;
|
1722
|
+
}
|
1723
|
+
else {
|
1724
|
+
projectId = listAddressSetDetailUsingGetRequest['project_id'];
|
1725
|
+
setId = listAddressSetDetailUsingGetRequest['set_id'];
|
1726
|
+
}
|
1727
|
+
}
|
1728
|
+
if (projectId === null || projectId === undefined) {
|
1729
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAddressSetDetailUsingGet.');
|
1730
|
+
}
|
1731
|
+
if (setId === null || setId === undefined) {
|
1732
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling listAddressSetDetailUsingGet.');
|
1733
|
+
}
|
1734
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
1735
|
+
options.headers = localVarHeaderParameter;
|
1736
|
+
return options;
|
1737
|
+
},
|
1738
|
+
/**
|
1739
|
+
* 查询地址组列表
|
1740
|
+
*
|
1741
|
+
* 详细说明请参考华为云API Explorer。
|
1742
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1743
|
+
*/
|
1744
|
+
listAddressSetListUsingGet: function (listAddressSetListUsingGetRequest) {
|
1745
|
+
var options = {
|
1746
|
+
method: "GET",
|
1747
|
+
url: "/v1/{project_id}/address-sets",
|
1748
|
+
contentType: "application/json",
|
1749
|
+
queryParams: {},
|
1750
|
+
pathParams: {},
|
1751
|
+
headers: {},
|
1752
|
+
data: {}
|
1753
|
+
};
|
1754
|
+
var localVarHeaderParameter = {};
|
1755
|
+
var localVarQueryParameter = {};
|
1756
|
+
var projectId;
|
1757
|
+
var objectId;
|
1758
|
+
var limit;
|
1759
|
+
var offset;
|
1760
|
+
var keyWord;
|
1761
|
+
var address;
|
1762
|
+
var addressType;
|
1763
|
+
if (listAddressSetListUsingGetRequest !== null && listAddressSetListUsingGetRequest !== undefined) {
|
1764
|
+
if (listAddressSetListUsingGetRequest instanceof ListAddressSetListUsingGetRequest_1.ListAddressSetListUsingGetRequest) {
|
1765
|
+
projectId = listAddressSetListUsingGetRequest.projectId;
|
1766
|
+
objectId = listAddressSetListUsingGetRequest.objectId;
|
1767
|
+
limit = listAddressSetListUsingGetRequest.limit;
|
1768
|
+
offset = listAddressSetListUsingGetRequest.offset;
|
1769
|
+
keyWord = listAddressSetListUsingGetRequest.keyWord;
|
1770
|
+
address = listAddressSetListUsingGetRequest.address;
|
1771
|
+
addressType = listAddressSetListUsingGetRequest.addressType;
|
1772
|
+
}
|
1773
|
+
else {
|
1774
|
+
projectId = listAddressSetListUsingGetRequest['project_id'];
|
1775
|
+
objectId = listAddressSetListUsingGetRequest['object_id'];
|
1776
|
+
limit = listAddressSetListUsingGetRequest['limit'];
|
1777
|
+
offset = listAddressSetListUsingGetRequest['offset'];
|
1778
|
+
keyWord = listAddressSetListUsingGetRequest['key_word'];
|
1779
|
+
address = listAddressSetListUsingGetRequest['address'];
|
1780
|
+
addressType = listAddressSetListUsingGetRequest['address_type'];
|
1781
|
+
}
|
1782
|
+
}
|
1783
|
+
if (projectId === null || projectId === undefined) {
|
1784
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAddressSetListUsingGet.');
|
1785
|
+
}
|
1786
|
+
if (objectId === null || objectId === undefined) {
|
1787
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listAddressSetListUsingGet.');
|
1788
|
+
}
|
1789
|
+
if (objectId !== null && objectId !== undefined) {
|
1790
|
+
localVarQueryParameter['object_id'] = objectId;
|
1791
|
+
}
|
1792
|
+
if (limit === null || limit === undefined) {
|
1793
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAddressSetListUsingGet.');
|
1794
|
+
}
|
1795
|
+
if (limit !== null && limit !== undefined) {
|
1796
|
+
localVarQueryParameter['limit'] = limit;
|
1797
|
+
}
|
1798
|
+
if (offset === null || offset === undefined) {
|
1799
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listAddressSetListUsingGet.');
|
1800
|
+
}
|
1801
|
+
if (offset !== null && offset !== undefined) {
|
1802
|
+
localVarQueryParameter['offset'] = offset;
|
1803
|
+
}
|
1804
|
+
if (keyWord !== null && keyWord !== undefined) {
|
1805
|
+
localVarQueryParameter['key_word'] = keyWord;
|
1806
|
+
}
|
1807
|
+
if (address !== null && address !== undefined) {
|
1808
|
+
localVarQueryParameter['address'] = address;
|
1809
|
+
}
|
1810
|
+
if (addressType !== null && addressType !== undefined) {
|
1811
|
+
localVarQueryParameter['address_type'] = addressType;
|
1812
|
+
}
|
1813
|
+
options.queryParams = localVarQueryParameter;
|
1814
|
+
options.pathParams = { 'project_id': projectId, };
|
1815
|
+
options.headers = localVarHeaderParameter;
|
1816
|
+
return options;
|
1817
|
+
},
|
1818
|
+
/**
|
1819
|
+
* 查询攻击日志
|
1820
|
+
*
|
1821
|
+
* 详细说明请参考华为云API Explorer。
|
1822
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1823
|
+
*/
|
1824
|
+
listAttackLogs: function (listAttackLogsRequest) {
|
1825
|
+
var options = {
|
1826
|
+
method: "GET",
|
1827
|
+
url: "/v1/{project_id}/cfw/logs/attack",
|
1828
|
+
contentType: "application/json",
|
1829
|
+
queryParams: {},
|
1830
|
+
pathParams: {},
|
1831
|
+
headers: {},
|
1832
|
+
data: {}
|
1833
|
+
};
|
1834
|
+
var localVarHeaderParameter = {};
|
1835
|
+
var localVarQueryParameter = {};
|
1836
|
+
var projectId;
|
1837
|
+
var startTime;
|
1838
|
+
var endTime;
|
1839
|
+
var limit;
|
1840
|
+
var srcIp;
|
1841
|
+
var srcPort;
|
1842
|
+
var dstIp;
|
1843
|
+
var dstPort;
|
1844
|
+
var protocol;
|
1845
|
+
var app;
|
1846
|
+
var logId;
|
1847
|
+
var nextDate;
|
1848
|
+
var offset;
|
1849
|
+
var fwInstanceId;
|
1850
|
+
var action;
|
1851
|
+
var direction;
|
1852
|
+
var attackType;
|
1853
|
+
var attackRule;
|
1854
|
+
var level;
|
1855
|
+
var source;
|
1856
|
+
if (listAttackLogsRequest !== null && listAttackLogsRequest !== undefined) {
|
1857
|
+
if (listAttackLogsRequest instanceof ListAttackLogsRequest_1.ListAttackLogsRequest) {
|
1858
|
+
projectId = listAttackLogsRequest.projectId;
|
1859
|
+
startTime = listAttackLogsRequest.startTime;
|
1860
|
+
endTime = listAttackLogsRequest.endTime;
|
1861
|
+
limit = listAttackLogsRequest.limit;
|
1862
|
+
srcIp = listAttackLogsRequest.srcIp;
|
1863
|
+
srcPort = listAttackLogsRequest.srcPort;
|
1864
|
+
dstIp = listAttackLogsRequest.dstIp;
|
1865
|
+
dstPort = listAttackLogsRequest.dstPort;
|
1866
|
+
protocol = listAttackLogsRequest.protocol;
|
1867
|
+
app = listAttackLogsRequest.app;
|
1868
|
+
logId = listAttackLogsRequest.logId;
|
1869
|
+
nextDate = listAttackLogsRequest.nextDate;
|
1870
|
+
offset = listAttackLogsRequest.offset;
|
1871
|
+
fwInstanceId = listAttackLogsRequest.fwInstanceId;
|
1872
|
+
action = listAttackLogsRequest.action;
|
1873
|
+
direction = listAttackLogsRequest.direction;
|
1874
|
+
attackType = listAttackLogsRequest.attackType;
|
1875
|
+
attackRule = listAttackLogsRequest.attackRule;
|
1876
|
+
level = listAttackLogsRequest.level;
|
1877
|
+
source = listAttackLogsRequest.source;
|
1878
|
+
}
|
1879
|
+
else {
|
1880
|
+
projectId = listAttackLogsRequest['project_id'];
|
1881
|
+
startTime = listAttackLogsRequest['start_time'];
|
1882
|
+
endTime = listAttackLogsRequest['end_time'];
|
1883
|
+
limit = listAttackLogsRequest['limit'];
|
1884
|
+
srcIp = listAttackLogsRequest['src_ip'];
|
1885
|
+
srcPort = listAttackLogsRequest['src_port'];
|
1886
|
+
dstIp = listAttackLogsRequest['dst_ip'];
|
1887
|
+
dstPort = listAttackLogsRequest['dst_port'];
|
1888
|
+
protocol = listAttackLogsRequest['protocol'];
|
1889
|
+
app = listAttackLogsRequest['app'];
|
1890
|
+
logId = listAttackLogsRequest['log_id'];
|
1891
|
+
nextDate = listAttackLogsRequest['next_date'];
|
1892
|
+
offset = listAttackLogsRequest['offset'];
|
1893
|
+
fwInstanceId = listAttackLogsRequest['fw_instance_id'];
|
1894
|
+
action = listAttackLogsRequest['action'];
|
1895
|
+
direction = listAttackLogsRequest['direction'];
|
1896
|
+
attackType = listAttackLogsRequest['attack_type'];
|
1897
|
+
attackRule = listAttackLogsRequest['attack_rule'];
|
1898
|
+
level = listAttackLogsRequest['level'];
|
1899
|
+
source = listAttackLogsRequest['source'];
|
1900
|
+
}
|
1901
|
+
}
|
1902
|
+
if (projectId === null || projectId === undefined) {
|
1903
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAttackLogs.');
|
1904
|
+
}
|
1905
|
+
if (startTime === null || startTime === undefined) {
|
1906
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listAttackLogs.');
|
1907
|
+
}
|
1908
|
+
if (startTime !== null && startTime !== undefined) {
|
1909
|
+
localVarQueryParameter['start_time'] = startTime;
|
1910
|
+
}
|
1911
|
+
if (endTime === null || endTime === undefined) {
|
1912
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listAttackLogs.');
|
1913
|
+
}
|
1914
|
+
if (endTime !== null && endTime !== undefined) {
|
1915
|
+
localVarQueryParameter['end_time'] = endTime;
|
1916
|
+
}
|
1917
|
+
if (limit === null || limit === undefined) {
|
1918
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAttackLogs.');
|
1919
|
+
}
|
1920
|
+
if (limit !== null && limit !== undefined) {
|
1921
|
+
localVarQueryParameter['limit'] = limit;
|
1922
|
+
}
|
1923
|
+
if (srcIp !== null && srcIp !== undefined) {
|
1924
|
+
localVarQueryParameter['src_ip'] = srcIp;
|
1925
|
+
}
|
1926
|
+
if (srcPort !== null && srcPort !== undefined) {
|
1927
|
+
localVarQueryParameter['src_port'] = srcPort;
|
1928
|
+
}
|
1929
|
+
if (dstIp !== null && dstIp !== undefined) {
|
1930
|
+
localVarQueryParameter['dst_ip'] = dstIp;
|
1931
|
+
}
|
1932
|
+
if (dstPort !== null && dstPort !== undefined) {
|
1933
|
+
localVarQueryParameter['dst_port'] = dstPort;
|
1934
|
+
}
|
1935
|
+
if (protocol !== null && protocol !== undefined) {
|
1936
|
+
localVarQueryParameter['protocol'] = protocol;
|
1937
|
+
}
|
1938
|
+
if (app !== null && app !== undefined) {
|
1939
|
+
localVarQueryParameter['app'] = app;
|
1940
|
+
}
|
1941
|
+
if (logId !== null && logId !== undefined) {
|
1942
|
+
localVarQueryParameter['log_id'] = logId;
|
1943
|
+
}
|
1944
|
+
if (nextDate !== null && nextDate !== undefined) {
|
1945
|
+
localVarQueryParameter['next_date'] = nextDate;
|
1946
|
+
}
|
1947
|
+
if (offset !== null && offset !== undefined) {
|
1948
|
+
localVarQueryParameter['offset'] = offset;
|
1949
|
+
}
|
1950
|
+
if (fwInstanceId !== null && fwInstanceId !== undefined) {
|
1951
|
+
localVarQueryParameter['fw_instance_id'] = fwInstanceId;
|
1952
|
+
}
|
1953
|
+
if (action !== null && action !== undefined) {
|
1954
|
+
localVarQueryParameter['action'] = action;
|
1955
|
+
}
|
1956
|
+
if (direction !== null && direction !== undefined) {
|
1957
|
+
localVarQueryParameter['direction'] = direction;
|
1958
|
+
}
|
1959
|
+
if (attackType !== null && attackType !== undefined) {
|
1960
|
+
localVarQueryParameter['attack_type'] = attackType;
|
1961
|
+
}
|
1962
|
+
if (attackRule !== null && attackRule !== undefined) {
|
1963
|
+
localVarQueryParameter['attack_rule'] = attackRule;
|
1964
|
+
}
|
1965
|
+
if (level !== null && level !== undefined) {
|
1966
|
+
localVarQueryParameter['level'] = level;
|
1967
|
+
}
|
1968
|
+
if (source !== null && source !== undefined) {
|
1969
|
+
localVarQueryParameter['source'] = source;
|
1970
|
+
}
|
1971
|
+
options.queryParams = localVarQueryParameter;
|
1972
|
+
options.pathParams = { 'project_id': projectId, };
|
1973
|
+
options.headers = localVarHeaderParameter;
|
1974
|
+
return options;
|
1975
|
+
},
|
1976
|
+
/**
|
1977
|
+
* 查询黑白名单列表
|
1978
|
+
*
|
1979
|
+
* 详细说明请参考华为云API Explorer。
|
1980
|
+
* Please refer to Huawei cloud API Explorer for details.
|
1981
|
+
*/
|
1982
|
+
listBlackWhiteListsUsingGet: function (listBlackWhiteListsUsingGetRequest) {
|
1983
|
+
var options = {
|
1984
|
+
method: "GET",
|
1985
|
+
url: "/v1/{project_id}/black-white-lists",
|
1986
|
+
contentType: "application/json",
|
1987
|
+
queryParams: {},
|
1988
|
+
pathParams: {},
|
1989
|
+
headers: {},
|
1990
|
+
data: {}
|
1991
|
+
};
|
1992
|
+
var localVarHeaderParameter = {};
|
1993
|
+
var localVarQueryParameter = {};
|
1994
|
+
var projectId;
|
1995
|
+
var objectId;
|
1996
|
+
var listType;
|
1997
|
+
var limit;
|
1998
|
+
var offset;
|
1999
|
+
var addressType;
|
2000
|
+
var address;
|
2001
|
+
var port;
|
2002
|
+
if (listBlackWhiteListsUsingGetRequest !== null && listBlackWhiteListsUsingGetRequest !== undefined) {
|
2003
|
+
if (listBlackWhiteListsUsingGetRequest instanceof ListBlackWhiteListsUsingGetRequest_1.ListBlackWhiteListsUsingGetRequest) {
|
2004
|
+
projectId = listBlackWhiteListsUsingGetRequest.projectId;
|
2005
|
+
objectId = listBlackWhiteListsUsingGetRequest.objectId;
|
2006
|
+
listType = listBlackWhiteListsUsingGetRequest.listType;
|
2007
|
+
limit = listBlackWhiteListsUsingGetRequest.limit;
|
2008
|
+
offset = listBlackWhiteListsUsingGetRequest.offset;
|
2009
|
+
addressType = listBlackWhiteListsUsingGetRequest.addressType;
|
2010
|
+
address = listBlackWhiteListsUsingGetRequest.address;
|
2011
|
+
port = listBlackWhiteListsUsingGetRequest.port;
|
2012
|
+
}
|
2013
|
+
else {
|
2014
|
+
projectId = listBlackWhiteListsUsingGetRequest['project_id'];
|
2015
|
+
objectId = listBlackWhiteListsUsingGetRequest['object_id'];
|
2016
|
+
listType = listBlackWhiteListsUsingGetRequest['list_type'];
|
2017
|
+
limit = listBlackWhiteListsUsingGetRequest['limit'];
|
2018
|
+
offset = listBlackWhiteListsUsingGetRequest['offset'];
|
2019
|
+
addressType = listBlackWhiteListsUsingGetRequest['address_type'];
|
2020
|
+
address = listBlackWhiteListsUsingGetRequest['address'];
|
2021
|
+
port = listBlackWhiteListsUsingGetRequest['port'];
|
2022
|
+
}
|
2023
|
+
}
|
2024
|
+
if (projectId === null || projectId === undefined) {
|
2025
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listBlackWhiteListsUsingGet.');
|
2026
|
+
}
|
2027
|
+
if (objectId === null || objectId === undefined) {
|
2028
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listBlackWhiteListsUsingGet.');
|
2029
|
+
}
|
2030
|
+
if (objectId !== null && objectId !== undefined) {
|
2031
|
+
localVarQueryParameter['object_id'] = objectId;
|
2032
|
+
}
|
2033
|
+
if (listType === null || listType === undefined) {
|
2034
|
+
throw new RequiredError('listType', 'Required parameter listType was null or undefined when calling listBlackWhiteListsUsingGet.');
|
2035
|
+
}
|
2036
|
+
if (listType !== null && listType !== undefined) {
|
2037
|
+
localVarQueryParameter['list_type'] = listType;
|
2038
|
+
}
|
2039
|
+
if (limit === null || limit === undefined) {
|
2040
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listBlackWhiteListsUsingGet.');
|
2041
|
+
}
|
2042
|
+
if (limit !== null && limit !== undefined) {
|
2043
|
+
localVarQueryParameter['limit'] = limit;
|
2044
|
+
}
|
2045
|
+
if (offset === null || offset === undefined) {
|
2046
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listBlackWhiteListsUsingGet.');
|
2047
|
+
}
|
2048
|
+
if (offset !== null && offset !== undefined) {
|
2049
|
+
localVarQueryParameter['offset'] = offset;
|
2050
|
+
}
|
2051
|
+
if (addressType !== null && addressType !== undefined) {
|
2052
|
+
localVarQueryParameter['address_type'] = addressType;
|
2053
|
+
}
|
2054
|
+
if (address !== null && address !== undefined) {
|
2055
|
+
localVarQueryParameter['address'] = address;
|
2056
|
+
}
|
2057
|
+
if (port !== null && port !== undefined) {
|
2058
|
+
localVarQueryParameter['port'] = port;
|
2059
|
+
}
|
2060
|
+
options.queryParams = localVarQueryParameter;
|
2061
|
+
options.pathParams = { 'project_id': projectId, };
|
2062
|
+
options.headers = localVarHeaderParameter;
|
2063
|
+
return options;
|
2064
|
+
},
|
2065
|
+
/**
|
2066
|
+
* 查询dns服务器列表
|
2067
|
+
*
|
2068
|
+
* 详细说明请参考华为云API Explorer。
|
2069
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2070
|
+
*/
|
2071
|
+
listDnsServers: function (listDnsServersRequest) {
|
2072
|
+
var options = {
|
2073
|
+
method: "GET",
|
2074
|
+
url: "/v1/{project_id}/dns/servers",
|
2075
|
+
contentType: "application/json",
|
2076
|
+
queryParams: {},
|
2077
|
+
pathParams: {},
|
2078
|
+
headers: {},
|
2079
|
+
data: {}
|
2080
|
+
};
|
2081
|
+
var localVarHeaderParameter = {};
|
2082
|
+
var localVarQueryParameter = {};
|
2083
|
+
var projectId;
|
2084
|
+
var limit;
|
2085
|
+
var offset;
|
2086
|
+
if (listDnsServersRequest !== null && listDnsServersRequest !== undefined) {
|
2087
|
+
if (listDnsServersRequest instanceof ListDnsServersRequest_1.ListDnsServersRequest) {
|
2088
|
+
projectId = listDnsServersRequest.projectId;
|
2089
|
+
limit = listDnsServersRequest.limit;
|
2090
|
+
offset = listDnsServersRequest.offset;
|
2091
|
+
}
|
2092
|
+
else {
|
2093
|
+
projectId = listDnsServersRequest['project_id'];
|
2094
|
+
limit = listDnsServersRequest['limit'];
|
2095
|
+
offset = listDnsServersRequest['offset'];
|
2096
|
+
}
|
2097
|
+
}
|
2098
|
+
if (projectId === null || projectId === undefined) {
|
2099
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listDnsServers.');
|
2100
|
+
}
|
2101
|
+
if (limit !== null && limit !== undefined) {
|
2102
|
+
localVarQueryParameter['limit'] = limit;
|
2103
|
+
}
|
2104
|
+
if (offset !== null && offset !== undefined) {
|
2105
|
+
localVarQueryParameter['offset'] = offset;
|
2106
|
+
}
|
2107
|
+
options.queryParams = localVarQueryParameter;
|
2108
|
+
options.pathParams = { 'project_id': projectId, };
|
2109
|
+
options.headers = localVarHeaderParameter;
|
2110
|
+
return options;
|
2111
|
+
},
|
2112
|
+
/**
|
2113
|
+
* 查询东西向防火墙信息
|
2114
|
+
*
|
2115
|
+
* 详细说明请参考华为云API Explorer。
|
2116
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2117
|
+
*/
|
2118
|
+
listEastWestFirewall: function (listEastWestFirewallRequest) {
|
2119
|
+
var options = {
|
2120
|
+
method: "GET",
|
2121
|
+
url: "/v1/{project_id}/firewall/east-west",
|
2122
|
+
contentType: "application/json",
|
2123
|
+
queryParams: {},
|
2124
|
+
pathParams: {},
|
2125
|
+
headers: {},
|
2126
|
+
data: {}
|
2127
|
+
};
|
2128
|
+
var localVarHeaderParameter = {};
|
2129
|
+
var localVarQueryParameter = {};
|
2130
|
+
var projectId;
|
2131
|
+
var limit;
|
2132
|
+
var offset;
|
2133
|
+
if (listEastWestFirewallRequest !== null && listEastWestFirewallRequest !== undefined) {
|
2134
|
+
if (listEastWestFirewallRequest instanceof ListEastWestFirewallRequest_1.ListEastWestFirewallRequest) {
|
2135
|
+
projectId = listEastWestFirewallRequest.projectId;
|
2136
|
+
limit = listEastWestFirewallRequest.limit;
|
2137
|
+
offset = listEastWestFirewallRequest.offset;
|
2138
|
+
}
|
2139
|
+
else {
|
2140
|
+
projectId = listEastWestFirewallRequest['project_id'];
|
2141
|
+
limit = listEastWestFirewallRequest['limit'];
|
2142
|
+
offset = listEastWestFirewallRequest['offset'];
|
2143
|
+
}
|
2144
|
+
}
|
2145
|
+
if (projectId === null || projectId === undefined) {
|
2146
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listEastWestFirewall.');
|
2147
|
+
}
|
2148
|
+
if (limit === null || limit === undefined) {
|
2149
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listEastWestFirewall.');
|
2150
|
+
}
|
2151
|
+
if (limit !== null && limit !== undefined) {
|
2152
|
+
localVarQueryParameter['limit'] = limit;
|
2153
|
+
}
|
2154
|
+
if (offset === null || offset === undefined) {
|
2155
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listEastWestFirewall.');
|
2156
|
+
}
|
2157
|
+
if (offset !== null && offset !== undefined) {
|
2158
|
+
localVarQueryParameter['offset'] = offset;
|
2159
|
+
}
|
2160
|
+
options.queryParams = localVarQueryParameter;
|
2161
|
+
options.pathParams = { 'project_id': projectId, };
|
2162
|
+
options.headers = localVarHeaderParameter;
|
2163
|
+
return options;
|
2164
|
+
},
|
2165
|
+
/**
|
2166
|
+
* 查询防火墙实例
|
2167
|
+
*
|
2168
|
+
* 详细说明请参考华为云API Explorer。
|
2169
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2170
|
+
*/
|
2171
|
+
listFirewallUsingGet: function (listFirewallUsingGetRequest) {
|
2172
|
+
var options = {
|
2173
|
+
method: "GET",
|
2174
|
+
url: "/v1/{project_id}/firewall/exist",
|
2175
|
+
contentType: "application/json",
|
2176
|
+
queryParams: {},
|
2177
|
+
pathParams: {},
|
2178
|
+
headers: {},
|
2179
|
+
data: {}
|
2180
|
+
};
|
2181
|
+
var localVarHeaderParameter = {};
|
2182
|
+
var localVarQueryParameter = {};
|
2183
|
+
var projectId;
|
2184
|
+
var offset;
|
2185
|
+
var limit;
|
2186
|
+
var serviceType;
|
2187
|
+
if (listFirewallUsingGetRequest !== null && listFirewallUsingGetRequest !== undefined) {
|
2188
|
+
if (listFirewallUsingGetRequest instanceof ListFirewallUsingGetRequest_1.ListFirewallUsingGetRequest) {
|
2189
|
+
projectId = listFirewallUsingGetRequest.projectId;
|
2190
|
+
offset = listFirewallUsingGetRequest.offset;
|
2191
|
+
limit = listFirewallUsingGetRequest.limit;
|
2192
|
+
serviceType = listFirewallUsingGetRequest.serviceType;
|
2193
|
+
}
|
2194
|
+
else {
|
2195
|
+
projectId = listFirewallUsingGetRequest['project_id'];
|
2196
|
+
offset = listFirewallUsingGetRequest['offset'];
|
2197
|
+
limit = listFirewallUsingGetRequest['limit'];
|
2198
|
+
serviceType = listFirewallUsingGetRequest['service_type'];
|
2199
|
+
}
|
2200
|
+
}
|
2201
|
+
if (projectId === null || projectId === undefined) {
|
2202
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listFirewallUsingGet.');
|
2203
|
+
}
|
2204
|
+
if (offset === null || offset === undefined) {
|
2205
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listFirewallUsingGet.');
|
2206
|
+
}
|
2207
|
+
if (offset !== null && offset !== undefined) {
|
2208
|
+
localVarQueryParameter['offset'] = offset;
|
2209
|
+
}
|
2210
|
+
if (limit === null || limit === undefined) {
|
2211
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listFirewallUsingGet.');
|
2212
|
+
}
|
2213
|
+
if (limit !== null && limit !== undefined) {
|
2214
|
+
localVarQueryParameter['limit'] = limit;
|
2215
|
+
}
|
2216
|
+
if (serviceType === null || serviceType === undefined) {
|
2217
|
+
throw new RequiredError('serviceType', 'Required parameter serviceType was null or undefined when calling listFirewallUsingGet.');
|
2218
|
+
}
|
2219
|
+
if (serviceType !== null && serviceType !== undefined) {
|
2220
|
+
localVarQueryParameter['service_type'] = serviceType;
|
2221
|
+
}
|
2222
|
+
options.queryParams = localVarQueryParameter;
|
2223
|
+
options.pathParams = { 'project_id': projectId, };
|
2224
|
+
options.headers = localVarHeaderParameter;
|
2225
|
+
return options;
|
2226
|
+
},
|
2227
|
+
/**
|
2228
|
+
* 查询流日志
|
2229
|
+
*
|
2230
|
+
* 详细说明请参考华为云API Explorer。
|
2231
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2232
|
+
*/
|
2233
|
+
listFlowLogs: function (listFlowLogsRequest) {
|
2234
|
+
var options = {
|
2235
|
+
method: "GET",
|
2236
|
+
url: "/v1/{project_id}/cfw/logs/flow",
|
2237
|
+
contentType: "application/json",
|
2238
|
+
queryParams: {},
|
2239
|
+
pathParams: {},
|
2240
|
+
headers: {},
|
2241
|
+
data: {}
|
2242
|
+
};
|
2243
|
+
var localVarHeaderParameter = {};
|
2244
|
+
var localVarQueryParameter = {};
|
2245
|
+
var projectId;
|
2246
|
+
var fwInstanceId;
|
2247
|
+
var startTime;
|
2248
|
+
var endTime;
|
2249
|
+
var limit;
|
2250
|
+
var direction;
|
2251
|
+
var logType;
|
2252
|
+
var srcIp;
|
2253
|
+
var srcPort;
|
2254
|
+
var dstIp;
|
2255
|
+
var dstPort;
|
2256
|
+
var protocol;
|
2257
|
+
var app;
|
2258
|
+
var logId;
|
2259
|
+
var nextDate;
|
2260
|
+
var offset;
|
2261
|
+
if (listFlowLogsRequest !== null && listFlowLogsRequest !== undefined) {
|
2262
|
+
if (listFlowLogsRequest instanceof ListFlowLogsRequest_1.ListFlowLogsRequest) {
|
2263
|
+
projectId = listFlowLogsRequest.projectId;
|
2264
|
+
fwInstanceId = listFlowLogsRequest.fwInstanceId;
|
2265
|
+
startTime = listFlowLogsRequest.startTime;
|
2266
|
+
endTime = listFlowLogsRequest.endTime;
|
2267
|
+
limit = listFlowLogsRequest.limit;
|
2268
|
+
direction = listFlowLogsRequest.direction;
|
2269
|
+
logType = listFlowLogsRequest.logType;
|
2270
|
+
srcIp = listFlowLogsRequest.srcIp;
|
2271
|
+
srcPort = listFlowLogsRequest.srcPort;
|
2272
|
+
dstIp = listFlowLogsRequest.dstIp;
|
2273
|
+
dstPort = listFlowLogsRequest.dstPort;
|
2274
|
+
protocol = listFlowLogsRequest.protocol;
|
2275
|
+
app = listFlowLogsRequest.app;
|
2276
|
+
logId = listFlowLogsRequest.logId;
|
2277
|
+
nextDate = listFlowLogsRequest.nextDate;
|
2278
|
+
offset = listFlowLogsRequest.offset;
|
2279
|
+
}
|
2280
|
+
else {
|
2281
|
+
projectId = listFlowLogsRequest['project_id'];
|
2282
|
+
fwInstanceId = listFlowLogsRequest['fw_instance_id'];
|
2283
|
+
startTime = listFlowLogsRequest['start_time'];
|
2284
|
+
endTime = listFlowLogsRequest['end_time'];
|
2285
|
+
limit = listFlowLogsRequest['limit'];
|
2286
|
+
direction = listFlowLogsRequest['direction'];
|
2287
|
+
logType = listFlowLogsRequest['log_type'];
|
2288
|
+
srcIp = listFlowLogsRequest['src_ip'];
|
2289
|
+
srcPort = listFlowLogsRequest['src_port'];
|
2290
|
+
dstIp = listFlowLogsRequest['dst_ip'];
|
2291
|
+
dstPort = listFlowLogsRequest['dst_port'];
|
2292
|
+
protocol = listFlowLogsRequest['protocol'];
|
2293
|
+
app = listFlowLogsRequest['app'];
|
2294
|
+
logId = listFlowLogsRequest['log_id'];
|
2295
|
+
nextDate = listFlowLogsRequest['next_date'];
|
2296
|
+
offset = listFlowLogsRequest['offset'];
|
2297
|
+
}
|
2298
|
+
}
|
2299
|
+
if (projectId === null || projectId === undefined) {
|
2300
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listFlowLogs.');
|
2301
|
+
}
|
2302
|
+
if (fwInstanceId === null || fwInstanceId === undefined) {
|
2303
|
+
throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listFlowLogs.');
|
2304
|
+
}
|
2305
|
+
if (fwInstanceId !== null && fwInstanceId !== undefined) {
|
2306
|
+
localVarQueryParameter['fw_instance_id'] = fwInstanceId;
|
2307
|
+
}
|
2308
|
+
if (startTime === null || startTime === undefined) {
|
2309
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listFlowLogs.');
|
2310
|
+
}
|
2311
|
+
if (startTime !== null && startTime !== undefined) {
|
2312
|
+
localVarQueryParameter['start_time'] = startTime;
|
2313
|
+
}
|
2314
|
+
if (endTime === null || endTime === undefined) {
|
2315
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listFlowLogs.');
|
2316
|
+
}
|
2317
|
+
if (endTime !== null && endTime !== undefined) {
|
2318
|
+
localVarQueryParameter['end_time'] = endTime;
|
2319
|
+
}
|
2320
|
+
if (limit === null || limit === undefined) {
|
2321
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listFlowLogs.');
|
2322
|
+
}
|
2323
|
+
if (limit !== null && limit !== undefined) {
|
2324
|
+
localVarQueryParameter['limit'] = limit;
|
2325
|
+
}
|
2326
|
+
if (direction !== null && direction !== undefined) {
|
2327
|
+
localVarQueryParameter['direction'] = direction;
|
2328
|
+
}
|
2329
|
+
if (logType !== null && logType !== undefined) {
|
2330
|
+
localVarQueryParameter['log_type'] = logType;
|
2331
|
+
}
|
2332
|
+
if (srcIp !== null && srcIp !== undefined) {
|
2333
|
+
localVarQueryParameter['src_ip'] = srcIp;
|
2334
|
+
}
|
2335
|
+
if (srcPort !== null && srcPort !== undefined) {
|
2336
|
+
localVarQueryParameter['src_port'] = srcPort;
|
2337
|
+
}
|
2338
|
+
if (dstIp !== null && dstIp !== undefined) {
|
2339
|
+
localVarQueryParameter['dst_ip'] = dstIp;
|
2340
|
+
}
|
2341
|
+
if (dstPort !== null && dstPort !== undefined) {
|
2342
|
+
localVarQueryParameter['dst_port'] = dstPort;
|
2343
|
+
}
|
2344
|
+
if (protocol !== null && protocol !== undefined) {
|
2345
|
+
localVarQueryParameter['protocol'] = protocol;
|
2346
|
+
}
|
2347
|
+
if (app !== null && app !== undefined) {
|
2348
|
+
localVarQueryParameter['app'] = app;
|
2349
|
+
}
|
2350
|
+
if (logId !== null && logId !== undefined) {
|
2351
|
+
localVarQueryParameter['log_id'] = logId;
|
2352
|
+
}
|
2353
|
+
if (nextDate !== null && nextDate !== undefined) {
|
2354
|
+
localVarQueryParameter['next_date'] = nextDate;
|
2355
|
+
}
|
2356
|
+
if (offset !== null && offset !== undefined) {
|
2357
|
+
localVarQueryParameter['offset'] = offset;
|
2358
|
+
}
|
2359
|
+
options.queryParams = localVarQueryParameter;
|
2360
|
+
options.pathParams = { 'project_id': projectId, };
|
2361
|
+
options.headers = localVarHeaderParameter;
|
2362
|
+
return options;
|
2363
|
+
},
|
2364
|
+
/**
|
2365
|
+
* 查询防护模式
|
2366
|
+
*
|
2367
|
+
* 详细说明请参考华为云API Explorer。
|
2368
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2369
|
+
*/
|
2370
|
+
listIpsProtectModeUsingPost: function (listIpsProtectModeUsingPostRequest) {
|
2371
|
+
var options = {
|
2372
|
+
method: "GET",
|
2373
|
+
url: "/v1/{project_id}/ips/protect",
|
2374
|
+
contentType: "application/json",
|
2375
|
+
queryParams: {},
|
2376
|
+
pathParams: {},
|
2377
|
+
headers: {},
|
2378
|
+
data: {}
|
2379
|
+
};
|
2380
|
+
var localVarHeaderParameter = {};
|
2381
|
+
var localVarQueryParameter = {};
|
2382
|
+
var projectId;
|
2383
|
+
var objectId;
|
2384
|
+
if (listIpsProtectModeUsingPostRequest !== null && listIpsProtectModeUsingPostRequest !== undefined) {
|
2385
|
+
if (listIpsProtectModeUsingPostRequest instanceof ListIpsProtectModeUsingPostRequest_1.ListIpsProtectModeUsingPostRequest) {
|
2386
|
+
projectId = listIpsProtectModeUsingPostRequest.projectId;
|
2387
|
+
objectId = listIpsProtectModeUsingPostRequest.objectId;
|
2388
|
+
}
|
2389
|
+
else {
|
2390
|
+
projectId = listIpsProtectModeUsingPostRequest['project_id'];
|
2391
|
+
objectId = listIpsProtectModeUsingPostRequest['object_id'];
|
2392
|
+
}
|
2393
|
+
}
|
2394
|
+
if (projectId === null || projectId === undefined) {
|
2395
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listIpsProtectModeUsingPost.');
|
2396
|
+
}
|
2397
|
+
if (objectId === null || objectId === undefined) {
|
2398
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listIpsProtectModeUsingPost.');
|
2399
|
+
}
|
2400
|
+
if (objectId !== null && objectId !== undefined) {
|
2401
|
+
localVarQueryParameter['object_id'] = objectId;
|
2402
|
+
}
|
2403
|
+
options.queryParams = localVarQueryParameter;
|
2404
|
+
options.pathParams = { 'project_id': projectId, };
|
2405
|
+
options.headers = localVarHeaderParameter;
|
2406
|
+
return options;
|
2407
|
+
},
|
2408
|
+
/**
|
2409
|
+
* 测试域名有效性
|
2410
|
+
*
|
2411
|
+
* 详细说明请参考华为云API Explorer。
|
2412
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2413
|
+
*/
|
2414
|
+
listParseDomainDetails: function (listParseDomainDetailsRequest) {
|
2415
|
+
var options = {
|
2416
|
+
method: "GET",
|
2417
|
+
url: "/v1/{project_id}/domain/parse/{domain_name}",
|
2418
|
+
contentType: "application/json",
|
2419
|
+
queryParams: {},
|
2420
|
+
pathParams: {},
|
2421
|
+
headers: {},
|
2422
|
+
data: {}
|
2423
|
+
};
|
2424
|
+
var localVarHeaderParameter = {};
|
2425
|
+
var projectId;
|
2426
|
+
var domainName;
|
2427
|
+
if (listParseDomainDetailsRequest !== null && listParseDomainDetailsRequest !== undefined) {
|
2428
|
+
if (listParseDomainDetailsRequest instanceof ListParseDomainDetailsRequest_1.ListParseDomainDetailsRequest) {
|
2429
|
+
projectId = listParseDomainDetailsRequest.projectId;
|
2430
|
+
domainName = listParseDomainDetailsRequest.domainName;
|
2431
|
+
}
|
2432
|
+
else {
|
2433
|
+
projectId = listParseDomainDetailsRequest['project_id'];
|
2434
|
+
domainName = listParseDomainDetailsRequest['domain_name'];
|
2435
|
+
}
|
2436
|
+
}
|
2437
|
+
if (projectId === null || projectId === undefined) {
|
2438
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listParseDomainDetails.');
|
2439
|
+
}
|
2440
|
+
if (domainName === null || domainName === undefined) {
|
2441
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listParseDomainDetails.');
|
2442
|
+
}
|
2443
|
+
options.pathParams = { 'project_id': projectId, 'domain_name': domainName, };
|
2444
|
+
options.headers = localVarHeaderParameter;
|
2445
|
+
return options;
|
2446
|
+
},
|
2447
|
+
/**
|
2448
|
+
* 获取规则击中次数
|
2449
|
+
*
|
2450
|
+
* 详细说明请参考华为云API Explorer。
|
2451
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2452
|
+
*/
|
2453
|
+
listRuleHitCount: function (listRuleHitCountRequest) {
|
2454
|
+
var options = {
|
2455
|
+
method: "POST",
|
2456
|
+
url: "/v1/{project_id}/acl-rule/count",
|
2457
|
+
contentType: "application/json",
|
2458
|
+
queryParams: {},
|
2459
|
+
pathParams: {},
|
2460
|
+
headers: {},
|
2461
|
+
data: {}
|
2462
|
+
};
|
2463
|
+
var localVarHeaderParameter = {};
|
2464
|
+
var body;
|
2465
|
+
var projectId;
|
2466
|
+
if (listRuleHitCountRequest !== null && listRuleHitCountRequest !== undefined) {
|
2467
|
+
if (listRuleHitCountRequest instanceof ListRuleHitCountRequest_1.ListRuleHitCountRequest) {
|
2468
|
+
projectId = listRuleHitCountRequest.projectId;
|
2469
|
+
body = listRuleHitCountRequest.body;
|
2470
|
+
}
|
2471
|
+
else {
|
2472
|
+
projectId = listRuleHitCountRequest['project_id'];
|
2473
|
+
body = listRuleHitCountRequest['body'];
|
2474
|
+
}
|
2475
|
+
}
|
2476
|
+
if (projectId === null || projectId === undefined) {
|
2477
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listRuleHitCount.');
|
2478
|
+
}
|
2479
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2480
|
+
options.data = body !== undefined ? body : {};
|
2481
|
+
options.pathParams = { 'project_id': projectId, };
|
2482
|
+
options.headers = localVarHeaderParameter;
|
2483
|
+
return options;
|
2484
|
+
},
|
2485
|
+
/**
|
2486
|
+
* 查询服务组成员列表
|
2487
|
+
*
|
2488
|
+
* 详细说明请参考华为云API Explorer。
|
2489
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2490
|
+
*/
|
2491
|
+
listServiceItemsDetails: function (listServiceItemsDetailsRequest) {
|
2492
|
+
var options = {
|
2493
|
+
method: "GET",
|
2494
|
+
url: "/v1/{project_id}/service-items",
|
2495
|
+
contentType: "application/json",
|
2496
|
+
queryParams: {},
|
2497
|
+
pathParams: {},
|
2498
|
+
headers: {},
|
2499
|
+
data: {}
|
2500
|
+
};
|
2501
|
+
var localVarHeaderParameter = {};
|
2502
|
+
var localVarQueryParameter = {};
|
2503
|
+
var projectId;
|
2504
|
+
var setId;
|
2505
|
+
var limit;
|
2506
|
+
var offset;
|
2507
|
+
var keyWord;
|
2508
|
+
if (listServiceItemsDetailsRequest !== null && listServiceItemsDetailsRequest !== undefined) {
|
2509
|
+
if (listServiceItemsDetailsRequest instanceof ListServiceItemsDetailsRequest_1.ListServiceItemsDetailsRequest) {
|
2510
|
+
projectId = listServiceItemsDetailsRequest.projectId;
|
2511
|
+
setId = listServiceItemsDetailsRequest.setId;
|
2512
|
+
limit = listServiceItemsDetailsRequest.limit;
|
2513
|
+
offset = listServiceItemsDetailsRequest.offset;
|
2514
|
+
keyWord = listServiceItemsDetailsRequest.keyWord;
|
2515
|
+
}
|
2516
|
+
else {
|
2517
|
+
projectId = listServiceItemsDetailsRequest['project_id'];
|
2518
|
+
setId = listServiceItemsDetailsRequest['set_id'];
|
2519
|
+
limit = listServiceItemsDetailsRequest['limit'];
|
2520
|
+
offset = listServiceItemsDetailsRequest['offset'];
|
2521
|
+
keyWord = listServiceItemsDetailsRequest['key_word'];
|
2522
|
+
}
|
2523
|
+
}
|
2524
|
+
if (projectId === null || projectId === undefined) {
|
2525
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listServiceItemsDetails.');
|
2526
|
+
}
|
2527
|
+
if (setId === null || setId === undefined) {
|
2528
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling listServiceItemsDetails.');
|
2529
|
+
}
|
2530
|
+
if (setId !== null && setId !== undefined) {
|
2531
|
+
localVarQueryParameter['set_id'] = setId;
|
2532
|
+
}
|
2533
|
+
if (limit === null || limit === undefined) {
|
2534
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listServiceItemsDetails.');
|
2535
|
+
}
|
2536
|
+
if (limit !== null && limit !== undefined) {
|
2537
|
+
localVarQueryParameter['limit'] = limit;
|
2538
|
+
}
|
2539
|
+
if (offset === null || offset === undefined) {
|
2540
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listServiceItemsDetails.');
|
2541
|
+
}
|
2542
|
+
if (offset !== null && offset !== undefined) {
|
2543
|
+
localVarQueryParameter['offset'] = offset;
|
2544
|
+
}
|
2545
|
+
if (keyWord !== null && keyWord !== undefined) {
|
2546
|
+
localVarQueryParameter['key_word'] = keyWord;
|
2547
|
+
}
|
2548
|
+
options.queryParams = localVarQueryParameter;
|
2549
|
+
options.pathParams = { 'project_id': projectId, };
|
2550
|
+
options.headers = localVarHeaderParameter;
|
2551
|
+
return options;
|
2552
|
+
},
|
2553
|
+
/**
|
2554
|
+
* 获取服务组列表
|
2555
|
+
*
|
2556
|
+
* 详细说明请参考华为云API Explorer。
|
2557
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2558
|
+
*/
|
2559
|
+
listServiceSet: function (listServiceSetRequest) {
|
2560
|
+
var options = {
|
2561
|
+
method: "GET",
|
2562
|
+
url: "/v1/{project_id}/service-sets",
|
2563
|
+
contentType: "application/json",
|
2564
|
+
queryParams: {},
|
2565
|
+
pathParams: {},
|
2566
|
+
headers: {},
|
2567
|
+
data: {}
|
2568
|
+
};
|
2569
|
+
var localVarHeaderParameter = {};
|
2570
|
+
var localVarQueryParameter = {};
|
2571
|
+
var projectId;
|
2572
|
+
var objectId;
|
2573
|
+
var limit;
|
2574
|
+
var offset;
|
2575
|
+
var keyWord;
|
2576
|
+
if (listServiceSetRequest !== null && listServiceSetRequest !== undefined) {
|
2577
|
+
if (listServiceSetRequest instanceof ListServiceSetRequest_1.ListServiceSetRequest) {
|
2578
|
+
projectId = listServiceSetRequest.projectId;
|
2579
|
+
objectId = listServiceSetRequest.objectId;
|
2580
|
+
limit = listServiceSetRequest.limit;
|
2581
|
+
offset = listServiceSetRequest.offset;
|
2582
|
+
keyWord = listServiceSetRequest.keyWord;
|
2583
|
+
}
|
2584
|
+
else {
|
2585
|
+
projectId = listServiceSetRequest['project_id'];
|
2586
|
+
objectId = listServiceSetRequest['object_id'];
|
2587
|
+
limit = listServiceSetRequest['limit'];
|
2588
|
+
offset = listServiceSetRequest['offset'];
|
2589
|
+
keyWord = listServiceSetRequest['key_word'];
|
2590
|
+
}
|
2591
|
+
}
|
2592
|
+
if (projectId === null || projectId === undefined) {
|
2593
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listServiceSet.');
|
2594
|
+
}
|
2595
|
+
if (objectId === null || objectId === undefined) {
|
2596
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listServiceSet.');
|
2597
|
+
}
|
2598
|
+
if (objectId !== null && objectId !== undefined) {
|
2599
|
+
localVarQueryParameter['object_id'] = objectId;
|
2600
|
+
}
|
2601
|
+
if (limit === null || limit === undefined) {
|
2602
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listServiceSet.');
|
2603
|
+
}
|
2604
|
+
if (limit !== null && limit !== undefined) {
|
2605
|
+
localVarQueryParameter['limit'] = limit;
|
2606
|
+
}
|
2607
|
+
if (offset === null || offset === undefined) {
|
2608
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listServiceSet.');
|
2609
|
+
}
|
2610
|
+
if (offset !== null && offset !== undefined) {
|
2611
|
+
localVarQueryParameter['offset'] = offset;
|
2612
|
+
}
|
2613
|
+
if (keyWord !== null && keyWord !== undefined) {
|
2614
|
+
localVarQueryParameter['key_word'] = keyWord;
|
2615
|
+
}
|
2616
|
+
options.queryParams = localVarQueryParameter;
|
2617
|
+
options.pathParams = { 'project_id': projectId, };
|
2618
|
+
options.headers = localVarHeaderParameter;
|
2619
|
+
return options;
|
2620
|
+
},
|
2621
|
+
/**
|
2622
|
+
* 查询服务组细节
|
2623
|
+
*
|
2624
|
+
* 详细说明请参考华为云API Explorer。
|
2625
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2626
|
+
*/
|
2627
|
+
listServiceSetDetails: function (listServiceSetDetailsRequest) {
|
2628
|
+
var options = {
|
2629
|
+
method: "GET",
|
2630
|
+
url: "/v1/{project_id}/service-sets/{set_id}",
|
2631
|
+
contentType: "application/json",
|
2632
|
+
queryParams: {},
|
2633
|
+
pathParams: {},
|
2634
|
+
headers: {},
|
2635
|
+
data: {}
|
2636
|
+
};
|
2637
|
+
var localVarHeaderParameter = {};
|
2638
|
+
var projectId;
|
2639
|
+
var setId;
|
2640
|
+
if (listServiceSetDetailsRequest !== null && listServiceSetDetailsRequest !== undefined) {
|
2641
|
+
if (listServiceSetDetailsRequest instanceof ListServiceSetDetailsRequest_1.ListServiceSetDetailsRequest) {
|
2642
|
+
projectId = listServiceSetDetailsRequest.projectId;
|
2643
|
+
setId = listServiceSetDetailsRequest.setId;
|
2644
|
+
}
|
2645
|
+
else {
|
2646
|
+
projectId = listServiceSetDetailsRequest['project_id'];
|
2647
|
+
setId = listServiceSetDetailsRequest['set_id'];
|
2648
|
+
}
|
2649
|
+
}
|
2650
|
+
if (projectId === null || projectId === undefined) {
|
2651
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listServiceSetDetails.');
|
2652
|
+
}
|
2653
|
+
if (setId === null || setId === undefined) {
|
2654
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling listServiceSetDetails.');
|
2655
|
+
}
|
2656
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
2657
|
+
options.headers = localVarHeaderParameter;
|
2658
|
+
return options;
|
2659
|
+
},
|
2660
|
+
/**
|
2661
|
+
* 更新地址组信息
|
2662
|
+
*
|
2663
|
+
* 详细说明请参考华为云API Explorer。
|
2664
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2665
|
+
*/
|
2666
|
+
updateAddressSetInfoUsingPut: function (updateAddressSetInfoUsingPutRequest) {
|
2667
|
+
var options = {
|
2668
|
+
method: "PUT",
|
2669
|
+
url: "/v1/{project_id}/address-sets/{set_id}",
|
2670
|
+
contentType: "application/json",
|
2671
|
+
queryParams: {},
|
2672
|
+
pathParams: {},
|
2673
|
+
headers: {},
|
2674
|
+
data: {}
|
2675
|
+
};
|
2676
|
+
var localVarHeaderParameter = {};
|
2677
|
+
var body;
|
2678
|
+
var projectId;
|
2679
|
+
var setId;
|
2680
|
+
if (updateAddressSetInfoUsingPutRequest !== null && updateAddressSetInfoUsingPutRequest !== undefined) {
|
2681
|
+
if (updateAddressSetInfoUsingPutRequest instanceof UpdateAddressSetInfoUsingPutRequest_1.UpdateAddressSetInfoUsingPutRequest) {
|
2682
|
+
projectId = updateAddressSetInfoUsingPutRequest.projectId;
|
2683
|
+
setId = updateAddressSetInfoUsingPutRequest.setId;
|
2684
|
+
body = updateAddressSetInfoUsingPutRequest.body;
|
2685
|
+
}
|
2686
|
+
else {
|
2687
|
+
projectId = updateAddressSetInfoUsingPutRequest['project_id'];
|
2688
|
+
setId = updateAddressSetInfoUsingPutRequest['set_id'];
|
2689
|
+
body = updateAddressSetInfoUsingPutRequest['body'];
|
2690
|
+
}
|
2691
|
+
}
|
2692
|
+
if (projectId === null || projectId === undefined) {
|
2693
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAddressSetInfoUsingPut.');
|
2694
|
+
}
|
2695
|
+
if (setId === null || setId === undefined) {
|
2696
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateAddressSetInfoUsingPut.');
|
2697
|
+
}
|
2698
|
+
if (body === null || body === undefined) {
|
2699
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2700
|
+
}
|
2701
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2702
|
+
options.data = body !== undefined ? body : {};
|
2703
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
2704
|
+
options.headers = localVarHeaderParameter;
|
2705
|
+
return options;
|
2706
|
+
},
|
2707
|
+
/**
|
2708
|
+
* 更新黑白名单列表
|
2709
|
+
*
|
2710
|
+
* 详细说明请参考华为云API Explorer。
|
2711
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2712
|
+
*/
|
2713
|
+
updateBlackWhiteListUsingPut: function (updateBlackWhiteListUsingPutRequest) {
|
2714
|
+
var options = {
|
2715
|
+
method: "PUT",
|
2716
|
+
url: "/v1/{project_id}/black-white-list/{list_id}",
|
2717
|
+
contentType: "application/json",
|
2718
|
+
queryParams: {},
|
2719
|
+
pathParams: {},
|
2720
|
+
headers: {},
|
2721
|
+
data: {}
|
2722
|
+
};
|
2723
|
+
var localVarHeaderParameter = {};
|
2724
|
+
var body;
|
2725
|
+
var projectId;
|
2726
|
+
var listId;
|
2727
|
+
if (updateBlackWhiteListUsingPutRequest !== null && updateBlackWhiteListUsingPutRequest !== undefined) {
|
2728
|
+
if (updateBlackWhiteListUsingPutRequest instanceof UpdateBlackWhiteListUsingPutRequest_1.UpdateBlackWhiteListUsingPutRequest) {
|
2729
|
+
projectId = updateBlackWhiteListUsingPutRequest.projectId;
|
2730
|
+
listId = updateBlackWhiteListUsingPutRequest.listId;
|
2731
|
+
body = updateBlackWhiteListUsingPutRequest.body;
|
2732
|
+
}
|
2733
|
+
else {
|
2734
|
+
projectId = updateBlackWhiteListUsingPutRequest['project_id'];
|
2735
|
+
listId = updateBlackWhiteListUsingPutRequest['list_id'];
|
2736
|
+
body = updateBlackWhiteListUsingPutRequest['body'];
|
2737
|
+
}
|
2738
|
+
}
|
2739
|
+
if (projectId === null || projectId === undefined) {
|
2740
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateBlackWhiteListUsingPut.');
|
2741
|
+
}
|
2742
|
+
if (listId === null || listId === undefined) {
|
2743
|
+
throw new RequiredError('listId', 'Required parameter listId was null or undefined when calling updateBlackWhiteListUsingPut.');
|
2744
|
+
}
|
2745
|
+
if (body === null || body === undefined) {
|
2746
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2747
|
+
}
|
2748
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2749
|
+
options.data = body !== undefined ? body : {};
|
2750
|
+
options.pathParams = { 'project_id': projectId, 'list_id': listId, };
|
2751
|
+
options.headers = localVarHeaderParameter;
|
2752
|
+
return options;
|
2753
|
+
},
|
2754
|
+
/**
|
2755
|
+
* 更新dns服务器列表
|
2756
|
+
*
|
2757
|
+
* 详细说明请参考华为云API Explorer。
|
2758
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2759
|
+
*/
|
2760
|
+
updateDnsServers: function (updateDnsServersRequest) {
|
2761
|
+
var options = {
|
2762
|
+
method: "PUT",
|
2763
|
+
url: "/v1/{project_id}/dns/servers",
|
2764
|
+
contentType: "application/json",
|
2765
|
+
queryParams: {},
|
2766
|
+
pathParams: {},
|
2767
|
+
headers: {},
|
2768
|
+
data: {}
|
2769
|
+
};
|
2770
|
+
var localVarHeaderParameter = {};
|
2771
|
+
var body;
|
2772
|
+
var projectId;
|
2773
|
+
if (updateDnsServersRequest !== null && updateDnsServersRequest !== undefined) {
|
2774
|
+
if (updateDnsServersRequest instanceof UpdateDnsServersRequest_1.UpdateDnsServersRequest) {
|
2775
|
+
projectId = updateDnsServersRequest.projectId;
|
2776
|
+
body = updateDnsServersRequest.body;
|
2777
|
+
}
|
2778
|
+
else {
|
2779
|
+
projectId = updateDnsServersRequest['project_id'];
|
2780
|
+
body = updateDnsServersRequest['body'];
|
2781
|
+
}
|
2782
|
+
}
|
2783
|
+
if (projectId === null || projectId === undefined) {
|
2784
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateDnsServers.');
|
2785
|
+
}
|
2786
|
+
if (body === null || body === undefined) {
|
2787
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2788
|
+
}
|
2789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2790
|
+
options.data = body !== undefined ? body : {};
|
2791
|
+
options.pathParams = { 'project_id': projectId, };
|
2792
|
+
options.headers = localVarHeaderParameter;
|
2793
|
+
return options;
|
2794
|
+
},
|
2795
|
+
/**
|
2796
|
+
* 更新服务组
|
2797
|
+
*
|
2798
|
+
* 详细说明请参考华为云API Explorer。
|
2799
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2800
|
+
*/
|
2801
|
+
updateServiceSetUsingPut: function (updateServiceSetUsingPutRequest) {
|
2802
|
+
var options = {
|
2803
|
+
method: "PUT",
|
2804
|
+
url: "/v1/{project_id}/service-sets/{set_id}",
|
2805
|
+
contentType: "application/json",
|
2806
|
+
queryParams: {},
|
2807
|
+
pathParams: {},
|
2808
|
+
headers: {},
|
2809
|
+
data: {}
|
2810
|
+
};
|
2811
|
+
var localVarHeaderParameter = {};
|
2812
|
+
var body;
|
2813
|
+
var projectId;
|
2814
|
+
var setId;
|
2815
|
+
if (updateServiceSetUsingPutRequest !== null && updateServiceSetUsingPutRequest !== undefined) {
|
2816
|
+
if (updateServiceSetUsingPutRequest instanceof UpdateServiceSetUsingPutRequest_1.UpdateServiceSetUsingPutRequest) {
|
2817
|
+
projectId = updateServiceSetUsingPutRequest.projectId;
|
2818
|
+
setId = updateServiceSetUsingPutRequest.setId;
|
2819
|
+
body = updateServiceSetUsingPutRequest.body;
|
2820
|
+
}
|
2821
|
+
else {
|
2822
|
+
projectId = updateServiceSetUsingPutRequest['project_id'];
|
2823
|
+
setId = updateServiceSetUsingPutRequest['set_id'];
|
2824
|
+
body = updateServiceSetUsingPutRequest['body'];
|
2825
|
+
}
|
2826
|
+
}
|
2827
|
+
if (projectId === null || projectId === undefined) {
|
2828
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateServiceSetUsingPut.');
|
2829
|
+
}
|
2830
|
+
if (setId === null || setId === undefined) {
|
2831
|
+
throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateServiceSetUsingPut.');
|
2832
|
+
}
|
2833
|
+
if (body === null || body === undefined) {
|
2834
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2835
|
+
}
|
2836
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2837
|
+
options.data = body !== undefined ? body : {};
|
2838
|
+
options.pathParams = { 'project_id': projectId, 'set_id': setId, };
|
2839
|
+
options.headers = localVarHeaderParameter;
|
2840
|
+
return options;
|
2841
|
+
},
|
2842
|
+
/**
|
2843
|
+
* 创建ACL规则
|
2844
|
+
*
|
2845
|
+
* 详细说明请参考华为云API Explorer。
|
2846
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2847
|
+
*/
|
2848
|
+
addRuleAclUsingPost: function (addRuleAclUsingPostRequest) {
|
2849
|
+
var options = {
|
2850
|
+
method: "POST",
|
2851
|
+
url: "/v1/{project_id}/acl-rule",
|
2852
|
+
contentType: "application/json",
|
2853
|
+
queryParams: {},
|
2854
|
+
pathParams: {},
|
2855
|
+
headers: {},
|
2856
|
+
data: {}
|
2857
|
+
};
|
2858
|
+
var localVarHeaderParameter = {};
|
2859
|
+
var body;
|
2860
|
+
var projectId;
|
2861
|
+
if (addRuleAclUsingPostRequest !== null && addRuleAclUsingPostRequest !== undefined) {
|
2862
|
+
if (addRuleAclUsingPostRequest instanceof AddRuleAclUsingPostRequest_1.AddRuleAclUsingPostRequest) {
|
2863
|
+
projectId = addRuleAclUsingPostRequest.projectId;
|
2864
|
+
body = addRuleAclUsingPostRequest.body;
|
2865
|
+
}
|
2866
|
+
else {
|
2867
|
+
projectId = addRuleAclUsingPostRequest['project_id'];
|
2868
|
+
body = addRuleAclUsingPostRequest['body'];
|
2869
|
+
}
|
2870
|
+
}
|
2871
|
+
if (projectId === null || projectId === undefined) {
|
2872
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addRuleAclUsingPost.');
|
2873
|
+
}
|
2874
|
+
if (body === null || body === undefined) {
|
2875
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2876
|
+
}
|
2877
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2878
|
+
options.data = body !== undefined ? body : {};
|
2879
|
+
options.pathParams = { 'project_id': projectId, };
|
2880
|
+
options.headers = localVarHeaderParameter;
|
2881
|
+
return options;
|
2882
|
+
},
|
2883
|
+
/**
|
2884
|
+
* 删除ACL规则组
|
2885
|
+
*
|
2886
|
+
* 详细说明请参考华为云API Explorer。
|
2887
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2888
|
+
*/
|
2889
|
+
deleteRuleAclUsingDelete: function (deleteRuleAclUsingDeleteRequest) {
|
2890
|
+
var options = {
|
2891
|
+
method: "DELETE",
|
2892
|
+
url: "/v1/{project_id}/acl-rule/{acl_rule_id}",
|
2893
|
+
contentType: "application/json",
|
2894
|
+
queryParams: {},
|
2895
|
+
pathParams: {},
|
2896
|
+
headers: {},
|
2897
|
+
data: {}
|
2898
|
+
};
|
2899
|
+
var localVarHeaderParameter = {};
|
2900
|
+
var projectId;
|
2901
|
+
var aclRuleId;
|
2902
|
+
if (deleteRuleAclUsingDeleteRequest !== null && deleteRuleAclUsingDeleteRequest !== undefined) {
|
2903
|
+
if (deleteRuleAclUsingDeleteRequest instanceof DeleteRuleAclUsingDeleteRequest_1.DeleteRuleAclUsingDeleteRequest) {
|
2904
|
+
projectId = deleteRuleAclUsingDeleteRequest.projectId;
|
2905
|
+
aclRuleId = deleteRuleAclUsingDeleteRequest.aclRuleId;
|
2906
|
+
}
|
2907
|
+
else {
|
2908
|
+
projectId = deleteRuleAclUsingDeleteRequest['project_id'];
|
2909
|
+
aclRuleId = deleteRuleAclUsingDeleteRequest['acl_rule_id'];
|
2910
|
+
}
|
2911
|
+
}
|
2912
|
+
if (projectId === null || projectId === undefined) {
|
2913
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteRuleAclUsingDelete.');
|
2914
|
+
}
|
2915
|
+
if (aclRuleId === null || aclRuleId === undefined) {
|
2916
|
+
throw new RequiredError('aclRuleId', 'Required parameter aclRuleId was null or undefined when calling deleteRuleAclUsingDelete.');
|
2917
|
+
}
|
2918
|
+
options.pathParams = { 'project_id': projectId, 'acl_rule_id': aclRuleId, };
|
2919
|
+
options.headers = localVarHeaderParameter;
|
2920
|
+
return options;
|
2921
|
+
},
|
2922
|
+
/**
|
2923
|
+
* ACL防护规则优先级设置
|
2924
|
+
*
|
2925
|
+
* 详细说明请参考华为云API Explorer。
|
2926
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2927
|
+
*/
|
2928
|
+
listRuleAclUsingPut: function (listRuleAclUsingPutRequest) {
|
2929
|
+
var options = {
|
2930
|
+
method: "PUT",
|
2931
|
+
url: "/v1/{project_id}/acl-rule/order/{acl_rule_id}",
|
2932
|
+
contentType: "application/json",
|
2933
|
+
queryParams: {},
|
2934
|
+
pathParams: {},
|
2935
|
+
headers: {},
|
2936
|
+
data: {}
|
2937
|
+
};
|
2938
|
+
var localVarHeaderParameter = {};
|
2939
|
+
var body;
|
2940
|
+
var projectId;
|
2941
|
+
var aclRuleId;
|
2942
|
+
if (listRuleAclUsingPutRequest !== null && listRuleAclUsingPutRequest !== undefined) {
|
2943
|
+
if (listRuleAclUsingPutRequest instanceof ListRuleAclUsingPutRequest_1.ListRuleAclUsingPutRequest) {
|
2944
|
+
projectId = listRuleAclUsingPutRequest.projectId;
|
2945
|
+
aclRuleId = listRuleAclUsingPutRequest.aclRuleId;
|
2946
|
+
body = listRuleAclUsingPutRequest.body;
|
2947
|
+
}
|
2948
|
+
else {
|
2949
|
+
projectId = listRuleAclUsingPutRequest['project_id'];
|
2950
|
+
aclRuleId = listRuleAclUsingPutRequest['acl_rule_id'];
|
2951
|
+
body = listRuleAclUsingPutRequest['body'];
|
2952
|
+
}
|
2953
|
+
}
|
2954
|
+
if (projectId === null || projectId === undefined) {
|
2955
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listRuleAclUsingPut.');
|
2956
|
+
}
|
2957
|
+
if (aclRuleId === null || aclRuleId === undefined) {
|
2958
|
+
throw new RequiredError('aclRuleId', 'Required parameter aclRuleId was null or undefined when calling listRuleAclUsingPut.');
|
2959
|
+
}
|
2960
|
+
if (body === null || body === undefined) {
|
2961
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2962
|
+
}
|
2963
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2964
|
+
options.data = body !== undefined ? body : {};
|
2965
|
+
options.pathParams = { 'project_id': projectId, 'acl_rule_id': aclRuleId, };
|
2966
|
+
options.headers = localVarHeaderParameter;
|
2967
|
+
return options;
|
2968
|
+
},
|
2969
|
+
/**
|
2970
|
+
* 查询防护规则
|
2971
|
+
*
|
2972
|
+
* 详细说明请参考华为云API Explorer。
|
2973
|
+
* Please refer to Huawei cloud API Explorer for details.
|
2974
|
+
*/
|
2975
|
+
listRuleAclsUsingGet: function (listRuleAclsUsingGetRequest) {
|
2976
|
+
var options = {
|
2977
|
+
method: "GET",
|
2978
|
+
url: "/v1/{project_id}/acl-rules",
|
2979
|
+
contentType: "application/json",
|
2980
|
+
queryParams: {},
|
2981
|
+
pathParams: {},
|
2982
|
+
headers: {},
|
2983
|
+
data: {}
|
2984
|
+
};
|
2985
|
+
var localVarHeaderParameter = {};
|
2986
|
+
var localVarQueryParameter = {};
|
2987
|
+
var projectId;
|
2988
|
+
var objectId;
|
2989
|
+
var limit;
|
2990
|
+
var offset;
|
2991
|
+
var type;
|
2992
|
+
var protocol;
|
2993
|
+
var ip;
|
2994
|
+
var name;
|
2995
|
+
var direction;
|
2996
|
+
var status;
|
2997
|
+
var actionType;
|
2998
|
+
var addressType;
|
2999
|
+
if (listRuleAclsUsingGetRequest !== null && listRuleAclsUsingGetRequest !== undefined) {
|
3000
|
+
if (listRuleAclsUsingGetRequest instanceof ListRuleAclsUsingGetRequest_1.ListRuleAclsUsingGetRequest) {
|
3001
|
+
projectId = listRuleAclsUsingGetRequest.projectId;
|
3002
|
+
objectId = listRuleAclsUsingGetRequest.objectId;
|
3003
|
+
limit = listRuleAclsUsingGetRequest.limit;
|
3004
|
+
offset = listRuleAclsUsingGetRequest.offset;
|
3005
|
+
type = listRuleAclsUsingGetRequest.type;
|
3006
|
+
protocol = listRuleAclsUsingGetRequest.protocol;
|
3007
|
+
ip = listRuleAclsUsingGetRequest.ip;
|
3008
|
+
name = listRuleAclsUsingGetRequest.name;
|
3009
|
+
direction = listRuleAclsUsingGetRequest.direction;
|
3010
|
+
status = listRuleAclsUsingGetRequest.status;
|
3011
|
+
actionType = listRuleAclsUsingGetRequest.actionType;
|
3012
|
+
addressType = listRuleAclsUsingGetRequest.addressType;
|
3013
|
+
}
|
3014
|
+
else {
|
3015
|
+
projectId = listRuleAclsUsingGetRequest['project_id'];
|
3016
|
+
objectId = listRuleAclsUsingGetRequest['object_id'];
|
3017
|
+
limit = listRuleAclsUsingGetRequest['limit'];
|
3018
|
+
offset = listRuleAclsUsingGetRequest['offset'];
|
3019
|
+
type = listRuleAclsUsingGetRequest['type'];
|
3020
|
+
protocol = listRuleAclsUsingGetRequest['protocol'];
|
3021
|
+
ip = listRuleAclsUsingGetRequest['ip'];
|
3022
|
+
name = listRuleAclsUsingGetRequest['name'];
|
3023
|
+
direction = listRuleAclsUsingGetRequest['direction'];
|
3024
|
+
status = listRuleAclsUsingGetRequest['status'];
|
3025
|
+
actionType = listRuleAclsUsingGetRequest['action_type'];
|
3026
|
+
addressType = listRuleAclsUsingGetRequest['address_type'];
|
3027
|
+
}
|
3028
|
+
}
|
3029
|
+
if (projectId === null || projectId === undefined) {
|
3030
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listRuleAclsUsingGet.');
|
3031
|
+
}
|
3032
|
+
if (objectId === null || objectId === undefined) {
|
3033
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listRuleAclsUsingGet.');
|
3034
|
+
}
|
3035
|
+
if (objectId !== null && objectId !== undefined) {
|
3036
|
+
localVarQueryParameter['object_id'] = objectId;
|
3037
|
+
}
|
3038
|
+
if (limit === null || limit === undefined) {
|
3039
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listRuleAclsUsingGet.');
|
3040
|
+
}
|
3041
|
+
if (limit !== null && limit !== undefined) {
|
3042
|
+
localVarQueryParameter['limit'] = limit;
|
3043
|
+
}
|
3044
|
+
if (offset === null || offset === undefined) {
|
3045
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listRuleAclsUsingGet.');
|
3046
|
+
}
|
3047
|
+
if (offset !== null && offset !== undefined) {
|
3048
|
+
localVarQueryParameter['offset'] = offset;
|
3049
|
+
}
|
3050
|
+
if (type !== null && type !== undefined) {
|
3051
|
+
localVarQueryParameter['type'] = type;
|
3052
|
+
}
|
3053
|
+
if (protocol !== null && protocol !== undefined) {
|
3054
|
+
localVarQueryParameter['protocol'] = protocol;
|
3055
|
+
}
|
3056
|
+
if (ip !== null && ip !== undefined) {
|
3057
|
+
localVarQueryParameter['ip'] = ip;
|
3058
|
+
}
|
3059
|
+
if (name !== null && name !== undefined) {
|
3060
|
+
localVarQueryParameter['name'] = name;
|
3061
|
+
}
|
3062
|
+
if (direction !== null && direction !== undefined) {
|
3063
|
+
localVarQueryParameter['direction'] = direction;
|
3064
|
+
}
|
3065
|
+
if (status !== null && status !== undefined) {
|
3066
|
+
localVarQueryParameter['status'] = status;
|
3067
|
+
}
|
3068
|
+
if (actionType !== null && actionType !== undefined) {
|
3069
|
+
localVarQueryParameter['action_type'] = actionType;
|
3070
|
+
}
|
3071
|
+
if (addressType !== null && addressType !== undefined) {
|
3072
|
+
localVarQueryParameter['address_type'] = addressType;
|
3073
|
+
}
|
3074
|
+
options.queryParams = localVarQueryParameter;
|
3075
|
+
options.pathParams = { 'project_id': projectId, };
|
3076
|
+
options.headers = localVarHeaderParameter;
|
3077
|
+
return options;
|
3078
|
+
},
|
3079
|
+
/**
|
3080
|
+
* 更新ACL规则
|
3081
|
+
*
|
3082
|
+
* 详细说明请参考华为云API Explorer。
|
3083
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3084
|
+
*/
|
3085
|
+
updateRuleAclUsingPut: function (updateRuleAclUsingPutRequest) {
|
3086
|
+
var options = {
|
3087
|
+
method: "PUT",
|
3088
|
+
url: "/v1/{project_id}/acl-rule/{acl_rule_id}",
|
3089
|
+
contentType: "application/json",
|
3090
|
+
queryParams: {},
|
3091
|
+
pathParams: {},
|
3092
|
+
headers: {},
|
3093
|
+
data: {}
|
3094
|
+
};
|
3095
|
+
var localVarHeaderParameter = {};
|
3096
|
+
var body;
|
3097
|
+
var projectId;
|
3098
|
+
var aclRuleId;
|
3099
|
+
if (updateRuleAclUsingPutRequest !== null && updateRuleAclUsingPutRequest !== undefined) {
|
3100
|
+
if (updateRuleAclUsingPutRequest instanceof UpdateRuleAclUsingPutRequest_1.UpdateRuleAclUsingPutRequest) {
|
3101
|
+
projectId = updateRuleAclUsingPutRequest.projectId;
|
3102
|
+
aclRuleId = updateRuleAclUsingPutRequest.aclRuleId;
|
3103
|
+
body = updateRuleAclUsingPutRequest.body;
|
3104
|
+
}
|
3105
|
+
else {
|
3106
|
+
projectId = updateRuleAclUsingPutRequest['project_id'];
|
3107
|
+
aclRuleId = updateRuleAclUsingPutRequest['acl_rule_id'];
|
3108
|
+
body = updateRuleAclUsingPutRequest['body'];
|
3109
|
+
}
|
3110
|
+
}
|
3111
|
+
if (projectId === null || projectId === undefined) {
|
3112
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateRuleAclUsingPut.');
|
3113
|
+
}
|
3114
|
+
if (aclRuleId === null || aclRuleId === undefined) {
|
3115
|
+
throw new RequiredError('aclRuleId', 'Required parameter aclRuleId was null or undefined when calling updateRuleAclUsingPut.');
|
3116
|
+
}
|
3117
|
+
if (body === null || body === undefined) {
|
3118
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3119
|
+
}
|
3120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3121
|
+
options.data = body !== undefined ? body : {};
|
3122
|
+
options.pathParams = { 'project_id': projectId, 'acl_rule_id': aclRuleId, };
|
3123
|
+
options.headers = localVarHeaderParameter;
|
3124
|
+
return options;
|
3125
|
+
},
|
3126
|
+
/**
|
3127
|
+
* 开启关闭EIP
|
3128
|
+
*
|
3129
|
+
* 详细说明请参考华为云API Explorer。
|
3130
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3131
|
+
*/
|
3132
|
+
changeProtectEip: function (changeProtectEipRequest) {
|
3133
|
+
var options = {
|
3134
|
+
method: "POST",
|
3135
|
+
url: "/v1/{project_id}/eip/protect",
|
3136
|
+
contentType: "application/json",
|
3137
|
+
queryParams: {},
|
3138
|
+
pathParams: {},
|
3139
|
+
headers: {},
|
3140
|
+
data: {}
|
3141
|
+
};
|
3142
|
+
var localVarHeaderParameter = {};
|
3143
|
+
var body;
|
3144
|
+
var projectId;
|
3145
|
+
if (changeProtectEipRequest !== null && changeProtectEipRequest !== undefined) {
|
3146
|
+
if (changeProtectEipRequest instanceof ChangeProtectEipRequest_1.ChangeProtectEipRequest) {
|
3147
|
+
projectId = changeProtectEipRequest.projectId;
|
3148
|
+
body = changeProtectEipRequest.body;
|
3149
|
+
}
|
3150
|
+
else {
|
3151
|
+
projectId = changeProtectEipRequest['project_id'];
|
3152
|
+
body = changeProtectEipRequest['body'];
|
3153
|
+
}
|
3154
|
+
}
|
3155
|
+
if (projectId === null || projectId === undefined) {
|
3156
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeProtectEip.');
|
3157
|
+
}
|
3158
|
+
if (body === null || body === undefined) {
|
3159
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3160
|
+
}
|
3161
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3162
|
+
options.data = body !== undefined ? body : {};
|
3163
|
+
options.pathParams = { 'project_id': projectId, };
|
3164
|
+
options.headers = localVarHeaderParameter;
|
3165
|
+
return options;
|
3166
|
+
},
|
3167
|
+
/**
|
3168
|
+
* 查询Eip个数
|
3169
|
+
*
|
3170
|
+
* 详细说明请参考华为云API Explorer。
|
3171
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3172
|
+
*/
|
3173
|
+
countEips: function (countEipsRequest) {
|
3174
|
+
var options = {
|
3175
|
+
method: "GET",
|
3176
|
+
url: "/v1/{project_id}/eip-count/{object_id}",
|
3177
|
+
contentType: "application/json",
|
3178
|
+
queryParams: {},
|
3179
|
+
pathParams: {},
|
3180
|
+
headers: {},
|
3181
|
+
data: {}
|
3182
|
+
};
|
3183
|
+
var localVarHeaderParameter = {};
|
3184
|
+
var projectId;
|
3185
|
+
var objectId;
|
3186
|
+
if (countEipsRequest !== null && countEipsRequest !== undefined) {
|
3187
|
+
if (countEipsRequest instanceof CountEipsRequest_1.CountEipsRequest) {
|
3188
|
+
projectId = countEipsRequest.projectId;
|
3189
|
+
objectId = countEipsRequest.objectId;
|
3190
|
+
}
|
3191
|
+
else {
|
3192
|
+
projectId = countEipsRequest['project_id'];
|
3193
|
+
objectId = countEipsRequest['object_id'];
|
3194
|
+
}
|
3195
|
+
}
|
3196
|
+
if (projectId === null || projectId === undefined) {
|
3197
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling countEips.');
|
3198
|
+
}
|
3199
|
+
if (objectId === null || objectId === undefined) {
|
3200
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling countEips.');
|
3201
|
+
}
|
3202
|
+
options.pathParams = { 'project_id': projectId, 'object_id': objectId, };
|
3203
|
+
options.headers = localVarHeaderParameter;
|
3204
|
+
return options;
|
3205
|
+
},
|
3206
|
+
/**
|
3207
|
+
* 弹性IP列表查询
|
3208
|
+
*
|
3209
|
+
* 详细说明请参考华为云API Explorer。
|
3210
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3211
|
+
*/
|
3212
|
+
listEipResources: function (listEipResourcesRequest) {
|
3213
|
+
var options = {
|
3214
|
+
method: "GET",
|
3215
|
+
url: "/v1/{project_id}/eips/protect",
|
3216
|
+
contentType: "application/json",
|
3217
|
+
queryParams: {},
|
3218
|
+
pathParams: {},
|
3219
|
+
headers: {},
|
3220
|
+
data: {}
|
3221
|
+
};
|
3222
|
+
var localVarHeaderParameter = {};
|
3223
|
+
var localVarQueryParameter = {};
|
3224
|
+
var projectId;
|
3225
|
+
var objectId;
|
3226
|
+
var limit;
|
3227
|
+
var offset;
|
3228
|
+
var keyWord;
|
3229
|
+
var status;
|
3230
|
+
var sync;
|
3231
|
+
var enterpriseProjectId;
|
3232
|
+
var deviceKey;
|
3233
|
+
var addressType;
|
3234
|
+
if (listEipResourcesRequest !== null && listEipResourcesRequest !== undefined) {
|
3235
|
+
if (listEipResourcesRequest instanceof ListEipResourcesRequest_1.ListEipResourcesRequest) {
|
3236
|
+
projectId = listEipResourcesRequest.projectId;
|
3237
|
+
objectId = listEipResourcesRequest.objectId;
|
3238
|
+
limit = listEipResourcesRequest.limit;
|
3239
|
+
offset = listEipResourcesRequest.offset;
|
3240
|
+
keyWord = listEipResourcesRequest.keyWord;
|
3241
|
+
status = listEipResourcesRequest.status;
|
3242
|
+
sync = listEipResourcesRequest.sync;
|
3243
|
+
enterpriseProjectId = listEipResourcesRequest.enterpriseProjectId;
|
3244
|
+
deviceKey = listEipResourcesRequest.deviceKey;
|
3245
|
+
addressType = listEipResourcesRequest.addressType;
|
3246
|
+
}
|
3247
|
+
else {
|
3248
|
+
projectId = listEipResourcesRequest['project_id'];
|
3249
|
+
objectId = listEipResourcesRequest['object_id'];
|
3250
|
+
limit = listEipResourcesRequest['limit'];
|
3251
|
+
offset = listEipResourcesRequest['offset'];
|
3252
|
+
keyWord = listEipResourcesRequest['key_word'];
|
3253
|
+
status = listEipResourcesRequest['status'];
|
3254
|
+
sync = listEipResourcesRequest['sync'];
|
3255
|
+
enterpriseProjectId = listEipResourcesRequest['enterprise_project_id'];
|
3256
|
+
deviceKey = listEipResourcesRequest['device_key'];
|
3257
|
+
addressType = listEipResourcesRequest['address_type'];
|
3258
|
+
}
|
3259
|
+
}
|
3260
|
+
if (projectId === null || projectId === undefined) {
|
3261
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listEipResources.');
|
3262
|
+
}
|
3263
|
+
if (objectId === null || objectId === undefined) {
|
3264
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listEipResources.');
|
3265
|
+
}
|
3266
|
+
if (objectId !== null && objectId !== undefined) {
|
3267
|
+
localVarQueryParameter['object_id'] = objectId;
|
3268
|
+
}
|
3269
|
+
if (limit === null || limit === undefined) {
|
3270
|
+
throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listEipResources.');
|
3271
|
+
}
|
3272
|
+
if (limit !== null && limit !== undefined) {
|
3273
|
+
localVarQueryParameter['limit'] = limit;
|
3274
|
+
}
|
3275
|
+
if (offset === null || offset === undefined) {
|
3276
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listEipResources.');
|
3277
|
+
}
|
3278
|
+
if (offset !== null && offset !== undefined) {
|
3279
|
+
localVarQueryParameter['offset'] = offset;
|
3280
|
+
}
|
3281
|
+
if (keyWord !== null && keyWord !== undefined) {
|
3282
|
+
localVarQueryParameter['key_word'] = keyWord;
|
3283
|
+
}
|
3284
|
+
if (status !== null && status !== undefined) {
|
3285
|
+
localVarQueryParameter['status'] = status;
|
3286
|
+
}
|
3287
|
+
if (sync !== null && sync !== undefined) {
|
3288
|
+
localVarQueryParameter['sync'] = sync;
|
3289
|
+
}
|
3290
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3291
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3292
|
+
}
|
3293
|
+
if (deviceKey !== null && deviceKey !== undefined) {
|
3294
|
+
localVarQueryParameter['device_key'] = deviceKey;
|
3295
|
+
}
|
3296
|
+
if (addressType !== null && addressType !== undefined) {
|
3297
|
+
localVarQueryParameter['address_type'] = addressType;
|
3298
|
+
}
|
3299
|
+
options.queryParams = localVarQueryParameter;
|
3300
|
+
options.pathParams = { 'project_id': projectId, };
|
3301
|
+
options.headers = localVarHeaderParameter;
|
3302
|
+
return options;
|
3303
|
+
},
|
3304
|
+
/**
|
3305
|
+
* 切换开关状态
|
3306
|
+
*
|
3307
|
+
* 详细说明请参考华为云API Explorer。
|
3308
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3309
|
+
*/
|
3310
|
+
changeIpsSwitchUsingPost: function (changeIpsSwitchUsingPostRequest) {
|
3311
|
+
var options = {
|
3312
|
+
method: "POST",
|
3313
|
+
url: "/v1/{project_id}/ips/switch",
|
3314
|
+
contentType: "application/json",
|
3315
|
+
queryParams: {},
|
3316
|
+
pathParams: {},
|
3317
|
+
headers: {},
|
3318
|
+
data: {}
|
3319
|
+
};
|
3320
|
+
var localVarHeaderParameter = {};
|
3321
|
+
var body;
|
3322
|
+
var projectId;
|
3323
|
+
if (changeIpsSwitchUsingPostRequest !== null && changeIpsSwitchUsingPostRequest !== undefined) {
|
3324
|
+
if (changeIpsSwitchUsingPostRequest instanceof ChangeIpsSwitchUsingPostRequest_1.ChangeIpsSwitchUsingPostRequest) {
|
3325
|
+
projectId = changeIpsSwitchUsingPostRequest.projectId;
|
3326
|
+
body = changeIpsSwitchUsingPostRequest.body;
|
3327
|
+
}
|
3328
|
+
else {
|
3329
|
+
projectId = changeIpsSwitchUsingPostRequest['project_id'];
|
3330
|
+
body = changeIpsSwitchUsingPostRequest['body'];
|
3331
|
+
}
|
3332
|
+
}
|
3333
|
+
if (projectId === null || projectId === undefined) {
|
3334
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeIpsSwitchUsingPost.');
|
3335
|
+
}
|
3336
|
+
if (body === null || body === undefined) {
|
3337
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3338
|
+
}
|
3339
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3340
|
+
options.data = body !== undefined ? body : {};
|
3341
|
+
options.pathParams = { 'project_id': projectId, };
|
3342
|
+
options.headers = localVarHeaderParameter;
|
3343
|
+
return options;
|
3344
|
+
},
|
3345
|
+
/**
|
3346
|
+
* 查询IPS特性开关状态
|
3347
|
+
*
|
3348
|
+
* 详细说明请参考华为云API Explorer。
|
3349
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3350
|
+
*/
|
3351
|
+
listIpsSwitchStatusUsingGet: function (listIpsSwitchStatusUsingGetRequest) {
|
3352
|
+
var options = {
|
3353
|
+
method: "GET",
|
3354
|
+
url: "/v1/{project_id}/ips/switch",
|
3355
|
+
contentType: "application/json",
|
3356
|
+
queryParams: {},
|
3357
|
+
pathParams: {},
|
3358
|
+
headers: {},
|
3359
|
+
data: {}
|
3360
|
+
};
|
3361
|
+
var localVarHeaderParameter = {};
|
3362
|
+
var localVarQueryParameter = {};
|
3363
|
+
var projectId;
|
3364
|
+
var objectId;
|
3365
|
+
if (listIpsSwitchStatusUsingGetRequest !== null && listIpsSwitchStatusUsingGetRequest !== undefined) {
|
3366
|
+
if (listIpsSwitchStatusUsingGetRequest instanceof ListIpsSwitchStatusUsingGetRequest_1.ListIpsSwitchStatusUsingGetRequest) {
|
3367
|
+
projectId = listIpsSwitchStatusUsingGetRequest.projectId;
|
3368
|
+
objectId = listIpsSwitchStatusUsingGetRequest.objectId;
|
3369
|
+
}
|
3370
|
+
else {
|
3371
|
+
projectId = listIpsSwitchStatusUsingGetRequest['project_id'];
|
3372
|
+
objectId = listIpsSwitchStatusUsingGetRequest['object_id'];
|
3373
|
+
}
|
3374
|
+
}
|
3375
|
+
if (projectId === null || projectId === undefined) {
|
3376
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listIpsSwitchStatusUsingGet.');
|
3377
|
+
}
|
3378
|
+
if (objectId === null || objectId === undefined) {
|
3379
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listIpsSwitchStatusUsingGet.');
|
3380
|
+
}
|
3381
|
+
if (objectId !== null && objectId !== undefined) {
|
3382
|
+
localVarQueryParameter['object_id'] = objectId;
|
3383
|
+
}
|
3384
|
+
options.queryParams = localVarQueryParameter;
|
3385
|
+
options.pathParams = { 'project_id': projectId, };
|
3386
|
+
options.headers = localVarHeaderParameter;
|
3387
|
+
return options;
|
3388
|
+
},
|
3389
|
+
/**
|
3390
|
+
* 查询防护vpc信息
|
3391
|
+
*
|
3392
|
+
* 详细说明请参考华为云API Explorer。
|
3393
|
+
* Please refer to Huawei cloud API Explorer for details.
|
3394
|
+
*/
|
3395
|
+
listVpcProtects: function (listVpcProtectsRequest) {
|
3396
|
+
var options = {
|
3397
|
+
method: "GET",
|
3398
|
+
url: "/v1/{project_id}/vpcs/protection",
|
3399
|
+
contentType: "application/json",
|
3400
|
+
queryParams: {},
|
3401
|
+
pathParams: {},
|
3402
|
+
headers: {},
|
3403
|
+
data: {}
|
3404
|
+
};
|
3405
|
+
var localVarHeaderParameter = {};
|
3406
|
+
var localVarQueryParameter = {};
|
3407
|
+
var projectId;
|
3408
|
+
var objectId;
|
3409
|
+
if (listVpcProtectsRequest !== null && listVpcProtectsRequest !== undefined) {
|
3410
|
+
if (listVpcProtectsRequest instanceof ListVpcProtectsRequest_1.ListVpcProtectsRequest) {
|
3411
|
+
projectId = listVpcProtectsRequest.projectId;
|
3412
|
+
objectId = listVpcProtectsRequest.objectId;
|
3413
|
+
}
|
3414
|
+
else {
|
3415
|
+
projectId = listVpcProtectsRequest['project_id'];
|
3416
|
+
objectId = listVpcProtectsRequest['object_id'];
|
3417
|
+
}
|
3418
|
+
}
|
3419
|
+
if (projectId === null || projectId === undefined) {
|
3420
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listVpcProtects.');
|
3421
|
+
}
|
3422
|
+
if (objectId === null || objectId === undefined) {
|
3423
|
+
throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listVpcProtects.');
|
3424
|
+
}
|
3425
|
+
if (objectId !== null && objectId !== undefined) {
|
3426
|
+
localVarQueryParameter['object_id'] = objectId;
|
3427
|
+
}
|
3428
|
+
options.queryParams = localVarQueryParameter;
|
3429
|
+
options.pathParams = { 'project_id': projectId, };
|
3430
|
+
options.headers = localVarHeaderParameter;
|
3431
|
+
return options;
|
3432
|
+
},
|
3433
|
+
};
|
3434
|
+
};
|
3435
|
+
exports.ParamCreater = ParamCreater;
|
3436
|
+
function newClient(client) {
|
3437
|
+
return new CfwClient(client);
|
3438
|
+
}
|
3439
|
+
/**
|
3440
|
+
*
|
3441
|
+
* @export
|
3442
|
+
* @class RequiredError
|
3443
|
+
* @extends {Error}
|
3444
|
+
*/
|
3445
|
+
var RequiredError = /** @class */ (function (_super) {
|
3446
|
+
__extends(RequiredError, _super);
|
3447
|
+
function RequiredError(field, msg) {
|
3448
|
+
var _this = _super.call(this, msg) || this;
|
3449
|
+
_this.field = field;
|
3450
|
+
_this.name = "RequiredError";
|
3451
|
+
return _this;
|
3452
|
+
}
|
3453
|
+
return RequiredError;
|
3454
|
+
}(Error));
|
3455
|
+
exports.RequiredError = RequiredError;
|