diff --git a/CHANGELOG b/CHANGELOG index d82ead2ae..e7c514616 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-05-13 Version: 1.36.407 +- Supported AAA for BBB. +- Fixed bugs for CCC. + 2020-05-13 Version: 1.36.406 - Add ExportTas apis. diff --git a/VERSION b/VERSION index 5c5f3ec5d..072976673 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.406 \ No newline at end of file +1.36.407 \ No newline at end of file diff --git a/retailcloud/CMakeLists.txt b/retailcloud/CMakeLists.txt index 645618c4d..29f12645f 100644 --- a/retailcloud/CMakeLists.txt +++ b/retailcloud/CMakeLists.txt @@ -29,6 +29,8 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/BindNodeLabelResult.h include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.h include/alibabacloud/retailcloud/model/CloseDeployOrderResult.h + include/alibabacloud/retailcloud/model/CreateAccountRequest.h + include/alibabacloud/retailcloud/model/CreateAccountResult.h include/alibabacloud/retailcloud/model/CreateAppRequest.h include/alibabacloud/retailcloud/model/CreateAppResult.h include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h @@ -147,6 +149,8 @@ set(retailcloud_public_header_model include/alibabacloud/retailcloud/model/QueryClusterDetailResult.h include/alibabacloud/retailcloud/model/RemoveClusterNodeRequest.h include/alibabacloud/retailcloud/model/RemoveClusterNodeResult.h + include/alibabacloud/retailcloud/model/ResetAccountPasswordRequest.h + include/alibabacloud/retailcloud/model/ResetAccountPasswordResult.h include/alibabacloud/retailcloud/model/ResourceStatusNotifyRequest.h include/alibabacloud/retailcloud/model/ResourceStatusNotifyResult.h include/alibabacloud/retailcloud/model/ResumeDeployRequest.h @@ -174,6 +178,8 @@ set(retailcloud_src src/model/BindNodeLabelResult.cc src/model/CloseDeployOrderRequest.cc src/model/CloseDeployOrderResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc src/model/CreateAppRequest.cc src/model/CreateAppResult.cc src/model/CreateAppResourceAllocRequest.cc @@ -292,6 +298,8 @@ set(retailcloud_src src/model/QueryClusterDetailResult.cc src/model/RemoveClusterNodeRequest.cc src/model/RemoveClusterNodeResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc src/model/ResourceStatusNotifyRequest.cc src/model/ResourceStatusNotifyResult.cc src/model/ResumeDeployRequest.cc diff --git a/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h index 3e940f42e..27cef89c2 100644 --- a/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h +++ b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h @@ -30,6 +30,8 @@ #include "model/BindNodeLabelResult.h" #include "model/CloseDeployOrderRequest.h" #include "model/CloseDeployOrderResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" #include "model/CreateAppRequest.h" #include "model/CreateAppResult.h" #include "model/CreateAppResourceAllocRequest.h" @@ -148,6 +150,8 @@ #include "model/QueryClusterDetailResult.h" #include "model/RemoveClusterNodeRequest.h" #include "model/RemoveClusterNodeResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" #include "model/ResourceStatusNotifyRequest.h" #include "model/ResourceStatusNotifyResult.h" #include "model/ResumeDeployRequest.h" @@ -185,6 +189,9 @@ namespace AlibabaCloud typedef Outcome CloseDeployOrderOutcome; typedef std::future CloseDeployOrderOutcomeCallable; typedef std::function&)> CloseDeployOrderAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; typedef Outcome CreateAppOutcome; typedef std::future CreateAppOutcomeCallable; typedef std::function&)> CreateAppAsyncHandler; @@ -362,6 +369,9 @@ namespace AlibabaCloud typedef Outcome RemoveClusterNodeOutcome; typedef std::future RemoveClusterNodeOutcomeCallable; typedef std::function&)> RemoveClusterNodeAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; typedef Outcome ResourceStatusNotifyOutcome; typedef std::future ResourceStatusNotifyOutcomeCallable; typedef std::function&)> ResourceStatusNotifyAsyncHandler; @@ -403,6 +413,9 @@ namespace AlibabaCloud CloseDeployOrderOutcome closeDeployOrder(const Model::CloseDeployOrderRequest &request)const; void closeDeployOrderAsync(const Model::CloseDeployOrderRequest& request, const CloseDeployOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseDeployOrderOutcomeCallable closeDeployOrderCallable(const Model::CloseDeployOrderRequest& request) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; @@ -580,6 +593,9 @@ namespace AlibabaCloud RemoveClusterNodeOutcome removeClusterNode(const Model::RemoveClusterNodeRequest &request)const; void removeClusterNodeAsync(const Model::RemoveClusterNodeRequest& request, const RemoveClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveClusterNodeOutcomeCallable removeClusterNodeCallable(const Model::RemoveClusterNodeRequest& request) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; ResourceStatusNotifyOutcome resourceStatusNotify(const Model::ResourceStatusNotifyRequest &request)const; void resourceStatusNotifyAsync(const Model::ResourceStatusNotifyRequest& request, const ResourceStatusNotifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResourceStatusNotifyOutcomeCallable resourceStatusNotifyCallable(const Model::ResourceStatusNotifyRequest& request) const; diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountRequest.h new file mode 100644 index 000000000..44fb73eff --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountRequest.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_RETAILCLOUD_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAccountRequest : public RpcServiceRequest + { + + public: + CreateAccountRequest(); + ~CreateAccountRequest(); + + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getAccountType()const; + void setAccountType(const std::string& accountType); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + + private: + std::string accountPassword_; + std::string accountName_; + std::string accountType_; + std::string dbInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountResult.h new file mode 100644 index 000000000..299f489ac --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAccountResult.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_RETAILCLOUD_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + std::string getErrMsg()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..a4fe8f97b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest + { + + public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + + private: + std::string accountPassword_; + std::string accountName_; + std::string dbInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..11e0a8ae9 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResetAccountPasswordResult.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_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + std::string getErrMsg()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/retailcloud/src/RetailcloudClient.cc b/retailcloud/src/RetailcloudClient.cc index 1ae4dd173..df5ba5a08 100644 --- a/retailcloud/src/RetailcloudClient.cc +++ b/retailcloud/src/RetailcloudClient.cc @@ -195,6 +195,42 @@ RetailcloudClient::CloseDeployOrderOutcomeCallable RetailcloudClient::closeDeplo return task->get_future(); } +RetailcloudClient::CreateAccountOutcome RetailcloudClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void RetailcloudClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateAccountOutcomeCallable RetailcloudClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::CreateAppOutcome RetailcloudClient::createApp(const CreateAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,6 +2355,42 @@ RetailcloudClient::RemoveClusterNodeOutcomeCallable RetailcloudClient::removeClu return task->get_future(); } +RetailcloudClient::ResetAccountPasswordOutcome RetailcloudClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void RetailcloudClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ResetAccountPasswordOutcomeCallable RetailcloudClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RetailcloudClient::ResourceStatusNotifyOutcome RetailcloudClient::resourceStatusNotify(const ResourceStatusNotifyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/retailcloud/src/model/CreateAccountRequest.cc b/retailcloud/src/model/CreateAccountRequest.cc new file mode 100644 index 000000000..f518ee19f --- /dev/null +++ b/retailcloud/src/model/CreateAccountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAccountRequest::~CreateAccountRequest() +{} + +std::string CreateAccountRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setBodyParameter("AccountPassword", accountPassword); +} + +std::string CreateAccountRequest::getAccountName()const +{ + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string CreateAccountRequest::getAccountType()const +{ + return accountType_; +} + +void CreateAccountRequest::setAccountType(const std::string& accountType) +{ + accountType_ = accountType; + setBodyParameter("AccountType", accountType); +} + +std::string CreateAccountRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void CreateAccountRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + diff --git a/retailcloud/src/model/CreateAccountResult.cc b/retailcloud/src/model/CreateAccountResult.cc new file mode 100644 index 000000000..b5e7878cf --- /dev/null +++ b/retailcloud/src/model/CreateAccountResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreateAccountResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateAccountResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ResetAccountPasswordRequest.cc b/retailcloud/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..9d9130f0e --- /dev/null +++ b/retailcloud/src/model/ResetAccountPasswordRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ResetAccountPassword") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() +{} + +std::string ResetAccountPasswordRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setBodyParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountPasswordRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string ResetAccountPasswordRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void ResetAccountPasswordRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + diff --git a/retailcloud/src/model/ResetAccountPasswordResult.cc b/retailcloud/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..d2d4b3578 --- /dev/null +++ b/retailcloud/src/model/ResetAccountPasswordResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string ResetAccountPasswordResult::getErrMsg()const +{ + return errMsg_; +} + +int ResetAccountPasswordResult::getCode()const +{ + return code_; +} +