From 131a52ee78c598af8899ce6f332174a3d802ba0a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 10 May 2021 02:39:56 +0000 Subject: [PATCH] Delete Api. --- CHANGELOG | 3 + VERSION | 2 +- dcdn/CMakeLists.txt | 20 ++ dcdn/include/alibabacloud/dcdn/DcdnClient.h | 40 ++++ .../model/DescribeDcdnBlockedRegionsRequest.h | 51 +++++ .../model/DescribeDcdnBlockedRegionsResult.h | 57 ++++++ .../model/DescribeDcdnSecFuncInfoRequest.h | 54 ++++++ .../model/DescribeDcdnSecFuncInfoResult.h | 62 ++++++ .../DescribeDcdnUserSecDropByMinuteRequest.h | 75 ++++++++ .../DescribeDcdnUserSecDropByMinuteResult.h | 70 +++++++ .../dcdn/model/DescribeUserErStatusRequest.h | 51 +++++ .../dcdn/model/DescribeUserErStatusResult.h | 57 ++++++ .../DescribeUserLogserviceStatusRequest.h | 51 +++++ .../DescribeUserLogserviceStatusResult.h | 57 ++++++ dcdn/src/DcdnClient.cc | 180 ++++++++++++++++++ .../DescribeDcdnBlockedRegionsRequest.cc | 51 +++++ .../model/DescribeDcdnBlockedRegionsResult.cc | 61 ++++++ .../model/DescribeDcdnSecFuncInfoRequest.cc | 62 ++++++ .../model/DescribeDcdnSecFuncInfoResult.cc | 80 ++++++++ .../DescribeDcdnUserSecDropByMinuteRequest.cc | 139 ++++++++++++++ .../DescribeDcdnUserSecDropByMinuteResult.cc | 102 ++++++++++ dcdn/src/model/DescribeUserErStatusRequest.cc | 51 +++++ dcdn/src/model/DescribeUserErStatusResult.cc | 72 +++++++ .../DescribeUserLogserviceStatusRequest.cc | 51 +++++ .../DescribeUserLogserviceStatusResult.cc | 72 +++++++ 25 files changed, 1570 insertions(+), 1 deletion(-) create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h create mode 100644 dcdn/src/model/DescribeDcdnBlockedRegionsRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnBlockedRegionsResult.cc create mode 100644 dcdn/src/model/DescribeDcdnSecFuncInfoRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnSecFuncInfoResult.cc create mode 100644 dcdn/src/model/DescribeDcdnUserSecDropByMinuteRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnUserSecDropByMinuteResult.cc create mode 100644 dcdn/src/model/DescribeUserErStatusRequest.cc create mode 100644 dcdn/src/model/DescribeUserErStatusResult.cc create mode 100644 dcdn/src/model/DescribeUserLogserviceStatusRequest.cc create mode 100644 dcdn/src/model/DescribeUserLogserviceStatusResult.cc diff --git a/CHANGELOG b/CHANGELOG index 7ec7e4ff3..8287d4c19 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-10 Version: 1.36.719 +- Delete Api. + 2021-05-10 Version: 1.36.718 - Delete API. diff --git a/VERSION b/VERSION index 55899d935..28cfaa53b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.718 \ No newline at end of file +1.36.719 \ No newline at end of file diff --git a/dcdn/CMakeLists.txt b/dcdn/CMakeLists.txt index 56fc85f37..c23675d27 100644 --- a/dcdn/CMakeLists.txt +++ b/dcdn/CMakeLists.txt @@ -65,6 +65,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeDcdnBgpBpsDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnBgpTrafficDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnBgpTrafficDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsResult.h include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailResult.h include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h @@ -177,6 +179,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeDcdnReportResult.h include/alibabacloud/dcdn/model/DescribeDcdnReportListRequest.h include/alibabacloud/dcdn/model/DescribeDcdnReportListResult.h + include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoResult.h include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h include/alibabacloud/dcdn/model/DescribeDcdnServiceResult.h include/alibabacloud/dcdn/model/DescribeDcdnStagingIpRequest.h @@ -201,6 +205,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropRequest.h include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropResult.h + include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteResult.h include/alibabacloud/dcdn/model/DescribeDcdnUserTagsRequest.h include/alibabacloud/dcdn/model/DescribeDcdnUserTagsResult.h include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h @@ -211,6 +217,10 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h include/alibabacloud/dcdn/model/DescribeUserDcdnStatusResult.h + include/alibabacloud/dcdn/model/DescribeUserErStatusRequest.h + include/alibabacloud/dcdn/model/DescribeUserErStatusResult.h + include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusRequest.h + include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h include/alibabacloud/dcdn/model/DisableDcdnDomainOfflineLogDeliveryRequest.h include/alibabacloud/dcdn/model/DisableDcdnDomainOfflineLogDeliveryResult.h include/alibabacloud/dcdn/model/DisableDcdnOfflineLogDeliveryRequest.h @@ -306,6 +316,8 @@ set(dcdn_src src/model/DescribeDcdnBgpBpsDataResult.cc src/model/DescribeDcdnBgpTrafficDataRequest.cc src/model/DescribeDcdnBgpTrafficDataResult.cc + src/model/DescribeDcdnBlockedRegionsRequest.cc + src/model/DescribeDcdnBlockedRegionsResult.cc src/model/DescribeDcdnCertificateDetailRequest.cc src/model/DescribeDcdnCertificateDetailResult.cc src/model/DescribeDcdnCertificateListRequest.cc @@ -418,6 +430,8 @@ set(dcdn_src src/model/DescribeDcdnReportResult.cc src/model/DescribeDcdnReportListRequest.cc src/model/DescribeDcdnReportListResult.cc + src/model/DescribeDcdnSecFuncInfoRequest.cc + src/model/DescribeDcdnSecFuncInfoResult.cc src/model/DescribeDcdnServiceRequest.cc src/model/DescribeDcdnServiceResult.cc src/model/DescribeDcdnStagingIpRequest.cc @@ -442,6 +456,8 @@ set(dcdn_src src/model/DescribeDcdnUserResourcePackageResult.cc src/model/DescribeDcdnUserSecDropRequest.cc src/model/DescribeDcdnUserSecDropResult.cc + src/model/DescribeDcdnUserSecDropByMinuteRequest.cc + src/model/DescribeDcdnUserSecDropByMinuteResult.cc src/model/DescribeDcdnUserTagsRequest.cc src/model/DescribeDcdnUserTagsResult.cc src/model/DescribeDcdnVerifyContentRequest.cc @@ -452,6 +468,10 @@ set(dcdn_src src/model/DescribeUserDcdnIpaStatusResult.cc src/model/DescribeUserDcdnStatusRequest.cc src/model/DescribeUserDcdnStatusResult.cc + src/model/DescribeUserErStatusRequest.cc + src/model/DescribeUserErStatusResult.cc + src/model/DescribeUserLogserviceStatusRequest.cc + src/model/DescribeUserLogserviceStatusResult.cc src/model/DisableDcdnDomainOfflineLogDeliveryRequest.cc src/model/DisableDcdnDomainOfflineLogDeliveryResult.cc src/model/DisableDcdnOfflineLogDeliveryRequest.cc diff --git a/dcdn/include/alibabacloud/dcdn/DcdnClient.h b/dcdn/include/alibabacloud/dcdn/DcdnClient.h index 040e4b6e2..a99054229 100644 --- a/dcdn/include/alibabacloud/dcdn/DcdnClient.h +++ b/dcdn/include/alibabacloud/dcdn/DcdnClient.h @@ -66,6 +66,8 @@ #include "model/DescribeDcdnBgpBpsDataResult.h" #include "model/DescribeDcdnBgpTrafficDataRequest.h" #include "model/DescribeDcdnBgpTrafficDataResult.h" +#include "model/DescribeDcdnBlockedRegionsRequest.h" +#include "model/DescribeDcdnBlockedRegionsResult.h" #include "model/DescribeDcdnCertificateDetailRequest.h" #include "model/DescribeDcdnCertificateDetailResult.h" #include "model/DescribeDcdnCertificateListRequest.h" @@ -178,6 +180,8 @@ #include "model/DescribeDcdnReportResult.h" #include "model/DescribeDcdnReportListRequest.h" #include "model/DescribeDcdnReportListResult.h" +#include "model/DescribeDcdnSecFuncInfoRequest.h" +#include "model/DescribeDcdnSecFuncInfoResult.h" #include "model/DescribeDcdnServiceRequest.h" #include "model/DescribeDcdnServiceResult.h" #include "model/DescribeDcdnStagingIpRequest.h" @@ -202,6 +206,8 @@ #include "model/DescribeDcdnUserResourcePackageResult.h" #include "model/DescribeDcdnUserSecDropRequest.h" #include "model/DescribeDcdnUserSecDropResult.h" +#include "model/DescribeDcdnUserSecDropByMinuteRequest.h" +#include "model/DescribeDcdnUserSecDropByMinuteResult.h" #include "model/DescribeDcdnUserTagsRequest.h" #include "model/DescribeDcdnUserTagsResult.h" #include "model/DescribeDcdnVerifyContentRequest.h" @@ -212,6 +218,10 @@ #include "model/DescribeUserDcdnIpaStatusResult.h" #include "model/DescribeUserDcdnStatusRequest.h" #include "model/DescribeUserDcdnStatusResult.h" +#include "model/DescribeUserErStatusRequest.h" +#include "model/DescribeUserErStatusResult.h" +#include "model/DescribeUserLogserviceStatusRequest.h" +#include "model/DescribeUserLogserviceStatusResult.h" #include "model/DisableDcdnDomainOfflineLogDeliveryRequest.h" #include "model/DisableDcdnDomainOfflineLogDeliveryResult.h" #include "model/DisableDcdnOfflineLogDeliveryRequest.h" @@ -335,6 +345,9 @@ namespace AlibabaCloud typedef Outcome DescribeDcdnBgpTrafficDataOutcome; typedef std::future DescribeDcdnBgpTrafficDataOutcomeCallable; typedef std::function&)> DescribeDcdnBgpTrafficDataAsyncHandler; + typedef Outcome DescribeDcdnBlockedRegionsOutcome; + typedef std::future DescribeDcdnBlockedRegionsOutcomeCallable; + typedef std::function&)> DescribeDcdnBlockedRegionsAsyncHandler; typedef Outcome DescribeDcdnCertificateDetailOutcome; typedef std::future DescribeDcdnCertificateDetailOutcomeCallable; typedef std::function&)> DescribeDcdnCertificateDetailAsyncHandler; @@ -503,6 +516,9 @@ namespace AlibabaCloud typedef Outcome DescribeDcdnReportListOutcome; typedef std::future DescribeDcdnReportListOutcomeCallable; typedef std::function&)> DescribeDcdnReportListAsyncHandler; + typedef Outcome DescribeDcdnSecFuncInfoOutcome; + typedef std::future DescribeDcdnSecFuncInfoOutcomeCallable; + typedef std::function&)> DescribeDcdnSecFuncInfoAsyncHandler; typedef Outcome DescribeDcdnServiceOutcome; typedef std::future DescribeDcdnServiceOutcomeCallable; typedef std::function&)> DescribeDcdnServiceAsyncHandler; @@ -539,6 +555,9 @@ namespace AlibabaCloud typedef Outcome DescribeDcdnUserSecDropOutcome; typedef std::future DescribeDcdnUserSecDropOutcomeCallable; typedef std::function&)> DescribeDcdnUserSecDropAsyncHandler; + typedef Outcome DescribeDcdnUserSecDropByMinuteOutcome; + typedef std::future DescribeDcdnUserSecDropByMinuteOutcomeCallable; + typedef std::function&)> DescribeDcdnUserSecDropByMinuteAsyncHandler; typedef Outcome DescribeDcdnUserTagsOutcome; typedef std::future DescribeDcdnUserTagsOutcomeCallable; typedef std::function&)> DescribeDcdnUserTagsAsyncHandler; @@ -554,6 +573,12 @@ namespace AlibabaCloud typedef Outcome DescribeUserDcdnStatusOutcome; typedef std::future DescribeUserDcdnStatusOutcomeCallable; typedef std::function&)> DescribeUserDcdnStatusAsyncHandler; + typedef Outcome DescribeUserErStatusOutcome; + typedef std::future DescribeUserErStatusOutcomeCallable; + typedef std::function&)> DescribeUserErStatusAsyncHandler; + typedef Outcome DescribeUserLogserviceStatusOutcome; + typedef std::future DescribeUserLogserviceStatusOutcomeCallable; + typedef std::function&)> DescribeUserLogserviceStatusAsyncHandler; typedef Outcome DisableDcdnDomainOfflineLogDeliveryOutcome; typedef std::future DisableDcdnDomainOfflineLogDeliveryOutcomeCallable; typedef std::function&)> DisableDcdnDomainOfflineLogDeliveryAsyncHandler; @@ -697,6 +722,9 @@ namespace AlibabaCloud DescribeDcdnBgpTrafficDataOutcome describeDcdnBgpTrafficData(const Model::DescribeDcdnBgpTrafficDataRequest &request)const; void describeDcdnBgpTrafficDataAsync(const Model::DescribeDcdnBgpTrafficDataRequest& request, const DescribeDcdnBgpTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnBgpTrafficDataOutcomeCallable describeDcdnBgpTrafficDataCallable(const Model::DescribeDcdnBgpTrafficDataRequest& request) const; + DescribeDcdnBlockedRegionsOutcome describeDcdnBlockedRegions(const Model::DescribeDcdnBlockedRegionsRequest &request)const; + void describeDcdnBlockedRegionsAsync(const Model::DescribeDcdnBlockedRegionsRequest& request, const DescribeDcdnBlockedRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnBlockedRegionsOutcomeCallable describeDcdnBlockedRegionsCallable(const Model::DescribeDcdnBlockedRegionsRequest& request) const; DescribeDcdnCertificateDetailOutcome describeDcdnCertificateDetail(const Model::DescribeDcdnCertificateDetailRequest &request)const; void describeDcdnCertificateDetailAsync(const Model::DescribeDcdnCertificateDetailRequest& request, const DescribeDcdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnCertificateDetailOutcomeCallable describeDcdnCertificateDetailCallable(const Model::DescribeDcdnCertificateDetailRequest& request) const; @@ -865,6 +893,9 @@ namespace AlibabaCloud DescribeDcdnReportListOutcome describeDcdnReportList(const Model::DescribeDcdnReportListRequest &request)const; void describeDcdnReportListAsync(const Model::DescribeDcdnReportListRequest& request, const DescribeDcdnReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnReportListOutcomeCallable describeDcdnReportListCallable(const Model::DescribeDcdnReportListRequest& request) const; + DescribeDcdnSecFuncInfoOutcome describeDcdnSecFuncInfo(const Model::DescribeDcdnSecFuncInfoRequest &request)const; + void describeDcdnSecFuncInfoAsync(const Model::DescribeDcdnSecFuncInfoRequest& request, const DescribeDcdnSecFuncInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnSecFuncInfoOutcomeCallable describeDcdnSecFuncInfoCallable(const Model::DescribeDcdnSecFuncInfoRequest& request) const; DescribeDcdnServiceOutcome describeDcdnService(const Model::DescribeDcdnServiceRequest &request)const; void describeDcdnServiceAsync(const Model::DescribeDcdnServiceRequest& request, const DescribeDcdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnServiceOutcomeCallable describeDcdnServiceCallable(const Model::DescribeDcdnServiceRequest& request) const; @@ -901,6 +932,9 @@ namespace AlibabaCloud DescribeDcdnUserSecDropOutcome describeDcdnUserSecDrop(const Model::DescribeDcdnUserSecDropRequest &request)const; void describeDcdnUserSecDropAsync(const Model::DescribeDcdnUserSecDropRequest& request, const DescribeDcdnUserSecDropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnUserSecDropOutcomeCallable describeDcdnUserSecDropCallable(const Model::DescribeDcdnUserSecDropRequest& request) const; + DescribeDcdnUserSecDropByMinuteOutcome describeDcdnUserSecDropByMinute(const Model::DescribeDcdnUserSecDropByMinuteRequest &request)const; + void describeDcdnUserSecDropByMinuteAsync(const Model::DescribeDcdnUserSecDropByMinuteRequest& request, const DescribeDcdnUserSecDropByMinuteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnUserSecDropByMinuteOutcomeCallable describeDcdnUserSecDropByMinuteCallable(const Model::DescribeDcdnUserSecDropByMinuteRequest& request) const; DescribeDcdnUserTagsOutcome describeDcdnUserTags(const Model::DescribeDcdnUserTagsRequest &request)const; void describeDcdnUserTagsAsync(const Model::DescribeDcdnUserTagsRequest& request, const DescribeDcdnUserTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnUserTagsOutcomeCallable describeDcdnUserTagsCallable(const Model::DescribeDcdnUserTagsRequest& request) const; @@ -916,6 +950,12 @@ namespace AlibabaCloud DescribeUserDcdnStatusOutcome describeUserDcdnStatus(const Model::DescribeUserDcdnStatusRequest &request)const; void describeUserDcdnStatusAsync(const Model::DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserDcdnStatusOutcomeCallable describeUserDcdnStatusCallable(const Model::DescribeUserDcdnStatusRequest& request) const; + DescribeUserErStatusOutcome describeUserErStatus(const Model::DescribeUserErStatusRequest &request)const; + void describeUserErStatusAsync(const Model::DescribeUserErStatusRequest& request, const DescribeUserErStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserErStatusOutcomeCallable describeUserErStatusCallable(const Model::DescribeUserErStatusRequest& request) const; + DescribeUserLogserviceStatusOutcome describeUserLogserviceStatus(const Model::DescribeUserLogserviceStatusRequest &request)const; + void describeUserLogserviceStatusAsync(const Model::DescribeUserLogserviceStatusRequest& request, const DescribeUserLogserviceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserLogserviceStatusOutcomeCallable describeUserLogserviceStatusCallable(const Model::DescribeUserLogserviceStatusRequest& request) const; DisableDcdnDomainOfflineLogDeliveryOutcome disableDcdnDomainOfflineLogDelivery(const Model::DisableDcdnDomainOfflineLogDeliveryRequest &request)const; void disableDcdnDomainOfflineLogDeliveryAsync(const Model::DisableDcdnDomainOfflineLogDeliveryRequest& request, const DisableDcdnDomainOfflineLogDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableDcdnDomainOfflineLogDeliveryOutcomeCallable disableDcdnDomainOfflineLogDeliveryCallable(const Model::DisableDcdnDomainOfflineLogDeliveryRequest& request) const; diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsRequest.h new file mode 100644 index 000000000..edd278128 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnBlockedRegionsRequest : public RpcServiceRequest + { + + public: + DescribeDcdnBlockedRegionsRequest(); + ~DescribeDcdnBlockedRegionsRequest(); + + std::string getLanguage()const; + void setLanguage(const std::string& language); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string language_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsResult.h new file mode 100644 index 000000000..62305a9e7 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnBlockedRegionsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnBlockedRegionsResult : public ServiceResult + { + public: + struct InfoItem + { + std::string continent; + std::string countriesAndRegionsName; + std::string countriesAndRegions; + }; + + + DescribeDcdnBlockedRegionsResult(); + explicit DescribeDcdnBlockedRegionsResult(const std::string &payload); + ~DescribeDcdnBlockedRegionsResult(); + std::vector getInfoList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector infoList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNBLOCKEDREGIONSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoRequest.h new file mode 100644 index 000000000..6aea62d94 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFOREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnSecFuncInfoRequest : public RpcServiceRequest + { + + public: + DescribeDcdnSecFuncInfoRequest(); + ~DescribeDcdnSecFuncInfoRequest(); + + std::string getLang()const; + void setLang(const std::string& lang); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecFuncType()const; + void setSecFuncType(const std::string& secFuncType); + + private: + std::string lang_; + long ownerId_; + std::string secFuncType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFOREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoResult.h new file mode 100644 index 000000000..302530ca2 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnSecFuncInfoResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFORESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnSecFuncInfoResult : public ServiceResult + { + public: + struct ContentItem + { + std::string label; + std::string value; + }; + + + DescribeDcdnSecFuncInfoResult(); + explicit DescribeDcdnSecFuncInfoResult(const std::string &payload); + ~DescribeDcdnSecFuncInfoResult(); + std::string getDescription()const; + std::string getRetCode()const; + std::string getHttpStatus()const; + std::vector getContent()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string retCode_; + std::string httpStatus_; + std::vector content_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNSECFUNCINFORESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteRequest.h new file mode 100644 index 000000000..02a22f690 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTEREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserSecDropByMinuteRequest : public RpcServiceRequest + { + + public: + DescribeDcdnUserSecDropByMinuteRequest(); + ~DescribeDcdnUserSecDropByMinuteRequest(); + + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getPageNumber()const; + void setPageNumber(long pageNumber); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecFunc()const; + void setSecFunc(const std::string& secFunc); + std::string getObject()const; + void setObject(const std::string& object); + + private: + std::string ruleName_; + std::string startTime_; + long pageNumber_; + long pageSize_; + std::string lang_; + std::string domainName_; + std::string endTime_; + long ownerId_; + std::string secFunc_; + std::string object_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTEREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteResult.h new file mode 100644 index 000000000..b469d566d --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserSecDropByMinuteResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTERESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserSecDropByMinuteResult : public ServiceResult + { + public: + struct RowsItem + { + std::string secFunc; + int drops; + std::string object; + std::string tmStr; + std::string domain; + std::string ruleName; + }; + + + DescribeDcdnUserSecDropByMinuteResult(); + explicit DescribeDcdnUserSecDropByMinuteResult(const std::string &payload); + ~DescribeDcdnUserSecDropByMinuteResult(); + int getTotalCount()const; + std::string getDescription()const; + int getLen()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getRows()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string description_; + int len_; + int pageSize_; + int pageNumber_; + std::vector rows_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERSECDROPBYMINUTERESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusRequest.h new file mode 100644 index 000000000..9f1b9f3af --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserErStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserErStatusRequest(); + ~DescribeUserErStatusRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + long ownerId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusResult.h new file mode 100644 index 000000000..17c7e01df --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserErStatusResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserErStatusResult : public ServiceResult + { + public: + + + DescribeUserErStatusResult(); + explicit DescribeUserErStatusResult(const std::string &payload); + ~DescribeUserErStatusResult(); + bool getInDebt()const; + bool getEnabled()const; + bool getInDebtOverdue()const; + bool getOnService()const; + + protected: + void parse(const std::string &payload); + private: + bool inDebt_; + bool enabled_; + bool inDebtOverdue_; + bool onService_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERERSTATUSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusRequest.h new file mode 100644 index 000000000..171bfc392 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserLogserviceStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserLogserviceStatusRequest(); + ~DescribeUserLogserviceStatusRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + long ownerId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h new file mode 100644 index 000000000..2f4490210 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserLogserviceStatusResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserLogserviceStatusResult : public ServiceResult + { + public: + + + DescribeUserLogserviceStatusResult(); + explicit DescribeUserLogserviceStatusResult(const std::string &payload); + ~DescribeUserLogserviceStatusResult(); + bool getInDebt()const; + bool getEnabled()const; + bool getInDebtOverdue()const; + bool getOnService()const; + + protected: + void parse(const std::string &payload); + private: + bool inDebt_; + bool enabled_; + bool inDebtOverdue_; + bool onService_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERLOGSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/dcdn/src/DcdnClient.cc b/dcdn/src/DcdnClient.cc index 9467d8078..8499e1cd4 100644 --- a/dcdn/src/DcdnClient.cc +++ b/dcdn/src/DcdnClient.cc @@ -843,6 +843,42 @@ DcdnClient::DescribeDcdnBgpTrafficDataOutcomeCallable DcdnClient::describeDcdnBg return task->get_future(); } +DcdnClient::DescribeDcdnBlockedRegionsOutcome DcdnClient::describeDcdnBlockedRegions(const DescribeDcdnBlockedRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnBlockedRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnBlockedRegionsOutcome(DescribeDcdnBlockedRegionsResult(outcome.result())); + else + return DescribeDcdnBlockedRegionsOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnBlockedRegionsAsync(const DescribeDcdnBlockedRegionsRequest& request, const DescribeDcdnBlockedRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnBlockedRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnBlockedRegionsOutcomeCallable DcdnClient::describeDcdnBlockedRegionsCallable(const DescribeDcdnBlockedRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnBlockedRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DescribeDcdnCertificateDetailOutcome DcdnClient::describeDcdnCertificateDetail(const DescribeDcdnCertificateDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +2895,42 @@ DcdnClient::DescribeDcdnReportListOutcomeCallable DcdnClient::describeDcdnReport return task->get_future(); } +DcdnClient::DescribeDcdnSecFuncInfoOutcome DcdnClient::describeDcdnSecFuncInfo(const DescribeDcdnSecFuncInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnSecFuncInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnSecFuncInfoOutcome(DescribeDcdnSecFuncInfoResult(outcome.result())); + else + return DescribeDcdnSecFuncInfoOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnSecFuncInfoAsync(const DescribeDcdnSecFuncInfoRequest& request, const DescribeDcdnSecFuncInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnSecFuncInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnSecFuncInfoOutcomeCallable DcdnClient::describeDcdnSecFuncInfoCallable(const DescribeDcdnSecFuncInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnSecFuncInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DescribeDcdnServiceOutcome DcdnClient::describeDcdnService(const DescribeDcdnServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +3363,42 @@ DcdnClient::DescribeDcdnUserSecDropOutcomeCallable DcdnClient::describeDcdnUserS return task->get_future(); } +DcdnClient::DescribeDcdnUserSecDropByMinuteOutcome DcdnClient::describeDcdnUserSecDropByMinute(const DescribeDcdnUserSecDropByMinuteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnUserSecDropByMinuteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnUserSecDropByMinuteOutcome(DescribeDcdnUserSecDropByMinuteResult(outcome.result())); + else + return DescribeDcdnUserSecDropByMinuteOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnUserSecDropByMinuteAsync(const DescribeDcdnUserSecDropByMinuteRequest& request, const DescribeDcdnUserSecDropByMinuteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnUserSecDropByMinute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnUserSecDropByMinuteOutcomeCallable DcdnClient::describeDcdnUserSecDropByMinuteCallable(const DescribeDcdnUserSecDropByMinuteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnUserSecDropByMinute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DescribeDcdnUserTagsOutcome DcdnClient::describeDcdnUserTags(const DescribeDcdnUserTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3471,6 +3579,78 @@ DcdnClient::DescribeUserDcdnStatusOutcomeCallable DcdnClient::describeUserDcdnSt return task->get_future(); } +DcdnClient::DescribeUserErStatusOutcome DcdnClient::describeUserErStatus(const DescribeUserErStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserErStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserErStatusOutcome(DescribeUserErStatusResult(outcome.result())); + else + return DescribeUserErStatusOutcome(outcome.error()); +} + +void DcdnClient::describeUserErStatusAsync(const DescribeUserErStatusRequest& request, const DescribeUserErStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserErStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeUserErStatusOutcomeCallable DcdnClient::describeUserErStatusCallable(const DescribeUserErStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserErStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeUserLogserviceStatusOutcome DcdnClient::describeUserLogserviceStatus(const DescribeUserLogserviceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserLogserviceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserLogserviceStatusOutcome(DescribeUserLogserviceStatusResult(outcome.result())); + else + return DescribeUserLogserviceStatusOutcome(outcome.error()); +} + +void DcdnClient::describeUserLogserviceStatusAsync(const DescribeUserLogserviceStatusRequest& request, const DescribeUserLogserviceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserLogserviceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeUserLogserviceStatusOutcomeCallable DcdnClient::describeUserLogserviceStatusCallable(const DescribeUserLogserviceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserLogserviceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DisableDcdnDomainOfflineLogDeliveryOutcome DcdnClient::disableDcdnDomainOfflineLogDelivery(const DisableDcdnDomainOfflineLogDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dcdn/src/model/DescribeDcdnBlockedRegionsRequest.cc b/dcdn/src/model/DescribeDcdnBlockedRegionsRequest.cc new file mode 100644 index 000000000..698b21202 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnBlockedRegionsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnBlockedRegionsRequest; + +DescribeDcdnBlockedRegionsRequest::DescribeDcdnBlockedRegionsRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnBlockedRegions") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeDcdnBlockedRegionsRequest::~DescribeDcdnBlockedRegionsRequest() +{} + +std::string DescribeDcdnBlockedRegionsRequest::getLanguage()const +{ + return language_; +} + +void DescribeDcdnBlockedRegionsRequest::setLanguage(const std::string& language) +{ + language_ = language; + setParameter("Language", language); +} + +long DescribeDcdnBlockedRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnBlockedRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnBlockedRegionsResult.cc b/dcdn/src/model/DescribeDcdnBlockedRegionsResult.cc new file mode 100644 index 000000000..c714c5f24 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnBlockedRegionsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnBlockedRegionsResult::DescribeDcdnBlockedRegionsResult() : + ServiceResult() +{} + +DescribeDcdnBlockedRegionsResult::DescribeDcdnBlockedRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnBlockedRegionsResult::~DescribeDcdnBlockedRegionsResult() +{} + +void DescribeDcdnBlockedRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInfoListNode = value["InfoList"]["InfoItem"]; + for (auto valueInfoListInfoItem : allInfoListNode) + { + InfoItem infoListObject; + if(!valueInfoListInfoItem["CountriesAndRegions"].isNull()) + infoListObject.countriesAndRegions = valueInfoListInfoItem["CountriesAndRegions"].asString(); + if(!valueInfoListInfoItem["CountriesAndRegionsName"].isNull()) + infoListObject.countriesAndRegionsName = valueInfoListInfoItem["CountriesAndRegionsName"].asString(); + if(!valueInfoListInfoItem["Continent"].isNull()) + infoListObject.continent = valueInfoListInfoItem["Continent"].asString(); + infoList_.push_back(infoListObject); + } + +} + +std::vector DescribeDcdnBlockedRegionsResult::getInfoList()const +{ + return infoList_; +} + diff --git a/dcdn/src/model/DescribeDcdnSecFuncInfoRequest.cc b/dcdn/src/model/DescribeDcdnSecFuncInfoRequest.cc new file mode 100644 index 000000000..5d80feaca --- /dev/null +++ b/dcdn/src/model/DescribeDcdnSecFuncInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnSecFuncInfoRequest; + +DescribeDcdnSecFuncInfoRequest::DescribeDcdnSecFuncInfoRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnSecFuncInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDcdnSecFuncInfoRequest::~DescribeDcdnSecFuncInfoRequest() +{} + +std::string DescribeDcdnSecFuncInfoRequest::getLang()const +{ + return lang_; +} + +void DescribeDcdnSecFuncInfoRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +long DescribeDcdnSecFuncInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnSecFuncInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnSecFuncInfoRequest::getSecFuncType()const +{ + return secFuncType_; +} + +void DescribeDcdnSecFuncInfoRequest::setSecFuncType(const std::string& secFuncType) +{ + secFuncType_ = secFuncType; + setParameter("SecFuncType", secFuncType); +} + diff --git a/dcdn/src/model/DescribeDcdnSecFuncInfoResult.cc b/dcdn/src/model/DescribeDcdnSecFuncInfoResult.cc new file mode 100644 index 000000000..7e2385de8 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnSecFuncInfoResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnSecFuncInfoResult::DescribeDcdnSecFuncInfoResult() : + ServiceResult() +{} + +DescribeDcdnSecFuncInfoResult::DescribeDcdnSecFuncInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnSecFuncInfoResult::~DescribeDcdnSecFuncInfoResult() +{} + +void DescribeDcdnSecFuncInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContentNode = value["Content"]["ContentItem"]; + for (auto valueContentContentItem : allContentNode) + { + ContentItem contentObject; + if(!valueContentContentItem["Label"].isNull()) + contentObject.label = valueContentContentItem["Label"].asString(); + if(!valueContentContentItem["Value"].isNull()) + contentObject.value = valueContentContentItem["Value"].asString(); + content_.push_back(contentObject); + } + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["RetCode"].isNull()) + retCode_ = value["RetCode"].asString(); + if(!value["HttpStatus"].isNull()) + httpStatus_ = value["HttpStatus"].asString(); + +} + +std::string DescribeDcdnSecFuncInfoResult::getDescription()const +{ + return description_; +} + +std::string DescribeDcdnSecFuncInfoResult::getRetCode()const +{ + return retCode_; +} + +std::string DescribeDcdnSecFuncInfoResult::getHttpStatus()const +{ + return httpStatus_; +} + +std::vector DescribeDcdnSecFuncInfoResult::getContent()const +{ + return content_; +} + diff --git a/dcdn/src/model/DescribeDcdnUserSecDropByMinuteRequest.cc b/dcdn/src/model/DescribeDcdnUserSecDropByMinuteRequest.cc new file mode 100644 index 000000000..5d0f60ea8 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnUserSecDropByMinuteRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnUserSecDropByMinuteRequest; + +DescribeDcdnUserSecDropByMinuteRequest::DescribeDcdnUserSecDropByMinuteRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserSecDropByMinute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDcdnUserSecDropByMinuteRequest::~DescribeDcdnUserSecDropByMinuteRequest() +{} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeDcdnUserSecDropByMinuteRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +long DescribeDcdnUserSecDropByMinuteRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getLang()const +{ + return lang_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeDcdnUserSecDropByMinuteRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getSecFunc()const +{ + return secFunc_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setSecFunc(const std::string& secFunc) +{ + secFunc_ = secFunc; + setParameter("SecFunc", secFunc); +} + +std::string DescribeDcdnUserSecDropByMinuteRequest::getObject()const +{ + return object_; +} + +void DescribeDcdnUserSecDropByMinuteRequest::setObject(const std::string& object) +{ + object_ = object; + setParameter("Object", object); +} + diff --git a/dcdn/src/model/DescribeDcdnUserSecDropByMinuteResult.cc b/dcdn/src/model/DescribeDcdnUserSecDropByMinuteResult.cc new file mode 100644 index 000000000..f4e610bbc --- /dev/null +++ b/dcdn/src/model/DescribeDcdnUserSecDropByMinuteResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnUserSecDropByMinuteResult::DescribeDcdnUserSecDropByMinuteResult() : + ServiceResult() +{} + +DescribeDcdnUserSecDropByMinuteResult::DescribeDcdnUserSecDropByMinuteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnUserSecDropByMinuteResult::~DescribeDcdnUserSecDropByMinuteResult() +{} + +void DescribeDcdnUserSecDropByMinuteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRowsNode = value["Rows"]["RowsItem"]; + for (auto valueRowsRowsItem : allRowsNode) + { + RowsItem rowsObject; + if(!valueRowsRowsItem["RuleName"].isNull()) + rowsObject.ruleName = valueRowsRowsItem["RuleName"].asString(); + if(!valueRowsRowsItem["Object"].isNull()) + rowsObject.object = valueRowsRowsItem["Object"].asString(); + if(!valueRowsRowsItem["Domain"].isNull()) + rowsObject.domain = valueRowsRowsItem["Domain"].asString(); + if(!valueRowsRowsItem["SecFunc"].isNull()) + rowsObject.secFunc = valueRowsRowsItem["SecFunc"].asString(); + if(!valueRowsRowsItem["TmStr"].isNull()) + rowsObject.tmStr = valueRowsRowsItem["TmStr"].asString(); + if(!valueRowsRowsItem["Drops"].isNull()) + rowsObject.drops = std::stoi(valueRowsRowsItem["Drops"].asString()); + rows_.push_back(rowsObject); + } + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Len"].isNull()) + len_ = std::stoi(value["Len"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDcdnUserSecDropByMinuteResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeDcdnUserSecDropByMinuteResult::getDescription()const +{ + return description_; +} + +int DescribeDcdnUserSecDropByMinuteResult::getLen()const +{ + return len_; +} + +int DescribeDcdnUserSecDropByMinuteResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDcdnUserSecDropByMinuteResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDcdnUserSecDropByMinuteResult::getRows()const +{ + return rows_; +} + diff --git a/dcdn/src/model/DescribeUserErStatusRequest.cc b/dcdn/src/model/DescribeUserErStatusRequest.cc new file mode 100644 index 000000000..0e8b5b108 --- /dev/null +++ b/dcdn/src/model/DescribeUserErStatusRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeUserErStatusRequest; + +DescribeUserErStatusRequest::DescribeUserErStatusRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeUserErStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUserErStatusRequest::~DescribeUserErStatusRequest() +{} + +long DescribeUserErStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserErStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUserErStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserErStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/dcdn/src/model/DescribeUserErStatusResult.cc b/dcdn/src/model/DescribeUserErStatusResult.cc new file mode 100644 index 000000000..49f5f9b4e --- /dev/null +++ b/dcdn/src/model/DescribeUserErStatusResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeUserErStatusResult::DescribeUserErStatusResult() : + ServiceResult() +{} + +DescribeUserErStatusResult::DescribeUserErStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserErStatusResult::~DescribeUserErStatusResult() +{} + +void DescribeUserErStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + if(!value["OnService"].isNull()) + onService_ = value["OnService"].asString() == "true"; + if(!value["InDebt"].isNull()) + inDebt_ = value["InDebt"].asString() == "true"; + if(!value["InDebtOverdue"].isNull()) + inDebtOverdue_ = value["InDebtOverdue"].asString() == "true"; + +} + +bool DescribeUserErStatusResult::getInDebt()const +{ + return inDebt_; +} + +bool DescribeUserErStatusResult::getEnabled()const +{ + return enabled_; +} + +bool DescribeUserErStatusResult::getInDebtOverdue()const +{ + return inDebtOverdue_; +} + +bool DescribeUserErStatusResult::getOnService()const +{ + return onService_; +} + diff --git a/dcdn/src/model/DescribeUserLogserviceStatusRequest.cc b/dcdn/src/model/DescribeUserLogserviceStatusRequest.cc new file mode 100644 index 000000000..604d0a2d1 --- /dev/null +++ b/dcdn/src/model/DescribeUserLogserviceStatusRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeUserLogserviceStatusRequest; + +DescribeUserLogserviceStatusRequest::DescribeUserLogserviceStatusRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeUserLogserviceStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUserLogserviceStatusRequest::~DescribeUserLogserviceStatusRequest() +{} + +long DescribeUserLogserviceStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserLogserviceStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeUserLogserviceStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserLogserviceStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/dcdn/src/model/DescribeUserLogserviceStatusResult.cc b/dcdn/src/model/DescribeUserLogserviceStatusResult.cc new file mode 100644 index 000000000..7f5b64abf --- /dev/null +++ b/dcdn/src/model/DescribeUserLogserviceStatusResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeUserLogserviceStatusResult::DescribeUserLogserviceStatusResult() : + ServiceResult() +{} + +DescribeUserLogserviceStatusResult::DescribeUserLogserviceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserLogserviceStatusResult::~DescribeUserLogserviceStatusResult() +{} + +void DescribeUserLogserviceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + if(!value["OnService"].isNull()) + onService_ = value["OnService"].asString() == "true"; + if(!value["InDebt"].isNull()) + inDebt_ = value["InDebt"].asString() == "true"; + if(!value["InDebtOverdue"].isNull()) + inDebtOverdue_ = value["InDebtOverdue"].asString() == "true"; + +} + +bool DescribeUserLogserviceStatusResult::getInDebt()const +{ + return inDebt_; +} + +bool DescribeUserLogserviceStatusResult::getEnabled()const +{ + return enabled_; +} + +bool DescribeUserLogserviceStatusResult::getInDebtOverdue()const +{ + return inDebtOverdue_; +} + +bool DescribeUserLogserviceStatusResult::getOnService()const +{ + return onService_; +} +