diff --git a/VERSION b/VERSION index d1eef5307..a5edaceec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1299 \ No newline at end of file +1.36.1300 \ No newline at end of file diff --git a/videoseg/include/alibabacloud/videoseg/model/GetAsyncJobResultRequest.h b/videoseg/include/alibabacloud/videoseg/model/GetAsyncJobResultRequest.h index a30dae241..1da3902c0 100644 --- a/videoseg/include/alibabacloud/videoseg/model/GetAsyncJobResultRequest.h +++ b/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_; }; } diff --git a/videoseg/include/alibabacloud/videoseg/model/SegmentHalfBodyResult.h b/videoseg/include/alibabacloud/videoseg/model/SegmentHalfBodyResult.h index 69425d438..cfa441e17 100644 --- a/videoseg/include/alibabacloud/videoseg/model/SegmentHalfBodyResult.h +++ b/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_; }; } diff --git a/videoseg/include/alibabacloud/videoseg/model/SegmentVideoBodyResult.h b/videoseg/include/alibabacloud/videoseg/model/SegmentVideoBodyResult.h index 19aba9829..f18aa646a 100644 --- a/videoseg/include/alibabacloud/videoseg/model/SegmentVideoBodyResult.h +++ b/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_; }; } diff --git a/videoseg/src/VideosegClient.cc b/videoseg/src/VideosegClient.cc index e532ce813..3ed685e03 100644 --- a/videoseg/src/VideosegClient.cc +++ b/videoseg/src/VideosegClient.cc @@ -31,21 +31,21 @@ VideosegClient::VideosegClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } VideosegClient::VideosegClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } VideosegClient::VideosegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } VideosegClient::~VideosegClient() diff --git a/videoseg/src/model/GetAsyncJobResultRequest.cc b/videoseg/src/model/GetAsyncJobResultRequest.cc index fe5259d54..90185ea08 100644 --- a/videoseg/src/model/GetAsyncJobResultRequest.cc +++ b/videoseg/src/model/GetAsyncJobResultRequest.cc @@ -27,17 +27,6 @@ GetAsyncJobResultRequest::GetAsyncJobResultRequest() : GetAsyncJobResultRequest::~GetAsyncJobResultRequest() {} -bool GetAsyncJobResultRequest::getAsync()const -{ - return async_; -} - -void GetAsyncJobResultRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); -} - std::string GetAsyncJobResultRequest::getJobId()const { return jobId_; @@ -49,3 +38,14 @@ void GetAsyncJobResultRequest::setJobId(const std::string& jobId) setBodyParameter("JobId", jobId); } +bool GetAsyncJobResultRequest::getAsync()const +{ + return async_; +} + +void GetAsyncJobResultRequest::setAsync(bool async) +{ + async_ = async; + setBodyParameter("Async", async ? "true" : "false"); +} + diff --git a/videoseg/src/model/GetAsyncJobResultResult.cc b/videoseg/src/model/GetAsyncJobResultResult.cc index c707ad6c7..f93cc0804 100644 --- a/videoseg/src/model/GetAsyncJobResultResult.cc +++ b/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(); } diff --git a/videoseg/src/model/SegmentGreenScreenVideoResult.cc b/videoseg/src/model/SegmentGreenScreenVideoResult.cc index 44c14b924..584b001f3 100644 --- a/videoseg/src/model/SegmentGreenScreenVideoResult.cc +++ b/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(); } diff --git a/videoseg/src/model/SegmentHalfBodyResult.cc b/videoseg/src/model/SegmentHalfBodyResult.cc index 593768d97..96f559022 100644 --- a/videoseg/src/model/SegmentHalfBodyResult.cc +++ b/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_; +} + diff --git a/videoseg/src/model/SegmentVideoBodyResult.cc b/videoseg/src/model/SegmentVideoBodyResult.cc index a53e883cd..2591eca4b 100644 --- a/videoseg/src/model/SegmentVideoBodyResult.cc +++ b/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_; +} +