From 8bc204572b7abd0fe9a9b32f993740f6cd09fdf4 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 4 May 2023 02:41:29 +0000 Subject: [PATCH] Add new API. --- VERSION | 2 +- dyplsapi/CMakeLists.txt | 8 ++ .../alibabacloud/dyplsapi/DyplsapiClient.h | 16 ++++ .../dyplsapi/model/BindBatchAxgRequest.h | 73 ++++++++++++++ .../dyplsapi/model/BindBatchAxgResult.h | 65 +++++++++++++ .../dyplsapi/model/DeleteAxgGroupRequest.h | 57 +++++++++++ .../dyplsapi/model/DeleteAxgGroupResult.h | 53 ++++++++++ .../dyplsapi/model/LockSecretNoRequest.h | 12 +-- .../dyplsapi/model/QuerySubsIdRequest.h | 12 +-- .../dyplsapi/model/ReleaseSecretNoRequest.h | 12 +-- .../dyplsapi/model/UnlockSecretNoRequest.h | 12 +-- dyplsapi/src/DyplsapiClient.cc | 72 ++++++++++++++ dyplsapi/src/model/BindBatchAxgRequest.cc | 96 +++++++++++++++++++ dyplsapi/src/model/BindBatchAxgResult.cc | 83 ++++++++++++++++ dyplsapi/src/model/DeleteAxgGroupRequest.cc | 81 ++++++++++++++++ dyplsapi/src/model/DeleteAxgGroupResult.cc | 58 +++++++++++ dyplsapi/src/model/LockSecretNoRequest.cc | 36 +++---- dyplsapi/src/model/QuerySubsIdRequest.cc | 36 +++---- dyplsapi/src/model/ReleaseSecretNoRequest.cc | 36 +++---- dyplsapi/src/model/UnlockSecretNoRequest.cc | 36 +++---- 20 files changed, 759 insertions(+), 97 deletions(-) create mode 100644 dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h create mode 100644 dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h create mode 100644 dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h create mode 100644 dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.h create mode 100644 dyplsapi/src/model/BindBatchAxgRequest.cc create mode 100644 dyplsapi/src/model/BindBatchAxgResult.cc create mode 100644 dyplsapi/src/model/DeleteAxgGroupRequest.cc create mode 100644 dyplsapi/src/model/DeleteAxgGroupResult.cc diff --git a/VERSION b/VERSION index da9a130d9..e1bf116d6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1550 \ No newline at end of file +1.36.1551 \ No newline at end of file diff --git a/dyplsapi/CMakeLists.txt b/dyplsapi/CMakeLists.txt index 4cbd2cc8a..03790ae2d 100644 --- a/dyplsapi/CMakeLists.txt +++ b/dyplsapi/CMakeLists.txt @@ -33,6 +33,8 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/BindAxnResult.h include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h + include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h + include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h include/alibabacloud/dyplsapi/model/BuySecretNoResult.h include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.h @@ -43,6 +45,8 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.h include/alibabacloud/dyplsapi/model/CreatePickUpWaybillPreQueryRequest.h include/alibabacloud/dyplsapi/model/CreatePickUpWaybillPreQueryResult.h + include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h + include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.h include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h @@ -90,6 +94,8 @@ set(dyplsapi_src src/model/BindAxnResult.cc src/model/BindAxnExtensionRequest.cc src/model/BindAxnExtensionResult.cc + src/model/BindBatchAxgRequest.cc + src/model/BindBatchAxgResult.cc src/model/BuySecretNoRequest.cc src/model/BuySecretNoResult.cc src/model/CancelPickUpWaybillRequest.cc @@ -100,6 +106,8 @@ set(dyplsapi_src src/model/CreatePickUpWaybillResult.cc src/model/CreatePickUpWaybillPreQueryRequest.cc src/model/CreatePickUpWaybillPreQueryResult.cc + src/model/DeleteAxgGroupRequest.cc + src/model/DeleteAxgGroupResult.cc src/model/DeleteSecretBlacklistRequest.cc src/model/DeleteSecretBlacklistResult.cc src/model/GetSecretAsrDetailRequest.cc diff --git a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h index bef076b0b..d69d9a30d 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h @@ -34,6 +34,8 @@ #include "model/BindAxnResult.h" #include "model/BindAxnExtensionRequest.h" #include "model/BindAxnExtensionResult.h" +#include "model/BindBatchAxgRequest.h" +#include "model/BindBatchAxgResult.h" #include "model/BuySecretNoRequest.h" #include "model/BuySecretNoResult.h" #include "model/CancelPickUpWaybillRequest.h" @@ -44,6 +46,8 @@ #include "model/CreatePickUpWaybillResult.h" #include "model/CreatePickUpWaybillPreQueryRequest.h" #include "model/CreatePickUpWaybillPreQueryResult.h" +#include "model/DeleteAxgGroupRequest.h" +#include "model/DeleteAxgGroupResult.h" #include "model/DeleteSecretBlacklistRequest.h" #include "model/DeleteSecretBlacklistResult.h" #include "model/GetSecretAsrDetailRequest.h" @@ -103,6 +107,9 @@ namespace AlibabaCloud typedef Outcome BindAxnExtensionOutcome; typedef std::future BindAxnExtensionOutcomeCallable; typedef std::function&)> BindAxnExtensionAsyncHandler; + typedef Outcome BindBatchAxgOutcome; + typedef std::future BindBatchAxgOutcomeCallable; + typedef std::function&)> BindBatchAxgAsyncHandler; typedef Outcome BuySecretNoOutcome; typedef std::future BuySecretNoOutcomeCallable; typedef std::function&)> BuySecretNoAsyncHandler; @@ -118,6 +125,9 @@ namespace AlibabaCloud typedef Outcome CreatePickUpWaybillPreQueryOutcome; typedef std::future CreatePickUpWaybillPreQueryOutcomeCallable; typedef std::function&)> CreatePickUpWaybillPreQueryAsyncHandler; + typedef Outcome DeleteAxgGroupOutcome; + typedef std::future DeleteAxgGroupOutcomeCallable; + typedef std::function&)> DeleteAxgGroupAsyncHandler; typedef Outcome DeleteSecretBlacklistOutcome; typedef std::future DeleteSecretBlacklistOutcomeCallable; typedef std::function&)> DeleteSecretBlacklistAsyncHandler; @@ -189,6 +199,9 @@ namespace AlibabaCloud BindAxnExtensionOutcome bindAxnExtension(const Model::BindAxnExtensionRequest &request)const; void bindAxnExtensionAsync(const Model::BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindAxnExtensionOutcomeCallable bindAxnExtensionCallable(const Model::BindAxnExtensionRequest& request) const; + BindBatchAxgOutcome bindBatchAxg(const Model::BindBatchAxgRequest &request)const; + void bindBatchAxgAsync(const Model::BindBatchAxgRequest& request, const BindBatchAxgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindBatchAxgOutcomeCallable bindBatchAxgCallable(const Model::BindBatchAxgRequest& request) const; BuySecretNoOutcome buySecretNo(const Model::BuySecretNoRequest &request)const; void buySecretNoAsync(const Model::BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BuySecretNoOutcomeCallable buySecretNoCallable(const Model::BuySecretNoRequest& request) const; @@ -204,6 +217,9 @@ namespace AlibabaCloud CreatePickUpWaybillPreQueryOutcome createPickUpWaybillPreQuery(const Model::CreatePickUpWaybillPreQueryRequest &request)const; void createPickUpWaybillPreQueryAsync(const Model::CreatePickUpWaybillPreQueryRequest& request, const CreatePickUpWaybillPreQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePickUpWaybillPreQueryOutcomeCallable createPickUpWaybillPreQueryCallable(const Model::CreatePickUpWaybillPreQueryRequest& request) const; + DeleteAxgGroupOutcome deleteAxgGroup(const Model::DeleteAxgGroupRequest &request)const; + void deleteAxgGroupAsync(const Model::DeleteAxgGroupRequest& request, const DeleteAxgGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAxgGroupOutcomeCallable deleteAxgGroupCallable(const Model::DeleteAxgGroupRequest& request) const; DeleteSecretBlacklistOutcome deleteSecretBlacklist(const Model::DeleteSecretBlacklistRequest &request)const; void deleteSecretBlacklistAsync(const Model::DeleteSecretBlacklistRequest& request, const DeleteSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSecretBlacklistOutcomeCallable deleteSecretBlacklistCallable(const Model::DeleteSecretBlacklistRequest& request) const; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h new file mode 100644 index 000000000..79a55d166 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h @@ -0,0 +1,73 @@ +/* + * 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_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dyplsapi { +namespace Model { +class ALIBABACLOUD_DYPLSAPI_EXPORT BindBatchAxgRequest : public RpcServiceRequest { +public: + struct AxgBindList { + std::string phoneNoB; + std::string phoneNoA; + std::string expectCity; + std::string groupId; + int callDisplayType; + std::string outOrderId; + std::string phoneNoX; + bool isRecordingEnabled; + std::string outId; + std::string expiration; + std::string ringConfig; + bool aSRStatus; + std::string aSRModelId; + std::string callRestrict; + }; + BindBatchAxgRequest(); + ~BindBatchAxgRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getAxgBindList() const; + void setAxgBindList(const std::vector &axgBindList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPoolKey() const; + void setPoolKey(const std::string &poolKey); + +private: + long resourceOwnerId_; + std::vector axgBindList_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; +}; +} // namespace Model +} // namespace Dyplsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_ diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h new file mode 100644 index 000000000..9a86347eb --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h @@ -0,0 +1,65 @@ +/* + * 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_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindBatchAxgResult : public ServiceResult + { + public: + struct SecretBind + { + std::string extension; + std::string message; + std::string secretNo; + std::string code; + std::string subsId; + std::string groupId; + std::string phoneNoA; + }; + + + BindBatchAxgResult(); + explicit BindBatchAxgResult(const std::string &payload); + ~BindBatchAxgResult(); + std::string getMessage()const; + std::vector getSecretBindList()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector secretBindList_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h new file mode 100644 index 000000000..bd458d888 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dyplsapi { +namespace Model { +class ALIBABACLOUD_DYPLSAPI_EXPORT DeleteAxgGroupRequest : public RpcServiceRequest { +public: + DeleteAxgGroupRequest(); + ~DeleteAxgGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getGroupId() const; + void setGroupId(long groupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPoolKey() const; + void setPoolKey(const std::string &poolKey); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long groupId_; + long ownerId_; + std::string poolKey_; +}; +} // namespace Model +} // namespace Dyplsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_H_ diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.h new file mode 100644 index 000000000..380d0067a --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.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_DYPLSAPI_MODEL_DELETEAXGGROUPRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT DeleteAxgGroupResult : public ServiceResult + { + public: + + + DeleteAxgGroupResult(); + explicit DeleteAxgGroupResult(const std::string &payload); + ~DeleteAxgGroupResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h index c415a566b..78684bd33 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h @@ -32,24 +32,24 @@ public: ~LockSecretNoRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecretNo() const; + void setSecretNo(const std::string &secretNo); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getPoolKey() const; void setPoolKey(const std::string &poolKey); - std::string getSecretNo() const; - void setSecretNo(const std::string &secretNo); private: long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; std::string resourceOwnerAccount_; long ownerId_; - std::string accessKeyId_; std::string poolKey_; - std::string secretNo_; }; } // namespace Model } // namespace Dyplsapi diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h index 5a559865e..d5177f0ca 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h @@ -32,24 +32,24 @@ public: ~QuerySubsIdRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPhoneNoX() const; + void setPhoneNoX(const std::string &phoneNoX); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getPoolKey() const; void setPoolKey(const std::string &poolKey); - std::string getPhoneNoX() const; - void setPhoneNoX(const std::string &phoneNoX); private: long resourceOwnerId_; + std::string accessKeyId_; + std::string phoneNoX_; std::string resourceOwnerAccount_; long ownerId_; - std::string accessKeyId_; std::string poolKey_; - std::string phoneNoX_; }; } // namespace Model } // namespace Dyplsapi diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h index 9b6ba56e7..b2ec7e133 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h @@ -32,24 +32,24 @@ public: ~ReleaseSecretNoRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecretNo() const; + void setSecretNo(const std::string &secretNo); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getPoolKey() const; void setPoolKey(const std::string &poolKey); - std::string getSecretNo() const; - void setSecretNo(const std::string &secretNo); private: long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; std::string resourceOwnerAccount_; long ownerId_; - std::string accessKeyId_; std::string poolKey_; - std::string secretNo_; }; } // namespace Model } // namespace Dyplsapi diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h index cda96cb4d..5e49d49f0 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h @@ -32,24 +32,24 @@ public: ~UnlockSecretNoRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecretNo() const; + void setSecretNo(const std::string &secretNo); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getPoolKey() const; void setPoolKey(const std::string &poolKey); - std::string getSecretNo() const; - void setSecretNo(const std::string &secretNo); private: long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; std::string resourceOwnerAccount_; long ownerId_; - std::string accessKeyId_; std::string poolKey_; - std::string secretNo_; }; } // namespace Model } // namespace Dyplsapi diff --git a/dyplsapi/src/DyplsapiClient.cc b/dyplsapi/src/DyplsapiClient.cc index 27577d90f..268326fb1 100644 --- a/dyplsapi/src/DyplsapiClient.cc +++ b/dyplsapi/src/DyplsapiClient.cc @@ -267,6 +267,42 @@ DyplsapiClient::BindAxnExtensionOutcomeCallable DyplsapiClient::bindAxnExtension return task->get_future(); } +DyplsapiClient::BindBatchAxgOutcome DyplsapiClient::bindBatchAxg(const BindBatchAxgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindBatchAxgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindBatchAxgOutcome(BindBatchAxgResult(outcome.result())); + else + return BindBatchAxgOutcome(outcome.error()); +} + +void DyplsapiClient::bindBatchAxgAsync(const BindBatchAxgRequest& request, const BindBatchAxgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindBatchAxg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BindBatchAxgOutcomeCallable DyplsapiClient::bindBatchAxgCallable(const BindBatchAxgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindBatchAxg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::BuySecretNoOutcome DyplsapiClient::buySecretNo(const BuySecretNoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +483,42 @@ DyplsapiClient::CreatePickUpWaybillPreQueryOutcomeCallable DyplsapiClient::creat return task->get_future(); } +DyplsapiClient::DeleteAxgGroupOutcome DyplsapiClient::deleteAxgGroup(const DeleteAxgGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAxgGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAxgGroupOutcome(DeleteAxgGroupResult(outcome.result())); + else + return DeleteAxgGroupOutcome(outcome.error()); +} + +void DyplsapiClient::deleteAxgGroupAsync(const DeleteAxgGroupRequest& request, const DeleteAxgGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAxgGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::DeleteAxgGroupOutcomeCallable DyplsapiClient::deleteAxgGroupCallable(const DeleteAxgGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAxgGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::DeleteSecretBlacklistOutcome DyplsapiClient::deleteSecretBlacklist(const DeleteSecretBlacklistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dyplsapi/src/model/BindBatchAxgRequest.cc b/dyplsapi/src/model/BindBatchAxgRequest.cc new file mode 100644 index 000000000..6c4fac16e --- /dev/null +++ b/dyplsapi/src/model/BindBatchAxgRequest.cc @@ -0,0 +1,96 @@ +/* + * 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::Dyplsapi::Model::BindBatchAxgRequest; + +BindBatchAxgRequest::BindBatchAxgRequest() + : RpcServiceRequest("dyplsapi", "2017-05-25", "BindBatchAxg") { + setMethod(HttpRequest::Method::Post); +} + +BindBatchAxgRequest::~BindBatchAxgRequest() {} + +long BindBatchAxgRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void BindBatchAxgRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector BindBatchAxgRequest::getAxgBindList() const { + return axgBindList_; +} + +void BindBatchAxgRequest::setAxgBindList(const std::vector &axgBindList) { + axgBindList_ = axgBindList; + for(int dep1 = 0; dep1 != axgBindList.size(); dep1++) { + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoB", axgBindList[dep1].phoneNoB); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoA", axgBindList[dep1].phoneNoA); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ExpectCity", axgBindList[dep1].expectCity); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".GroupId", axgBindList[dep1].groupId); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".CallDisplayType", std::to_string(axgBindList[dep1].callDisplayType)); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".OutOrderId", axgBindList[dep1].outOrderId); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoX", axgBindList[dep1].phoneNoX); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".IsRecordingEnabled", axgBindList[dep1].isRecordingEnabled ? "true" : "false"); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".OutId", axgBindList[dep1].outId); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".Expiration", axgBindList[dep1].expiration); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".RingConfig", axgBindList[dep1].ringConfig); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ASRStatus", axgBindList[dep1].aSRStatus ? "true" : "false"); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ASRModelId", axgBindList[dep1].aSRModelId); + setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".CallRestrict", axgBindList[dep1].callRestrict); + } +} + +std::string BindBatchAxgRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void BindBatchAxgRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string BindBatchAxgRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void BindBatchAxgRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long BindBatchAxgRequest::getOwnerId() const { + return ownerId_; +} + +void BindBatchAxgRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string BindBatchAxgRequest::getPoolKey() const { + return poolKey_; +} + +void BindBatchAxgRequest::setPoolKey(const std::string &poolKey) { + poolKey_ = poolKey; + setParameter(std::string("PoolKey"), poolKey); +} + diff --git a/dyplsapi/src/model/BindBatchAxgResult.cc b/dyplsapi/src/model/BindBatchAxgResult.cc new file mode 100644 index 000000000..c2ba169e6 --- /dev/null +++ b/dyplsapi/src/model/BindBatchAxgResult.cc @@ -0,0 +1,83 @@ +/* + * 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::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +BindBatchAxgResult::BindBatchAxgResult() : + ServiceResult() +{} + +BindBatchAxgResult::BindBatchAxgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindBatchAxgResult::~BindBatchAxgResult() +{} + +void BindBatchAxgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecretBindListNode = value["SecretBindList"]["SecretBind"]; + for (auto valueSecretBindListSecretBind : allSecretBindListNode) + { + SecretBind secretBindListObject; + if(!valueSecretBindListSecretBind["SecretNo"].isNull()) + secretBindListObject.secretNo = valueSecretBindListSecretBind["SecretNo"].asString(); + if(!valueSecretBindListSecretBind["SubsId"].isNull()) + secretBindListObject.subsId = valueSecretBindListSecretBind["SubsId"].asString(); + if(!valueSecretBindListSecretBind["Extension"].isNull()) + secretBindListObject.extension = valueSecretBindListSecretBind["Extension"].asString(); + if(!valueSecretBindListSecretBind["GroupId"].isNull()) + secretBindListObject.groupId = valueSecretBindListSecretBind["GroupId"].asString(); + if(!valueSecretBindListSecretBind["PhoneNoA"].isNull()) + secretBindListObject.phoneNoA = valueSecretBindListSecretBind["PhoneNoA"].asString(); + if(!valueSecretBindListSecretBind["Code"].isNull()) + secretBindListObject.code = valueSecretBindListSecretBind["Code"].asString(); + if(!valueSecretBindListSecretBind["Message"].isNull()) + secretBindListObject.message = valueSecretBindListSecretBind["Message"].asString(); + secretBindList_.push_back(secretBindListObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BindBatchAxgResult::getMessage()const +{ + return message_; +} + +std::vector BindBatchAxgResult::getSecretBindList()const +{ + return secretBindList_; +} + +std::string BindBatchAxgResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/DeleteAxgGroupRequest.cc b/dyplsapi/src/model/DeleteAxgGroupRequest.cc new file mode 100644 index 000000000..02eb94c97 --- /dev/null +++ b/dyplsapi/src/model/DeleteAxgGroupRequest.cc @@ -0,0 +1,81 @@ +/* + * 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::Dyplsapi::Model::DeleteAxgGroupRequest; + +DeleteAxgGroupRequest::DeleteAxgGroupRequest() + : RpcServiceRequest("dyplsapi", "2017-05-25", "DeleteAxgGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAxgGroupRequest::~DeleteAxgGroupRequest() {} + +long DeleteAxgGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteAxgGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteAxgGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteAxgGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteAxgGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteAxgGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DeleteAxgGroupRequest::getGroupId() const { + return groupId_; +} + +void DeleteAxgGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); +} + +long DeleteAxgGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAxgGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteAxgGroupRequest::getPoolKey() const { + return poolKey_; +} + +void DeleteAxgGroupRequest::setPoolKey(const std::string &poolKey) { + poolKey_ = poolKey; + setParameter(std::string("PoolKey"), poolKey); +} + diff --git a/dyplsapi/src/model/DeleteAxgGroupResult.cc b/dyplsapi/src/model/DeleteAxgGroupResult.cc new file mode 100644 index 000000000..fda5ef04d --- /dev/null +++ b/dyplsapi/src/model/DeleteAxgGroupResult.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::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +DeleteAxgGroupResult::DeleteAxgGroupResult() : + ServiceResult() +{} + +DeleteAxgGroupResult::DeleteAxgGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAxgGroupResult::~DeleteAxgGroupResult() +{} + +void DeleteAxgGroupResult::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 DeleteAxgGroupResult::getMessage()const +{ + return message_; +} + +std::string DeleteAxgGroupResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/LockSecretNoRequest.cc b/dyplsapi/src/model/LockSecretNoRequest.cc index cc11301fa..a99be69be 100644 --- a/dyplsapi/src/model/LockSecretNoRequest.cc +++ b/dyplsapi/src/model/LockSecretNoRequest.cc @@ -34,6 +34,24 @@ void LockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string LockSecretNoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void LockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string LockSecretNoRequest::getSecretNo() const { + return secretNo_; +} + +void LockSecretNoRequest::setSecretNo(const std::string &secretNo) { + secretNo_ = secretNo; + setParameter(std::string("SecretNo"), secretNo); +} + std::string LockSecretNoRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -52,15 +70,6 @@ void LockSecretNoRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string LockSecretNoRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void LockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string LockSecretNoRequest::getPoolKey() const { return poolKey_; } @@ -70,12 +79,3 @@ void LockSecretNoRequest::setPoolKey(const std::string &poolKey) { setParameter(std::string("PoolKey"), poolKey); } -std::string LockSecretNoRequest::getSecretNo() const { - return secretNo_; -} - -void LockSecretNoRequest::setSecretNo(const std::string &secretNo) { - secretNo_ = secretNo; - setParameter(std::string("SecretNo"), secretNo); -} - diff --git a/dyplsapi/src/model/QuerySubsIdRequest.cc b/dyplsapi/src/model/QuerySubsIdRequest.cc index d58ab76ec..56a6ffe03 100644 --- a/dyplsapi/src/model/QuerySubsIdRequest.cc +++ b/dyplsapi/src/model/QuerySubsIdRequest.cc @@ -34,6 +34,24 @@ void QuerySubsIdRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string QuerySubsIdRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QuerySubsIdRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QuerySubsIdRequest::getPhoneNoX() const { + return phoneNoX_; +} + +void QuerySubsIdRequest::setPhoneNoX(const std::string &phoneNoX) { + phoneNoX_ = phoneNoX; + setParameter(std::string("PhoneNoX"), phoneNoX); +} + std::string QuerySubsIdRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -52,15 +70,6 @@ void QuerySubsIdRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string QuerySubsIdRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void QuerySubsIdRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string QuerySubsIdRequest::getPoolKey() const { return poolKey_; } @@ -70,12 +79,3 @@ void QuerySubsIdRequest::setPoolKey(const std::string &poolKey) { setParameter(std::string("PoolKey"), poolKey); } -std::string QuerySubsIdRequest::getPhoneNoX() const { - return phoneNoX_; -} - -void QuerySubsIdRequest::setPhoneNoX(const std::string &phoneNoX) { - phoneNoX_ = phoneNoX; - setParameter(std::string("PhoneNoX"), phoneNoX); -} - diff --git a/dyplsapi/src/model/ReleaseSecretNoRequest.cc b/dyplsapi/src/model/ReleaseSecretNoRequest.cc index b2e6016df..0aa5c3189 100644 --- a/dyplsapi/src/model/ReleaseSecretNoRequest.cc +++ b/dyplsapi/src/model/ReleaseSecretNoRequest.cc @@ -34,6 +34,24 @@ void ReleaseSecretNoRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ReleaseSecretNoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ReleaseSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ReleaseSecretNoRequest::getSecretNo() const { + return secretNo_; +} + +void ReleaseSecretNoRequest::setSecretNo(const std::string &secretNo) { + secretNo_ = secretNo; + setParameter(std::string("SecretNo"), secretNo); +} + std::string ReleaseSecretNoRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -52,15 +70,6 @@ void ReleaseSecretNoRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string ReleaseSecretNoRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ReleaseSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string ReleaseSecretNoRequest::getPoolKey() const { return poolKey_; } @@ -70,12 +79,3 @@ void ReleaseSecretNoRequest::setPoolKey(const std::string &poolKey) { setParameter(std::string("PoolKey"), poolKey); } -std::string ReleaseSecretNoRequest::getSecretNo() const { - return secretNo_; -} - -void ReleaseSecretNoRequest::setSecretNo(const std::string &secretNo) { - secretNo_ = secretNo; - setParameter(std::string("SecretNo"), secretNo); -} - diff --git a/dyplsapi/src/model/UnlockSecretNoRequest.cc b/dyplsapi/src/model/UnlockSecretNoRequest.cc index 0c85555c2..b3b056d5a 100644 --- a/dyplsapi/src/model/UnlockSecretNoRequest.cc +++ b/dyplsapi/src/model/UnlockSecretNoRequest.cc @@ -34,6 +34,24 @@ void UnlockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string UnlockSecretNoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UnlockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UnlockSecretNoRequest::getSecretNo() const { + return secretNo_; +} + +void UnlockSecretNoRequest::setSecretNo(const std::string &secretNo) { + secretNo_ = secretNo; + setParameter(std::string("SecretNo"), secretNo); +} + std::string UnlockSecretNoRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -52,15 +70,6 @@ void UnlockSecretNoRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string UnlockSecretNoRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void UnlockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string UnlockSecretNoRequest::getPoolKey() const { return poolKey_; } @@ -70,12 +79,3 @@ void UnlockSecretNoRequest::setPoolKey(const std::string &poolKey) { setParameter(std::string("PoolKey"), poolKey); } -std::string UnlockSecretNoRequest::getSecretNo() const { - return secretNo_; -} - -void UnlockSecretNoRequest::setSecretNo(const std::string &secretNo) { - secretNo_ = secretNo; - setParameter(std::string("SecretNo"), secretNo); -} -