Ver Fonte

Supported AAA for BBB.

sdk-team há 6 anos atrás
pai
commit
396541400e

+ 4 - 0
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.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.406
+1.36.407

+ 8 - 0
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

+ 16 - 0
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<Error, Model::CloseDeployOrderResult> CloseDeployOrderOutcome;
 			typedef std::future<CloseDeployOrderOutcome> CloseDeployOrderOutcomeCallable;
 			typedef std::function<void(const RetailcloudClient*, const Model::CloseDeployOrderRequest&, const CloseDeployOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseDeployOrderAsyncHandler;
+			typedef Outcome<Error, Model::CreateAccountResult> CreateAccountOutcome;
+			typedef std::future<CreateAccountOutcome> CreateAccountOutcomeCallable;
+			typedef std::function<void(const RetailcloudClient*, const Model::CreateAccountRequest&, const CreateAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAccountAsyncHandler;
 			typedef Outcome<Error, Model::CreateAppResult> CreateAppOutcome;
 			typedef std::future<CreateAppOutcome> CreateAppOutcomeCallable;
 			typedef std::function<void(const RetailcloudClient*, const Model::CreateAppRequest&, const CreateAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAppAsyncHandler;
@@ -362,6 +369,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::RemoveClusterNodeResult> RemoveClusterNodeOutcome;
 			typedef std::future<RemoveClusterNodeOutcome> RemoveClusterNodeOutcomeCallable;
 			typedef std::function<void(const RetailcloudClient*, const Model::RemoveClusterNodeRequest&, const RemoveClusterNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveClusterNodeAsyncHandler;
+			typedef Outcome<Error, Model::ResetAccountPasswordResult> ResetAccountPasswordOutcome;
+			typedef std::future<ResetAccountPasswordOutcome> ResetAccountPasswordOutcomeCallable;
+			typedef std::function<void(const RetailcloudClient*, const Model::ResetAccountPasswordRequest&, const ResetAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetAccountPasswordAsyncHandler;
 			typedef Outcome<Error, Model::ResourceStatusNotifyResult> ResourceStatusNotifyOutcome;
 			typedef std::future<ResourceStatusNotifyOutcome> ResourceStatusNotifyOutcomeCallable;
 			typedef std::function<void(const RetailcloudClient*, const Model::ResourceStatusNotifyRequest&, const ResourceStatusNotifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
 			ResourceStatusNotifyOutcomeCallable resourceStatusNotifyCallable(const Model::ResourceStatusNotifyRequest& request) const;

+ 57 - 0
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 <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/retailcloud/RetailcloudExport.h>
+
+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_

+ 53 - 0
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 <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/retailcloud/RetailcloudExport.h>
+
+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_

+ 54 - 0
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 <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/retailcloud/RetailcloudExport.h>
+
+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_

+ 53 - 0
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 <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/retailcloud/RetailcloudExport.h>
+
+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_

+ 72 - 0
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<const AsyncCallerContext>& 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<std::packaged_task<CreateAccountOutcome()>>(
+			[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<const AsyncCallerContext>& 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<std::packaged_task<ResetAccountPasswordOutcome()>>(
+			[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();

+ 73 - 0
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 <alibabacloud/retailcloud/model/CreateAccountRequest.h>
+
+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);
+}
+

+ 58 - 0
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 <alibabacloud/retailcloud/model/CreateAccountResult.h>
+#include <json/json.h>
+
+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_;
+}
+

+ 62 - 0
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 <alibabacloud/retailcloud/model/ResetAccountPasswordRequest.h>
+
+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);
+}
+

+ 58 - 0
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 <alibabacloud/retailcloud/model/ResetAccountPasswordResult.h>
+#include <json/json.h>
+
+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_;
+}
+