Browse Source

-2d create

sdk-team 3 years ago
parent
commit
eb44ad4062

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1696
+1.36.1697

+ 14 - 2
avatar/CMakeLists.txt

@@ -25,6 +25,10 @@ set(avatar_public_header_model
 	include/alibabacloud/avatar/model/CancelVideoTaskResult.h
 	include/alibabacloud/avatar/model/CloseTimedResetOperateRequest.h
 	include/alibabacloud/avatar/model/CloseTimedResetOperateResult.h
+	include/alibabacloud/avatar/model/Create2dAvatarRequest.h
+	include/alibabacloud/avatar/model/Create2dAvatarResult.h
+	include/alibabacloud/avatar/model/DeleteAvatarRequest.h
+	include/alibabacloud/avatar/model/DeleteAvatarResult.h
 	include/alibabacloud/avatar/model/DuplexDecisionRequest.h
 	include/alibabacloud/avatar/model/DuplexDecisionResult.h
 	include/alibabacloud/avatar/model/GetVideoTaskInfoRequest.h
@@ -60,7 +64,9 @@ set(avatar_public_header_model
 	include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskRequest.h
 	include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskResult.h
 	include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskRequest.h
-	include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskResult.h )
+	include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskResult.h
+	include/alibabacloud/avatar/model/Update2dAvatarRequest.h
+	include/alibabacloud/avatar/model/Update2dAvatarResult.h )
 
 set(avatar_src 
 	src/AvatarClient.cc
@@ -68,6 +74,10 @@ set(avatar_src
 	src/model/CancelVideoTaskResult.cc
 	src/model/CloseTimedResetOperateRequest.cc
 	src/model/CloseTimedResetOperateResult.cc
+	src/model/Create2dAvatarRequest.cc
+	src/model/Create2dAvatarResult.cc
+	src/model/DeleteAvatarRequest.cc
+	src/model/DeleteAvatarResult.cc
 	src/model/DuplexDecisionRequest.cc
 	src/model/DuplexDecisionResult.cc
 	src/model/GetVideoTaskInfoRequest.cc
@@ -103,7 +113,9 @@ set(avatar_src
 	src/model/SubmitTextTo2DAvatarVideoTaskRequest.cc
 	src/model/SubmitTextTo2DAvatarVideoTaskResult.cc
 	src/model/SubmitTextTo3DAvatarVideoTaskRequest.cc
-	src/model/SubmitTextTo3DAvatarVideoTaskResult.cc )
+	src/model/SubmitTextTo3DAvatarVideoTaskResult.cc
+	src/model/Update2dAvatarRequest.cc
+	src/model/Update2dAvatarResult.cc )
 
 add_library(avatar ${LIB_TYPE}
 	${avatar_public_header}

+ 24 - 0
avatar/include/alibabacloud/avatar/AvatarClient.h

@@ -26,6 +26,10 @@
 #include "model/CancelVideoTaskResult.h"
 #include "model/CloseTimedResetOperateRequest.h"
 #include "model/CloseTimedResetOperateResult.h"
+#include "model/Create2dAvatarRequest.h"
+#include "model/Create2dAvatarResult.h"
+#include "model/DeleteAvatarRequest.h"
+#include "model/DeleteAvatarResult.h"
 #include "model/DuplexDecisionRequest.h"
 #include "model/DuplexDecisionResult.h"
 #include "model/GetVideoTaskInfoRequest.h"
@@ -62,6 +66,8 @@
 #include "model/SubmitTextTo2DAvatarVideoTaskResult.h"
 #include "model/SubmitTextTo3DAvatarVideoTaskRequest.h"
 #include "model/SubmitTextTo3DAvatarVideoTaskResult.h"
+#include "model/Update2dAvatarRequest.h"
+#include "model/Update2dAvatarResult.h"
 
 
 namespace AlibabaCloud
@@ -77,6 +83,12 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::CloseTimedResetOperateResult> CloseTimedResetOperateOutcome;
 			typedef std::future<CloseTimedResetOperateOutcome> CloseTimedResetOperateOutcomeCallable;
 			typedef std::function<void(const AvatarClient*, const Model::CloseTimedResetOperateRequest&, const CloseTimedResetOperateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseTimedResetOperateAsyncHandler;
+			typedef Outcome<Error, Model::Create2dAvatarResult> Create2dAvatarOutcome;
+			typedef std::future<Create2dAvatarOutcome> Create2dAvatarOutcomeCallable;
+			typedef std::function<void(const AvatarClient*, const Model::Create2dAvatarRequest&, const Create2dAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Create2dAvatarAsyncHandler;
+			typedef Outcome<Error, Model::DeleteAvatarResult> DeleteAvatarOutcome;
+			typedef std::future<DeleteAvatarOutcome> DeleteAvatarOutcomeCallable;
+			typedef std::function<void(const AvatarClient*, const Model::DeleteAvatarRequest&, const DeleteAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAvatarAsyncHandler;
 			typedef Outcome<Error, Model::DuplexDecisionResult> DuplexDecisionOutcome;
 			typedef std::future<DuplexDecisionOutcome> DuplexDecisionOutcomeCallable;
 			typedef std::function<void(const AvatarClient*, const Model::DuplexDecisionRequest&, const DuplexDecisionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DuplexDecisionAsyncHandler;
@@ -131,6 +143,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::SubmitTextTo3DAvatarVideoTaskResult> SubmitTextTo3DAvatarVideoTaskOutcome;
 			typedef std::future<SubmitTextTo3DAvatarVideoTaskOutcome> SubmitTextTo3DAvatarVideoTaskOutcomeCallable;
 			typedef std::function<void(const AvatarClient*, const Model::SubmitTextTo3DAvatarVideoTaskRequest&, const SubmitTextTo3DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitTextTo3DAvatarVideoTaskAsyncHandler;
+			typedef Outcome<Error, Model::Update2dAvatarResult> Update2dAvatarOutcome;
+			typedef std::future<Update2dAvatarOutcome> Update2dAvatarOutcomeCallable;
+			typedef std::function<void(const AvatarClient*, const Model::Update2dAvatarRequest&, const Update2dAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Update2dAvatarAsyncHandler;
 
 			AvatarClient(const Credentials &credentials, const ClientConfiguration &configuration);
 			AvatarClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -142,6 +157,12 @@ namespace AlibabaCloud
 			CloseTimedResetOperateOutcome closeTimedResetOperate(const Model::CloseTimedResetOperateRequest &request)const;
 			void closeTimedResetOperateAsync(const Model::CloseTimedResetOperateRequest& request, const CloseTimedResetOperateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			CloseTimedResetOperateOutcomeCallable closeTimedResetOperateCallable(const Model::CloseTimedResetOperateRequest& request) const;
+			Create2dAvatarOutcome create2dAvatar(const Model::Create2dAvatarRequest &request)const;
+			void create2dAvatarAsync(const Model::Create2dAvatarRequest& request, const Create2dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			Create2dAvatarOutcomeCallable create2dAvatarCallable(const Model::Create2dAvatarRequest& request) const;
+			DeleteAvatarOutcome deleteAvatar(const Model::DeleteAvatarRequest &request)const;
+			void deleteAvatarAsync(const Model::DeleteAvatarRequest& request, const DeleteAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DeleteAvatarOutcomeCallable deleteAvatarCallable(const Model::DeleteAvatarRequest& request) const;
 			DuplexDecisionOutcome duplexDecision(const Model::DuplexDecisionRequest &request)const;
 			void duplexDecisionAsync(const Model::DuplexDecisionRequest& request, const DuplexDecisionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DuplexDecisionOutcomeCallable duplexDecisionCallable(const Model::DuplexDecisionRequest& request) const;
@@ -196,6 +217,9 @@ namespace AlibabaCloud
 			SubmitTextTo3DAvatarVideoTaskOutcome submitTextTo3DAvatarVideoTask(const Model::SubmitTextTo3DAvatarVideoTaskRequest &request)const;
 			void submitTextTo3DAvatarVideoTaskAsync(const Model::SubmitTextTo3DAvatarVideoTaskRequest& request, const SubmitTextTo3DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			SubmitTextTo3DAvatarVideoTaskOutcomeCallable submitTextTo3DAvatarVideoTaskCallable(const Model::SubmitTextTo3DAvatarVideoTaskRequest& request) const;
+			Update2dAvatarOutcome update2dAvatar(const Model::Update2dAvatarRequest &request)const;
+			void update2dAvatarAsync(const Model::Update2dAvatarRequest& request, const Update2dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			Update2dAvatarOutcomeCallable update2dAvatarCallable(const Model::Update2dAvatarRequest& request) const;
 	
 		private:
 			std::shared_ptr<EndpointProvider> endpointProvider_;

+ 78 - 0
avatar/include/alibabacloud/avatar/model/Create2dAvatarRequest.h

@@ -0,0 +1,78 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARREQUEST_H_
+#define ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARREQUEST_H_
+
+#include <alibabacloud/avatar/AvatarExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Avatar {
+namespace Model {
+class ALIBABACLOUD_AVATAR_EXPORT Create2dAvatarRequest : public RpcServiceRequest {
+public:
+	Create2dAvatarRequest();
+	~Create2dAvatarRequest();
+	std::string getImage() const;
+	void setImage(const std::string &image);
+	int getOrientation() const;
+	void setOrientation(int orientation);
+	std::string getDescription() const;
+	void setDescription(const std::string &description);
+	std::string getVideo() const;
+	void setVideo(const std::string &video);
+	std::string getPortrait() const;
+	void setPortrait(const std::string &portrait);
+	std::string getExtParams() const;
+	void setExtParams(const std::string &extParams);
+	bool getTransparent() const;
+	void setTransparent(bool transparent);
+	std::string getCallbackParams() const;
+	void setCallbackParams(const std::string &callbackParams);
+	long getTenantId() const;
+	void setTenantId(long tenantId);
+	std::string getName() const;
+	void setName(const std::string &name);
+	std::string getExtParams_CLS() const;
+	void setExtParams_CLS(const std::string &extParams_CLS);
+	bool getCallback() const;
+	void setCallback(bool callback);
+	std::string getCallbackParams_CLS() const;
+	void setCallbackParams_CLS(const std::string &callbackParams_CLS);
+
+private:
+	std::string image_;
+	int orientation_;
+	std::string description_;
+	std::string video_;
+	std::string portrait_;
+	std::string extParams_;
+	bool transparent_;
+	std::string callbackParams_;
+	long tenantId_;
+	std::string name_;
+	std::string extParams_CLS_;
+	bool callback_;
+	std::string callbackParams_CLS_;
+};
+} // namespace Model
+} // namespace Avatar
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARREQUEST_H_

+ 61 - 0
avatar/include/alibabacloud/avatar/model/Create2dAvatarResult.h

@@ -0,0 +1,61 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARRESULT_H_
+#define ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/avatar/AvatarExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Avatar
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_AVATAR_EXPORT Create2dAvatarResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					std::string code;
+				};
+
+
+				Create2dAvatarResult();
+				explicit Create2dAvatarResult(const std::string &payload);
+				~Create2dAvatarResult();
+				std::string getMessage()const;
+				Data getData()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				Data data_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_AVATAR_MODEL_CREATE2DAVATARRESULT_H_

+ 51 - 0
avatar/include/alibabacloud/avatar/model/DeleteAvatarRequest.h

@@ -0,0 +1,51 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_AVATAR_MODEL_DELETEAVATARREQUEST_H_
+#define ALIBABACLOUD_AVATAR_MODEL_DELETEAVATARREQUEST_H_
+
+#include <alibabacloud/avatar/AvatarExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Avatar {
+namespace Model {
+class ALIBABACLOUD_AVATAR_EXPORT DeleteAvatarRequest : public RpcServiceRequest {
+public:
+	DeleteAvatarRequest();
+	~DeleteAvatarRequest();
+	std::string getCode() const;
+	void setCode(const std::string &code);
+	long getTenantId() const;
+	void setTenantId(long tenantId);
+	std::string getExtParams_CLS() const;
+	void setExtParams_CLS(const std::string &extParams_CLS);
+	std::string getExtParams() const;
+	void setExtParams(const std::string &extParams);
+
+private:
+	std::string code_;
+	long tenantId_;
+	std::string extParams_CLS_;
+	std::string extParams_;
+};
+} // namespace Model
+} // namespace Avatar
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_AVATAR_MODEL_DELETEAVATARREQUEST_H_

+ 55 - 0
avatar/include/alibabacloud/avatar/model/DeleteAvatarResult.h

@@ -0,0 +1,55 @@
+/*
+ * 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_AVATAR_MODEL_DELETEAVATARRESULT_H_
+#define ALIBABACLOUD_AVATAR_MODEL_DELETEAVATARRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/avatar/AvatarExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Avatar
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_AVATAR_EXPORT DeleteAvatarResult : public ServiceResult
+			{
+			public:
+
+
+				DeleteAvatarResult();
+				explicit DeleteAvatarResult(const std::string &payload);
+				~DeleteAvatarResult();
+				std::string getMessage()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_AVATAR_MODEL_DELETEAVATARRESULT_H_

+ 6 - 0
avatar/include/alibabacloud/avatar/model/QueryAvatarListRequest.h

@@ -38,12 +38,18 @@ public:
 	void setTenantId(long tenantId);
 	int getPageSize() const;
 	void setPageSize(int pageSize);
+	std::string getExtParams_CLS() const;
+	void setExtParams_CLS(const std::string &extParams_CLS);
+	std::string getExtParams() const;
+	void setExtParams(const std::string &extParams);
 
 private:
 	std::string modelType_;
 	int pageNo_;
 	long tenantId_;
 	int pageSize_;
+	std::string extParams_CLS_;
+	std::string extParams_;
 };
 } // namespace Model
 } // namespace Avatar

+ 2 - 0
avatar/include/alibabacloud/avatar/model/QueryAvatarListResult.h

@@ -58,9 +58,11 @@ namespace AlibabaCloud
 						std::string portrait;
 						std::string avatarType;
 						std::string modelType;
+						std::string makeStatus;
 						std::string image;
 						std::string code;
 						std::string name;
+						std::string makeFailReason;
 					};
 					int totalCount;
 					int pageSize;

+ 6 - 0
avatar/include/alibabacloud/avatar/model/QueryAvatarRequest.h

@@ -34,10 +34,16 @@ public:
 	void setCode(const std::string &code);
 	long getTenantId() const;
 	void setTenantId(long tenantId);
+	std::string getExtParams_CLS() const;
+	void setExtParams_CLS(const std::string &extParams_CLS);
+	std::string getExtParams() const;
+	void setExtParams(const std::string &extParams);
 
 private:
 	std::string code_;
 	long tenantId_;
+	std::string extParams_CLS_;
+	std::string extParams_;
 };
 } // namespace Model
 } // namespace Avatar

+ 2 - 0
avatar/include/alibabacloud/avatar/model/QueryAvatarResult.h

@@ -56,8 +56,10 @@ namespace AlibabaCloud
 					std::string portrait;
 					std::string modelType;
 					std::string avatarType;
+					std::string makeStatus;
 					std::string image;
 					std::string name;
+					std::string makeFailReason;
 				};
 
 

+ 81 - 0
avatar/include/alibabacloud/avatar/model/Update2dAvatarRequest.h

@@ -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.
+ */
+
+#ifndef ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARREQUEST_H_
+#define ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARREQUEST_H_
+
+#include <alibabacloud/avatar/AvatarExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Avatar {
+namespace Model {
+class ALIBABACLOUD_AVATAR_EXPORT Update2dAvatarRequest : public RpcServiceRequest {
+public:
+	Update2dAvatarRequest();
+	~Update2dAvatarRequest();
+	std::string getImage() const;
+	void setImage(const std::string &image);
+	int getOrientation() const;
+	void setOrientation(int orientation);
+	std::string getCode() const;
+	void setCode(const std::string &code);
+	std::string getDescription() const;
+	void setDescription(const std::string &description);
+	std::string getVideo() const;
+	void setVideo(const std::string &video);
+	std::string getPortrait() const;
+	void setPortrait(const std::string &portrait);
+	std::string getExtParams() const;
+	void setExtParams(const std::string &extParams);
+	bool getTransparent() const;
+	void setTransparent(bool transparent);
+	std::string getCallbackParams() const;
+	void setCallbackParams(const std::string &callbackParams);
+	long getTenantId() const;
+	void setTenantId(long tenantId);
+	std::string getName() const;
+	void setName(const std::string &name);
+	std::string getExtParams_CLS() const;
+	void setExtParams_CLS(const std::string &extParams_CLS);
+	bool getCallback() const;
+	void setCallback(bool callback);
+	std::string getCallbackParams_CLS() const;
+	void setCallbackParams_CLS(const std::string &callbackParams_CLS);
+
+private:
+	std::string image_;
+	int orientation_;
+	std::string code_;
+	std::string description_;
+	std::string video_;
+	std::string portrait_;
+	std::string extParams_;
+	bool transparent_;
+	std::string callbackParams_;
+	long tenantId_;
+	std::string name_;
+	std::string extParams_CLS_;
+	bool callback_;
+	std::string callbackParams_CLS_;
+};
+} // namespace Model
+} // namespace Avatar
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARREQUEST_H_

+ 61 - 0
avatar/include/alibabacloud/avatar/model/Update2dAvatarResult.h

@@ -0,0 +1,61 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARRESULT_H_
+#define ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/avatar/AvatarExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Avatar
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_AVATAR_EXPORT Update2dAvatarResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					std::string code;
+				};
+
+
+				Update2dAvatarResult();
+				explicit Update2dAvatarResult(const std::string &payload);
+				~Update2dAvatarResult();
+				std::string getMessage()const;
+				Data getData()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				Data data_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_AVATAR_MODEL_UPDATE2DAVATARRESULT_H_

+ 108 - 0
avatar/src/AvatarClient.cc

@@ -123,6 +123,78 @@ AvatarClient::CloseTimedResetOperateOutcomeCallable AvatarClient::closeTimedRese
 	return task->get_future();
 }
 
+AvatarClient::Create2dAvatarOutcome AvatarClient::create2dAvatar(const Create2dAvatarRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return Create2dAvatarOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return Create2dAvatarOutcome(Create2dAvatarResult(outcome.result()));
+	else
+		return Create2dAvatarOutcome(outcome.error());
+}
+
+void AvatarClient::create2dAvatarAsync(const Create2dAvatarRequest& request, const Create2dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, create2dAvatar(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AvatarClient::Create2dAvatarOutcomeCallable AvatarClient::create2dAvatarCallable(const Create2dAvatarRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<Create2dAvatarOutcome()>>(
+			[this, request]()
+			{
+			return this->create2dAvatar(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+AvatarClient::DeleteAvatarOutcome AvatarClient::deleteAvatar(const DeleteAvatarRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DeleteAvatarOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DeleteAvatarOutcome(DeleteAvatarResult(outcome.result()));
+	else
+		return DeleteAvatarOutcome(outcome.error());
+}
+
+void AvatarClient::deleteAvatarAsync(const DeleteAvatarRequest& request, const DeleteAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, deleteAvatar(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AvatarClient::DeleteAvatarOutcomeCallable AvatarClient::deleteAvatarCallable(const DeleteAvatarRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DeleteAvatarOutcome()>>(
+			[this, request]()
+			{
+			return this->deleteAvatar(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 AvatarClient::DuplexDecisionOutcome AvatarClient::duplexDecision(const DuplexDecisionRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,3 +843,39 @@ AvatarClient::SubmitTextTo3DAvatarVideoTaskOutcomeCallable AvatarClient::submitT
 	return task->get_future();
 }
 
+AvatarClient::Update2dAvatarOutcome AvatarClient::update2dAvatar(const Update2dAvatarRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return Update2dAvatarOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return Update2dAvatarOutcome(Update2dAvatarResult(outcome.result()));
+	else
+		return Update2dAvatarOutcome(outcome.error());
+}
+
+void AvatarClient::update2dAvatarAsync(const Update2dAvatarRequest& request, const Update2dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, update2dAvatar(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AvatarClient::Update2dAvatarOutcomeCallable AvatarClient::update2dAvatarCallable(const Update2dAvatarRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<Update2dAvatarOutcome()>>(
+			[this, request]()
+			{
+			return this->update2dAvatar(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+

+ 144 - 0
avatar/src/model/Create2dAvatarRequest.cc

@@ -0,0 +1,144 @@
+/*
+ * 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/avatar/model/Create2dAvatarRequest.h>
+
+using AlibabaCloud::Avatar::Model::Create2dAvatarRequest;
+
+Create2dAvatarRequest::Create2dAvatarRequest()
+    : RpcServiceRequest("avatar", "2022-01-30", "Create2dAvatar") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+Create2dAvatarRequest::~Create2dAvatarRequest() {}
+
+std::string Create2dAvatarRequest::getImage() const {
+  return image_;
+}
+
+void Create2dAvatarRequest::setImage(const std::string &image) {
+  image_ = image;
+  setParameter(std::string("Image"), image);
+}
+
+int Create2dAvatarRequest::getOrientation() const {
+  return orientation_;
+}
+
+void Create2dAvatarRequest::setOrientation(int orientation) {
+  orientation_ = orientation;
+  setParameter(std::string("Orientation"), std::to_string(orientation));
+}
+
+std::string Create2dAvatarRequest::getDescription() const {
+  return description_;
+}
+
+void Create2dAvatarRequest::setDescription(const std::string &description) {
+  description_ = description;
+  setParameter(std::string("Description"), description);
+}
+
+std::string Create2dAvatarRequest::getVideo() const {
+  return video_;
+}
+
+void Create2dAvatarRequest::setVideo(const std::string &video) {
+  video_ = video;
+  setParameter(std::string("Video"), video);
+}
+
+std::string Create2dAvatarRequest::getPortrait() const {
+  return portrait_;
+}
+
+void Create2dAvatarRequest::setPortrait(const std::string &portrait) {
+  portrait_ = portrait;
+  setParameter(std::string("Portrait"), portrait);
+}
+
+std::string Create2dAvatarRequest::getExtParams() const {
+  return extParams_;
+}
+
+void Create2dAvatarRequest::setExtParams(const std::string &extParams) {
+  extParams_ = extParams;
+  setParameter(std::string("ExtParams"), extParams);
+}
+
+bool Create2dAvatarRequest::getTransparent() const {
+  return transparent_;
+}
+
+void Create2dAvatarRequest::setTransparent(bool transparent) {
+  transparent_ = transparent;
+  setParameter(std::string("Transparent"), transparent ? "true" : "false");
+}
+
+std::string Create2dAvatarRequest::getCallbackParams() const {
+  return callbackParams_;
+}
+
+void Create2dAvatarRequest::setCallbackParams(const std::string &callbackParams) {
+  callbackParams_ = callbackParams;
+  setParameter(std::string("CallbackParams"), callbackParams);
+}
+
+long Create2dAvatarRequest::getTenantId() const {
+  return tenantId_;
+}
+
+void Create2dAvatarRequest::setTenantId(long tenantId) {
+  tenantId_ = tenantId;
+  setParameter(std::string("TenantId"), std::to_string(tenantId));
+}
+
+std::string Create2dAvatarRequest::getName() const {
+  return name_;
+}
+
+void Create2dAvatarRequest::setName(const std::string &name) {
+  name_ = name;
+  setParameter(std::string("Name"), name);
+}
+
+std::string Create2dAvatarRequest::getExtParams_CLS() const {
+  return extParams_CLS_;
+}
+
+void Create2dAvatarRequest::setExtParams_CLS(const std::string &extParams_CLS) {
+  extParams_CLS_ = extParams_CLS;
+  setParameter(std::string("ExtParams_CLS"), extParams_CLS);
+}
+
+bool Create2dAvatarRequest::getCallback() const {
+  return callback_;
+}
+
+void Create2dAvatarRequest::setCallback(bool callback) {
+  callback_ = callback;
+  setParameter(std::string("Callback"), callback ? "true" : "false");
+}
+
+std::string Create2dAvatarRequest::getCallbackParams_CLS() const {
+  return callbackParams_CLS_;
+}
+
+void Create2dAvatarRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
+  callbackParams_CLS_ = callbackParams_CLS;
+  setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
+}
+

+ 73 - 0
avatar/src/model/Create2dAvatarResult.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/avatar/model/Create2dAvatarResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Avatar;
+using namespace AlibabaCloud::Avatar::Model;
+
+Create2dAvatarResult::Create2dAvatarResult() :
+	ServiceResult()
+{}
+
+Create2dAvatarResult::Create2dAvatarResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+Create2dAvatarResult::~Create2dAvatarResult()
+{}
+
+void Create2dAvatarResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["Data"];
+	if(!dataNode["Code"].isNull())
+		data_.code = dataNode["Code"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
+
+}
+
+std::string Create2dAvatarResult::getMessage()const
+{
+	return message_;
+}
+
+Create2dAvatarResult::Data Create2dAvatarResult::getData()const
+{
+	return data_;
+}
+
+std::string Create2dAvatarResult::getCode()const
+{
+	return code_;
+}
+
+bool Create2dAvatarResult::getSuccess()const
+{
+	return success_;
+}
+

+ 63 - 0
avatar/src/model/DeleteAvatarRequest.cc

@@ -0,0 +1,63 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/avatar/model/DeleteAvatarRequest.h>
+
+using AlibabaCloud::Avatar::Model::DeleteAvatarRequest;
+
+DeleteAvatarRequest::DeleteAvatarRequest()
+    : RpcServiceRequest("avatar", "2022-01-30", "DeleteAvatar") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+DeleteAvatarRequest::~DeleteAvatarRequest() {}
+
+std::string DeleteAvatarRequest::getCode() const {
+  return code_;
+}
+
+void DeleteAvatarRequest::setCode(const std::string &code) {
+  code_ = code;
+  setParameter(std::string("Code"), code);
+}
+
+long DeleteAvatarRequest::getTenantId() const {
+  return tenantId_;
+}
+
+void DeleteAvatarRequest::setTenantId(long tenantId) {
+  tenantId_ = tenantId;
+  setParameter(std::string("TenantId"), std::to_string(tenantId));
+}
+
+std::string DeleteAvatarRequest::getExtParams_CLS() const {
+  return extParams_CLS_;
+}
+
+void DeleteAvatarRequest::setExtParams_CLS(const std::string &extParams_CLS) {
+  extParams_CLS_ = extParams_CLS;
+  setParameter(std::string("ExtParams_CLS"), extParams_CLS);
+}
+
+std::string DeleteAvatarRequest::getExtParams() const {
+  return extParams_;
+}
+
+void DeleteAvatarRequest::setExtParams(const std::string &extParams) {
+  extParams_ = extParams;
+  setParameter(std::string("ExtParams"), extParams);
+}
+

+ 65 - 0
avatar/src/model/DeleteAvatarResult.cc

@@ -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.
+ */
+
+#include <alibabacloud/avatar/model/DeleteAvatarResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Avatar;
+using namespace AlibabaCloud::Avatar::Model;
+
+DeleteAvatarResult::DeleteAvatarResult() :
+	ServiceResult()
+{}
+
+DeleteAvatarResult::DeleteAvatarResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DeleteAvatarResult::~DeleteAvatarResult()
+{}
+
+void DeleteAvatarResult::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();
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
+
+}
+
+std::string DeleteAvatarResult::getMessage()const
+{
+	return message_;
+}
+
+std::string DeleteAvatarResult::getCode()const
+{
+	return code_;
+}
+
+bool DeleteAvatarResult::getSuccess()const
+{
+	return success_;
+}
+

+ 18 - 0
avatar/src/model/QueryAvatarListRequest.cc

@@ -61,3 +61,21 @@ void QueryAvatarListRequest::setPageSize(int pageSize) {
   setParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
+std::string QueryAvatarListRequest::getExtParams_CLS() const {
+  return extParams_CLS_;
+}
+
+void QueryAvatarListRequest::setExtParams_CLS(const std::string &extParams_CLS) {
+  extParams_CLS_ = extParams_CLS;
+  setParameter(std::string("ExtParams_CLS"), extParams_CLS);
+}
+
+std::string QueryAvatarListRequest::getExtParams() const {
+  return extParams_;
+}
+
+void QueryAvatarListRequest::setExtParams(const std::string &extParams) {
+  extParams_ = extParams;
+  setParameter(std::string("ExtParams"), extParams);
+}
+

+ 4 - 0
avatar/src/model/QueryAvatarListResult.cc

@@ -66,6 +66,10 @@ void QueryAvatarListResult::parse(const std::string &payload)
 			listItemObject.avatarType = dataNodeListlistItem["AvatarType"].asString();
 		if(!dataNodeListlistItem["ModelType"].isNull())
 			listItemObject.modelType = dataNodeListlistItem["ModelType"].asString();
+		if(!dataNodeListlistItem["MakeStatus"].isNull())
+			listItemObject.makeStatus = dataNodeListlistItem["MakeStatus"].asString();
+		if(!dataNodeListlistItem["MakeFailReason"].isNull())
+			listItemObject.makeFailReason = dataNodeListlistItem["MakeFailReason"].asString();
 		auto supportedResolutionsNode = value["SupportedResolutions"];
 		auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
 		for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)

+ 19 - 1
avatar/src/model/QueryAvatarRequest.cc

@@ -20,7 +20,7 @@ using AlibabaCloud::Avatar::Model::QueryAvatarRequest;
 
 QueryAvatarRequest::QueryAvatarRequest()
     : RpcServiceRequest("avatar", "2022-01-30", "QueryAvatar") {
-  setMethod(HttpRequest::Method::Get);
+  setMethod(HttpRequest::Method::Post);
 }
 
 QueryAvatarRequest::~QueryAvatarRequest() {}
@@ -43,3 +43,21 @@ void QueryAvatarRequest::setTenantId(long tenantId) {
   setParameter(std::string("TenantId"), std::to_string(tenantId));
 }
 
+std::string QueryAvatarRequest::getExtParams_CLS() const {
+  return extParams_CLS_;
+}
+
+void QueryAvatarRequest::setExtParams_CLS(const std::string &extParams_CLS) {
+  extParams_CLS_ = extParams_CLS;
+  setParameter(std::string("ExtParams_CLS"), extParams_CLS);
+}
+
+std::string QueryAvatarRequest::getExtParams() const {
+  return extParams_;
+}
+
+void QueryAvatarRequest::setExtParams(const std::string &extParams) {
+  extParams_ = extParams;
+  setParameter(std::string("ExtParams"), extParams);
+}
+

+ 4 - 0
avatar/src/model/QueryAvatarResult.cc

@@ -52,6 +52,10 @@ void QueryAvatarResult::parse(const std::string &payload)
 		data_.modelType = dataNode["ModelType"].asString();
 	if(!dataNode["AvatarType"].isNull())
 		data_.avatarType = dataNode["AvatarType"].asString();
+	if(!dataNode["MakeStatus"].isNull())
+		data_.makeStatus = dataNode["MakeStatus"].asString();
+	if(!dataNode["MakeFailReason"].isNull())
+		data_.makeFailReason = dataNode["MakeFailReason"].asString();
 	auto supportedResolutionsNode = dataNode["SupportedResolutions"];
 	auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
 	for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)

+ 153 - 0
avatar/src/model/Update2dAvatarRequest.cc

@@ -0,0 +1,153 @@
+/*
+ * 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/avatar/model/Update2dAvatarRequest.h>
+
+using AlibabaCloud::Avatar::Model::Update2dAvatarRequest;
+
+Update2dAvatarRequest::Update2dAvatarRequest()
+    : RpcServiceRequest("avatar", "2022-01-30", "Update2dAvatar") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+Update2dAvatarRequest::~Update2dAvatarRequest() {}
+
+std::string Update2dAvatarRequest::getImage() const {
+  return image_;
+}
+
+void Update2dAvatarRequest::setImage(const std::string &image) {
+  image_ = image;
+  setParameter(std::string("Image"), image);
+}
+
+int Update2dAvatarRequest::getOrientation() const {
+  return orientation_;
+}
+
+void Update2dAvatarRequest::setOrientation(int orientation) {
+  orientation_ = orientation;
+  setParameter(std::string("Orientation"), std::to_string(orientation));
+}
+
+std::string Update2dAvatarRequest::getCode() const {
+  return code_;
+}
+
+void Update2dAvatarRequest::setCode(const std::string &code) {
+  code_ = code;
+  setParameter(std::string("Code"), code);
+}
+
+std::string Update2dAvatarRequest::getDescription() const {
+  return description_;
+}
+
+void Update2dAvatarRequest::setDescription(const std::string &description) {
+  description_ = description;
+  setParameter(std::string("Description"), description);
+}
+
+std::string Update2dAvatarRequest::getVideo() const {
+  return video_;
+}
+
+void Update2dAvatarRequest::setVideo(const std::string &video) {
+  video_ = video;
+  setParameter(std::string("Video"), video);
+}
+
+std::string Update2dAvatarRequest::getPortrait() const {
+  return portrait_;
+}
+
+void Update2dAvatarRequest::setPortrait(const std::string &portrait) {
+  portrait_ = portrait;
+  setParameter(std::string("Portrait"), portrait);
+}
+
+std::string Update2dAvatarRequest::getExtParams() const {
+  return extParams_;
+}
+
+void Update2dAvatarRequest::setExtParams(const std::string &extParams) {
+  extParams_ = extParams;
+  setParameter(std::string("ExtParams"), extParams);
+}
+
+bool Update2dAvatarRequest::getTransparent() const {
+  return transparent_;
+}
+
+void Update2dAvatarRequest::setTransparent(bool transparent) {
+  transparent_ = transparent;
+  setParameter(std::string("Transparent"), transparent ? "true" : "false");
+}
+
+std::string Update2dAvatarRequest::getCallbackParams() const {
+  return callbackParams_;
+}
+
+void Update2dAvatarRequest::setCallbackParams(const std::string &callbackParams) {
+  callbackParams_ = callbackParams;
+  setParameter(std::string("CallbackParams"), callbackParams);
+}
+
+long Update2dAvatarRequest::getTenantId() const {
+  return tenantId_;
+}
+
+void Update2dAvatarRequest::setTenantId(long tenantId) {
+  tenantId_ = tenantId;
+  setParameter(std::string("TenantId"), std::to_string(tenantId));
+}
+
+std::string Update2dAvatarRequest::getName() const {
+  return name_;
+}
+
+void Update2dAvatarRequest::setName(const std::string &name) {
+  name_ = name;
+  setParameter(std::string("Name"), name);
+}
+
+std::string Update2dAvatarRequest::getExtParams_CLS() const {
+  return extParams_CLS_;
+}
+
+void Update2dAvatarRequest::setExtParams_CLS(const std::string &extParams_CLS) {
+  extParams_CLS_ = extParams_CLS;
+  setParameter(std::string("ExtParams_CLS"), extParams_CLS);
+}
+
+bool Update2dAvatarRequest::getCallback() const {
+  return callback_;
+}
+
+void Update2dAvatarRequest::setCallback(bool callback) {
+  callback_ = callback;
+  setParameter(std::string("Callback"), callback ? "true" : "false");
+}
+
+std::string Update2dAvatarRequest::getCallbackParams_CLS() const {
+  return callbackParams_CLS_;
+}
+
+void Update2dAvatarRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
+  callbackParams_CLS_ = callbackParams_CLS;
+  setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
+}
+

+ 73 - 0
avatar/src/model/Update2dAvatarResult.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/avatar/model/Update2dAvatarResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Avatar;
+using namespace AlibabaCloud::Avatar::Model;
+
+Update2dAvatarResult::Update2dAvatarResult() :
+	ServiceResult()
+{}
+
+Update2dAvatarResult::Update2dAvatarResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+Update2dAvatarResult::~Update2dAvatarResult()
+{}
+
+void Update2dAvatarResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["Data"];
+	if(!dataNode["Code"].isNull())
+		data_.code = dataNode["Code"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
+
+}
+
+std::string Update2dAvatarResult::getMessage()const
+{
+	return message_;
+}
+
+Update2dAvatarResult::Data Update2dAvatarResult::getData()const
+{
+	return data_;
+}
+
+std::string Update2dAvatarResult::getCode()const
+{
+	return code_;
+}
+
+bool Update2dAvatarResult::getSuccess()const
+{
+	return success_;
+}
+