Skip to content

Commit 2f4689f

Browse files
committed
Update videoseg.
1 parent e7cf03a commit 2f4689f

File tree

10 files changed

+59
-23
lines changed

10 files changed

+59
-23
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1299
1+
1.36.1300

videoseg/include/alibabacloud/videoseg/model/GetAsyncJobResultRequest.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ namespace AlibabaCloud
3535
GetAsyncJobResultRequest();
3636
~GetAsyncJobResultRequest();
3737

38-
bool getAsync()const;
39-
void setAsync(bool async);
4038
std::string getJobId()const;
4139
void setJobId(const std::string& jobId);
40+
bool getAsync()const;
41+
void setAsync(bool async);
4242

4343
private:
44-
bool async_;
4544
std::string jobId_;
45+
bool async_;
4646

4747
};
4848
}

videoseg/include/alibabacloud/videoseg/model/SegmentHalfBodyResult.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ namespace AlibabaCloud
4141
SegmentHalfBodyResult();
4242
explicit SegmentHalfBodyResult(const std::string &payload);
4343
~SegmentHalfBodyResult();
44+
std::string getMessage()const;
4445
Data getData()const;
46+
std::string getCode()const;
4547

4648
protected:
4749
void parse(const std::string &payload);
4850
private:
51+
std::string message_;
4952
Data data_;
53+
std::string code_;
5054

5155
};
5256
}

videoseg/include/alibabacloud/videoseg/model/SegmentVideoBodyResult.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ namespace AlibabaCloud
4141
SegmentVideoBodyResult();
4242
explicit SegmentVideoBodyResult(const std::string &payload);
4343
~SegmentVideoBodyResult();
44+
std::string getMessage()const;
4445
Data getData()const;
46+
std::string getCode()const;
4547

4648
protected:
4749
void parse(const std::string &payload);
4850
private:
51+
std::string message_;
4952
Data data_;
53+
std::string code_;
5054

5155
};
5256
}

videoseg/src/VideosegClient.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ VideosegClient::VideosegClient(const Credentials &credentials, const ClientConfi
3131
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
3232
{
3333
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
34-
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
34+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
3535
}
3636

3737
VideosegClient::VideosegClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
3838
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
3939
{
4040
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
41-
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
41+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
4242
}
4343

4444
VideosegClient::VideosegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
4545
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
4646
{
4747
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
48-
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "videoseg");
48+
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
4949
}
5050

5151
VideosegClient::~VideosegClient()

videoseg/src/model/GetAsyncJobResultRequest.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
2727
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
2828
{}
2929

30-
bool GetAsyncJobResultRequest::getAsync()const
30+
std::string GetAsyncJobResultRequest::getJobId()const
3131
{
32-
return async_;
32+
return jobId_;
3333
}
3434

35-
void GetAsyncJobResultRequest::setAsync(bool async)
35+
void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
3636
{
37-
async_ = async;
38-
setBodyParameter("Async", async ? "true" : "false");
37+
jobId_ = jobId;
38+
setBodyParameter("JobId", jobId);
3939
}
4040

41-
std::string GetAsyncJobResultRequest::getJobId()const
41+
bool GetAsyncJobResultRequest::getAsync()const
4242
{
43-
return jobId_;
43+
return async_;
4444
}
4545

46-
void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
46+
void GetAsyncJobResultRequest::setAsync(bool async)
4747
{
48-
jobId_ = jobId;
49-
setBodyParameter("JobId", jobId);
48+
async_ = async;
49+
setBodyParameter("Async", async ? "true" : "false");
5050
}
5151

videoseg/src/model/GetAsyncJobResultResult.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ void GetAsyncJobResultResult::parse(const std::string &payload)
4040
reader.parse(payload, value);
4141
setRequestId(value["RequestId"].asString());
4242
auto dataNode = value["Data"];
43-
if(!dataNode["JobId"].isNull())
44-
data_.jobId = dataNode["JobId"].asString();
4543
if(!dataNode["Status"].isNull())
4644
data_.status = dataNode["Status"].asString();
45+
if(!dataNode["ErrorMessage"].isNull())
46+
data_.errorMessage = dataNode["ErrorMessage"].asString();
4747
if(!dataNode["Result"].isNull())
4848
data_.result = dataNode["Result"].asString();
4949
if(!dataNode["ErrorCode"].isNull())
5050
data_.errorCode = dataNode["ErrorCode"].asString();
51-
if(!dataNode["ErrorMessage"].isNull())
52-
data_.errorMessage = dataNode["ErrorMessage"].asString();
51+
if(!dataNode["JobId"].isNull())
52+
data_.jobId = dataNode["JobId"].asString();
5353

5454
}
5555

videoseg/src/model/SegmentGreenScreenVideoResult.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ void SegmentGreenScreenVideoResult::parse(const std::string &payload)
4242
auto dataNode = value["Data"];
4343
if(!dataNode["VideoURL"].isNull())
4444
data_.videoURL = dataNode["VideoURL"].asString();
45-
if(!value["Message"].isNull())
46-
message_ = value["Message"].asString();
4745
if(!value["Code"].isNull())
4846
code_ = value["Code"].asString();
47+
if(!value["Message"].isNull())
48+
message_ = value["Message"].asString();
4949

5050
}
5151

videoseg/src/model/SegmentHalfBodyResult.cc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,25 @@ void SegmentHalfBodyResult::parse(const std::string &payload)
4242
auto dataNode = value["Data"];
4343
if(!dataNode["VideoUrl"].isNull())
4444
data_.videoUrl = dataNode["VideoUrl"].asString();
45+
if(!value["Code"].isNull())
46+
code_ = value["Code"].asString();
47+
if(!value["Message"].isNull())
48+
message_ = value["Message"].asString();
4549

4650
}
4751

52+
std::string SegmentHalfBodyResult::getMessage()const
53+
{
54+
return message_;
55+
}
56+
4857
SegmentHalfBodyResult::Data SegmentHalfBodyResult::getData()const
4958
{
5059
return data_;
5160
}
5261

62+
std::string SegmentHalfBodyResult::getCode()const
63+
{
64+
return code_;
65+
}
66+

videoseg/src/model/SegmentVideoBodyResult.cc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,25 @@ void SegmentVideoBodyResult::parse(const std::string &payload)
4242
auto dataNode = value["Data"];
4343
if(!dataNode["VideoUrl"].isNull())
4444
data_.videoUrl = dataNode["VideoUrl"].asString();
45+
if(!value["Code"].isNull())
46+
code_ = value["Code"].asString();
47+
if(!value["Message"].isNull())
48+
message_ = value["Message"].asString();
4549

4650
}
4751

52+
std::string SegmentVideoBodyResult::getMessage()const
53+
{
54+
return message_;
55+
}
56+
4857
SegmentVideoBodyResult::Data SegmentVideoBodyResult::getData()const
4958
{
5059
return data_;
5160
}
5261

62+
std::string SegmentVideoBodyResult::getCode()const
63+
{
64+
return code_;
65+
}
66+

0 commit comments

Comments
 (0)