From c2bfeb1216d4f6e093127d9c70c506cc84a626e9 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 19 Jan 2022 11:44:35 +0000 Subject: [PATCH] Upgrade Service for SMS. --- CHANGELOG | 3 + VERSION | 2 +- dysmsapi/CMakeLists.txt | 40 ++- .../alibabacloud/dysmsapi/DysmsapiClient.h | 72 ++++ .../dysmsapi/model/AddShortUrlRequest.h | 69 ++++ .../dysmsapi/model/AddShortUrlResult.h | 61 ++++ .../dysmsapi/model/DeleteShortUrlRequest.h | 63 ++++ .../dysmsapi/model/DeleteShortUrlResult.h | 53 +++ .../dysmsapi/model/ListTagResourcesRequest.h | 84 +++++ .../dysmsapi/model/ListTagResourcesResult.h | 62 ++++ .../model/QuerySendStatisticsRequest.h | 72 ++++ .../model/QuerySendStatisticsResult.h | 68 ++++ .../dysmsapi/model/QueryShortUrlRequest.h | 63 ++++ .../dysmsapi/model/QueryShortUrlResult.h | 66 ++++ .../dysmsapi/model/QuerySmsSignListRequest.h | 63 ++++ .../dysmsapi/model/QuerySmsSignListResult.h | 70 ++++ .../model/QuerySmsTemplateListRequest.h | 63 ++++ .../model/QuerySmsTemplateListResult.h | 72 ++++ .../dysmsapi/model/TagResourcesRequest.h | 78 +++++ .../dysmsapi/model/TagResourcesResult.h | 53 +++ .../dysmsapi/model/UntagResourcesRequest.h | 75 ++++ .../dysmsapi/model/UntagResourcesResult.h | 53 +++ dysmsapi/src/DysmsapiClient.cc | 330 +++++++++++++++++- dysmsapi/src/model/AddShortUrlRequest.cc | 117 +++++++ dysmsapi/src/model/AddShortUrlResult.cc | 70 ++++ dysmsapi/src/model/DeleteShortUrlRequest.cc | 95 +++++ dysmsapi/src/model/DeleteShortUrlResult.cc | 58 +++ dysmsapi/src/model/ListTagResourcesRequest.cc | 157 +++++++++ dysmsapi/src/model/ListTagResourcesResult.cc | 77 ++++ .../src/model/QuerySendStatisticsRequest.cc | 128 +++++++ .../src/model/QuerySendStatisticsResult.cc | 82 +++++ dysmsapi/src/model/QueryShortUrlRequest.cc | 95 +++++ dysmsapi/src/model/QueryShortUrlResult.cc | 80 +++++ dysmsapi/src/model/QuerySmsSignListRequest.cc | 95 +++++ dysmsapi/src/model/QuerySmsSignListResult.cc | 86 +++++ .../src/model/QuerySmsTemplateListRequest.cc | 95 +++++ .../src/model/QuerySmsTemplateListResult.cc | 90 +++++ dysmsapi/src/model/TagResourcesRequest.cc | 135 +++++++ dysmsapi/src/model/TagResourcesResult.cc | 58 +++ dysmsapi/src/model/UntagResourcesRequest.cc | 143 ++++++++ dysmsapi/src/model/UntagResourcesResult.cc | 58 +++ 41 files changed, 3348 insertions(+), 6 deletions(-) create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesResult.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesRequest.h create mode 100644 dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesResult.h create mode 100644 dysmsapi/src/model/AddShortUrlRequest.cc create mode 100644 dysmsapi/src/model/AddShortUrlResult.cc create mode 100644 dysmsapi/src/model/DeleteShortUrlRequest.cc create mode 100644 dysmsapi/src/model/DeleteShortUrlResult.cc create mode 100644 dysmsapi/src/model/ListTagResourcesRequest.cc create mode 100644 dysmsapi/src/model/ListTagResourcesResult.cc create mode 100644 dysmsapi/src/model/QuerySendStatisticsRequest.cc create mode 100644 dysmsapi/src/model/QuerySendStatisticsResult.cc create mode 100644 dysmsapi/src/model/QueryShortUrlRequest.cc create mode 100644 dysmsapi/src/model/QueryShortUrlResult.cc create mode 100644 dysmsapi/src/model/QuerySmsSignListRequest.cc create mode 100644 dysmsapi/src/model/QuerySmsSignListResult.cc create mode 100644 dysmsapi/src/model/QuerySmsTemplateListRequest.cc create mode 100644 dysmsapi/src/model/QuerySmsTemplateListResult.cc create mode 100644 dysmsapi/src/model/TagResourcesRequest.cc create mode 100644 dysmsapi/src/model/TagResourcesResult.cc create mode 100644 dysmsapi/src/model/UntagResourcesRequest.cc create mode 100644 dysmsapi/src/model/UntagResourcesResult.cc diff --git a/CHANGELOG b/CHANGELOG index 52980e99e..83c809dbb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-01-19 Version: 1.36.1032 +- Upgrade Service for SMS. + 2022-01-19 Version: 1.36.1031 - ReportOneAgentInfo. diff --git a/VERSION b/VERSION index 44d2b795b..070b6f9fc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1031 \ No newline at end of file +1.36.1032 \ No newline at end of file diff --git a/dysmsapi/CMakeLists.txt b/dysmsapi/CMakeLists.txt index 98d84f3fe..ff565e8c7 100644 --- a/dysmsapi/CMakeLists.txt +++ b/dysmsapi/CMakeLists.txt @@ -21,53 +21,89 @@ set(dysmsapi_public_header include/alibabacloud/dysmsapi/DysmsapiExport.h ) set(dysmsapi_public_header_model + include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h + include/alibabacloud/dysmsapi/model/AddShortUrlResult.h include/alibabacloud/dysmsapi/model/AddSmsSignRequest.h include/alibabacloud/dysmsapi/model/AddSmsSignResult.h include/alibabacloud/dysmsapi/model/AddSmsTemplateRequest.h include/alibabacloud/dysmsapi/model/AddSmsTemplateResult.h + include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h + include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h include/alibabacloud/dysmsapi/model/DeleteSmsSignRequest.h include/alibabacloud/dysmsapi/model/DeleteSmsSignResult.h include/alibabacloud/dysmsapi/model/DeleteSmsTemplateRequest.h include/alibabacloud/dysmsapi/model/DeleteSmsTemplateResult.h + include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h + include/alibabacloud/dysmsapi/model/ListTagResourcesResult.h include/alibabacloud/dysmsapi/model/ModifySmsSignRequest.h include/alibabacloud/dysmsapi/model/ModifySmsSignResult.h include/alibabacloud/dysmsapi/model/ModifySmsTemplateRequest.h include/alibabacloud/dysmsapi/model/ModifySmsTemplateResult.h include/alibabacloud/dysmsapi/model/QuerySendDetailsRequest.h include/alibabacloud/dysmsapi/model/QuerySendDetailsResult.h + include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h + include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h + include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h + include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h include/alibabacloud/dysmsapi/model/QuerySmsSignRequest.h include/alibabacloud/dysmsapi/model/QuerySmsSignResult.h + include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h + include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.h include/alibabacloud/dysmsapi/model/QuerySmsTemplateRequest.h include/alibabacloud/dysmsapi/model/QuerySmsTemplateResult.h + include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h + include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h include/alibabacloud/dysmsapi/model/SendBatchSmsRequest.h include/alibabacloud/dysmsapi/model/SendBatchSmsResult.h include/alibabacloud/dysmsapi/model/SendSmsRequest.h - include/alibabacloud/dysmsapi/model/SendSmsResult.h ) + include/alibabacloud/dysmsapi/model/SendSmsResult.h + include/alibabacloud/dysmsapi/model/TagResourcesRequest.h + include/alibabacloud/dysmsapi/model/TagResourcesResult.h + include/alibabacloud/dysmsapi/model/UntagResourcesRequest.h + include/alibabacloud/dysmsapi/model/UntagResourcesResult.h ) set(dysmsapi_src src/DysmsapiClient.cc + src/model/AddShortUrlRequest.cc + src/model/AddShortUrlResult.cc src/model/AddSmsSignRequest.cc src/model/AddSmsSignResult.cc src/model/AddSmsTemplateRequest.cc src/model/AddSmsTemplateResult.cc + src/model/DeleteShortUrlRequest.cc + src/model/DeleteShortUrlResult.cc src/model/DeleteSmsSignRequest.cc src/model/DeleteSmsSignResult.cc src/model/DeleteSmsTemplateRequest.cc src/model/DeleteSmsTemplateResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/ModifySmsSignRequest.cc src/model/ModifySmsSignResult.cc src/model/ModifySmsTemplateRequest.cc src/model/ModifySmsTemplateResult.cc src/model/QuerySendDetailsRequest.cc src/model/QuerySendDetailsResult.cc + src/model/QuerySendStatisticsRequest.cc + src/model/QuerySendStatisticsResult.cc + src/model/QueryShortUrlRequest.cc + src/model/QueryShortUrlResult.cc src/model/QuerySmsSignRequest.cc src/model/QuerySmsSignResult.cc + src/model/QuerySmsSignListRequest.cc + src/model/QuerySmsSignListResult.cc src/model/QuerySmsTemplateRequest.cc src/model/QuerySmsTemplateResult.cc + src/model/QuerySmsTemplateListRequest.cc + src/model/QuerySmsTemplateListResult.cc src/model/SendBatchSmsRequest.cc src/model/SendBatchSmsResult.cc src/model/SendSmsRequest.cc - src/model/SendSmsResult.cc ) + src/model/SendSmsResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc ) add_library(dysmsapi ${LIB_TYPE} ${dysmsapi_public_header} diff --git a/dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h b/dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h index 0ebb49677..3332683df 100644 --- a/dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h +++ b/dysmsapi/include/alibabacloud/dysmsapi/DysmsapiClient.h @@ -22,28 +22,46 @@ #include #include #include "DysmsapiExport.h" +#include "model/AddShortUrlRequest.h" +#include "model/AddShortUrlResult.h" #include "model/AddSmsSignRequest.h" #include "model/AddSmsSignResult.h" #include "model/AddSmsTemplateRequest.h" #include "model/AddSmsTemplateResult.h" +#include "model/DeleteShortUrlRequest.h" +#include "model/DeleteShortUrlResult.h" #include "model/DeleteSmsSignRequest.h" #include "model/DeleteSmsSignResult.h" #include "model/DeleteSmsTemplateRequest.h" #include "model/DeleteSmsTemplateResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/ModifySmsSignRequest.h" #include "model/ModifySmsSignResult.h" #include "model/ModifySmsTemplateRequest.h" #include "model/ModifySmsTemplateResult.h" #include "model/QuerySendDetailsRequest.h" #include "model/QuerySendDetailsResult.h" +#include "model/QuerySendStatisticsRequest.h" +#include "model/QuerySendStatisticsResult.h" +#include "model/QueryShortUrlRequest.h" +#include "model/QueryShortUrlResult.h" #include "model/QuerySmsSignRequest.h" #include "model/QuerySmsSignResult.h" +#include "model/QuerySmsSignListRequest.h" +#include "model/QuerySmsSignListResult.h" #include "model/QuerySmsTemplateRequest.h" #include "model/QuerySmsTemplateResult.h" +#include "model/QuerySmsTemplateListRequest.h" +#include "model/QuerySmsTemplateListResult.h" #include "model/SendBatchSmsRequest.h" #include "model/SendBatchSmsResult.h" #include "model/SendSmsRequest.h" #include "model/SendSmsResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" namespace AlibabaCloud @@ -53,18 +71,27 @@ namespace AlibabaCloud class ALIBABACLOUD_DYSMSAPI_EXPORT DysmsapiClient : public RpcServiceClient { public: + typedef Outcome AddShortUrlOutcome; + typedef std::future AddShortUrlOutcomeCallable; + typedef std::function&)> AddShortUrlAsyncHandler; typedef Outcome AddSmsSignOutcome; typedef std::future AddSmsSignOutcomeCallable; typedef std::function&)> AddSmsSignAsyncHandler; typedef Outcome AddSmsTemplateOutcome; typedef std::future AddSmsTemplateOutcomeCallable; typedef std::function&)> AddSmsTemplateAsyncHandler; + typedef Outcome DeleteShortUrlOutcome; + typedef std::future DeleteShortUrlOutcomeCallable; + typedef std::function&)> DeleteShortUrlAsyncHandler; typedef Outcome DeleteSmsSignOutcome; typedef std::future DeleteSmsSignOutcomeCallable; typedef std::function&)> DeleteSmsSignAsyncHandler; typedef Outcome DeleteSmsTemplateOutcome; typedef std::future DeleteSmsTemplateOutcomeCallable; typedef std::function&)> DeleteSmsTemplateAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ModifySmsSignOutcome; typedef std::future ModifySmsSignOutcomeCallable; typedef std::function&)> ModifySmsSignAsyncHandler; @@ -74,35 +101,62 @@ namespace AlibabaCloud typedef Outcome QuerySendDetailsOutcome; typedef std::future QuerySendDetailsOutcomeCallable; typedef std::function&)> QuerySendDetailsAsyncHandler; + typedef Outcome QuerySendStatisticsOutcome; + typedef std::future QuerySendStatisticsOutcomeCallable; + typedef std::function&)> QuerySendStatisticsAsyncHandler; + typedef Outcome QueryShortUrlOutcome; + typedef std::future QueryShortUrlOutcomeCallable; + typedef std::function&)> QueryShortUrlAsyncHandler; typedef Outcome QuerySmsSignOutcome; typedef std::future QuerySmsSignOutcomeCallable; typedef std::function&)> QuerySmsSignAsyncHandler; + typedef Outcome QuerySmsSignListOutcome; + typedef std::future QuerySmsSignListOutcomeCallable; + typedef std::function&)> QuerySmsSignListAsyncHandler; typedef Outcome QuerySmsTemplateOutcome; typedef std::future QuerySmsTemplateOutcomeCallable; typedef std::function&)> QuerySmsTemplateAsyncHandler; + typedef Outcome QuerySmsTemplateListOutcome; + typedef std::future QuerySmsTemplateListOutcomeCallable; + typedef std::function&)> QuerySmsTemplateListAsyncHandler; typedef Outcome SendBatchSmsOutcome; typedef std::future SendBatchSmsOutcomeCallable; typedef std::function&)> SendBatchSmsAsyncHandler; typedef Outcome SendSmsOutcome; typedef std::future SendSmsOutcomeCallable; typedef std::function&)> SendSmsAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; DysmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); DysmsapiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); DysmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~DysmsapiClient(); + AddShortUrlOutcome addShortUrl(const Model::AddShortUrlRequest &request)const; + void addShortUrlAsync(const Model::AddShortUrlRequest& request, const AddShortUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddShortUrlOutcomeCallable addShortUrlCallable(const Model::AddShortUrlRequest& request) const; AddSmsSignOutcome addSmsSign(const Model::AddSmsSignRequest &request)const; void addSmsSignAsync(const Model::AddSmsSignRequest& request, const AddSmsSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddSmsSignOutcomeCallable addSmsSignCallable(const Model::AddSmsSignRequest& request) const; AddSmsTemplateOutcome addSmsTemplate(const Model::AddSmsTemplateRequest &request)const; void addSmsTemplateAsync(const Model::AddSmsTemplateRequest& request, const AddSmsTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddSmsTemplateOutcomeCallable addSmsTemplateCallable(const Model::AddSmsTemplateRequest& request) const; + DeleteShortUrlOutcome deleteShortUrl(const Model::DeleteShortUrlRequest &request)const; + void deleteShortUrlAsync(const Model::DeleteShortUrlRequest& request, const DeleteShortUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteShortUrlOutcomeCallable deleteShortUrlCallable(const Model::DeleteShortUrlRequest& request) const; DeleteSmsSignOutcome deleteSmsSign(const Model::DeleteSmsSignRequest &request)const; void deleteSmsSignAsync(const Model::DeleteSmsSignRequest& request, const DeleteSmsSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSmsSignOutcomeCallable deleteSmsSignCallable(const Model::DeleteSmsSignRequest& request) const; DeleteSmsTemplateOutcome deleteSmsTemplate(const Model::DeleteSmsTemplateRequest &request)const; void deleteSmsTemplateAsync(const Model::DeleteSmsTemplateRequest& request, const DeleteSmsTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSmsTemplateOutcomeCallable deleteSmsTemplateCallable(const Model::DeleteSmsTemplateRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; ModifySmsSignOutcome modifySmsSign(const Model::ModifySmsSignRequest &request)const; void modifySmsSignAsync(const Model::ModifySmsSignRequest& request, const ModifySmsSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySmsSignOutcomeCallable modifySmsSignCallable(const Model::ModifySmsSignRequest& request) const; @@ -112,18 +166,36 @@ namespace AlibabaCloud QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const; void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const; + QuerySendStatisticsOutcome querySendStatistics(const Model::QuerySendStatisticsRequest &request)const; + void querySendStatisticsAsync(const Model::QuerySendStatisticsRequest& request, const QuerySendStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySendStatisticsOutcomeCallable querySendStatisticsCallable(const Model::QuerySendStatisticsRequest& request) const; + QueryShortUrlOutcome queryShortUrl(const Model::QueryShortUrlRequest &request)const; + void queryShortUrlAsync(const Model::QueryShortUrlRequest& request, const QueryShortUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryShortUrlOutcomeCallable queryShortUrlCallable(const Model::QueryShortUrlRequest& request) const; QuerySmsSignOutcome querySmsSign(const Model::QuerySmsSignRequest &request)const; void querySmsSignAsync(const Model::QuerySmsSignRequest& request, const QuerySmsSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySmsSignOutcomeCallable querySmsSignCallable(const Model::QuerySmsSignRequest& request) const; + QuerySmsSignListOutcome querySmsSignList(const Model::QuerySmsSignListRequest &request)const; + void querySmsSignListAsync(const Model::QuerySmsSignListRequest& request, const QuerySmsSignListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySmsSignListOutcomeCallable querySmsSignListCallable(const Model::QuerySmsSignListRequest& request) const; QuerySmsTemplateOutcome querySmsTemplate(const Model::QuerySmsTemplateRequest &request)const; void querySmsTemplateAsync(const Model::QuerySmsTemplateRequest& request, const QuerySmsTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySmsTemplateOutcomeCallable querySmsTemplateCallable(const Model::QuerySmsTemplateRequest& request) const; + QuerySmsTemplateListOutcome querySmsTemplateList(const Model::QuerySmsTemplateListRequest &request)const; + void querySmsTemplateListAsync(const Model::QuerySmsTemplateListRequest& request, const QuerySmsTemplateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySmsTemplateListOutcomeCallable querySmsTemplateListCallable(const Model::QuerySmsTemplateListRequest& request) const; SendBatchSmsOutcome sendBatchSms(const Model::SendBatchSmsRequest &request)const; void sendBatchSmsAsync(const Model::SendBatchSmsRequest& request, const SendBatchSmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendBatchSmsOutcomeCallable sendBatchSmsCallable(const Model::SendBatchSmsRequest& request) const; SendSmsOutcome sendSms(const Model::SendSmsRequest &request)const; void sendSmsAsync(const Model::SendSmsRequest& request, const SendSmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendSmsOutcomeCallable sendSmsCallable(const Model::SendSmsRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h new file mode 100644 index 000000000..69f939dc8 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlRequest.h @@ -0,0 +1,69 @@ +/* + * 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_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlRequest : public RpcServiceRequest + { + + public: + AddShortUrlRequest(); + ~AddShortUrlRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getShortUrlName()const; + void setShortUrlName(const std::string& shortUrlName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getEffectiveDays()const; + void setEffectiveDays(const std::string& effectiveDays); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSourceUrl()const; + void setSourceUrl(const std::string& sourceUrl); + + private: + long resourceOwnerId_; + std::string shortUrlName_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string effectiveDays_; + std::string prodCode_; + long ownerId_; + std::string sourceUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlResult.h new file mode 100644 index 000000000..ff58cf61c --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/AddShortUrlResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT AddShortUrlResult : public ServiceResult + { + public: + struct Data + { + std::string sourceUrl; + std::string shortUrl; + std::string expireDate; + }; + + + AddShortUrlResult(); + explicit AddShortUrlResult(const std::string &payload); + ~AddShortUrlResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_ADDSHORTURLRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h new file mode 100644 index 000000000..24300d52c --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlRequest : public RpcServiceRequest + { + + public: + DeleteShortUrlRequest(); + ~DeleteShortUrlRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSourceUrl()const; + void setSourceUrl(const std::string& sourceUrl); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string accessKeyId_; + std::string sourceUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h new file mode 100644 index 000000000..79d399d1c --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/DeleteShortUrlResult.h @@ -0,0 +1,53 @@ +/* + * 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_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT DeleteShortUrlResult : public ServiceResult + { + public: + + + DeleteShortUrlResult(); + explicit DeleteShortUrlResult(const std::string &payload); + ~DeleteShortUrlResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_DELETESHORTURLRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..7fc6515a3 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesRequest.h @@ -0,0 +1,84 @@ +/* + * 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_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesResult.h new file mode 100644 index 000000000..3ab354367 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/ListTagResourcesResult.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_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h new file mode 100644 index 000000000..9d9ca5047 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsRequest : public RpcServiceRequest + { + + public: + QuerySendStatisticsRequest(); + ~QuerySendStatisticsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getIsGlobe()const; + void setIsGlobe(int isGlobe); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + + private: + long resourceOwnerId_; + int isGlobe_; + std::string startDate_; + std::string accessKeyId_; + int pageSize_; + int pageIndex_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string endDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h new file mode 100644 index 000000000..c247ff1b9 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySendStatisticsResult.h @@ -0,0 +1,68 @@ +/* + * 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_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsResult : public ServiceResult + { + public: + struct Data + { + struct SmsStatisticsDTO + { + long totalCount; + long noRespondedCount; + std::string sendDate; + long respondedFailCount; + long respondedSuccessCount; + }; + std::vector targetList; + long totalSize; + }; + + + QuerySendStatisticsResult(); + explicit QuerySendStatisticsResult(const std::string &payload); + ~QuerySendStatisticsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h new file mode 100644 index 000000000..1ee788948 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlRequest : public RpcServiceRequest + { + + public: + QueryShortUrlRequest(); + ~QueryShortUrlRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getShortUrl()const; + void setShortUrl(const std::string& shortUrl); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string shortUrl_; + std::string prodCode_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h new file mode 100644 index 000000000..ea10af44c --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QueryShortUrlResult.h @@ -0,0 +1,66 @@ +/* + * 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_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QueryShortUrlResult : public ServiceResult + { + public: + struct Data + { + std::string sourceUrl; + std::string shortUrlName; + std::string shortUrl; + std::string expireDate; + std::string pageViewCount; + std::string createDate; + std::string shortUrlStatus; + std::string uniqueVisitorCount; + }; + + + QueryShortUrlResult(); + explicit QueryShortUrlResult(const std::string &payload); + ~QueryShortUrlResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSHORTURLRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h new file mode 100644 index 000000000..0367815e5 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListRequest : public RpcServiceRequest + { + + public: + QuerySmsSignListRequest(); + ~QuerySmsSignListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + int pageSize_; + int pageIndex_; + std::string resourceOwnerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.h new file mode 100644 index 000000000..c99d473b7 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsSignListResult.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_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsSignListResult : public ServiceResult + { + public: + struct QuerySmsSignDTO + { + struct Reason + { + std::string rejectInfo; + std::string rejectSubInfo; + std::string rejectDate; + }; + std::string auditStatus; + std::string businessType; + std::string orderId; + std::string createDate; + Reason reason; + std::string signName; + }; + + + QuerySmsSignListResult(); + explicit QuerySmsSignListResult(const std::string &payload); + ~QuerySmsSignListResult(); + std::string getMessage()const; + std::vector getSmsSignList()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector smsSignList_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSSIGNLISTRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h new file mode 100644 index 000000000..6278d3c23 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListRequest : public RpcServiceRequest + { + + public: + QuerySmsTemplateListRequest(); + ~QuerySmsTemplateListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + int pageSize_; + int pageIndex_; + std::string resourceOwnerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h new file mode 100644 index 000000000..8fcde1f27 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/QuerySmsTemplateListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsTemplateListResult : public ServiceResult + { + public: + struct SmsStatsResultDTO + { + struct Reason + { + std::string rejectInfo; + std::string rejectSubInfo; + std::string rejectDate; + }; + std::string templateCode; + std::string auditStatus; + std::string templateContent; + std::string templateName; + int templateType; + std::string orderId; + std::string createDate; + Reason reason; + }; + + + QuerySmsTemplateListResult(); + explicit QuerySmsTemplateListResult(const std::string &payload); + ~QuerySmsTemplateListResult(); + std::string getMessage()const; + std::vector getSmsTemplateList()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector smsTemplateList_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSTEMPLATELISTRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesRequest.h new file mode 100644 index 000000000..136e09380 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesRequest.h @@ -0,0 +1,78 @@ +/* + * 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_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesResult.h new file mode 100644 index 000000000..ef30dfadc --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/TagResourcesResult.h @@ -0,0 +1,53 @@ +/* + * 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_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesRequest.h b/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesRequest.h new file mode 100644 index 000000000..6325696b1 --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesRequest.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_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getAll()const; + void setAll(bool all); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesResult.h b/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesResult.h new file mode 100644 index 000000000..2229e814b --- /dev/null +++ b/dysmsapi/include/alibabacloud/dysmsapi/model/UntagResourcesResult.h @@ -0,0 +1,53 @@ +/* + * 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_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dysmsapi + { + namespace Model + { + class ALIBABACLOUD_DYSMSAPI_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dysmsapi/src/DysmsapiClient.cc b/dysmsapi/src/DysmsapiClient.cc index 7ccef0af3..41f8cdec6 100644 --- a/dysmsapi/src/DysmsapiClient.cc +++ b/dysmsapi/src/DysmsapiClient.cc @@ -31,26 +31,62 @@ DysmsapiClient::DysmsapiClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dysms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DysmsapiClient::DysmsapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dysms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DysmsapiClient::DysmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dysms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DysmsapiClient::~DysmsapiClient() {} +DysmsapiClient::AddShortUrlOutcome DysmsapiClient::addShortUrl(const AddShortUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddShortUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddShortUrlOutcome(AddShortUrlResult(outcome.result())); + else + return AddShortUrlOutcome(outcome.error()); +} + +void DysmsapiClient::addShortUrlAsync(const AddShortUrlRequest& request, const AddShortUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addShortUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::AddShortUrlOutcomeCallable DysmsapiClient::addShortUrlCallable(const AddShortUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addShortUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::AddSmsSignOutcome DysmsapiClient::addSmsSign(const AddSmsSignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +159,42 @@ DysmsapiClient::AddSmsTemplateOutcomeCallable DysmsapiClient::addSmsTemplateCall return task->get_future(); } +DysmsapiClient::DeleteShortUrlOutcome DysmsapiClient::deleteShortUrl(const DeleteShortUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteShortUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteShortUrlOutcome(DeleteShortUrlResult(outcome.result())); + else + return DeleteShortUrlOutcome(outcome.error()); +} + +void DysmsapiClient::deleteShortUrlAsync(const DeleteShortUrlRequest& request, const DeleteShortUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteShortUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::DeleteShortUrlOutcomeCallable DysmsapiClient::deleteShortUrlCallable(const DeleteShortUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteShortUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::DeleteSmsSignOutcome DysmsapiClient::deleteSmsSign(const DeleteSmsSignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +267,42 @@ DysmsapiClient::DeleteSmsTemplateOutcomeCallable DysmsapiClient::deleteSmsTempla return task->get_future(); } +DysmsapiClient::ListTagResourcesOutcome DysmsapiClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void DysmsapiClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::ListTagResourcesOutcomeCallable DysmsapiClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::ModifySmsSignOutcome DysmsapiClient::modifySmsSign(const ModifySmsSignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +411,78 @@ DysmsapiClient::QuerySendDetailsOutcomeCallable DysmsapiClient::querySendDetails return task->get_future(); } +DysmsapiClient::QuerySendStatisticsOutcome DysmsapiClient::querySendStatistics(const QuerySendStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySendStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySendStatisticsOutcome(QuerySendStatisticsResult(outcome.result())); + else + return QuerySendStatisticsOutcome(outcome.error()); +} + +void DysmsapiClient::querySendStatisticsAsync(const QuerySendStatisticsRequest& request, const QuerySendStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySendStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::QuerySendStatisticsOutcomeCallable DysmsapiClient::querySendStatisticsCallable(const QuerySendStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySendStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DysmsapiClient::QueryShortUrlOutcome DysmsapiClient::queryShortUrl(const QueryShortUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryShortUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryShortUrlOutcome(QueryShortUrlResult(outcome.result())); + else + return QueryShortUrlOutcome(outcome.error()); +} + +void DysmsapiClient::queryShortUrlAsync(const QueryShortUrlRequest& request, const QueryShortUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryShortUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::QueryShortUrlOutcomeCallable DysmsapiClient::queryShortUrlCallable(const QueryShortUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryShortUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::QuerySmsSignOutcome DysmsapiClient::querySmsSign(const QuerySmsSignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +519,42 @@ DysmsapiClient::QuerySmsSignOutcomeCallable DysmsapiClient::querySmsSignCallable return task->get_future(); } +DysmsapiClient::QuerySmsSignListOutcome DysmsapiClient::querySmsSignList(const QuerySmsSignListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySmsSignListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySmsSignListOutcome(QuerySmsSignListResult(outcome.result())); + else + return QuerySmsSignListOutcome(outcome.error()); +} + +void DysmsapiClient::querySmsSignListAsync(const QuerySmsSignListRequest& request, const QuerySmsSignListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySmsSignList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::QuerySmsSignListOutcomeCallable DysmsapiClient::querySmsSignListCallable(const QuerySmsSignListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySmsSignList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::QuerySmsTemplateOutcome DysmsapiClient::querySmsTemplate(const QuerySmsTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +591,42 @@ DysmsapiClient::QuerySmsTemplateOutcomeCallable DysmsapiClient::querySmsTemplate return task->get_future(); } +DysmsapiClient::QuerySmsTemplateListOutcome DysmsapiClient::querySmsTemplateList(const QuerySmsTemplateListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySmsTemplateListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySmsTemplateListOutcome(QuerySmsTemplateListResult(outcome.result())); + else + return QuerySmsTemplateListOutcome(outcome.error()); +} + +void DysmsapiClient::querySmsTemplateListAsync(const QuerySmsTemplateListRequest& request, const QuerySmsTemplateListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySmsTemplateList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::QuerySmsTemplateListOutcomeCallable DysmsapiClient::querySmsTemplateListCallable(const QuerySmsTemplateListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySmsTemplateList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DysmsapiClient::SendBatchSmsOutcome DysmsapiClient::sendBatchSms(const SendBatchSmsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,3 +699,75 @@ DysmsapiClient::SendSmsOutcomeCallable DysmsapiClient::sendSmsCallable(const Sen return task->get_future(); } +DysmsapiClient::TagResourcesOutcome DysmsapiClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void DysmsapiClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::TagResourcesOutcomeCallable DysmsapiClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DysmsapiClient::UntagResourcesOutcome DysmsapiClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void DysmsapiClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DysmsapiClient::UntagResourcesOutcomeCallable DysmsapiClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dysmsapi/src/model/AddShortUrlRequest.cc b/dysmsapi/src/model/AddShortUrlRequest.cc new file mode 100644 index 000000000..0021d3ea0 --- /dev/null +++ b/dysmsapi/src/model/AddShortUrlRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dysmsapi::Model::AddShortUrlRequest; + +AddShortUrlRequest::AddShortUrlRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "AddShortUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +AddShortUrlRequest::~AddShortUrlRequest() +{} + +long AddShortUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddShortUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddShortUrlRequest::getShortUrlName()const +{ + return shortUrlName_; +} + +void AddShortUrlRequest::setShortUrlName(const std::string& shortUrlName) +{ + shortUrlName_ = shortUrlName; + setBodyParameter("ShortUrlName", shortUrlName); +} + +std::string AddShortUrlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddShortUrlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddShortUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddShortUrlRequest::getEffectiveDays()const +{ + return effectiveDays_; +} + +void AddShortUrlRequest::setEffectiveDays(const std::string& effectiveDays) +{ + effectiveDays_ = effectiveDays; + setBodyParameter("EffectiveDays", effectiveDays); +} + +std::string AddShortUrlRequest::getProdCode()const +{ + return prodCode_; +} + +void AddShortUrlRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setBodyParameter("ProdCode", prodCode); +} + +long AddShortUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddShortUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddShortUrlRequest::getSourceUrl()const +{ + return sourceUrl_; +} + +void AddShortUrlRequest::setSourceUrl(const std::string& sourceUrl) +{ + sourceUrl_ = sourceUrl; + setBodyParameter("SourceUrl", sourceUrl); +} + diff --git a/dysmsapi/src/model/AddShortUrlResult.cc b/dysmsapi/src/model/AddShortUrlResult.cc new file mode 100644 index 000000000..6f6c1c640 --- /dev/null +++ b/dysmsapi/src/model/AddShortUrlResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +AddShortUrlResult::AddShortUrlResult() : + ServiceResult() +{} + +AddShortUrlResult::AddShortUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddShortUrlResult::~AddShortUrlResult() +{} + +void AddShortUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["SourceUrl"].isNull()) + data_.sourceUrl = dataNode["SourceUrl"].asString(); + if(!dataNode["ExpireDate"].isNull()) + data_.expireDate = dataNode["ExpireDate"].asString(); + if(!dataNode["ShortUrl"].isNull()) + data_.shortUrl = dataNode["ShortUrl"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddShortUrlResult::getMessage()const +{ + return message_; +} + +AddShortUrlResult::Data AddShortUrlResult::getData()const +{ + return data_; +} + +std::string AddShortUrlResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/DeleteShortUrlRequest.cc b/dysmsapi/src/model/DeleteShortUrlRequest.cc new file mode 100644 index 000000000..ea72a53b1 --- /dev/null +++ b/dysmsapi/src/model/DeleteShortUrlRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Dysmsapi::Model::DeleteShortUrlRequest; + +DeleteShortUrlRequest::DeleteShortUrlRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteShortUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteShortUrlRequest::~DeleteShortUrlRequest() +{} + +long DeleteShortUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteShortUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteShortUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteShortUrlRequest::getProdCode()const +{ + return prodCode_; +} + +void DeleteShortUrlRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setBodyParameter("ProdCode", prodCode); +} + +long DeleteShortUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteShortUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteShortUrlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteShortUrlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteShortUrlRequest::getSourceUrl()const +{ + return sourceUrl_; +} + +void DeleteShortUrlRequest::setSourceUrl(const std::string& sourceUrl) +{ + sourceUrl_ = sourceUrl; + setBodyParameter("SourceUrl", sourceUrl); +} + diff --git a/dysmsapi/src/model/DeleteShortUrlResult.cc b/dysmsapi/src/model/DeleteShortUrlResult.cc new file mode 100644 index 000000000..fd8306bbe --- /dev/null +++ b/dysmsapi/src/model/DeleteShortUrlResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +DeleteShortUrlResult::DeleteShortUrlResult() : + ServiceResult() +{} + +DeleteShortUrlResult::DeleteShortUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteShortUrlResult::~DeleteShortUrlResult() +{} + +void DeleteShortUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteShortUrlResult::getMessage()const +{ + return message_; +} + +std::string DeleteShortUrlResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/ListTagResourcesRequest.cc b/dysmsapi/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..eb5573119 --- /dev/null +++ b/dysmsapi/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,157 @@ +/* + * 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::Dysmsapi::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "ListTagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +long ListTagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListTagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int ListTagResourcesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTagResourcesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string ListTagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListTagResourcesRequest::getProdCode()const +{ + return prodCode_; +} + +void ListTagResourcesRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long ListTagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListTagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/dysmsapi/src/model/ListTagResourcesResult.cc b/dysmsapi/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..fcc0c9f64 --- /dev/null +++ b/dysmsapi/src/model/ListTagResourcesResult.cc @@ -0,0 +1,77 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + +std::string ListTagResourcesResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/QuerySendStatisticsRequest.cc b/dysmsapi/src/model/QuerySendStatisticsRequest.cc new file mode 100644 index 000000000..a62b2957f --- /dev/null +++ b/dysmsapi/src/model/QuerySendStatisticsRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Dysmsapi::Model::QuerySendStatisticsRequest; + +QuerySendStatisticsRequest::QuerySendStatisticsRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySendStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySendStatisticsRequest::~QuerySendStatisticsRequest() +{} + +long QuerySendStatisticsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySendStatisticsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int QuerySendStatisticsRequest::getIsGlobe()const +{ + return isGlobe_; +} + +void QuerySendStatisticsRequest::setIsGlobe(int isGlobe) +{ + isGlobe_ = isGlobe; + setParameter("IsGlobe", std::to_string(isGlobe)); +} + +std::string QuerySendStatisticsRequest::getStartDate()const +{ + return startDate_; +} + +void QuerySendStatisticsRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setParameter("StartDate", startDate); +} + +std::string QuerySendStatisticsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySendStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int QuerySendStatisticsRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySendStatisticsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int QuerySendStatisticsRequest::getPageIndex()const +{ + return pageIndex_; +} + +void QuerySendStatisticsRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string QuerySendStatisticsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySendStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySendStatisticsRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySendStatisticsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QuerySendStatisticsRequest::getEndDate()const +{ + return endDate_; +} + +void QuerySendStatisticsRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setParameter("EndDate", endDate); +} + diff --git a/dysmsapi/src/model/QuerySendStatisticsResult.cc b/dysmsapi/src/model/QuerySendStatisticsResult.cc new file mode 100644 index 000000000..3ca9c6f19 --- /dev/null +++ b/dysmsapi/src/model/QuerySendStatisticsResult.cc @@ -0,0 +1,82 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +QuerySendStatisticsResult::QuerySendStatisticsResult() : + ServiceResult() +{} + +QuerySendStatisticsResult::QuerySendStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySendStatisticsResult::~QuerySendStatisticsResult() +{} + +void QuerySendStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stol(dataNode["TotalSize"].asString()); + auto allTargetListNode = dataNode["TargetList"]["SmsStatisticsDTO"]; + for (auto dataNodeTargetListSmsStatisticsDTO : allTargetListNode) + { + Data::SmsStatisticsDTO smsStatisticsDTOObject; + if(!dataNodeTargetListSmsStatisticsDTO["TotalCount"].isNull()) + smsStatisticsDTOObject.totalCount = std::stol(dataNodeTargetListSmsStatisticsDTO["TotalCount"].asString()); + if(!dataNodeTargetListSmsStatisticsDTO["RespondedSuccessCount"].isNull()) + smsStatisticsDTOObject.respondedSuccessCount = std::stol(dataNodeTargetListSmsStatisticsDTO["RespondedSuccessCount"].asString()); + if(!dataNodeTargetListSmsStatisticsDTO["RespondedFailCount"].isNull()) + smsStatisticsDTOObject.respondedFailCount = std::stol(dataNodeTargetListSmsStatisticsDTO["RespondedFailCount"].asString()); + if(!dataNodeTargetListSmsStatisticsDTO["NoRespondedCount"].isNull()) + smsStatisticsDTOObject.noRespondedCount = std::stol(dataNodeTargetListSmsStatisticsDTO["NoRespondedCount"].asString()); + if(!dataNodeTargetListSmsStatisticsDTO["SendDate"].isNull()) + smsStatisticsDTOObject.sendDate = dataNodeTargetListSmsStatisticsDTO["SendDate"].asString(); + data_.targetList.push_back(smsStatisticsDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QuerySendStatisticsResult::getMessage()const +{ + return message_; +} + +QuerySendStatisticsResult::Data QuerySendStatisticsResult::getData()const +{ + return data_; +} + +std::string QuerySendStatisticsResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/QueryShortUrlRequest.cc b/dysmsapi/src/model/QueryShortUrlRequest.cc new file mode 100644 index 000000000..b0382ee0e --- /dev/null +++ b/dysmsapi/src/model/QueryShortUrlRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Dysmsapi::Model::QueryShortUrlRequest; + +QueryShortUrlRequest::QueryShortUrlRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "QueryShortUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryShortUrlRequest::~QueryShortUrlRequest() +{} + +long QueryShortUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryShortUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryShortUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryShortUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryShortUrlRequest::getShortUrl()const +{ + return shortUrl_; +} + +void QueryShortUrlRequest::setShortUrl(const std::string& shortUrl) +{ + shortUrl_ = shortUrl; + setBodyParameter("ShortUrl", shortUrl); +} + +std::string QueryShortUrlRequest::getProdCode()const +{ + return prodCode_; +} + +void QueryShortUrlRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setBodyParameter("ProdCode", prodCode); +} + +long QueryShortUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryShortUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryShortUrlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryShortUrlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/dysmsapi/src/model/QueryShortUrlResult.cc b/dysmsapi/src/model/QueryShortUrlResult.cc new file mode 100644 index 000000000..a8a47c242 --- /dev/null +++ b/dysmsapi/src/model/QueryShortUrlResult.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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +QueryShortUrlResult::QueryShortUrlResult() : + ServiceResult() +{} + +QueryShortUrlResult::QueryShortUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryShortUrlResult::~QueryShortUrlResult() +{} + +void QueryShortUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["SourceUrl"].isNull()) + data_.sourceUrl = dataNode["SourceUrl"].asString(); + if(!dataNode["ShortUrlName"].isNull()) + data_.shortUrlName = dataNode["ShortUrlName"].asString(); + if(!dataNode["ShortUrlStatus"].isNull()) + data_.shortUrlStatus = dataNode["ShortUrlStatus"].asString(); + if(!dataNode["ShortUrl"].isNull()) + data_.shortUrl = dataNode["ShortUrl"].asString(); + if(!dataNode["CreateDate"].isNull()) + data_.createDate = dataNode["CreateDate"].asString(); + if(!dataNode["ExpireDate"].isNull()) + data_.expireDate = dataNode["ExpireDate"].asString(); + if(!dataNode["PageViewCount"].isNull()) + data_.pageViewCount = dataNode["PageViewCount"].asString(); + if(!dataNode["UniqueVisitorCount"].isNull()) + data_.uniqueVisitorCount = dataNode["UniqueVisitorCount"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryShortUrlResult::getMessage()const +{ + return message_; +} + +QueryShortUrlResult::Data QueryShortUrlResult::getData()const +{ + return data_; +} + +std::string QueryShortUrlResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/QuerySmsSignListRequest.cc b/dysmsapi/src/model/QuerySmsSignListRequest.cc new file mode 100644 index 000000000..5971c9481 --- /dev/null +++ b/dysmsapi/src/model/QuerySmsSignListRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Dysmsapi::Model::QuerySmsSignListRequest; + +QuerySmsSignListRequest::QuerySmsSignListRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsSignList") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySmsSignListRequest::~QuerySmsSignListRequest() +{} + +long QuerySmsSignListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySmsSignListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySmsSignListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySmsSignListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int QuerySmsSignListRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySmsSignListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int QuerySmsSignListRequest::getPageIndex()const +{ + return pageIndex_; +} + +void QuerySmsSignListRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string QuerySmsSignListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySmsSignListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySmsSignListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySmsSignListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dysmsapi/src/model/QuerySmsSignListResult.cc b/dysmsapi/src/model/QuerySmsSignListResult.cc new file mode 100644 index 000000000..95651629c --- /dev/null +++ b/dysmsapi/src/model/QuerySmsSignListResult.cc @@ -0,0 +1,86 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +QuerySmsSignListResult::QuerySmsSignListResult() : + ServiceResult() +{} + +QuerySmsSignListResult::QuerySmsSignListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySmsSignListResult::~QuerySmsSignListResult() +{} + +void QuerySmsSignListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSmsSignListNode = value["SmsSignList"]["QuerySmsSignDTO"]; + for (auto valueSmsSignListQuerySmsSignDTO : allSmsSignListNode) + { + QuerySmsSignDTO smsSignListObject; + if(!valueSmsSignListQuerySmsSignDTO["SignName"].isNull()) + smsSignListObject.signName = valueSmsSignListQuerySmsSignDTO["SignName"].asString(); + if(!valueSmsSignListQuerySmsSignDTO["AuditStatus"].isNull()) + smsSignListObject.auditStatus = valueSmsSignListQuerySmsSignDTO["AuditStatus"].asString(); + if(!valueSmsSignListQuerySmsSignDTO["CreateDate"].isNull()) + smsSignListObject.createDate = valueSmsSignListQuerySmsSignDTO["CreateDate"].asString(); + if(!valueSmsSignListQuerySmsSignDTO["BusinessType"].isNull()) + smsSignListObject.businessType = valueSmsSignListQuerySmsSignDTO["BusinessType"].asString(); + if(!valueSmsSignListQuerySmsSignDTO["OrderId"].isNull()) + smsSignListObject.orderId = valueSmsSignListQuerySmsSignDTO["OrderId"].asString(); + auto reasonNode = value["Reason"]; + if(!reasonNode["RejectSubInfo"].isNull()) + smsSignListObject.reason.rejectSubInfo = reasonNode["RejectSubInfo"].asString(); + if(!reasonNode["RejectDate"].isNull()) + smsSignListObject.reason.rejectDate = reasonNode["RejectDate"].asString(); + if(!reasonNode["RejectInfo"].isNull()) + smsSignListObject.reason.rejectInfo = reasonNode["RejectInfo"].asString(); + smsSignList_.push_back(smsSignListObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QuerySmsSignListResult::getMessage()const +{ + return message_; +} + +std::vector QuerySmsSignListResult::getSmsSignList()const +{ + return smsSignList_; +} + +std::string QuerySmsSignListResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/QuerySmsTemplateListRequest.cc b/dysmsapi/src/model/QuerySmsTemplateListRequest.cc new file mode 100644 index 000000000..1a03ad7bf --- /dev/null +++ b/dysmsapi/src/model/QuerySmsTemplateListRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Dysmsapi::Model::QuerySmsTemplateListRequest; + +QuerySmsTemplateListRequest::QuerySmsTemplateListRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsTemplateList") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySmsTemplateListRequest::~QuerySmsTemplateListRequest() +{} + +long QuerySmsTemplateListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySmsTemplateListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySmsTemplateListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySmsTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int QuerySmsTemplateListRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySmsTemplateListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int QuerySmsTemplateListRequest::getPageIndex()const +{ + return pageIndex_; +} + +void QuerySmsTemplateListRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string QuerySmsTemplateListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySmsTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySmsTemplateListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySmsTemplateListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dysmsapi/src/model/QuerySmsTemplateListResult.cc b/dysmsapi/src/model/QuerySmsTemplateListResult.cc new file mode 100644 index 000000000..ec258ea92 --- /dev/null +++ b/dysmsapi/src/model/QuerySmsTemplateListResult.cc @@ -0,0 +1,90 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +QuerySmsTemplateListResult::QuerySmsTemplateListResult() : + ServiceResult() +{} + +QuerySmsTemplateListResult::QuerySmsTemplateListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySmsTemplateListResult::~QuerySmsTemplateListResult() +{} + +void QuerySmsTemplateListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSmsTemplateListNode = value["SmsTemplateList"]["SmsStatsResultDTO"]; + for (auto valueSmsTemplateListSmsStatsResultDTO : allSmsTemplateListNode) + { + SmsStatsResultDTO smsTemplateListObject; + if(!valueSmsTemplateListSmsStatsResultDTO["TemplateCode"].isNull()) + smsTemplateListObject.templateCode = valueSmsTemplateListSmsStatsResultDTO["TemplateCode"].asString(); + if(!valueSmsTemplateListSmsStatsResultDTO["TemplateName"].isNull()) + smsTemplateListObject.templateName = valueSmsTemplateListSmsStatsResultDTO["TemplateName"].asString(); + if(!valueSmsTemplateListSmsStatsResultDTO["TemplateType"].isNull()) + smsTemplateListObject.templateType = std::stoi(valueSmsTemplateListSmsStatsResultDTO["TemplateType"].asString()); + if(!valueSmsTemplateListSmsStatsResultDTO["AuditStatus"].isNull()) + smsTemplateListObject.auditStatus = valueSmsTemplateListSmsStatsResultDTO["AuditStatus"].asString(); + if(!valueSmsTemplateListSmsStatsResultDTO["TemplateContent"].isNull()) + smsTemplateListObject.templateContent = valueSmsTemplateListSmsStatsResultDTO["TemplateContent"].asString(); + if(!valueSmsTemplateListSmsStatsResultDTO["CreateDate"].isNull()) + smsTemplateListObject.createDate = valueSmsTemplateListSmsStatsResultDTO["CreateDate"].asString(); + if(!valueSmsTemplateListSmsStatsResultDTO["OrderId"].isNull()) + smsTemplateListObject.orderId = valueSmsTemplateListSmsStatsResultDTO["OrderId"].asString(); + auto reasonNode = value["Reason"]; + if(!reasonNode["RejectDate"].isNull()) + smsTemplateListObject.reason.rejectDate = reasonNode["RejectDate"].asString(); + if(!reasonNode["RejectInfo"].isNull()) + smsTemplateListObject.reason.rejectInfo = reasonNode["RejectInfo"].asString(); + if(!reasonNode["RejectSubInfo"].isNull()) + smsTemplateListObject.reason.rejectSubInfo = reasonNode["RejectSubInfo"].asString(); + smsTemplateList_.push_back(smsTemplateListObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QuerySmsTemplateListResult::getMessage()const +{ + return message_; +} + +std::vector QuerySmsTemplateListResult::getSmsTemplateList()const +{ + return smsTemplateList_; +} + +std::string QuerySmsTemplateListResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/TagResourcesRequest.cc b/dysmsapi/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..ba12304ab --- /dev/null +++ b/dysmsapi/src/model/TagResourcesRequest.cc @@ -0,0 +1,135 @@ +/* + * 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::Dysmsapi::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "TagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() +{} + +long TagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string TagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TagResourcesRequest::getProdCode()const +{ + return prodCode_; +} + +void TagResourcesRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long TagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void TagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/dysmsapi/src/model/TagResourcesResult.cc b/dysmsapi/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..0e6cfe7f5 --- /dev/null +++ b/dysmsapi/src/model/TagResourcesResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string TagResourcesResult::getData()const +{ + return data_; +} + +std::string TagResourcesResult::getCode()const +{ + return code_; +} + diff --git a/dysmsapi/src/model/UntagResourcesRequest.cc b/dysmsapi/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..dec5107b7 --- /dev/null +++ b/dysmsapi/src/model/UntagResourcesRequest.cc @@ -0,0 +1,143 @@ +/* + * 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::Dysmsapi::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("dysmsapi", "2017-05-25", "UntagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +long UntagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UntagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string UntagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UntagResourcesRequest::getProdCode()const +{ + return prodCode_; +} + +void UntagResourcesRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long UntagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UntagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { + setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); + } +} + diff --git a/dysmsapi/src/model/UntagResourcesResult.cc b/dysmsapi/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..81be5c254 --- /dev/null +++ b/dysmsapi/src/model/UntagResourcesResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Dysmsapi; +using namespace AlibabaCloud::Dysmsapi::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UntagResourcesResult::getData()const +{ + return data_; +} + +std::string UntagResourcesResult::getCode()const +{ + return code_; +} +