浏览代码

Update videoseg.

sdk-team 3 年之前
父节点
当前提交
2f4689f88a

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1299
+1.36.1300

+ 3 - 3
videoseg/include/alibabacloud/videoseg/model/GetAsyncJobResultRequest.h

@@ -35,14 +35,14 @@ namespace AlibabaCloud
 				GetAsyncJobResultRequest();
 				~GetAsyncJobResultRequest();
 
-				bool getAsync()const;
-				void setAsync(bool async);
 				std::string getJobId()const;
 				void setJobId(const std::string& jobId);
+				bool getAsync()const;
+				void setAsync(bool async);
 
             private:
-				bool async_;
 				std::string jobId_;
+				bool async_;
 
 			};
 		}

+ 4 - 0
videoseg/include/alibabacloud/videoseg/model/SegmentHalfBodyResult.h

@@ -41,12 +41,16 @@ namespace AlibabaCloud
 				SegmentHalfBodyResult();
 				explicit SegmentHalfBodyResult(const std::string &payload);
 				~SegmentHalfBodyResult();
+				std::string getMessage()const;
 				Data getData()const;
+				std::string getCode()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::string message_;
 				Data data_;
+				std::string code_;
 
 			};
 		}

+ 4 - 0
videoseg/include/alibabacloud/videoseg/model/SegmentVideoBodyResult.h

@@ -41,12 +41,16 @@ namespace AlibabaCloud
 				SegmentVideoBodyResult();
 				explicit SegmentVideoBodyResult(const std::string &payload);
 				~SegmentVideoBodyResult();
+				std::string getMessage()const;
 				Data getData()const;
+				std::string getCode()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::string message_;
 				Data data_;
+				std::string code_;
 
 			};
 		}

+ 3 - 3
videoseg/src/VideosegClient.cc

@@ -31,21 +31,21 @@ VideosegClient::VideosegClient(const Credentials &credentials, const ClientConfi
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 VideosegClient::VideosegClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 VideosegClient::VideosegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 VideosegClient::~VideosegClient()

+ 10 - 10
videoseg/src/model/GetAsyncJobResultRequest.cc

@@ -27,25 +27,25 @@ GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
 GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
 {}
 
-bool GetAsyncJobResultRequest::getAsync()const
+std::string GetAsyncJobResultRequest::getJobId()const
 {
-	return async_;
+	return jobId_;
 }
 
-void GetAsyncJobResultRequest::setAsync(bool async)
+void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
 {
-	async_ = async;
-	setBodyParameter("Async", async ? "true" : "false");
+	jobId_ = jobId;
+	setBodyParameter("JobId", jobId);
 }
 
-std::string GetAsyncJobResultRequest::getJobId()const
+bool GetAsyncJobResultRequest::getAsync()const
 {
-	return jobId_;
+	return async_;
 }
 
-void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
+void GetAsyncJobResultRequest::setAsync(bool async)
 {
-	jobId_ = jobId;
-	setBodyParameter("JobId", jobId);
+	async_ = async;
+	setBodyParameter("Async", async ? "true" : "false");
 }
 

+ 4 - 4
videoseg/src/model/GetAsyncJobResultResult.cc

@@ -40,16 +40,16 @@ void GetAsyncJobResultResult::parse(const std::string &payload)
 	reader.parse(payload, value);
 	setRequestId(value["RequestId"].asString());
 	auto dataNode = value["Data"];
-	if(!dataNode["JobId"].isNull())
-		data_.jobId = dataNode["JobId"].asString();
 	if(!dataNode["Status"].isNull())
 		data_.status = dataNode["Status"].asString();
+	if(!dataNode["ErrorMessage"].isNull())
+		data_.errorMessage = dataNode["ErrorMessage"].asString();
 	if(!dataNode["Result"].isNull())
 		data_.result = dataNode["Result"].asString();
 	if(!dataNode["ErrorCode"].isNull())
 		data_.errorCode = dataNode["ErrorCode"].asString();
-	if(!dataNode["ErrorMessage"].isNull())
-		data_.errorMessage = dataNode["ErrorMessage"].asString();
+	if(!dataNode["JobId"].isNull())
+		data_.jobId = dataNode["JobId"].asString();
 
 }
 

+ 2 - 2
videoseg/src/model/SegmentGreenScreenVideoResult.cc

@@ -42,10 +42,10 @@ void SegmentGreenScreenVideoResult::parse(const std::string &payload)
 	auto dataNode = value["Data"];
 	if(!dataNode["VideoURL"].isNull())
 		data_.videoURL = dataNode["VideoURL"].asString();
-	if(!value["Message"].isNull())
-		message_ = value["Message"].asString();
 	if(!value["Code"].isNull())
 		code_ = value["Code"].asString();
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
 
 }
 

+ 14 - 0
videoseg/src/model/SegmentHalfBodyResult.cc

@@ -42,11 +42,25 @@ void SegmentHalfBodyResult::parse(const std::string &payload)
 	auto dataNode = value["Data"];
 	if(!dataNode["VideoUrl"].isNull())
 		data_.videoUrl = dataNode["VideoUrl"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
 
 }
 
+std::string SegmentHalfBodyResult::getMessage()const
+{
+	return message_;
+}
+
 SegmentHalfBodyResult::Data SegmentHalfBodyResult::getData()const
 {
 	return data_;
 }
 
+std::string SegmentHalfBodyResult::getCode()const
+{
+	return code_;
+}
+

+ 14 - 0
videoseg/src/model/SegmentVideoBodyResult.cc

@@ -42,11 +42,25 @@ void SegmentVideoBodyResult::parse(const std::string &payload)
 	auto dataNode = value["Data"];
 	if(!dataNode["VideoUrl"].isNull())
 		data_.videoUrl = dataNode["VideoUrl"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
 
 }
 
+std::string SegmentVideoBodyResult::getMessage()const
+{
+	return message_;
+}
+
 SegmentVideoBodyResult::Data SegmentVideoBodyResult::getData()const
 {
 	return data_;
 }
 
+std::string SegmentVideoBodyResult::getCode()const
+{
+	return code_;
+}
+