Compare commits
80 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
678893901f | ||
|
|
1bf5fe98af | ||
|
|
2173eb9110 | ||
|
|
045dcc9fa9 | ||
|
|
2fa7d5dc9f | ||
|
|
0a04d9d475 | ||
|
|
1193bcf394 | ||
|
|
c2ce4a0048 | ||
|
|
a63623d1a9 | ||
|
|
3edb319f4c | ||
|
|
61af8db794 | ||
|
|
1fda527d88 | ||
|
|
da6add49af | ||
|
|
9454f4754b | ||
|
|
861a684089 | ||
|
|
1ce36b8afa | ||
|
|
93808b764c | ||
|
|
22e4b5fbf4 | ||
|
|
90670a1866 | ||
|
|
cebe31f0f4 | ||
|
|
ebd79f50ff | ||
|
|
3495b8e165 | ||
|
|
5204a37d2a | ||
|
|
3efd03d181 | ||
|
|
86ad2c73a3 | ||
|
|
27c46edf5d | ||
|
|
67493d8653 | ||
|
|
52bbf53aed | ||
|
|
ba2b797842 | ||
|
|
1e276056a2 | ||
|
|
f699392896 | ||
|
|
f7db57cc1b | ||
|
|
79c435e079 | ||
|
|
733d355d78 | ||
|
|
5e93a9b21f | ||
|
|
79815391f7 | ||
|
|
ece2943ddb | ||
|
|
43d1c945b8 | ||
|
|
812992b8d2 | ||
|
|
b5aa2495c8 | ||
|
|
83e7ccef1a | ||
|
|
2c3af87947 | ||
|
|
44572042b1 | ||
|
|
4fd76a9156 | ||
|
|
74ea14dac4 | ||
|
|
9439fe21fc | ||
|
|
1950f0a785 | ||
|
|
70f1379a6b | ||
|
|
b6fdfa2e99 | ||
|
|
e7391bcf60 | ||
|
|
34607b9120 | ||
|
|
9f40d7b20e | ||
|
|
0ed45d0a71 | ||
|
|
4038c65c3d | ||
|
|
a6ee7a24dc | ||
|
|
33322a0330 | ||
|
|
c0b65c2479 | ||
|
|
3267f3d649 | ||
|
|
a79257acaa | ||
|
|
724ad3f5ef | ||
|
|
208ca6ba33 | ||
|
|
7f67c014d7 | ||
|
|
e5892aafb1 | ||
|
|
4553624eb3 | ||
|
|
ecee6ebdcf | ||
|
|
e38743541f | ||
|
|
62675547a0 | ||
|
|
0b83aafb63 | ||
|
|
2ce5479bb3 | ||
|
|
0e8bc4d53b | ||
|
|
1e896e337a | ||
|
|
51b2160a35 | ||
|
|
a2538884e5 | ||
|
|
38687878d7 | ||
|
|
50542d3a96 | ||
|
|
31d841f554 | ||
|
|
38f1feda73 | ||
|
|
5e1ff681ee | ||
|
|
5888c43598 | ||
|
|
197143a57e |
@@ -31,24 +31,36 @@ set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/GetVideoTaskInfoResult.h
|
||||
include/alibabacloud/avatar/model/LicenseAuthRequest.h
|
||||
include/alibabacloud/avatar/model/LicenseAuthResult.h
|
||||
include/alibabacloud/avatar/model/QueryAvatarRequest.h
|
||||
include/alibabacloud/avatar/model/QueryAvatarResult.h
|
||||
include/alibabacloud/avatar/model/QueryAvatarListRequest.h
|
||||
include/alibabacloud/avatar/model/QueryAvatarListResult.h
|
||||
include/alibabacloud/avatar/model/QueryRunningInstanceRequest.h
|
||||
include/alibabacloud/avatar/model/QueryRunningInstanceResult.h
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusRequest.h
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusResult.h
|
||||
include/alibabacloud/avatar/model/SendCommandRequest.h
|
||||
include/alibabacloud/avatar/model/SendCommandResult.h
|
||||
include/alibabacloud/avatar/model/SendMessageRequest.h
|
||||
include/alibabacloud/avatar/model/SendMessageResult.h
|
||||
include/alibabacloud/avatar/model/SendTextRequest.h
|
||||
include/alibabacloud/avatar/model/SendTextResult.h
|
||||
include/alibabacloud/avatar/model/SendVamlRequest.h
|
||||
include/alibabacloud/avatar/model/SendVamlResult.h
|
||||
include/alibabacloud/avatar/model/StartInstanceRequest.h
|
||||
include/alibabacloud/avatar/model/StartInstanceResult.h
|
||||
include/alibabacloud/avatar/model/StartTimedResetOperateRequest.h
|
||||
include/alibabacloud/avatar/model/StartTimedResetOperateResult.h
|
||||
include/alibabacloud/avatar/model/StopInstanceRequest.h
|
||||
include/alibabacloud/avatar/model/StopInstanceResult.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo2DAvatarVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo2DAvatarVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskResult.h
|
||||
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/SubmitTextToSignVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitTextToSignVideoTaskResult.h )
|
||||
include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskResult.h )
|
||||
|
||||
set(avatar_src
|
||||
src/AvatarClient.cc
|
||||
@@ -62,24 +74,36 @@ set(avatar_src
|
||||
src/model/GetVideoTaskInfoResult.cc
|
||||
src/model/LicenseAuthRequest.cc
|
||||
src/model/LicenseAuthResult.cc
|
||||
src/model/QueryAvatarRequest.cc
|
||||
src/model/QueryAvatarResult.cc
|
||||
src/model/QueryAvatarListRequest.cc
|
||||
src/model/QueryAvatarListResult.cc
|
||||
src/model/QueryRunningInstanceRequest.cc
|
||||
src/model/QueryRunningInstanceResult.cc
|
||||
src/model/QueryTimedResetOperateStatusRequest.cc
|
||||
src/model/QueryTimedResetOperateStatusResult.cc
|
||||
src/model/SendCommandRequest.cc
|
||||
src/model/SendCommandResult.cc
|
||||
src/model/SendMessageRequest.cc
|
||||
src/model/SendMessageResult.cc
|
||||
src/model/SendTextRequest.cc
|
||||
src/model/SendTextResult.cc
|
||||
src/model/SendVamlRequest.cc
|
||||
src/model/SendVamlResult.cc
|
||||
src/model/StartInstanceRequest.cc
|
||||
src/model/StartInstanceResult.cc
|
||||
src/model/StartTimedResetOperateRequest.cc
|
||||
src/model/StartTimedResetOperateResult.cc
|
||||
src/model/StopInstanceRequest.cc
|
||||
src/model/StopInstanceResult.cc
|
||||
src/model/SubmitAudioTo2DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitAudioTo2DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitAudioTo3DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitAudioTo3DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitTextTo2DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitTextTo2DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitTextTo3DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitTextTo3DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitTextToSignVideoTaskRequest.cc
|
||||
src/model/SubmitTextToSignVideoTaskResult.cc )
|
||||
src/model/SubmitTextTo3DAvatarVideoTaskResult.cc )
|
||||
|
||||
add_library(avatar ${LIB_TYPE}
|
||||
${avatar_public_header}
|
||||
|
||||
@@ -32,24 +32,36 @@
|
||||
#include "model/GetVideoTaskInfoResult.h"
|
||||
#include "model/LicenseAuthRequest.h"
|
||||
#include "model/LicenseAuthResult.h"
|
||||
#include "model/QueryAvatarRequest.h"
|
||||
#include "model/QueryAvatarResult.h"
|
||||
#include "model/QueryAvatarListRequest.h"
|
||||
#include "model/QueryAvatarListResult.h"
|
||||
#include "model/QueryRunningInstanceRequest.h"
|
||||
#include "model/QueryRunningInstanceResult.h"
|
||||
#include "model/QueryTimedResetOperateStatusRequest.h"
|
||||
#include "model/QueryTimedResetOperateStatusResult.h"
|
||||
#include "model/SendCommandRequest.h"
|
||||
#include "model/SendCommandResult.h"
|
||||
#include "model/SendMessageRequest.h"
|
||||
#include "model/SendMessageResult.h"
|
||||
#include "model/SendTextRequest.h"
|
||||
#include "model/SendTextResult.h"
|
||||
#include "model/SendVamlRequest.h"
|
||||
#include "model/SendVamlResult.h"
|
||||
#include "model/StartInstanceRequest.h"
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StartTimedResetOperateRequest.h"
|
||||
#include "model/StartTimedResetOperateResult.h"
|
||||
#include "model/StopInstanceRequest.h"
|
||||
#include "model/StopInstanceResult.h"
|
||||
#include "model/SubmitAudioTo2DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitAudioTo2DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitAudioTo3DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitAudioTo3DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitTextTo2DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitTextTo2DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitTextTo3DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitTextTo3DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitTextToSignVideoTaskRequest.h"
|
||||
#include "model/SubmitTextToSignVideoTaskResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -74,15 +86,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::LicenseAuthResult> LicenseAuthOutcome;
|
||||
typedef std::future<LicenseAuthOutcome> LicenseAuthOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::LicenseAuthRequest&, const LicenseAuthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LicenseAuthAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAvatarResult> QueryAvatarOutcome;
|
||||
typedef std::future<QueryAvatarOutcome> QueryAvatarOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryAvatarRequest&, const QueryAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAvatarAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAvatarListResult> QueryAvatarListOutcome;
|
||||
typedef std::future<QueryAvatarListOutcome> QueryAvatarListOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryAvatarListRequest&, const QueryAvatarListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAvatarListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRunningInstanceResult> QueryRunningInstanceOutcome;
|
||||
typedef std::future<QueryRunningInstanceOutcome> QueryRunningInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryRunningInstanceRequest&, const QueryRunningInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRunningInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryTimedResetOperateStatusResult> QueryTimedResetOperateStatusOutcome;
|
||||
typedef std::future<QueryTimedResetOperateStatusOutcome> QueryTimedResetOperateStatusOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryTimedResetOperateStatusRequest&, const QueryTimedResetOperateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTimedResetOperateStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
|
||||
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendMessageResult> SendMessageOutcome;
|
||||
typedef std::future<SendMessageOutcome> SendMessageOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendMessageRequest&, const SendMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendTextResult> SendTextOutcome;
|
||||
typedef std::future<SendTextOutcome> SendTextOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendTextRequest&, const SendTextOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendTextAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendVamlResult> SendVamlOutcome;
|
||||
typedef std::future<SendVamlOutcome> SendVamlOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendVamlRequest&, const SendVamlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendVamlAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
|
||||
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
|
||||
@@ -92,15 +119,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StopInstanceResult> StopInstanceOutcome;
|
||||
typedef std::future<StopInstanceOutcome> StopInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::StopInstanceRequest&, const StopInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitAudioTo2DAvatarVideoTaskResult> SubmitAudioTo2DAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitAudioTo2DAvatarVideoTaskOutcome> SubmitAudioTo2DAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitAudioTo2DAvatarVideoTaskRequest&, const SubmitAudioTo2DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAudioTo2DAvatarVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitAudioTo3DAvatarVideoTaskResult> SubmitAudioTo3DAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitAudioTo3DAvatarVideoTaskOutcome> SubmitAudioTo3DAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitAudioTo3DAvatarVideoTaskRequest&, const SubmitAudioTo3DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAudioTo3DAvatarVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitTextTo2DAvatarVideoTaskResult> SubmitTextTo2DAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitTextTo2DAvatarVideoTaskOutcome> SubmitTextTo2DAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitTextTo2DAvatarVideoTaskRequest&, const SubmitTextTo2DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitTextTo2DAvatarVideoTaskAsyncHandler;
|
||||
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::SubmitTextToSignVideoTaskResult> SubmitTextToSignVideoTaskOutcome;
|
||||
typedef std::future<SubmitTextToSignVideoTaskOutcome> SubmitTextToSignVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitTextToSignVideoTaskRequest&, const SubmitTextToSignVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitTextToSignVideoTaskAsyncHandler;
|
||||
|
||||
AvatarClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AvatarClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -121,15 +151,30 @@ namespace AlibabaCloud
|
||||
LicenseAuthOutcome licenseAuth(const Model::LicenseAuthRequest &request)const;
|
||||
void licenseAuthAsync(const Model::LicenseAuthRequest& request, const LicenseAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LicenseAuthOutcomeCallable licenseAuthCallable(const Model::LicenseAuthRequest& request) const;
|
||||
QueryAvatarOutcome queryAvatar(const Model::QueryAvatarRequest &request)const;
|
||||
void queryAvatarAsync(const Model::QueryAvatarRequest& request, const QueryAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAvatarOutcomeCallable queryAvatarCallable(const Model::QueryAvatarRequest& request) const;
|
||||
QueryAvatarListOutcome queryAvatarList(const Model::QueryAvatarListRequest &request)const;
|
||||
void queryAvatarListAsync(const Model::QueryAvatarListRequest& request, const QueryAvatarListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAvatarListOutcomeCallable queryAvatarListCallable(const Model::QueryAvatarListRequest& request) const;
|
||||
QueryRunningInstanceOutcome queryRunningInstance(const Model::QueryRunningInstanceRequest &request)const;
|
||||
void queryRunningInstanceAsync(const Model::QueryRunningInstanceRequest& request, const QueryRunningInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRunningInstanceOutcomeCallable queryRunningInstanceCallable(const Model::QueryRunningInstanceRequest& request) const;
|
||||
QueryTimedResetOperateStatusOutcome queryTimedResetOperateStatus(const Model::QueryTimedResetOperateStatusRequest &request)const;
|
||||
void queryTimedResetOperateStatusAsync(const Model::QueryTimedResetOperateStatusRequest& request, const QueryTimedResetOperateStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryTimedResetOperateStatusOutcomeCallable queryTimedResetOperateStatusCallable(const Model::QueryTimedResetOperateStatusRequest& request) const;
|
||||
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
|
||||
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;
|
||||
SendMessageOutcome sendMessage(const Model::SendMessageRequest &request)const;
|
||||
void sendMessageAsync(const Model::SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendMessageOutcomeCallable sendMessageCallable(const Model::SendMessageRequest& request) const;
|
||||
SendTextOutcome sendText(const Model::SendTextRequest &request)const;
|
||||
void sendTextAsync(const Model::SendTextRequest& request, const SendTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendTextOutcomeCallable sendTextCallable(const Model::SendTextRequest& request) const;
|
||||
SendVamlOutcome sendVaml(const Model::SendVamlRequest &request)const;
|
||||
void sendVamlAsync(const Model::SendVamlRequest& request, const SendVamlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendVamlOutcomeCallable sendVamlCallable(const Model::SendVamlRequest& request) const;
|
||||
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
|
||||
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
|
||||
@@ -139,15 +184,18 @@ namespace AlibabaCloud
|
||||
StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const;
|
||||
void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const;
|
||||
SubmitAudioTo2DAvatarVideoTaskOutcome submitAudioTo2DAvatarVideoTask(const Model::SubmitAudioTo2DAvatarVideoTaskRequest &request)const;
|
||||
void submitAudioTo2DAvatarVideoTaskAsync(const Model::SubmitAudioTo2DAvatarVideoTaskRequest& request, const SubmitAudioTo2DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitAudioTo2DAvatarVideoTaskOutcomeCallable submitAudioTo2DAvatarVideoTaskCallable(const Model::SubmitAudioTo2DAvatarVideoTaskRequest& request) const;
|
||||
SubmitAudioTo3DAvatarVideoTaskOutcome submitAudioTo3DAvatarVideoTask(const Model::SubmitAudioTo3DAvatarVideoTaskRequest &request)const;
|
||||
void submitAudioTo3DAvatarVideoTaskAsync(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request, const SubmitAudioTo3DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitAudioTo3DAvatarVideoTaskOutcomeCallable submitAudioTo3DAvatarVideoTaskCallable(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request) const;
|
||||
SubmitTextTo2DAvatarVideoTaskOutcome submitTextTo2DAvatarVideoTask(const Model::SubmitTextTo2DAvatarVideoTaskRequest &request)const;
|
||||
void submitTextTo2DAvatarVideoTaskAsync(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request, const SubmitTextTo2DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitTextTo2DAvatarVideoTaskOutcomeCallable submitTextTo2DAvatarVideoTaskCallable(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request) const;
|
||||
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;
|
||||
SubmitTextToSignVideoTaskOutcome submitTextToSignVideoTask(const Model::SubmitTextToSignVideoTaskRequest &request)const;
|
||||
void submitTextToSignVideoTaskAsync(const Model::SubmitTextToSignVideoTaskRequest& request, const SubmitTextToSignVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitTextToSignVideoTaskOutcomeCallable submitTextToSignVideoTaskCallable(const Model::SubmitTextToSignVideoTaskRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct TaskResult
|
||||
{
|
||||
int videoDuration;
|
||||
std::string failCode;
|
||||
std::string subtitlesUrl;
|
||||
std::string wordSubtitlesUrl;
|
||||
|
||||
@@ -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_QUERYAVATARLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARLISTREQUEST_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 QueryAvatarListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAvatarListRequest();
|
||||
~QueryAvatarListRequest();
|
||||
std::string getModelType() const;
|
||||
void setModelType(const std::string &modelType);
|
||||
int getPageNo() const;
|
||||
void setPageNo(int pageNo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string modelType_;
|
||||
int pageNo_;
|
||||
long tenantId_;
|
||||
int pageSize_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARLISTREQUEST_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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_QUERYAVATARLISTRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARLISTRESULT_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 QueryAvatarListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
struct SupportedResolutions
|
||||
{
|
||||
struct OfflineItem
|
||||
{
|
||||
std::string desc;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
struct OnlineItem
|
||||
{
|
||||
std::string desc;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
std::vector<OfflineItem> offline;
|
||||
std::vector<OnlineItem> online;
|
||||
};
|
||||
std::string description;
|
||||
SupportedResolutions supportedResolutions;
|
||||
std::string portrait;
|
||||
std::string avatarType;
|
||||
std::string modelType;
|
||||
std::string image;
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int totalPage;
|
||||
std::vector<ListItem> list;
|
||||
int pageNo;
|
||||
};
|
||||
|
||||
|
||||
QueryAvatarListResult();
|
||||
explicit QueryAvatarListResult(const std::string &payload);
|
||||
~QueryAvatarListResult();
|
||||
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_QUERYAVATARLISTRESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_QUERYAVATARREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARREQUEST_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 QueryAvatarRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAvatarRequest();
|
||||
~QueryAvatarRequest();
|
||||
std::string getCode() const;
|
||||
void setCode(const std::string &code);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
|
||||
private:
|
||||
std::string code_;
|
||||
long tenantId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARREQUEST_H_
|
||||
84
avatar/include/alibabacloud/avatar/model/QueryAvatarResult.h
Normal file
84
avatar/include/alibabacloud/avatar/model/QueryAvatarResult.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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_QUERYAVATARRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_QUERYAVATARRESULT_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 QueryAvatarResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SupportedResolutions
|
||||
{
|
||||
struct OfflineItem
|
||||
{
|
||||
std::string desc;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
struct OnlineItem
|
||||
{
|
||||
std::string desc;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
std::vector<OfflineItem> offline;
|
||||
std::vector<OnlineItem> online;
|
||||
};
|
||||
std::string description;
|
||||
SupportedResolutions supportedResolutions;
|
||||
std::string portrait;
|
||||
std::string modelType;
|
||||
std::string avatarType;
|
||||
std::string image;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
QueryAvatarResult();
|
||||
explicit QueryAvatarResult(const std::string &payload);
|
||||
~QueryAvatarResult();
|
||||
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_QUERYAVATARRESULT_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_AVATAR_MODEL_SENDCOMMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDREQUEST_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 SendCommandRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SendCommandRequest();
|
||||
~SendCommandRequest();
|
||||
bool getFeedback() const;
|
||||
void setFeedback(bool feedback);
|
||||
std::string getCode() const;
|
||||
void setCode(const std::string &code);
|
||||
std::string getUniqueCode() const;
|
||||
void setUniqueCode(const std::string &uniqueCode);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::map<std::string, std::string> getContent() const;
|
||||
void setContent(const std::map<std::string, std::string> &content);
|
||||
|
||||
private:
|
||||
bool feedback_;
|
||||
std::string code_;
|
||||
std::string uniqueCode_;
|
||||
long tenantId_;
|
||||
std::string sessionId_;
|
||||
std::map<std::string, std::string> content_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDREQUEST_H_
|
||||
62
avatar/include/alibabacloud/avatar/model/SendCommandResult.h
Normal file
62
avatar/include/alibabacloud/avatar/model/SendCommandResult.h
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDCOMMANDRESULT_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 SendCommandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
SendCommandResult();
|
||||
explicit SendCommandResult(const std::string &payload);
|
||||
~SendCommandResult();
|
||||
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_SENDCOMMANDRESULT_H_
|
||||
@@ -28,6 +28,11 @@ namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendMessageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct StreamExtension {
|
||||
bool isStream;
|
||||
int index;
|
||||
std::string position;
|
||||
};
|
||||
struct VAMLRequest {
|
||||
std::string code;
|
||||
std::string vaml;
|
||||
@@ -36,6 +41,8 @@ public:
|
||||
~SendMessageRequest();
|
||||
bool getFeedback() const;
|
||||
void setFeedback(bool feedback);
|
||||
StreamExtension getStreamExtension() const;
|
||||
void setStreamExtension(const StreamExtension &streamExtension);
|
||||
std::string getTextRequest() const;
|
||||
void setTextRequest(const std::string &textRequest);
|
||||
long getTenantId() const;
|
||||
@@ -47,6 +54,7 @@ public:
|
||||
|
||||
private:
|
||||
bool feedback_;
|
||||
StreamExtension streamExtension_;
|
||||
std::string textRequest_;
|
||||
long tenantId_;
|
||||
VAMLRequest vAMLRequest_;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -26,37 +26,40 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SubmitTextToSignVideoTaskRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendTextRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
struct StreamExtension {
|
||||
bool isStream;
|
||||
int index;
|
||||
std::string position;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
bool isSubtitles;
|
||||
int resolution;
|
||||
};
|
||||
SubmitTextToSignVideoTaskRequest();
|
||||
~SubmitTextToSignVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
SendTextRequest();
|
||||
~SendTextRequest();
|
||||
bool getFeedback() const;
|
||||
void setFeedback(bool feedback);
|
||||
std::string getUniqueCode() const;
|
||||
void setUniqueCode(const std::string &uniqueCode);
|
||||
StreamExtension getStreamExtension() const;
|
||||
void setStreamExtension(const StreamExtension &streamExtension);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getInterrupt() const;
|
||||
void setInterrupt(bool interrupt);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
bool feedback_;
|
||||
std::string uniqueCode_;
|
||||
StreamExtension streamExtension_;
|
||||
long tenantId_;
|
||||
bool interrupt_;
|
||||
std::string sessionId_;
|
||||
std::string text_;
|
||||
std::string title_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDTEXTREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OCR_MODEL_TRIMDOCUMENTRESULT_H_
|
||||
#define ALIBABACLOUD_OCR_MODEL_TRIMDOCUMENTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ocr/OcrExport.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ocr
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OCR_EXPORT TrimDocumentResult : public ServiceResult
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendTextResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string content;
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
TrimDocumentResult();
|
||||
explicit TrimDocumentResult(const std::string &payload);
|
||||
~TrimDocumentResult();
|
||||
SendTextResult();
|
||||
explicit SendTextResult(const std::string &payload);
|
||||
~SendTextResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -51,9 +53,10 @@ namespace AlibabaCloud
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OCR_MODEL_TRIMDOCUMENTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDTEXTRESULT_H_
|
||||
48
avatar/include/alibabacloud/avatar/model/SendVamlRequest.h
Normal file
48
avatar/include/alibabacloud/avatar/model/SendVamlRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_SENDVAMLREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDVAMLREQUEST_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 SendVamlRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SendVamlRequest();
|
||||
~SendVamlRequest();
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getSessionId() const;
|
||||
void setSessionId(const std::string &sessionId);
|
||||
std::string getVaml() const;
|
||||
void setVaml(const std::string &vaml);
|
||||
|
||||
private:
|
||||
long tenantId_;
|
||||
std::string sessionId_;
|
||||
std::string vaml_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDVAMLREQUEST_H_
|
||||
@@ -14,45 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_
|
||||
#define ALIBABACLOUD_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/market/MarketExport.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Market
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_MARKET_EXPORT UploadCommodityFileResult : public ServiceResult
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SendVamlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resource;
|
||||
std::string resourceType;
|
||||
std::string uniqueCode;
|
||||
std::string sessionId;
|
||||
};
|
||||
|
||||
|
||||
UploadCommodityFileResult();
|
||||
explicit UploadCommodityFileResult(const std::string &payload);
|
||||
~UploadCommodityFileResult();
|
||||
SendVamlResult();
|
||||
explicit SendVamlResult(const std::string &payload);
|
||||
~SendVamlResult();
|
||||
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_MARKET_MODEL_UPLOADCOMMODITYFILERESULT_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SENDVAMLRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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_SUBMITAUDIOTO2DAVATARVIDEOTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO2DAVATARVIDEOTASKREQUEST_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 SubmitAudioTo2DAvatarVideoTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest();
|
||||
~SubmitAudioTo2DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
AvatarInfo avatarInfo_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
std::string url_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO2DAVATARVIDEOTASKREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO2DAVATARVIDEOTASKRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO2DAVATARVIDEOTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SubmitTextToSignVideoTaskResult : public ServiceResult
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SubmitAudioTo2DAvatarVideoTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
@@ -38,9 +38,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
SubmitTextToSignVideoTaskResult();
|
||||
explicit SubmitTextToSignVideoTaskResult(const std::string &payload);
|
||||
~SubmitTextToSignVideoTaskResult();
|
||||
SubmitAudioTo2DAvatarVideoTaskResult();
|
||||
explicit SubmitAudioTo2DAvatarVideoTaskResult(const std::string &payload);
|
||||
~SubmitAudioTo2DAvatarVideoTaskResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -58,4 +58,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITTEXTTOSIGNVIDEOTASKRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO2DAVATARVIDEOTASKRESULT_H_
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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_SUBMITAUDIOTO3DAVATARVIDEOTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO3DAVATARVIDEOTASKREQUEST_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 SubmitAudioTo3DAvatarVideoTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
std::string industryCode;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest();
|
||||
~SubmitAudioTo3DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
std::string getUrl() const;
|
||||
void setUrl(const std::string &url);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
AvatarInfo avatarInfo_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
std::string url_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO3DAVATARVIDEOTASKREQUEST_H_
|
||||
@@ -14,54 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OCR_MODEL_DETECTCARDSCREENSHOTRESULT_H_
|
||||
#define ALIBABACLOUD_OCR_MODEL_DETECTCARDSCREENSHOTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO3DAVATARVIDEOTASKRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO3DAVATARVIDEOTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ocr/OcrExport.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ocr
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OCR_EXPORT DetectCardScreenshotResult : public ServiceResult
|
||||
class ALIBABACLOUD_AVATAR_EXPORT SubmitAudioTo3DAvatarVideoTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SpoofResult
|
||||
{
|
||||
struct ResultMap
|
||||
{
|
||||
float screenScore;
|
||||
float screenThreshold;
|
||||
};
|
||||
ResultMap resultMap;
|
||||
bool isSpoof;
|
||||
};
|
||||
SpoofResult spoofResult;
|
||||
bool isBlur;
|
||||
bool isCard;
|
||||
std::string taskUuid;
|
||||
};
|
||||
|
||||
|
||||
DetectCardScreenshotResult();
|
||||
explicit DetectCardScreenshotResult(const std::string &payload);
|
||||
~DetectCardScreenshotResult();
|
||||
SubmitAudioTo3DAvatarVideoTaskResult();
|
||||
explicit SubmitAudioTo3DAvatarVideoTaskResult(const std::string &payload);
|
||||
~SubmitAudioTo3DAvatarVideoTaskResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OCR_MODEL_DETECTCARDSCREENSHOTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_SUBMITAUDIOTO3DAVATARVIDEOTASKRESULT_H_
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
};
|
||||
struct AudioInfo {
|
||||
std::string voice;
|
||||
int volume;
|
||||
@@ -45,31 +40,53 @@ public:
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
SubmitTextTo2DAvatarVideoTaskRequest();
|
||||
~SubmitTextTo2DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string text_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string text_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -31,6 +31,18 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AudioInfo {
|
||||
std::string voice;
|
||||
int volume;
|
||||
int speechRate;
|
||||
int pitchRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
std::string industryCode;
|
||||
};
|
||||
struct VideoInfo {
|
||||
bool isAlpha;
|
||||
std::string backgroundImageUrl;
|
||||
@@ -38,33 +50,46 @@ public:
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
int angle;
|
||||
};
|
||||
SubmitTextTo3DAvatarVideoTaskRequest();
|
||||
~SubmitTextTo3DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getTitle() const;
|
||||
void setTitle(const std::string &title);
|
||||
std::string getExtParams() const;
|
||||
void setExtParams(const std::string &extParams);
|
||||
VideoInfo getVideoInfo() const;
|
||||
void setVideoInfo(const VideoInfo &videoInfo);
|
||||
std::string getCallbackParams() const;
|
||||
void setCallbackParams(const std::string &callbackParams);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
bool getCallback() const;
|
||||
void setCallback(bool callback);
|
||||
std::string getExtParams_CLS() const;
|
||||
void setExtParams_CLS(const std::string &extParams_CLS);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getCallbackParams_CLS() const;
|
||||
void setCallbackParams_CLS(const std::string &callbackParams_CLS);
|
||||
|
||||
private:
|
||||
App app_;
|
||||
VideoInfo videoInfo_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
long tenantId_;
|
||||
std::string text_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
VideoInfo videoInfo_;
|
||||
std::string callbackParams_;
|
||||
long tenantId_;
|
||||
bool callback_;
|
||||
std::string extParams_CLS_;
|
||||
std::string text_;
|
||||
std::string callbackParams_CLS_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
|
||||
@@ -231,6 +231,78 @@ AvatarClient::LicenseAuthOutcomeCallable AvatarClient::licenseAuthCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::QueryAvatarOutcome AvatarClient::queryAvatar(const QueryAvatarRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAvatarOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAvatarOutcome(QueryAvatarResult(outcome.result()));
|
||||
else
|
||||
return QueryAvatarOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::queryAvatarAsync(const QueryAvatarRequest& request, const QueryAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAvatar(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::QueryAvatarOutcomeCallable AvatarClient::queryAvatarCallable(const QueryAvatarRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAvatarOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAvatar(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::QueryAvatarListOutcome AvatarClient::queryAvatarList(const QueryAvatarListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAvatarListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAvatarListOutcome(QueryAvatarListResult(outcome.result()));
|
||||
else
|
||||
return QueryAvatarListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::queryAvatarListAsync(const QueryAvatarListRequest& request, const QueryAvatarListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAvatarList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::QueryAvatarListOutcomeCallable AvatarClient::queryAvatarListCallable(const QueryAvatarListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAvatarListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAvatarList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::QueryRunningInstanceOutcome AvatarClient::queryRunningInstance(const QueryRunningInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +375,42 @@ AvatarClient::QueryTimedResetOperateStatusOutcomeCallable AvatarClient::queryTim
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendCommandOutcome AvatarClient::sendCommand(const SendCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendCommandOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendCommandOutcome(SendCommandResult(outcome.result()));
|
||||
else
|
||||
return SendCommandOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendCommandAsync(const SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendCommand(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendCommandOutcomeCallable AvatarClient::sendCommandCallable(const SendCommandRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendCommandOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendCommand(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendMessageOutcome AvatarClient::sendMessage(const SendMessageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +447,78 @@ AvatarClient::SendMessageOutcomeCallable AvatarClient::sendMessageCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendTextOutcome AvatarClient::sendText(const SendTextRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendTextOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendTextOutcome(SendTextResult(outcome.result()));
|
||||
else
|
||||
return SendTextOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendTextAsync(const SendTextRequest& request, const SendTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendText(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendTextOutcomeCallable AvatarClient::sendTextCallable(const SendTextRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendTextOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendText(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SendVamlOutcome AvatarClient::sendVaml(const SendVamlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendVamlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendVamlOutcome(SendVamlResult(outcome.result()));
|
||||
else
|
||||
return SendVamlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::sendVamlAsync(const SendVamlRequest& request, const SendVamlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendVaml(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SendVamlOutcomeCallable AvatarClient::sendVamlCallable(const SendVamlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendVamlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendVaml(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::StartInstanceOutcome AvatarClient::startInstance(const StartInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +627,78 @@ AvatarClient::StopInstanceOutcomeCallable AvatarClient::stopInstanceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SubmitAudioTo2DAvatarVideoTaskOutcome AvatarClient::submitAudioTo2DAvatarVideoTask(const SubmitAudioTo2DAvatarVideoTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitAudioTo2DAvatarVideoTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitAudioTo2DAvatarVideoTaskOutcome(SubmitAudioTo2DAvatarVideoTaskResult(outcome.result()));
|
||||
else
|
||||
return SubmitAudioTo2DAvatarVideoTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::submitAudioTo2DAvatarVideoTaskAsync(const SubmitAudioTo2DAvatarVideoTaskRequest& request, const SubmitAudioTo2DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitAudioTo2DAvatarVideoTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SubmitAudioTo2DAvatarVideoTaskOutcomeCallable AvatarClient::submitAudioTo2DAvatarVideoTaskCallable(const SubmitAudioTo2DAvatarVideoTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitAudioTo2DAvatarVideoTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitAudioTo2DAvatarVideoTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SubmitAudioTo3DAvatarVideoTaskOutcome AvatarClient::submitAudioTo3DAvatarVideoTask(const SubmitAudioTo3DAvatarVideoTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitAudioTo3DAvatarVideoTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitAudioTo3DAvatarVideoTaskOutcome(SubmitAudioTo3DAvatarVideoTaskResult(outcome.result()));
|
||||
else
|
||||
return SubmitAudioTo3DAvatarVideoTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::submitAudioTo3DAvatarVideoTaskAsync(const SubmitAudioTo3DAvatarVideoTaskRequest& request, const SubmitAudioTo3DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitAudioTo3DAvatarVideoTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SubmitAudioTo3DAvatarVideoTaskOutcomeCallable AvatarClient::submitAudioTo3DAvatarVideoTaskCallable(const SubmitAudioTo3DAvatarVideoTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitAudioTo3DAvatarVideoTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitAudioTo3DAvatarVideoTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SubmitTextTo2DAvatarVideoTaskOutcome AvatarClient::submitTextTo2DAvatarVideoTask(const SubmitTextTo2DAvatarVideoTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,39 +771,3 @@ AvatarClient::SubmitTextTo3DAvatarVideoTaskOutcomeCallable AvatarClient::submitT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AvatarClient::SubmitTextToSignVideoTaskOutcome AvatarClient::submitTextToSignVideoTask(const SubmitTextToSignVideoTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitTextToSignVideoTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitTextToSignVideoTaskOutcome(SubmitTextToSignVideoTaskResult(outcome.result()));
|
||||
else
|
||||
return SubmitTextToSignVideoTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AvatarClient::submitTextToSignVideoTaskAsync(const SubmitTextToSignVideoTaskRequest& request, const SubmitTextToSignVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitTextToSignVideoTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AvatarClient::SubmitTextToSignVideoTaskOutcomeCallable AvatarClient::submitTextToSignVideoTaskCallable(const SubmitTextToSignVideoTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitTextToSignVideoTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitTextToSignVideoTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void GetVideoTaskInfoResult::parse(const std::string &payload)
|
||||
data_.taskResult.failReason = taskResultNode["FailReason"].asString();
|
||||
if(!taskResultNode["FailCode"].isNull())
|
||||
data_.taskResult.failCode = taskResultNode["FailCode"].asString();
|
||||
if(!taskResultNode["VideoDuration"].isNull())
|
||||
data_.taskResult.videoDuration = std::stoi(taskResultNode["VideoDuration"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
63
avatar/src/model/QueryAvatarListRequest.cc
Normal file
63
avatar/src/model/QueryAvatarListRequest.cc
Normal file
@@ -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/QueryAvatarListRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::QueryAvatarListRequest;
|
||||
|
||||
QueryAvatarListRequest::QueryAvatarListRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "QueryAvatarList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAvatarListRequest::~QueryAvatarListRequest() {}
|
||||
|
||||
std::string QueryAvatarListRequest::getModelType() const {
|
||||
return modelType_;
|
||||
}
|
||||
|
||||
void QueryAvatarListRequest::setModelType(const std::string &modelType) {
|
||||
modelType_ = modelType;
|
||||
setParameter(std::string("ModelType"), modelType);
|
||||
}
|
||||
|
||||
int QueryAvatarListRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryAvatarListRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
long QueryAvatarListRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void QueryAvatarListRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
int QueryAvatarListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryAvatarListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
124
avatar/src/model/QueryAvatarListResult.cc
Normal file
124
avatar/src/model/QueryAvatarListResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/QueryAvatarListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
QueryAvatarListResult::QueryAvatarListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAvatarListResult::QueryAvatarListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAvatarListResult::~QueryAvatarListResult()
|
||||
{}
|
||||
|
||||
void QueryAvatarListResult::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["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageNo"].isNull())
|
||||
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
|
||||
auto allListNode = dataNode["List"]["listItem"];
|
||||
for (auto dataNodeListlistItem : allListNode)
|
||||
{
|
||||
Data::ListItem listItemObject;
|
||||
if(!dataNodeListlistItem["Code"].isNull())
|
||||
listItemObject.code = dataNodeListlistItem["Code"].asString();
|
||||
if(!dataNodeListlistItem["Name"].isNull())
|
||||
listItemObject.name = dataNodeListlistItem["Name"].asString();
|
||||
if(!dataNodeListlistItem["Image"].isNull())
|
||||
listItemObject.image = dataNodeListlistItem["Image"].asString();
|
||||
if(!dataNodeListlistItem["Portrait"].isNull())
|
||||
listItemObject.portrait = dataNodeListlistItem["Portrait"].asString();
|
||||
if(!dataNodeListlistItem["Description"].isNull())
|
||||
listItemObject.description = dataNodeListlistItem["Description"].asString();
|
||||
if(!dataNodeListlistItem["AvatarType"].isNull())
|
||||
listItemObject.avatarType = dataNodeListlistItem["AvatarType"].asString();
|
||||
if(!dataNodeListlistItem["ModelType"].isNull())
|
||||
listItemObject.modelType = dataNodeListlistItem["ModelType"].asString();
|
||||
auto supportedResolutionsNode = value["SupportedResolutions"];
|
||||
auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
|
||||
for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)
|
||||
{
|
||||
Data::ListItem::SupportedResolutions::OfflineItem offlineItemObject;
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Width"].isNull())
|
||||
offlineItemObject.width = std::stoi(supportedResolutionsNodeOfflineofflineItem["Width"].asString());
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Height"].isNull())
|
||||
offlineItemObject.height = std::stoi(supportedResolutionsNodeOfflineofflineItem["Height"].asString());
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Desc"].isNull())
|
||||
offlineItemObject.desc = supportedResolutionsNodeOfflineofflineItem["Desc"].asString();
|
||||
listItemObject.supportedResolutions.offline.push_back(offlineItemObject);
|
||||
}
|
||||
auto allOnlineNode = supportedResolutionsNode["Online"]["onlineItem"];
|
||||
for (auto supportedResolutionsNodeOnlineonlineItem : allOnlineNode)
|
||||
{
|
||||
Data::ListItem::SupportedResolutions::OnlineItem onlineItemObject;
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Width"].isNull())
|
||||
onlineItemObject.width = std::stoi(supportedResolutionsNodeOnlineonlineItem["Width"].asString());
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Height"].isNull())
|
||||
onlineItemObject.height = std::stoi(supportedResolutionsNodeOnlineonlineItem["Height"].asString());
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Desc"].isNull())
|
||||
onlineItemObject.desc = supportedResolutionsNodeOnlineonlineItem["Desc"].asString();
|
||||
listItemObject.supportedResolutions.online.push_back(onlineItemObject);
|
||||
}
|
||||
data_.list.push_back(listItemObject);
|
||||
}
|
||||
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 QueryAvatarListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAvatarListResult::Data QueryAvatarListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAvatarListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAvatarListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
avatar/src/model/QueryAvatarRequest.cc
Normal file
45
avatar/src/model/QueryAvatarRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/QueryAvatarRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::QueryAvatarRequest;
|
||||
|
||||
QueryAvatarRequest::QueryAvatarRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "QueryAvatar") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
QueryAvatarRequest::~QueryAvatarRequest() {}
|
||||
|
||||
std::string QueryAvatarRequest::getCode() const {
|
||||
return code_;
|
||||
}
|
||||
|
||||
void QueryAvatarRequest::setCode(const std::string &code) {
|
||||
code_ = code;
|
||||
setParameter(std::string("Code"), code);
|
||||
}
|
||||
|
||||
long QueryAvatarRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void QueryAvatarRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
108
avatar/src/model/QueryAvatarResult.cc
Normal file
108
avatar/src/model/QueryAvatarResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/QueryAvatarResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
QueryAvatarResult::QueryAvatarResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAvatarResult::QueryAvatarResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAvatarResult::~QueryAvatarResult()
|
||||
{}
|
||||
|
||||
void QueryAvatarResult::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["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Portrait"].isNull())
|
||||
data_.portrait = dataNode["Portrait"].asString();
|
||||
if(!dataNode["Image"].isNull())
|
||||
data_.image = dataNode["Image"].asString();
|
||||
if(!dataNode["ModelType"].isNull())
|
||||
data_.modelType = dataNode["ModelType"].asString();
|
||||
if(!dataNode["AvatarType"].isNull())
|
||||
data_.avatarType = dataNode["AvatarType"].asString();
|
||||
auto supportedResolutionsNode = dataNode["SupportedResolutions"];
|
||||
auto allOfflineNode = supportedResolutionsNode["Offline"]["offlineItem"];
|
||||
for (auto supportedResolutionsNodeOfflineofflineItem : allOfflineNode)
|
||||
{
|
||||
Data::SupportedResolutions::OfflineItem offlineItemObject;
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Width"].isNull())
|
||||
offlineItemObject.width = std::stoi(supportedResolutionsNodeOfflineofflineItem["Width"].asString());
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Height"].isNull())
|
||||
offlineItemObject.height = std::stoi(supportedResolutionsNodeOfflineofflineItem["Height"].asString());
|
||||
if(!supportedResolutionsNodeOfflineofflineItem["Desc"].isNull())
|
||||
offlineItemObject.desc = supportedResolutionsNodeOfflineofflineItem["Desc"].asString();
|
||||
data_.supportedResolutions.offline.push_back(offlineItemObject);
|
||||
}
|
||||
auto allOnlineNode = supportedResolutionsNode["Online"]["onlineItem"];
|
||||
for (auto supportedResolutionsNodeOnlineonlineItem : allOnlineNode)
|
||||
{
|
||||
Data::SupportedResolutions::OnlineItem onlineItemObject;
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Width"].isNull())
|
||||
onlineItemObject.width = std::stoi(supportedResolutionsNodeOnlineonlineItem["Width"].asString());
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Height"].isNull())
|
||||
onlineItemObject.height = std::stoi(supportedResolutionsNodeOnlineonlineItem["Height"].asString());
|
||||
if(!supportedResolutionsNodeOnlineonlineItem["Desc"].isNull())
|
||||
onlineItemObject.desc = supportedResolutionsNodeOnlineonlineItem["Desc"].asString();
|
||||
data_.supportedResolutions.online.push_back(onlineItemObject);
|
||||
}
|
||||
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 QueryAvatarResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAvatarResult::Data QueryAvatarResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAvatarResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAvatarResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
83
avatar/src/model/SendCommandRequest.cc
Normal file
83
avatar/src/model/SendCommandRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/SendCommandRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendCommandRequest;
|
||||
|
||||
SendCommandRequest::SendCommandRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendCommand") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendCommandRequest::~SendCommandRequest() {}
|
||||
|
||||
bool SendCommandRequest::getFeedback() const {
|
||||
return feedback_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setFeedback(bool feedback) {
|
||||
feedback_ = feedback;
|
||||
setParameter(std::string("Feedback"), feedback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getCode() const {
|
||||
return code_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setCode(const std::string &code) {
|
||||
code_ = code;
|
||||
setParameter(std::string("Code"), code);
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getUniqueCode() const {
|
||||
return uniqueCode_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setUniqueCode(const std::string &uniqueCode) {
|
||||
uniqueCode_ = uniqueCode;
|
||||
setParameter(std::string("UniqueCode"), uniqueCode);
|
||||
}
|
||||
|
||||
long SendCommandRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SendCommandRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> SendCommandRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SendCommandRequest::setContent(const std::map<std::string, std::string> &content) {
|
||||
content_ = content;
|
||||
for(auto const &iter1 : content) {
|
||||
setParameter(std::string("Content") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
75
avatar/src/model/SendCommandResult.cc
Normal file
75
avatar/src/model/SendCommandResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/SendCommandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SendCommandResult::SendCommandResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendCommandResult::SendCommandResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendCommandResult::~SendCommandResult()
|
||||
{}
|
||||
|
||||
void SendCommandResult::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["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].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 SendCommandResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SendCommandResult::Data SendCommandResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SendCommandResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendCommandResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,17 @@ void SendMessageRequest::setFeedback(bool feedback) {
|
||||
setParameter(std::string("Feedback"), feedback ? "true" : "false");
|
||||
}
|
||||
|
||||
SendMessageRequest::StreamExtension SendMessageRequest::getStreamExtension() const {
|
||||
return streamExtension_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setStreamExtension(const SendMessageRequest::StreamExtension &streamExtension) {
|
||||
streamExtension_ = streamExtension;
|
||||
setParameter(std::string("StreamExtension") + ".IsStream", streamExtension.isStream ? "true" : "false");
|
||||
setParameter(std::string("StreamExtension") + ".Index", std::to_string(streamExtension.index));
|
||||
setParameter(std::string("StreamExtension") + ".Position", streamExtension.position);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTextRequest() const {
|
||||
return textRequest_;
|
||||
}
|
||||
|
||||
92
avatar/src/model/SendTextRequest.cc
Normal file
92
avatar/src/model/SendTextRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/SendTextRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendTextRequest;
|
||||
|
||||
SendTextRequest::SendTextRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendText") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendTextRequest::~SendTextRequest() {}
|
||||
|
||||
bool SendTextRequest::getFeedback() const {
|
||||
return feedback_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setFeedback(bool feedback) {
|
||||
feedback_ = feedback;
|
||||
setParameter(std::string("Feedback"), feedback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getUniqueCode() const {
|
||||
return uniqueCode_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setUniqueCode(const std::string &uniqueCode) {
|
||||
uniqueCode_ = uniqueCode;
|
||||
setParameter(std::string("UniqueCode"), uniqueCode);
|
||||
}
|
||||
|
||||
SendTextRequest::StreamExtension SendTextRequest::getStreamExtension() const {
|
||||
return streamExtension_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setStreamExtension(const SendTextRequest::StreamExtension &streamExtension) {
|
||||
streamExtension_ = streamExtension;
|
||||
setParameter(std::string("StreamExtension") + ".IsStream", streamExtension.isStream ? "true" : "false");
|
||||
setParameter(std::string("StreamExtension") + ".Index", std::to_string(streamExtension.index));
|
||||
setParameter(std::string("StreamExtension") + ".Position", streamExtension.position);
|
||||
}
|
||||
|
||||
long SendTextRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SendTextRequest::getInterrupt() const {
|
||||
return interrupt_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setInterrupt(bool interrupt) {
|
||||
interrupt_ = interrupt;
|
||||
setParameter(std::string("Interrupt"), interrupt ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::string SendTextRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
void SendTextRequest::setText(const std::string &text) {
|
||||
text_ = text;
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
@@ -14,53 +14,62 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ocr/model/TrimDocumentResult.h>
|
||||
#include <alibabacloud/avatar/model/SendTextResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ocr;
|
||||
using namespace AlibabaCloud::Ocr::Model;
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
TrimDocumentResult::TrimDocumentResult() :
|
||||
SendTextResult::SendTextResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TrimDocumentResult::TrimDocumentResult(const std::string &payload) :
|
||||
SendTextResult::SendTextResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TrimDocumentResult::~TrimDocumentResult()
|
||||
SendTextResult::~SendTextResult()
|
||||
{}
|
||||
|
||||
void TrimDocumentResult::parse(const std::string &payload)
|
||||
void SendTextResult::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["Content"].isNull())
|
||||
data_.content = dataNode["Content"].asString();
|
||||
if(!dataNode["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].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 TrimDocumentResult::getMessage()const
|
||||
std::string SendTextResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TrimDocumentResult::Data TrimDocumentResult::getData()const
|
||||
SendTextResult::Data SendTextResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TrimDocumentResult::getCode()const
|
||||
std::string SendTextResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendTextResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
avatar/src/model/SendVamlRequest.cc
Normal file
54
avatar/src/model/SendVamlRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SendVamlRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SendVamlRequest;
|
||||
|
||||
SendVamlRequest::SendVamlRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SendVaml") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendVamlRequest::~SendVamlRequest() {}
|
||||
|
||||
long SendVamlRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SendVamlRequest::getSessionId() const {
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setSessionId(const std::string &sessionId) {
|
||||
sessionId_ = sessionId;
|
||||
setParameter(std::string("SessionId"), sessionId);
|
||||
}
|
||||
|
||||
std::string SendVamlRequest::getVaml() const {
|
||||
return vaml_;
|
||||
}
|
||||
|
||||
void SendVamlRequest::setVaml(const std::string &vaml) {
|
||||
vaml_ = vaml;
|
||||
setParameter(std::string("Vaml"), vaml);
|
||||
}
|
||||
|
||||
75
avatar/src/model/SendVamlResult.cc
Normal file
75
avatar/src/model/SendVamlResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/SendVamlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SendVamlResult::SendVamlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendVamlResult::SendVamlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendVamlResult::~SendVamlResult()
|
||||
{}
|
||||
|
||||
void SendVamlResult::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["SessionId"].isNull())
|
||||
data_.sessionId = dataNode["SessionId"].asString();
|
||||
if(!dataNode["UniqueCode"].isNull())
|
||||
data_.uniqueCode = dataNode["UniqueCode"].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 SendVamlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SendVamlResult::Data SendVamlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SendVamlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SendVamlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
129
avatar/src/model/SubmitAudioTo2DAvatarVideoTaskRequest.cc
Normal file
129
avatar/src/model/SubmitAudioTo2DAvatarVideoTaskRequest.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* 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/SubmitAudioTo2DAvatarVideoTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SubmitAudioTo2DAvatarVideoTaskRequest;
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::SubmitAudioTo2DAvatarVideoTaskRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SubmitAudioTo2DAvatarVideoTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::~SubmitAudioTo2DAvatarVideoTaskRequest() {}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::App SubmitAudioTo2DAvatarVideoTaskRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setApp(const SubmitAudioTo2DAvatarVideoTaskRequest::App &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo2DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo2DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
SubmitAudioTo2DAvatarVideoTaskRequest::VideoInfo SubmitAudioTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitAudioTo2DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitAudioTo2DAvatarVideoTaskRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitAudioTo2DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo2DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/avatar/model/SubmitTextToSignVideoTaskResult.h>
|
||||
#include <alibabacloud/avatar/model/SubmitAudioTo2DAvatarVideoTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SubmitTextToSignVideoTaskResult::SubmitTextToSignVideoTaskResult() :
|
||||
SubmitAudioTo2DAvatarVideoTaskResult::SubmitAudioTo2DAvatarVideoTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitTextToSignVideoTaskResult::SubmitTextToSignVideoTaskResult(const std::string &payload) :
|
||||
SubmitAudioTo2DAvatarVideoTaskResult::SubmitAudioTo2DAvatarVideoTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitTextToSignVideoTaskResult::~SubmitTextToSignVideoTaskResult()
|
||||
SubmitAudioTo2DAvatarVideoTaskResult::~SubmitAudioTo2DAvatarVideoTaskResult()
|
||||
{}
|
||||
|
||||
void SubmitTextToSignVideoTaskResult::parse(const std::string &payload)
|
||||
void SubmitAudioTo2DAvatarVideoTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -51,22 +51,22 @@ void SubmitTextToSignVideoTaskResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitTextToSignVideoTaskResult::getMessage()const
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitTextToSignVideoTaskResult::Data SubmitTextToSignVideoTaskResult::getData()const
|
||||
SubmitAudioTo2DAvatarVideoTaskResult::Data SubmitAudioTo2DAvatarVideoTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitTextToSignVideoTaskResult::getCode()const
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SubmitTextToSignVideoTaskResult::getSuccess()const
|
||||
std::string SubmitAudioTo2DAvatarVideoTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
132
avatar/src/model/SubmitAudioTo3DAvatarVideoTaskRequest.cc
Normal file
132
avatar/src/model/SubmitAudioTo3DAvatarVideoTaskRequest.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* 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/SubmitAudioTo3DAvatarVideoTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SubmitAudioTo3DAvatarVideoTaskRequest;
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::SubmitAudioTo3DAvatarVideoTaskRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SubmitAudioTo3DAvatarVideoTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::~SubmitAudioTo3DAvatarVideoTaskRequest() {}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::App SubmitAudioTo3DAvatarVideoTaskRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setApp(const SubmitAudioTo3DAvatarVideoTaskRequest::App &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo SubmitAudioTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitAudioTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
setParameter(std::string("AvatarInfo") + ".IndustryCode", avatarInfo.industryCode);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskRequest::VideoInfo SubmitAudioTo3DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setVideoInfo(const SubmitAudioTo3DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitAudioTo3DAvatarVideoTaskRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitAudioTo3DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
73
avatar/src/model/SubmitAudioTo3DAvatarVideoTaskResult.cc
Normal file
73
avatar/src/model/SubmitAudioTo3DAvatarVideoTaskResult.cc
Normal file
@@ -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/SubmitAudioTo3DAvatarVideoTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Avatar;
|
||||
using namespace AlibabaCloud::Avatar::Model;
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskResult::SubmitAudioTo3DAvatarVideoTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskResult::SubmitAudioTo3DAvatarVideoTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskResult::~SubmitAudioTo3DAvatarVideoTaskResult()
|
||||
{}
|
||||
|
||||
void SubmitAudioTo3DAvatarVideoTaskResult::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["TaskUuid"].isNull())
|
||||
data_.taskUuid = dataNode["TaskUuid"].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();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitAudioTo3DAvatarVideoTaskResult::Data SubmitAudioTo3DAvatarVideoTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SubmitAudioTo3DAvatarVideoTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -34,17 +34,6 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setApp(const SubmitTextTo2DAvatarVide
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo SubmitTextTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::AudioInfo SubmitTextTo2DAvatarVideoTaskRequest::getAudioInfo() const {
|
||||
return audioInfo_;
|
||||
}
|
||||
@@ -66,6 +55,46 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo2DAva
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo SubmitTextTo2DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo2DAvatarVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".BackgroundImageUrl", videoInfo.backgroundImageUrl);
|
||||
setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitTextTo2DAvatarVideoTaskRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
@@ -75,6 +104,24 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitTextTo2DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
@@ -84,12 +131,12 @@ void SubmitTextTo2DAvatarVideoTaskRequest::setText(const std::string &text) {
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
std::string SubmitTextTo2DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitTextTo2DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,48 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setApp(const SubmitTextTo3DAvatarVide
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AudioInfo SubmitTextTo3DAvatarVideoTaskRequest::getAudioInfo() const {
|
||||
return audioInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAudioInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AudioInfo &audioInfo) {
|
||||
audioInfo_ = audioInfo;
|
||||
setParameter(std::string("AudioInfo") + ".Voice", audioInfo.voice);
|
||||
setParameter(std::string("AudioInfo") + ".Volume", std::to_string(audioInfo.volume));
|
||||
setParameter(std::string("AudioInfo") + ".SpeechRate", std::to_string(audioInfo.speechRate));
|
||||
setParameter(std::string("AudioInfo") + ".PitchRate", std::to_string(audioInfo.pitchRate));
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo SubmitTextTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
setParameter(std::string("AvatarInfo") + ".IndustryCode", avatarInfo.industryCode);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getExtParams() const {
|
||||
return extParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setExtParams(const std::string &extParams) {
|
||||
extParams_ = extParams;
|
||||
setParameter(std::string("ExtParams"), extParams);
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::VideoInfo SubmitTextTo3DAvatarVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
@@ -47,15 +89,13 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setVideoInfo(const SubmitTextTo3DAvat
|
||||
setParameter(std::string("VideoInfo") + ".AlphaFormat", std::to_string(videoInfo.alphaFormat));
|
||||
}
|
||||
|
||||
SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo SubmitTextTo3DAvatarVideoTaskRequest::getAvatarInfo() const {
|
||||
return avatarInfo_;
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getCallbackParams() const {
|
||||
return callbackParams_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setAvatarInfo(const SubmitTextTo3DAvatarVideoTaskRequest::AvatarInfo &avatarInfo) {
|
||||
avatarInfo_ = avatarInfo;
|
||||
setParameter(std::string("AvatarInfo") + ".Code", avatarInfo.code);
|
||||
setParameter(std::string("AvatarInfo") + ".Locate", std::to_string(avatarInfo.locate));
|
||||
setParameter(std::string("AvatarInfo") + ".Angle", std::to_string(avatarInfo.angle));
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallbackParams(const std::string &callbackParams) {
|
||||
callbackParams_ = callbackParams;
|
||||
setParameter(std::string("CallbackParams"), callbackParams);
|
||||
}
|
||||
|
||||
long SubmitTextTo3DAvatarVideoTaskRequest::getTenantId() const {
|
||||
@@ -67,6 +107,24 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setTenantId(long tenantId) {
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
bool SubmitTextTo3DAvatarVideoTaskRequest::getCallback() const {
|
||||
return callback_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallback(bool callback) {
|
||||
callback_ = callback;
|
||||
setParameter(std::string("Callback"), callback ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getExtParams_CLS() const {
|
||||
return extParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setExtParams_CLS(const std::string &extParams_CLS) {
|
||||
extParams_CLS_ = extParams_CLS;
|
||||
setParameter(std::string("ExtParams_CLS"), extParams_CLS);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
@@ -76,12 +134,12 @@ void SubmitTextTo3DAvatarVideoTaskRequest::setText(const std::string &text) {
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
std::string SubmitTextTo3DAvatarVideoTaskRequest::getCallbackParams_CLS() const {
|
||||
return callbackParams_CLS_;
|
||||
}
|
||||
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
void SubmitTextTo3DAvatarVideoTaskRequest::setCallbackParams_CLS(const std::string &callbackParams_CLS) {
|
||||
callbackParams_CLS_ = callbackParams_CLS;
|
||||
setParameter(std::string("CallbackParams_CLS"), callbackParams_CLS);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* 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/SubmitTextToSignVideoTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Avatar::Model::SubmitTextToSignVideoTaskRequest;
|
||||
|
||||
SubmitTextToSignVideoTaskRequest::SubmitTextToSignVideoTaskRequest()
|
||||
: RpcServiceRequest("avatar", "2022-01-30", "SubmitTextToSignVideoTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitTextToSignVideoTaskRequest::~SubmitTextToSignVideoTaskRequest() {}
|
||||
|
||||
SubmitTextToSignVideoTaskRequest::App SubmitTextToSignVideoTaskRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void SubmitTextToSignVideoTaskRequest::setApp(const SubmitTextToSignVideoTaskRequest::App &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App") + ".AppId", app.appId);
|
||||
}
|
||||
|
||||
SubmitTextToSignVideoTaskRequest::VideoInfo SubmitTextToSignVideoTaskRequest::getVideoInfo() const {
|
||||
return videoInfo_;
|
||||
}
|
||||
|
||||
void SubmitTextToSignVideoTaskRequest::setVideoInfo(const SubmitTextToSignVideoTaskRequest::VideoInfo &videoInfo) {
|
||||
videoInfo_ = videoInfo;
|
||||
setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
|
||||
setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
|
||||
}
|
||||
|
||||
long SubmitTextToSignVideoTaskRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void SubmitTextToSignVideoTaskRequest::setTenantId(long tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("TenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
std::string SubmitTextToSignVideoTaskRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
void SubmitTextToSignVideoTaskRequest::setText(const std::string &text) {
|
||||
text_ = text;
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
std::string SubmitTextToSignVideoTaskRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitTextToSignVideoTaskRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
void setCenId(const std::string &cenId);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getTrRegionId() const;
|
||||
void setTrRegionId(const std::string &trRegionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -51,6 +53,7 @@ private:
|
||||
long resourceOwnerId_;
|
||||
std::string cenId_;
|
||||
int pageNumber_;
|
||||
std::string trRegionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -41,8 +41,10 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string status;
|
||||
std::string transitRouterMulticastDomainId;
|
||||
std::string cenId;
|
||||
std::string transitRouterMulticastDomainName;
|
||||
std::string transitRouterMulticastDomainDescription;
|
||||
std::string regionId;
|
||||
std::vector<TransitRouterMulticastDomain::Tag> tags;
|
||||
std::string transitRouterId;
|
||||
};
|
||||
|
||||
@@ -34,10 +34,21 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct TransitRouterRouteEntry
|
||||
{
|
||||
struct PathAttributes
|
||||
{
|
||||
std::string originRouteType;
|
||||
int preference;
|
||||
std::string originInstanceType;
|
||||
std::string originInstanceId;
|
||||
std::vector<std::string> communities1;
|
||||
std::vector<std::string> asPaths2;
|
||||
};
|
||||
std::string transitRouterRouteEntryOriginResourceType;
|
||||
std::string transitRouterRouteEntryNextHopId;
|
||||
std::string transitRouterRouteEntryOriginResourceId;
|
||||
std::string prefixListId;
|
||||
std::vector<std::string> communities;
|
||||
PathAttributes pathAttributes;
|
||||
std::string createTime;
|
||||
std::string transitRouterRouteEntryNextHopType;
|
||||
bool operationalMode;
|
||||
@@ -45,9 +56,11 @@ namespace AlibabaCloud
|
||||
std::string transitRouterRouteEntryNextHopResourceId;
|
||||
std::string transitRouterRouteEntryNextHopResourceType;
|
||||
std::string transitRouterRouteEntryType;
|
||||
int preference;
|
||||
std::string transitRouterRouteEntryDescription;
|
||||
std::string transitRouterRouteEntryName;
|
||||
std::string tag;
|
||||
std::vector<std::string> asPaths;
|
||||
std::string transitRouterRouteEntryId;
|
||||
std::string transitRouterRouteEntryStatus;
|
||||
};
|
||||
|
||||
@@ -52,6 +52,15 @@ void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber)
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCenInterRegionBandwidthLimitsRequest::getTrRegionId() const {
|
||||
return trRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCenInterRegionBandwidthLimitsRequest::setTrRegionId(const std::string &trRegionId) {
|
||||
trRegionId_ = trRegionId;
|
||||
setParameter(std::string("TrRegionId"), trRegionId);
|
||||
}
|
||||
|
||||
int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,10 @@ void ListTransitRouterMulticastDomainsResult::parse(const std::string &payload)
|
||||
transitRouterMulticastDomainsObject.status = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Status"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["TransitRouterId"].isNull())
|
||||
transitRouterMulticastDomainsObject.transitRouterId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["TransitRouterId"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["RegionId"].isNull())
|
||||
transitRouterMulticastDomainsObject.regionId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["RegionId"].asString();
|
||||
if(!valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["CenId"].isNull())
|
||||
transitRouterMulticastDomainsObject.cenId = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["CenId"].asString();
|
||||
auto allTagsNode = valueTransitRouterMulticastDomainsTransitRouterMulticastDomain["Tags"]["Tag"];
|
||||
for (auto valueTransitRouterMulticastDomainsTransitRouterMulticastDomainTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -75,6 +75,29 @@ void ListTransitRouterRouteEntriesResult::parse(const std::string &payload)
|
||||
transitRouterRouteEntriesObject.transitRouterRouteEntryOriginResourceId = valueTransitRouterRouteEntriesTransitRouterRouteEntry["TransitRouterRouteEntryOriginResourceId"].asString();
|
||||
if(!valueTransitRouterRouteEntriesTransitRouterRouteEntry["PrefixListId"].isNull())
|
||||
transitRouterRouteEntriesObject.prefixListId = valueTransitRouterRouteEntriesTransitRouterRouteEntry["PrefixListId"].asString();
|
||||
if(!valueTransitRouterRouteEntriesTransitRouterRouteEntry["Preference"].isNull())
|
||||
transitRouterRouteEntriesObject.preference = std::stoi(valueTransitRouterRouteEntriesTransitRouterRouteEntry["Preference"].asString());
|
||||
auto pathAttributesNode = value["PathAttributes"];
|
||||
if(!pathAttributesNode["OriginInstanceId"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originInstanceId = pathAttributesNode["OriginInstanceId"].asString();
|
||||
if(!pathAttributesNode["OriginInstanceType"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originInstanceType = pathAttributesNode["OriginInstanceType"].asString();
|
||||
if(!pathAttributesNode["OriginRouteType"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.originRouteType = pathAttributesNode["OriginRouteType"].asString();
|
||||
if(!pathAttributesNode["Preference"].isNull())
|
||||
transitRouterRouteEntriesObject.pathAttributes.preference = std::stoi(pathAttributesNode["Preference"].asString());
|
||||
auto allCommunities1 = pathAttributesNode["Communities"]["Community"];
|
||||
for (auto value : allCommunities1)
|
||||
transitRouterRouteEntriesObject.pathAttributes.communities1.push_back(value.asString());
|
||||
auto allAsPaths2 = pathAttributesNode["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths2)
|
||||
transitRouterRouteEntriesObject.pathAttributes.asPaths2.push_back(value.asString());
|
||||
auto allCommunities = value["Communities"]["Community"];
|
||||
for (auto value : allCommunities)
|
||||
transitRouterRouteEntriesObject.communities.push_back(value.asString());
|
||||
auto allAsPaths = value["AsPaths"]["AsPath"];
|
||||
for (auto value : allAsPaths)
|
||||
transitRouterRouteEntriesObject.asPaths.push_back(value.asString());
|
||||
transitRouterRouteEntries_.push_back(transitRouterRouteEntriesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::vector<std::string> vSwitchs;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string vpcId;
|
||||
std::string iSP;
|
||||
|
||||
@@ -53,6 +53,8 @@ void GetWirelessCloudConnectorResult::parse(const std::string &payload)
|
||||
netLinksObject.description = valueNetLinksNetLink["Description"].asString();
|
||||
if(!valueNetLinksNetLink["Status"].isNull())
|
||||
netLinksObject.status = valueNetLinksNetLink["Status"].asString();
|
||||
if(!valueNetLinksNetLink["Type"].isNull())
|
||||
netLinksObject.type = valueNetLinksNetLink["Type"].asString();
|
||||
if(!valueNetLinksNetLink["APN"].isNull())
|
||||
netLinksObject.aPN = valueNetLinksNetLink["APN"].asString();
|
||||
if(!valueNetLinksNetLink["ISP"].isNull())
|
||||
|
||||
@@ -89,6 +89,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/CreateQualityRuleResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateRemindRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateRemindResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateResourceFileRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateResourceFileResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableRequest.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableResult.h
|
||||
include/alibabacloud/dataworks-public/model/CreateTableLevelRequest.h
|
||||
@@ -117,6 +119,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/DeleteFolderResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteFromMetaCategoryRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteFromMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteLineageRelationRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteLineageRelationResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteMetaCategoryRequest.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteMetaCategoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/DeleteMetaCollectionRequest.h
|
||||
@@ -353,6 +357,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/ListInstanceHistoryResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListInstancesRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListInstancesResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListLineageRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListLineageResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListManualDagInstancesRequest.h
|
||||
include/alibabacloud/dataworks-public/model/ListManualDagInstancesResult.h
|
||||
include/alibabacloud/dataworks-public/model/ListMetaCollectionEntitiesRequest.h
|
||||
@@ -419,6 +425,8 @@ set(dataworks-public_public_header_model
|
||||
include/alibabacloud/dataworks-public/model/QueryDISyncTaskConfigProcessResultResult.h
|
||||
include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.h
|
||||
include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h
|
||||
include/alibabacloud/dataworks-public/model/RegisterLineageRelationRequest.h
|
||||
include/alibabacloud/dataworks-public/model/RegisterLineageRelationResult.h
|
||||
include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h
|
||||
include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h
|
||||
include/alibabacloud/dataworks-public/model/RestartInstanceRequest.h
|
||||
@@ -598,6 +606,8 @@ set(dataworks-public_src
|
||||
src/model/CreateQualityRuleResult.cc
|
||||
src/model/CreateRemindRequest.cc
|
||||
src/model/CreateRemindResult.cc
|
||||
src/model/CreateResourceFileRequest.cc
|
||||
src/model/CreateResourceFileResult.cc
|
||||
src/model/CreateTableRequest.cc
|
||||
src/model/CreateTableResult.cc
|
||||
src/model/CreateTableLevelRequest.cc
|
||||
@@ -626,6 +636,8 @@ set(dataworks-public_src
|
||||
src/model/DeleteFolderResult.cc
|
||||
src/model/DeleteFromMetaCategoryRequest.cc
|
||||
src/model/DeleteFromMetaCategoryResult.cc
|
||||
src/model/DeleteLineageRelationRequest.cc
|
||||
src/model/DeleteLineageRelationResult.cc
|
||||
src/model/DeleteMetaCategoryRequest.cc
|
||||
src/model/DeleteMetaCategoryResult.cc
|
||||
src/model/DeleteMetaCollectionRequest.cc
|
||||
@@ -862,6 +874,8 @@ set(dataworks-public_src
|
||||
src/model/ListInstanceHistoryResult.cc
|
||||
src/model/ListInstancesRequest.cc
|
||||
src/model/ListInstancesResult.cc
|
||||
src/model/ListLineageRequest.cc
|
||||
src/model/ListLineageResult.cc
|
||||
src/model/ListManualDagInstancesRequest.cc
|
||||
src/model/ListManualDagInstancesResult.cc
|
||||
src/model/ListMetaCollectionEntitiesRequest.cc
|
||||
@@ -928,6 +942,8 @@ set(dataworks-public_src
|
||||
src/model/QueryDISyncTaskConfigProcessResultResult.cc
|
||||
src/model/QueryPublicModelEngineRequest.cc
|
||||
src/model/QueryPublicModelEngineResult.cc
|
||||
src/model/RegisterLineageRelationRequest.cc
|
||||
src/model/RegisterLineageRelationResult.cc
|
||||
src/model/RemoveProjectMemberFromRoleRequest.cc
|
||||
src/model/RemoveProjectMemberFromRoleResult.cc
|
||||
src/model/RestartInstanceRequest.cc
|
||||
|
||||
@@ -90,6 +90,8 @@
|
||||
#include "model/CreateQualityRuleResult.h"
|
||||
#include "model/CreateRemindRequest.h"
|
||||
#include "model/CreateRemindResult.h"
|
||||
#include "model/CreateResourceFileRequest.h"
|
||||
#include "model/CreateResourceFileResult.h"
|
||||
#include "model/CreateTableRequest.h"
|
||||
#include "model/CreateTableResult.h"
|
||||
#include "model/CreateTableLevelRequest.h"
|
||||
@@ -118,6 +120,8 @@
|
||||
#include "model/DeleteFolderResult.h"
|
||||
#include "model/DeleteFromMetaCategoryRequest.h"
|
||||
#include "model/DeleteFromMetaCategoryResult.h"
|
||||
#include "model/DeleteLineageRelationRequest.h"
|
||||
#include "model/DeleteLineageRelationResult.h"
|
||||
#include "model/DeleteMetaCategoryRequest.h"
|
||||
#include "model/DeleteMetaCategoryResult.h"
|
||||
#include "model/DeleteMetaCollectionRequest.h"
|
||||
@@ -354,6 +358,8 @@
|
||||
#include "model/ListInstanceHistoryResult.h"
|
||||
#include "model/ListInstancesRequest.h"
|
||||
#include "model/ListInstancesResult.h"
|
||||
#include "model/ListLineageRequest.h"
|
||||
#include "model/ListLineageResult.h"
|
||||
#include "model/ListManualDagInstancesRequest.h"
|
||||
#include "model/ListManualDagInstancesResult.h"
|
||||
#include "model/ListMetaCollectionEntitiesRequest.h"
|
||||
@@ -420,6 +426,8 @@
|
||||
#include "model/QueryDISyncTaskConfigProcessResultResult.h"
|
||||
#include "model/QueryPublicModelEngineRequest.h"
|
||||
#include "model/QueryPublicModelEngineResult.h"
|
||||
#include "model/RegisterLineageRelationRequest.h"
|
||||
#include "model/RegisterLineageRelationResult.h"
|
||||
#include "model/RemoveProjectMemberFromRoleRequest.h"
|
||||
#include "model/RemoveProjectMemberFromRoleResult.h"
|
||||
#include "model/RestartInstanceRequest.h"
|
||||
@@ -639,6 +647,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateRemindResult> CreateRemindOutcome;
|
||||
typedef std::future<CreateRemindOutcome> CreateRemindOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateRemindRequest&, const CreateRemindOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRemindAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourceFileResult> CreateResourceFileOutcome;
|
||||
typedef std::future<CreateResourceFileOutcome> CreateResourceFileOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateResourceFileRequest&, const CreateResourceFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTableResult> CreateTableOutcome;
|
||||
typedef std::future<CreateTableOutcome> CreateTableOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateTableRequest&, const CreateTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTableAsyncHandler;
|
||||
@@ -681,6 +692,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteFromMetaCategoryResult> DeleteFromMetaCategoryOutcome;
|
||||
typedef std::future<DeleteFromMetaCategoryOutcome> DeleteFromMetaCategoryOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteFromMetaCategoryRequest&, const DeleteFromMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFromMetaCategoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLineageRelationResult> DeleteLineageRelationOutcome;
|
||||
typedef std::future<DeleteLineageRelationOutcome> DeleteLineageRelationOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteLineageRelationRequest&, const DeleteLineageRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLineageRelationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMetaCategoryResult> DeleteMetaCategoryOutcome;
|
||||
typedef std::future<DeleteMetaCategoryOutcome> DeleteMetaCategoryOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::DeleteMetaCategoryRequest&, const DeleteMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMetaCategoryAsyncHandler;
|
||||
@@ -1035,6 +1049,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
|
||||
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListLineageResult> ListLineageOutcome;
|
||||
typedef std::future<ListLineageOutcome> ListLineageOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListLineageRequest&, const ListLineageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLineageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListManualDagInstancesResult> ListManualDagInstancesOutcome;
|
||||
typedef std::future<ListManualDagInstancesOutcome> ListManualDagInstancesOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::ListManualDagInstancesRequest&, const ListManualDagInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListManualDagInstancesAsyncHandler;
|
||||
@@ -1134,6 +1151,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryPublicModelEngineResult> QueryPublicModelEngineOutcome;
|
||||
typedef std::future<QueryPublicModelEngineOutcome> QueryPublicModelEngineOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::QueryPublicModelEngineRequest&, const QueryPublicModelEngineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPublicModelEngineAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterLineageRelationResult> RegisterLineageRelationOutcome;
|
||||
typedef std::future<RegisterLineageRelationOutcome> RegisterLineageRelationOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::RegisterLineageRelationRequest&, const RegisterLineageRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterLineageRelationAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveProjectMemberFromRoleResult> RemoveProjectMemberFromRoleOutcome;
|
||||
typedef std::future<RemoveProjectMemberFromRoleOutcome> RemoveProjectMemberFromRoleOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::RemoveProjectMemberFromRoleRequest&, const RemoveProjectMemberFromRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveProjectMemberFromRoleAsyncHandler;
|
||||
@@ -1403,6 +1423,9 @@ namespace AlibabaCloud
|
||||
CreateRemindOutcome createRemind(const Model::CreateRemindRequest &request)const;
|
||||
void createRemindAsync(const Model::CreateRemindRequest& request, const CreateRemindAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRemindOutcomeCallable createRemindCallable(const Model::CreateRemindRequest& request) const;
|
||||
CreateResourceFileOutcome createResourceFile(const Model::CreateResourceFileRequest &request)const;
|
||||
void createResourceFileAsync(const Model::CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourceFileOutcomeCallable createResourceFileCallable(const Model::CreateResourceFileRequest& request) const;
|
||||
CreateTableOutcome createTable(const Model::CreateTableRequest &request)const;
|
||||
void createTableAsync(const Model::CreateTableRequest& request, const CreateTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTableOutcomeCallable createTableCallable(const Model::CreateTableRequest& request) const;
|
||||
@@ -1445,6 +1468,9 @@ namespace AlibabaCloud
|
||||
DeleteFromMetaCategoryOutcome deleteFromMetaCategory(const Model::DeleteFromMetaCategoryRequest &request)const;
|
||||
void deleteFromMetaCategoryAsync(const Model::DeleteFromMetaCategoryRequest& request, const DeleteFromMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFromMetaCategoryOutcomeCallable deleteFromMetaCategoryCallable(const Model::DeleteFromMetaCategoryRequest& request) const;
|
||||
DeleteLineageRelationOutcome deleteLineageRelation(const Model::DeleteLineageRelationRequest &request)const;
|
||||
void deleteLineageRelationAsync(const Model::DeleteLineageRelationRequest& request, const DeleteLineageRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLineageRelationOutcomeCallable deleteLineageRelationCallable(const Model::DeleteLineageRelationRequest& request) const;
|
||||
DeleteMetaCategoryOutcome deleteMetaCategory(const Model::DeleteMetaCategoryRequest &request)const;
|
||||
void deleteMetaCategoryAsync(const Model::DeleteMetaCategoryRequest& request, const DeleteMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMetaCategoryOutcomeCallable deleteMetaCategoryCallable(const Model::DeleteMetaCategoryRequest& request) const;
|
||||
@@ -1799,6 +1825,9 @@ namespace AlibabaCloud
|
||||
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
|
||||
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
|
||||
ListLineageOutcome listLineage(const Model::ListLineageRequest &request)const;
|
||||
void listLineageAsync(const Model::ListLineageRequest& request, const ListLineageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListLineageOutcomeCallable listLineageCallable(const Model::ListLineageRequest& request) const;
|
||||
ListManualDagInstancesOutcome listManualDagInstances(const Model::ListManualDagInstancesRequest &request)const;
|
||||
void listManualDagInstancesAsync(const Model::ListManualDagInstancesRequest& request, const ListManualDagInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListManualDagInstancesOutcomeCallable listManualDagInstancesCallable(const Model::ListManualDagInstancesRequest& request) const;
|
||||
@@ -1898,6 +1927,9 @@ namespace AlibabaCloud
|
||||
QueryPublicModelEngineOutcome queryPublicModelEngine(const Model::QueryPublicModelEngineRequest &request)const;
|
||||
void queryPublicModelEngineAsync(const Model::QueryPublicModelEngineRequest& request, const QueryPublicModelEngineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPublicModelEngineOutcomeCallable queryPublicModelEngineCallable(const Model::QueryPublicModelEngineRequest& request) const;
|
||||
RegisterLineageRelationOutcome registerLineageRelation(const Model::RegisterLineageRelationRequest &request)const;
|
||||
void registerLineageRelationAsync(const Model::RegisterLineageRelationRequest& request, const RegisterLineageRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterLineageRelationOutcomeCallable registerLineageRelationCallable(const Model::RegisterLineageRelationRequest& request) const;
|
||||
RemoveProjectMemberFromRoleOutcome removeProjectMemberFromRole(const Model::RemoveProjectMemberFromRoleRequest &request)const;
|
||||
void removeProjectMemberFromRoleAsync(const Model::RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveProjectMemberFromRoleOutcomeCallable removeProjectMemberFromRoleCallable(const Model::RemoveProjectMemberFromRoleRequest& request) const;
|
||||
|
||||
@@ -37,10 +37,8 @@ namespace AlibabaCloud
|
||||
CreateBaselineResult();
|
||||
explicit CreateBaselineResult(const std::string &payload);
|
||||
~CreateBaselineResult();
|
||||
std::string getDynamicErrorMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
long getData()const;
|
||||
std::string getDynamicErrorCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -48,10 +46,8 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dynamicErrorMessage_;
|
||||
int httpStatusCode_;
|
||||
long data_;
|
||||
std::string dynamicErrorCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
void setAutoRerunIntervalMillis(int autoRerunIntervalMillis);
|
||||
std::string getInputList() const;
|
||||
void setInputList(const std::string &inputList);
|
||||
bool getCreateFolderIfNotExists() const;
|
||||
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
|
||||
std::string getRerunMode() const;
|
||||
void setRerunMode(const std::string &rerunMode);
|
||||
std::string getConnectionName() const;
|
||||
@@ -70,6 +72,8 @@ public:
|
||||
void setAutoRerunTimes(int autoRerunTimes);
|
||||
std::string getCronExpress() const;
|
||||
void setCronExpress(const std::string &cronExpress);
|
||||
bool getIgnoreParentSkipRunningProperty() const;
|
||||
void setIgnoreParentSkipRunningProperty(bool ignoreParentSkipRunningProperty);
|
||||
long getEndEffectDate() const;
|
||||
void setEndEffectDate(long endEffectDate);
|
||||
std::string getFileName() const;
|
||||
@@ -103,6 +107,7 @@ private:
|
||||
std::string owner_;
|
||||
int autoRerunIntervalMillis_;
|
||||
std::string inputList_;
|
||||
bool createFolderIfNotExists_;
|
||||
std::string rerunMode_;
|
||||
std::string connectionName_;
|
||||
std::string outputParameters_;
|
||||
@@ -110,6 +115,7 @@ private:
|
||||
std::string resourceGroupIdentifier_;
|
||||
int autoRerunTimes_;
|
||||
std::string cronExpress_;
|
||||
bool ignoreParentSkipRunningProperty_;
|
||||
long endEffectDate_;
|
||||
std::string fileName_;
|
||||
std::string inputParameters_;
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateResourceFileRequest();
|
||||
~CreateResourceFileRequest();
|
||||
int getFileType() const;
|
||||
void setFileType(int fileType);
|
||||
std::string getContent() const;
|
||||
void setContent(const std::string &content);
|
||||
std::string getResourceFile() const;
|
||||
void setResourceFile(const std::string &resourceFile);
|
||||
std::string getOriginResourceName() const;
|
||||
void setOriginResourceName(const std::string &originResourceName);
|
||||
long getProjectId() const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getStorageURL() const;
|
||||
void setStorageURL(const std::string &storageURL);
|
||||
std::string getOwner() const;
|
||||
void setOwner(const std::string &owner);
|
||||
bool getRegisterToCalcEngine() const;
|
||||
void setRegisterToCalcEngine(bool registerToCalcEngine);
|
||||
bool getUploadMode() const;
|
||||
void setUploadMode(bool uploadMode);
|
||||
std::string getFileName() const;
|
||||
void setFileName(const std::string &fileName);
|
||||
std::string getFileFolderPath() const;
|
||||
void setFileFolderPath(const std::string &fileFolderPath);
|
||||
std::string getFileDescription() const;
|
||||
void setFileDescription(const std::string &fileDescription);
|
||||
|
||||
private:
|
||||
int fileType_;
|
||||
std::string content_;
|
||||
std::string resourceFile_;
|
||||
std::string originResourceName_;
|
||||
long projectId_;
|
||||
std::string storageURL_;
|
||||
std::string owner_;
|
||||
bool registerToCalcEngine_;
|
||||
bool uploadMode_;
|
||||
std::string fileName_;
|
||||
std::string fileFolderPath_;
|
||||
std::string fileDescription_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILEREQUEST_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_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateResourceFileResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateResourceFileResult();
|
||||
explicit CreateResourceFileResult(const std::string &payload);
|
||||
~CreateResourceFileResult();
|
||||
long getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATERESOURCEFILERESULT_H_
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateUdfFileRequest : public RpcServ
|
||||
public:
|
||||
CreateUdfFileRequest();
|
||||
~CreateUdfFileRequest();
|
||||
bool getCreateFolderIfNotExists() const;
|
||||
void setCreateFolderIfNotExists(bool createFolderIfNotExists);
|
||||
std::string getReturnValue() const;
|
||||
void setReturnValue(const std::string &returnValue);
|
||||
std::string getResources() const;
|
||||
@@ -56,6 +58,7 @@ public:
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
bool createFolderIfNotExists_;
|
||||
std::string returnValue_;
|
||||
std::string resources_;
|
||||
std::string functionType_;
|
||||
|
||||
@@ -37,10 +37,8 @@ namespace AlibabaCloud
|
||||
DeleteBaselineResult();
|
||||
explicit DeleteBaselineResult(const std::string &payload);
|
||||
~DeleteBaselineResult();
|
||||
std::string getDynamicErrorMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
bool getData()const;
|
||||
std::string getDynamicErrorCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -48,10 +46,8 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dynamicErrorMessage_;
|
||||
int httpStatusCode_;
|
||||
bool data_;
|
||||
std::string dynamicErrorCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteLineageRelationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteLineageRelationRequest();
|
||||
~DeleteLineageRelationRequest();
|
||||
std::string getSrcEntityQualifiedName() const;
|
||||
void setSrcEntityQualifiedName(const std::string &srcEntityQualifiedName);
|
||||
std::string getDestEntityQualifiedName() const;
|
||||
void setDestEntityQualifiedName(const std::string &destEntityQualifiedName);
|
||||
std::string getRelationshipGuid() const;
|
||||
void setRelationshipGuid(const std::string &relationshipGuid);
|
||||
|
||||
private:
|
||||
std::string srcEntityQualifiedName_;
|
||||
std::string destEntityQualifiedName_;
|
||||
std::string relationshipGuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT DeleteLineageRelationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLineageRelationResult();
|
||||
explicit DeleteLineageRelationResult(const std::string &payload);
|
||||
~DeleteLineageRelationResult();
|
||||
bool getStatus()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool status_;
|
||||
int httpStatusCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_DELETELINEAGERELATIONRESULT_H_
|
||||
@@ -62,8 +62,8 @@ namespace AlibabaCloud
|
||||
long baselineId;
|
||||
std::string owner;
|
||||
std::string baselineType;
|
||||
std::vector<std::string> taskIds;
|
||||
int priority;
|
||||
std::vector<std::string> nodeIds;
|
||||
std::string baselineName;
|
||||
long projectId;
|
||||
bool enabled;
|
||||
@@ -77,10 +77,8 @@ namespace AlibabaCloud
|
||||
GetBaselineResult();
|
||||
explicit GetBaselineResult(const std::string &payload);
|
||||
~GetBaselineResult();
|
||||
std::string getDynamicErrorMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getDynamicErrorCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -88,10 +86,8 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dynamicErrorMessage_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string dynamicErrorCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -62,10 +62,8 @@ namespace AlibabaCloud
|
||||
ListBaselinesResult();
|
||||
explicit ListBaselinesResult(const std::string &payload);
|
||||
~ListBaselinesResult();
|
||||
std::string getDynamicErrorMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getDynamicErrorCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -73,10 +71,8 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dynamicErrorMessage_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string dynamicErrorCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace AlibabaCloud
|
||||
int connectStatus;
|
||||
std::string subType;
|
||||
std::string description;
|
||||
int bindingCalcEngineId;
|
||||
long bindingCalcEngineId;
|
||||
int projectId;
|
||||
std::string gmtModified;
|
||||
std::string _operator;
|
||||
@@ -53,7 +53,7 @@ namespace AlibabaCloud
|
||||
long tenantId;
|
||||
std::string content;
|
||||
std::string dataSourceType;
|
||||
int id;
|
||||
long id;
|
||||
};
|
||||
std::vector<DataSourcesItem> dataSources;
|
||||
int totalCount;
|
||||
|
||||
@@ -34,14 +34,22 @@ public:
|
||||
void setOwner(const std::string &owner);
|
||||
std::string getFileTypes() const;
|
||||
void setFileTypes(const std::string &fileTypes);
|
||||
bool getNeedContent() const;
|
||||
void setNeedContent(bool needContent);
|
||||
bool getNeedAbsoluteFolderPath() const;
|
||||
void setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath);
|
||||
std::string getProjectIdentifier() const;
|
||||
void setProjectIdentifier(const std::string &projectIdentifier);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getFileIdIn() const;
|
||||
void setFileIdIn(const std::string &fileIdIn);
|
||||
std::string getFileFolderPath() const;
|
||||
void setFileFolderPath(const std::string &fileFolderPath);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getExactFileName() const;
|
||||
void setExactFileName(const std::string &exactFileName);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
long getProjectId() const;
|
||||
@@ -54,10 +62,14 @@ public:
|
||||
private:
|
||||
std::string owner_;
|
||||
std::string fileTypes_;
|
||||
bool needContent_;
|
||||
bool needAbsoluteFolderPath_;
|
||||
std::string projectIdentifier_;
|
||||
int pageNumber_;
|
||||
std::string fileIdIn_;
|
||||
std::string fileFolderPath_;
|
||||
int pageSize_;
|
||||
std::string exactFileName_;
|
||||
std::string keyword_;
|
||||
long projectId_;
|
||||
std::string useType_;
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
int fileType;
|
||||
std::string lastEditUser;
|
||||
std::string content;
|
||||
std::string absoluteFolderPath;
|
||||
int commitStatus;
|
||||
long nodeId;
|
||||
bool autoParsing;
|
||||
|
||||
@@ -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_DATAWORKS_PUBLIC_MODEL_LISTLINEAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTLINEAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListLineageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListLineageRequest();
|
||||
~ListLineageRequest();
|
||||
std::string getEntityQualifiedName() const;
|
||||
void setEntityQualifiedName(const std::string &entityQualifiedName);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
std::string getDirection() const;
|
||||
void setDirection(const std::string &direction);
|
||||
|
||||
private:
|
||||
std::string entityQualifiedName_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
std::string keyword_;
|
||||
std::string direction_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTLINEAGEREQUEST_H_
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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_DATAWORKS_PUBLIC_MODEL_LISTLINEAGERESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTLINEAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListLineageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DataEntityListItem
|
||||
{
|
||||
struct Entity
|
||||
{
|
||||
std::string entityContent;
|
||||
long tenantId;
|
||||
std::string qualifiedName;
|
||||
};
|
||||
struct RelationListItem
|
||||
{
|
||||
std::string datasource;
|
||||
std::string type;
|
||||
std::string channel;
|
||||
std::string guid;
|
||||
};
|
||||
Entity entity;
|
||||
std::vector<DataEntityListItem::RelationListItem> relationList;
|
||||
long createTimestamp;
|
||||
};
|
||||
std::string nextToken;
|
||||
std::vector<DataEntityListItem> dataEntityList;
|
||||
};
|
||||
|
||||
|
||||
ListLineageResult();
|
||||
explicit ListLineageResult(const std::string &payload);
|
||||
~ListLineageResult();
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTLINEAGERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RegisterLineageRelationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct LineageRelationRegisterVO {
|
||||
struct DestEntity {
|
||||
std::string parentName;
|
||||
std::string qualifiedName;
|
||||
std::string name;
|
||||
std::string detailUrl;
|
||||
};
|
||||
DestEntity destEntity;
|
||||
long createTimestamp;
|
||||
struct Relationship {
|
||||
std::string type;
|
||||
};
|
||||
Relationship relationship;
|
||||
struct SrcEntity {
|
||||
std::string parentName;
|
||||
std::string qualifiedName;
|
||||
std::string name;
|
||||
std::string detailUrl;
|
||||
};
|
||||
SrcEntity srcEntity;
|
||||
};
|
||||
RegisterLineageRelationRequest();
|
||||
~RegisterLineageRelationRequest();
|
||||
LineageRelationRegisterVO getLineageRelationRegisterVO() const;
|
||||
void setLineageRelationRegisterVO(const LineageRelationRegisterVO &lineageRelationRegisterVO);
|
||||
|
||||
private:
|
||||
LineageRelationRegisterVO lineageRelationRegisterVO_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONRESULT_H_
|
||||
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dataworks_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RegisterLineageRelationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LineageRelation
|
||||
{
|
||||
std::string destEntityQualifiedName;
|
||||
std::string relationshipGuid;
|
||||
std::string srcEntityQualifiedName;
|
||||
};
|
||||
|
||||
|
||||
RegisterLineageRelationResult();
|
||||
explicit RegisterLineageRelationResult(const std::string &payload);
|
||||
~RegisterLineageRelationResult();
|
||||
LineageRelation getLineageRelation()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
LineageRelation lineageRelation_;
|
||||
int httpStatusCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_REGISTERLINEAGERELATIONRESULT_H_
|
||||
@@ -34,6 +34,10 @@ public:
|
||||
void setProjectEnv(const std::string &projectEnv);
|
||||
std::string getProjectName() const;
|
||||
void setProjectName(const std::string &projectName);
|
||||
std::string getStartBizDate() const;
|
||||
void setStartBizDate(const std::string &startBizDate);
|
||||
std::string getEndBizDate() const;
|
||||
void setEndBizDate(const std::string &endBizDate);
|
||||
std::string getDagParameters() const;
|
||||
void setDagParameters(const std::string &dagParameters);
|
||||
std::string getIncludeNodeIds() const;
|
||||
@@ -52,6 +56,8 @@ public:
|
||||
private:
|
||||
std::string projectEnv_;
|
||||
std::string projectName_;
|
||||
std::string startBizDate_;
|
||||
std::string endBizDate_;
|
||||
std::string dagParameters_;
|
||||
std::string includeNodeIds_;
|
||||
std::string bizDate_;
|
||||
|
||||
@@ -37,10 +37,8 @@ namespace AlibabaCloud
|
||||
UpdateBaselineResult();
|
||||
explicit UpdateBaselineResult(const std::string &payload);
|
||||
~UpdateBaselineResult();
|
||||
std::string getDynamicErrorMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
bool getData()const;
|
||||
std::string getDynamicErrorCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -48,10 +46,8 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dynamicErrorMessage_;
|
||||
int httpStatusCode_;
|
||||
bool data_;
|
||||
std::string dynamicErrorCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -70,6 +70,8 @@ public:
|
||||
void setAutoRerunTimes(int autoRerunTimes);
|
||||
std::string getCronExpress() const;
|
||||
void setCronExpress(const std::string &cronExpress);
|
||||
bool getIgnoreParentSkipRunningProperty() const;
|
||||
void setIgnoreParentSkipRunningProperty(bool ignoreParentSkipRunningProperty);
|
||||
long getEndEffectDate() const;
|
||||
void setEndEffectDate(long endEffectDate);
|
||||
std::string getFileName() const;
|
||||
@@ -110,6 +112,7 @@ private:
|
||||
std::string resourceGroupIdentifier_;
|
||||
int autoRerunTimes_;
|
||||
std::string cronExpress_;
|
||||
bool ignoreParentSkipRunningProperty_;
|
||||
long endEffectDate_;
|
||||
std::string fileName_;
|
||||
std::string inputParameters_;
|
||||
|
||||
@@ -1275,6 +1275,42 @@ Dataworks_publicClient::CreateRemindOutcomeCallable Dataworks_publicClient::crea
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateResourceFileOutcome Dataworks_publicClient::createResourceFile(const CreateResourceFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateResourceFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateResourceFileOutcome(CreateResourceFileResult(outcome.result()));
|
||||
else
|
||||
return CreateResourceFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::createResourceFileAsync(const CreateResourceFileRequest& request, const CreateResourceFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createResourceFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateResourceFileOutcomeCallable Dataworks_publicClient::createResourceFileCallable(const CreateResourceFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateResourceFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createResourceFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateTableOutcome Dataworks_publicClient::createTable(const CreateTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,6 +1815,42 @@ Dataworks_publicClient::DeleteFromMetaCategoryOutcomeCallable Dataworks_publicCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteLineageRelationOutcome Dataworks_publicClient::deleteLineageRelation(const DeleteLineageRelationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLineageRelationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLineageRelationOutcome(DeleteLineageRelationResult(outcome.result()));
|
||||
else
|
||||
return DeleteLineageRelationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::deleteLineageRelationAsync(const DeleteLineageRelationRequest& request, const DeleteLineageRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLineageRelation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteLineageRelationOutcomeCallable Dataworks_publicClient::deleteLineageRelationCallable(const DeleteLineageRelationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLineageRelationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLineageRelation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteMetaCategoryOutcome Dataworks_publicClient::deleteMetaCategory(const DeleteMetaCategoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6027,6 +6099,42 @@ Dataworks_publicClient::ListInstancesOutcomeCallable Dataworks_publicClient::lis
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListLineageOutcome Dataworks_publicClient::listLineage(const ListLineageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListLineageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListLineageOutcome(ListLineageResult(outcome.result()));
|
||||
else
|
||||
return ListLineageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listLineageAsync(const ListLineageRequest& request, const ListLineageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listLineage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListLineageOutcomeCallable Dataworks_publicClient::listLineageCallable(const ListLineageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListLineageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listLineage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListManualDagInstancesOutcome Dataworks_publicClient::listManualDagInstances(const ListManualDagInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7215,6 +7323,42 @@ Dataworks_publicClient::QueryPublicModelEngineOutcomeCallable Dataworks_publicCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RegisterLineageRelationOutcome Dataworks_publicClient::registerLineageRelation(const RegisterLineageRelationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterLineageRelationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RegisterLineageRelationOutcome(RegisterLineageRelationResult(outcome.result()));
|
||||
else
|
||||
return RegisterLineageRelationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::registerLineageRelationAsync(const RegisterLineageRelationRequest& request, const RegisterLineageRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, registerLineageRelation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RegisterLineageRelationOutcomeCallable Dataworks_publicClient::registerLineageRelationCallable(const RegisterLineageRelationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RegisterLineageRelationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->registerLineageRelation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RemoveProjectMemberFromRoleOutcome Dataworks_publicClient::removeProjectMemberFromRole(const RemoveProjectMemberFromRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -49,18 +49,9 @@ void CreateBaselineResult::parse(const std::string &payload)
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
if(!value["DynamicErrorCode"].isNull())
|
||||
dynamicErrorCode_ = value["DynamicErrorCode"].asString();
|
||||
if(!value["DynamicErrorMessage"].isNull())
|
||||
dynamicErrorMessage_ = value["DynamicErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBaselineResult::getDynamicErrorMessage()const
|
||||
{
|
||||
return dynamicErrorMessage_;
|
||||
}
|
||||
|
||||
int CreateBaselineResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
@@ -71,11 +62,6 @@ long CreateBaselineResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateBaselineResult::getDynamicErrorCode()const
|
||||
{
|
||||
return dynamicErrorCode_;
|
||||
}
|
||||
|
||||
std::string CreateBaselineResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
@@ -142,6 +142,15 @@ void CreateFileRequest::setInputList(const std::string &inputList) {
|
||||
setBodyParameter(std::string("InputList"), inputList);
|
||||
}
|
||||
|
||||
bool CreateFileRequest::getCreateFolderIfNotExists() const {
|
||||
return createFolderIfNotExists_;
|
||||
}
|
||||
|
||||
void CreateFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
|
||||
createFolderIfNotExists_ = createFolderIfNotExists;
|
||||
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFileRequest::getRerunMode() const {
|
||||
return rerunMode_;
|
||||
}
|
||||
@@ -205,6 +214,15 @@ void CreateFileRequest::setCronExpress(const std::string &cronExpress) {
|
||||
setBodyParameter(std::string("CronExpress"), cronExpress);
|
||||
}
|
||||
|
||||
bool CreateFileRequest::getIgnoreParentSkipRunningProperty() const {
|
||||
return ignoreParentSkipRunningProperty_;
|
||||
}
|
||||
|
||||
void CreateFileRequest::setIgnoreParentSkipRunningProperty(bool ignoreParentSkipRunningProperty) {
|
||||
ignoreParentSkipRunningProperty_ = ignoreParentSkipRunningProperty;
|
||||
setBodyParameter(std::string("IgnoreParentSkipRunningProperty"), ignoreParentSkipRunningProperty ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateFileRequest::getEndEffectDate() const {
|
||||
return endEffectDate_;
|
||||
}
|
||||
|
||||
135
dataworks-public/src/model/CreateResourceFileRequest.cc
Normal file
135
dataworks-public/src/model/CreateResourceFileRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/CreateResourceFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateResourceFileRequest;
|
||||
|
||||
CreateResourceFileRequest::CreateResourceFileRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "CreateResourceFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceFileRequest::~CreateResourceFileRequest() {}
|
||||
|
||||
int CreateResourceFileRequest::getFileType() const {
|
||||
return fileType_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileType(int fileType) {
|
||||
fileType_ = fileType;
|
||||
setBodyParameter(std::string("FileType"), std::to_string(fileType));
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getResourceFile() const {
|
||||
return resourceFile_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setResourceFile(const std::string &resourceFile) {
|
||||
resourceFile_ = resourceFile;
|
||||
setBodyParameter(std::string("ResourceFile"), resourceFile);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getOriginResourceName() const {
|
||||
return originResourceName_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setOriginResourceName(const std::string &originResourceName) {
|
||||
originResourceName_ = originResourceName;
|
||||
setBodyParameter(std::string("OriginResourceName"), originResourceName);
|
||||
}
|
||||
|
||||
long CreateResourceFileRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setProjectId(long projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getStorageURL() const {
|
||||
return storageURL_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setStorageURL(const std::string &storageURL) {
|
||||
storageURL_ = storageURL;
|
||||
setBodyParameter(std::string("StorageURL"), storageURL);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getOwner() const {
|
||||
return owner_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setOwner(const std::string &owner) {
|
||||
owner_ = owner;
|
||||
setBodyParameter(std::string("Owner"), owner);
|
||||
}
|
||||
|
||||
bool CreateResourceFileRequest::getRegisterToCalcEngine() const {
|
||||
return registerToCalcEngine_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setRegisterToCalcEngine(bool registerToCalcEngine) {
|
||||
registerToCalcEngine_ = registerToCalcEngine;
|
||||
setBodyParameter(std::string("RegisterToCalcEngine"), registerToCalcEngine ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateResourceFileRequest::getUploadMode() const {
|
||||
return uploadMode_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setUploadMode(bool uploadMode) {
|
||||
uploadMode_ = uploadMode;
|
||||
setBodyParameter(std::string("UploadMode"), uploadMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setBodyParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileFolderPath() const {
|
||||
return fileFolderPath_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileFolderPath(const std::string &fileFolderPath) {
|
||||
fileFolderPath_ = fileFolderPath;
|
||||
setBodyParameter(std::string("FileFolderPath"), fileFolderPath);
|
||||
}
|
||||
|
||||
std::string CreateResourceFileRequest::getFileDescription() const {
|
||||
return fileDescription_;
|
||||
}
|
||||
|
||||
void CreateResourceFileRequest::setFileDescription(const std::string &fileDescription) {
|
||||
fileDescription_ = fileDescription;
|
||||
setBodyParameter(std::string("FileDescription"), fileDescription);
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/CreateResourceFileResult.cc
Normal file
51
dataworks-public/src/model/CreateResourceFileResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateResourceFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateResourceFileResult::CreateResourceFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceFileResult::CreateResourceFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceFileResult::~CreateResourceFileResult()
|
||||
{}
|
||||
|
||||
void CreateResourceFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateResourceFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateUdfFileRequest::CreateUdfFileRequest()
|
||||
|
||||
CreateUdfFileRequest::~CreateUdfFileRequest() {}
|
||||
|
||||
bool CreateUdfFileRequest::getCreateFolderIfNotExists() const {
|
||||
return createFolderIfNotExists_;
|
||||
}
|
||||
|
||||
void CreateUdfFileRequest::setCreateFolderIfNotExists(bool createFolderIfNotExists) {
|
||||
createFolderIfNotExists_ = createFolderIfNotExists;
|
||||
setBodyParameter(std::string("CreateFolderIfNotExists"), createFolderIfNotExists ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUdfFileRequest::getReturnValue() const {
|
||||
return returnValue_;
|
||||
}
|
||||
|
||||
@@ -49,18 +49,9 @@ void DeleteBaselineResult::parse(const std::string &payload)
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["DynamicErrorCode"].isNull())
|
||||
dynamicErrorCode_ = value["DynamicErrorCode"].asString();
|
||||
if(!value["DynamicErrorMessage"].isNull())
|
||||
dynamicErrorMessage_ = value["DynamicErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBaselineResult::getDynamicErrorMessage()const
|
||||
{
|
||||
return dynamicErrorMessage_;
|
||||
}
|
||||
|
||||
int DeleteBaselineResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
@@ -71,11 +62,6 @@ bool DeleteBaselineResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteBaselineResult::getDynamicErrorCode()const
|
||||
{
|
||||
return dynamicErrorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteBaselineResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
54
dataworks-public/src/model/DeleteLineageRelationRequest.cc
Normal file
54
dataworks-public/src/model/DeleteLineageRelationRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/DeleteLineageRelationRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteLineageRelationRequest;
|
||||
|
||||
DeleteLineageRelationRequest::DeleteLineageRelationRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteLineageRelation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLineageRelationRequest::~DeleteLineageRelationRequest() {}
|
||||
|
||||
std::string DeleteLineageRelationRequest::getSrcEntityQualifiedName() const {
|
||||
return srcEntityQualifiedName_;
|
||||
}
|
||||
|
||||
void DeleteLineageRelationRequest::setSrcEntityQualifiedName(const std::string &srcEntityQualifiedName) {
|
||||
srcEntityQualifiedName_ = srcEntityQualifiedName;
|
||||
setParameter(std::string("SrcEntityQualifiedName"), srcEntityQualifiedName);
|
||||
}
|
||||
|
||||
std::string DeleteLineageRelationRequest::getDestEntityQualifiedName() const {
|
||||
return destEntityQualifiedName_;
|
||||
}
|
||||
|
||||
void DeleteLineageRelationRequest::setDestEntityQualifiedName(const std::string &destEntityQualifiedName) {
|
||||
destEntityQualifiedName_ = destEntityQualifiedName;
|
||||
setParameter(std::string("DestEntityQualifiedName"), destEntityQualifiedName);
|
||||
}
|
||||
|
||||
std::string DeleteLineageRelationRequest::getRelationshipGuid() const {
|
||||
return relationshipGuid_;
|
||||
}
|
||||
|
||||
void DeleteLineageRelationRequest::setRelationshipGuid(const std::string &relationshipGuid) {
|
||||
relationshipGuid_ = relationshipGuid;
|
||||
setParameter(std::string("RelationshipGuid"), relationshipGuid);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/DeleteLineageRelationResult.cc
Normal file
79
dataworks-public/src/model/DeleteLineageRelationResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/DeleteLineageRelationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteLineageRelationResult::DeleteLineageRelationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLineageRelationResult::DeleteLineageRelationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLineageRelationResult::~DeleteLineageRelationResult()
|
||||
{}
|
||||
|
||||
void DeleteLineageRelationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteLineageRelationResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DeleteLineageRelationResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteLineageRelationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteLineageRelationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteLineageRelationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -109,9 +109,9 @@ void GetBaselineResult::parse(const std::string &payload)
|
||||
alertSettingObject.topicTypes.push_back(value.asString());
|
||||
data_.alertSettings.push_back(alertSettingObject);
|
||||
}
|
||||
auto allTaskIds = dataNode["TaskIds"]["TaskId"];
|
||||
for (auto value : allTaskIds)
|
||||
data_.taskIds.push_back(value.asString());
|
||||
auto allNodeIds = dataNode["NodeIds"]["NodeId"];
|
||||
for (auto value : allNodeIds)
|
||||
data_.nodeIds.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
@@ -120,18 +120,9 @@ void GetBaselineResult::parse(const std::string &payload)
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["DynamicErrorCode"].isNull())
|
||||
dynamicErrorCode_ = value["DynamicErrorCode"].asString();
|
||||
if(!value["DynamicErrorMessage"].isNull())
|
||||
dynamicErrorMessage_ = value["DynamicErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBaselineResult::getDynamicErrorMessage()const
|
||||
{
|
||||
return dynamicErrorMessage_;
|
||||
}
|
||||
|
||||
int GetBaselineResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
@@ -142,11 +133,6 @@ GetBaselineResult::Data GetBaselineResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBaselineResult::getDynamicErrorCode()const
|
||||
{
|
||||
return dynamicErrorCode_;
|
||||
}
|
||||
|
||||
std::string GetBaselineResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
@@ -88,18 +88,9 @@ void ListBaselinesResult::parse(const std::string &payload)
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["DynamicErrorCode"].isNull())
|
||||
dynamicErrorCode_ = value["DynamicErrorCode"].asString();
|
||||
if(!value["DynamicErrorMessage"].isNull())
|
||||
dynamicErrorMessage_ = value["DynamicErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListBaselinesResult::getDynamicErrorMessage()const
|
||||
{
|
||||
return dynamicErrorMessage_;
|
||||
}
|
||||
|
||||
int ListBaselinesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
@@ -110,11 +101,6 @@ ListBaselinesResult::Data ListBaselinesResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListBaselinesResult::getDynamicErrorCode()const
|
||||
{
|
||||
return dynamicErrorCode_;
|
||||
}
|
||||
|
||||
std::string ListBaselinesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
@@ -81,9 +81,9 @@ void ListDataSourcesResult::parse(const std::string &payload)
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Content"].isNull())
|
||||
dataSourcesItemObject.content = dataNodeDataSourcesDataSourcesItem["Content"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Id"].isNull())
|
||||
dataSourcesItemObject.id = std::stoi(dataNodeDataSourcesDataSourcesItem["Id"].asString());
|
||||
dataSourcesItemObject.id = std::stol(dataNodeDataSourcesDataSourcesItem["Id"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["BindingCalcEngineId"].isNull())
|
||||
dataSourcesItemObject.bindingCalcEngineId = std::stoi(dataNodeDataSourcesDataSourcesItem["BindingCalcEngineId"].asString());
|
||||
dataSourcesItemObject.bindingCalcEngineId = std::stol(dataNodeDataSourcesDataSourcesItem["BindingCalcEngineId"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["TenantId"].isNull())
|
||||
dataSourcesItemObject.tenantId = std::stol(dataNodeDataSourcesDataSourcesItem["TenantId"].asString());
|
||||
data_.dataSources.push_back(dataSourcesItemObject);
|
||||
|
||||
@@ -43,6 +43,24 @@ void ListFilesRequest::setFileTypes(const std::string &fileTypes) {
|
||||
setBodyParameter(std::string("FileTypes"), fileTypes);
|
||||
}
|
||||
|
||||
bool ListFilesRequest::getNeedContent() const {
|
||||
return needContent_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setNeedContent(bool needContent) {
|
||||
needContent_ = needContent;
|
||||
setBodyParameter(std::string("NeedContent"), needContent ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ListFilesRequest::getNeedAbsoluteFolderPath() const {
|
||||
return needAbsoluteFolderPath_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setNeedAbsoluteFolderPath(bool needAbsoluteFolderPath) {
|
||||
needAbsoluteFolderPath_ = needAbsoluteFolderPath;
|
||||
setBodyParameter(std::string("NeedAbsoluteFolderPath"), needAbsoluteFolderPath ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getProjectIdentifier() const {
|
||||
return projectIdentifier_;
|
||||
}
|
||||
@@ -61,6 +79,15 @@ void ListFilesRequest::setPageNumber(int pageNumber) {
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getFileIdIn() const {
|
||||
return fileIdIn_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setFileIdIn(const std::string &fileIdIn) {
|
||||
fileIdIn_ = fileIdIn;
|
||||
setBodyParameter(std::string("FileIdIn"), fileIdIn);
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getFileFolderPath() const {
|
||||
return fileFolderPath_;
|
||||
}
|
||||
@@ -79,6 +106,15 @@ void ListFilesRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getExactFileName() const {
|
||||
return exactFileName_;
|
||||
}
|
||||
|
||||
void ListFilesRequest::setExactFileName(const std::string &exactFileName) {
|
||||
exactFileName_ = exactFileName;
|
||||
setBodyParameter(std::string("ExactFileName"), exactFileName);
|
||||
}
|
||||
|
||||
std::string ListFilesRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,8 @@ void ListFilesResult::parse(const std::string &payload)
|
||||
fileObject.content = dataNodeFilesFile["Content"].asString();
|
||||
if(!dataNodeFilesFile["NodeId"].isNull())
|
||||
fileObject.nodeId = std::stol(dataNodeFilesFile["NodeId"].asString());
|
||||
if(!dataNodeFilesFile["AbsoluteFolderPath"].isNull())
|
||||
fileObject.absoluteFolderPath = dataNodeFilesFile["AbsoluteFolderPath"].asString();
|
||||
data_.files.push_back(fileObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
72
dataworks-public/src/model/ListLineageRequest.cc
Normal file
72
dataworks-public/src/model/ListLineageRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/ListLineageRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListLineageRequest;
|
||||
|
||||
ListLineageRequest::ListLineageRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListLineage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLineageRequest::~ListLineageRequest() {}
|
||||
|
||||
std::string ListLineageRequest::getEntityQualifiedName() const {
|
||||
return entityQualifiedName_;
|
||||
}
|
||||
|
||||
void ListLineageRequest::setEntityQualifiedName(const std::string &entityQualifiedName) {
|
||||
entityQualifiedName_ = entityQualifiedName;
|
||||
setParameter(std::string("EntityQualifiedName"), entityQualifiedName);
|
||||
}
|
||||
|
||||
std::string ListLineageRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListLineageRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListLineageRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLineageRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListLineageRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListLineageRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
std::string ListLineageRequest::getDirection() const {
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void ListLineageRequest::setDirection(const std::string &direction) {
|
||||
direction_ = direction;
|
||||
setParameter(std::string("Direction"), direction);
|
||||
}
|
||||
|
||||
109
dataworks-public/src/model/ListLineageResult.cc
Normal file
109
dataworks-public/src/model/ListLineageResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/ListLineageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListLineageResult::ListLineageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLineageResult::ListLineageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLineageResult::~ListLineageResult()
|
||||
{}
|
||||
|
||||
void ListLineageResult::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["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allDataEntityListNode = dataNode["DataEntityList"]["DataEntityListItem"];
|
||||
for (auto dataNodeDataEntityListDataEntityListItem : allDataEntityListNode)
|
||||
{
|
||||
Data::DataEntityListItem dataEntityListItemObject;
|
||||
if(!dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].isNull())
|
||||
dataEntityListItemObject.createTimestamp = std::stol(dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].asString());
|
||||
auto allRelationListNode = dataNodeDataEntityListDataEntityListItem["RelationList"]["RelationListItem"];
|
||||
for (auto dataNodeDataEntityListDataEntityListItemRelationListRelationListItem : allRelationListNode)
|
||||
{
|
||||
Data::DataEntityListItem::RelationListItem relationListObject;
|
||||
if(!dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Guid"].isNull())
|
||||
relationListObject.guid = dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Guid"].asString();
|
||||
if(!dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Datasource"].isNull())
|
||||
relationListObject.datasource = dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Datasource"].asString();
|
||||
if(!dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Type"].isNull())
|
||||
relationListObject.type = dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Type"].asString();
|
||||
if(!dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Channel"].isNull())
|
||||
relationListObject.channel = dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Channel"].asString();
|
||||
dataEntityListItemObject.relationList.push_back(relationListObject);
|
||||
}
|
||||
auto entityNode = value["Entity"];
|
||||
if(!entityNode["QualifiedName"].isNull())
|
||||
dataEntityListItemObject.entity.qualifiedName = entityNode["QualifiedName"].asString();
|
||||
if(!entityNode["TenantId"].isNull())
|
||||
dataEntityListItemObject.entity.tenantId = std::stol(entityNode["TenantId"].asString());
|
||||
if(!entityNode["EntityContent"].isNull())
|
||||
dataEntityListItemObject.entity.entityContent = entityNode["EntityContent"].asString();
|
||||
data_.dataEntityList.push_back(dataEntityListItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ListLineageResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListLineageResult::Data ListLineageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListLineageResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListLineageResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListLineageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
dataworks-public/src/model/RegisterLineageRelationRequest.cc
Normal file
45
dataworks-public/src/model/RegisterLineageRelationRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/RegisterLineageRelationRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RegisterLineageRelationRequest;
|
||||
|
||||
RegisterLineageRelationRequest::RegisterLineageRelationRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "RegisterLineageRelation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RegisterLineageRelationRequest::~RegisterLineageRelationRequest() {}
|
||||
|
||||
RegisterLineageRelationRequest::LineageRelationRegisterVO RegisterLineageRelationRequest::getLineageRelationRegisterVO() const {
|
||||
return lineageRelationRegisterVO_;
|
||||
}
|
||||
|
||||
void RegisterLineageRelationRequest::setLineageRelationRegisterVO(const RegisterLineageRelationRequest::LineageRelationRegisterVO &lineageRelationRegisterVO) {
|
||||
lineageRelationRegisterVO_ = lineageRelationRegisterVO;
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.ParentName", lineageRelationRegisterVO.destEntity.parentName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.QualifiedName", lineageRelationRegisterVO.destEntity.qualifiedName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.Name", lineageRelationRegisterVO.destEntity.name);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.DetailUrl", lineageRelationRegisterVO.destEntity.detailUrl);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".CreateTimestamp", std::to_string(lineageRelationRegisterVO.createTimestamp));
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".Relationship.Type", lineageRelationRegisterVO.relationship.type);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.ParentName", lineageRelationRegisterVO.srcEntity.parentName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.QualifiedName", lineageRelationRegisterVO.srcEntity.qualifiedName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.Name", lineageRelationRegisterVO.srcEntity.name);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.DetailUrl", lineageRelationRegisterVO.srcEntity.detailUrl);
|
||||
}
|
||||
|
||||
84
dataworks-public/src/model/RegisterLineageRelationResult.cc
Normal file
84
dataworks-public/src/model/RegisterLineageRelationResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/RegisterLineageRelationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RegisterLineageRelationResult::RegisterLineageRelationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RegisterLineageRelationResult::RegisterLineageRelationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RegisterLineageRelationResult::~RegisterLineageRelationResult()
|
||||
{}
|
||||
|
||||
void RegisterLineageRelationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto lineageRelationNode = value["LineageRelation"];
|
||||
if(!lineageRelationNode["SrcEntityQualifiedName"].isNull())
|
||||
lineageRelation_.srcEntityQualifiedName = lineageRelationNode["SrcEntityQualifiedName"].asString();
|
||||
if(!lineageRelationNode["DestEntityQualifiedName"].isNull())
|
||||
lineageRelation_.destEntityQualifiedName = lineageRelationNode["DestEntityQualifiedName"].asString();
|
||||
if(!lineageRelationNode["RelationshipGuid"].isNull())
|
||||
lineageRelation_.relationshipGuid = lineageRelationNode["RelationshipGuid"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
RegisterLineageRelationResult::LineageRelation RegisterLineageRelationResult::getLineageRelation()const
|
||||
{
|
||||
return lineageRelation_;
|
||||
}
|
||||
|
||||
int RegisterLineageRelationResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string RegisterLineageRelationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RegisterLineageRelationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool RegisterLineageRelationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,24 @@ void RunManualDagNodesRequest::setProjectName(const std::string &projectName) {
|
||||
setBodyParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getStartBizDate() const {
|
||||
return startBizDate_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setStartBizDate(const std::string &startBizDate) {
|
||||
startBizDate_ = startBizDate;
|
||||
setBodyParameter(std::string("StartBizDate"), startBizDate);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getEndBizDate() const {
|
||||
return endBizDate_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setEndBizDate(const std::string &endBizDate) {
|
||||
endBizDate_ = endBizDate;
|
||||
setBodyParameter(std::string("EndBizDate"), endBizDate);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getDagParameters() const {
|
||||
return dagParameters_;
|
||||
}
|
||||
|
||||
@@ -49,18 +49,9 @@ void UpdateBaselineResult::parse(const std::string &payload)
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["DynamicErrorCode"].isNull())
|
||||
dynamicErrorCode_ = value["DynamicErrorCode"].asString();
|
||||
if(!value["DynamicErrorMessage"].isNull())
|
||||
dynamicErrorMessage_ = value["DynamicErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateBaselineResult::getDynamicErrorMessage()const
|
||||
{
|
||||
return dynamicErrorMessage_;
|
||||
}
|
||||
|
||||
int UpdateBaselineResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
@@ -71,11 +62,6 @@ bool UpdateBaselineResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateBaselineResult::getDynamicErrorCode()const
|
||||
{
|
||||
return dynamicErrorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateBaselineResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
|
||||
@@ -205,6 +205,15 @@ void UpdateFileRequest::setCronExpress(const std::string &cronExpress) {
|
||||
setBodyParameter(std::string("CronExpress"), cronExpress);
|
||||
}
|
||||
|
||||
bool UpdateFileRequest::getIgnoreParentSkipRunningProperty() const {
|
||||
return ignoreParentSkipRunningProperty_;
|
||||
}
|
||||
|
||||
void UpdateFileRequest::setIgnoreParentSkipRunningProperty(bool ignoreParentSkipRunningProperty) {
|
||||
ignoreParentSkipRunningProperty_ = ignoreParentSkipRunningProperty;
|
||||
setBodyParameter(std::string("IgnoreParentSkipRunningProperty"), ignoreParentSkipRunningProperty ? "true" : "false");
|
||||
}
|
||||
|
||||
long UpdateFileRequest::getEndEffectDate() const {
|
||||
return endEffectDate_;
|
||||
}
|
||||
|
||||
@@ -30,22 +30,10 @@ class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequ
|
||||
public:
|
||||
ConfigureBackupPlanRequest();
|
||||
~ConfigureBackupPlanRequest();
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
long getBackupGatewayId() const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getSourceEndpointUserName() const;
|
||||
void setSourceEndpointUserName(const std::string &sourceEndpointUserName);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getBackupStartTime() const;
|
||||
@@ -54,28 +42,18 @@ public:
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getCrossRoleName() const;
|
||||
void setCrossRoleName(const std::string &crossRoleName);
|
||||
bool getEnableBackupLog() const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
std::string getBackupStorageType() const;
|
||||
void setBackupStorageType(const std::string &backupStorageType);
|
||||
int getDuplicationArchivePeriod() const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
int getBackupLogIntervalSeconds() const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
bool getAutoStartBackup() const;
|
||||
void setAutoStartBackup(bool autoStartBackup);
|
||||
std::string getSourceEndpointPassword() const;
|
||||
void setSourceEndpointPassword(const std::string &sourceEndpointPassword);
|
||||
std::string getBackupObjects() const;
|
||||
void setBackupObjects(const std::string &backupObjects);
|
||||
long getBackupRateLimit() const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
int getBackupRetentionPeriod() const;
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
std::string getBackupPeriod() const;
|
||||
@@ -86,44 +64,66 @@ public:
|
||||
void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType);
|
||||
std::string getBackupPlanName() const;
|
||||
void setBackupPlanName(const std::string &backupPlanName);
|
||||
std::string getSourceEndpointOracleSID() const;
|
||||
void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID);
|
||||
std::string getOSSBucketName() const;
|
||||
void setOSSBucketName(const std::string &oSSBucketName);
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
int getDuplicationInfrequentAccessPeriod() const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
bool getEnableBackupLog() const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getBackupObjects() const;
|
||||
void setBackupObjects(const std::string &backupObjects);
|
||||
long getBackupRateLimit() const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
std::string getSourceEndpointOracleSID() const;
|
||||
void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID);
|
||||
std::string getBackupStrategyType() const;
|
||||
void setBackupStrategyType(const std::string &backupStrategyType);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
long backupGatewayId_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
std::string resourceGroupId_;
|
||||
std::string backupStartTime_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string crossRoleName_;
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string crossAliyunId_;
|
||||
bool autoStartBackup_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
int backupRetentionPeriod_;
|
||||
std::string backupPeriod_;
|
||||
long backupSpeedLimit_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string backupPlanName_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string oSSBucketName_;
|
||||
std::string sourceEndpointRegion_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
bool enableBackupLog_;
|
||||
std::string crossAliyunId_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
int sourceEndpointPort_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string backupStrategyType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,18 +32,18 @@ public:
|
||||
~CreateFullBackupSetDownloadRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDataFormat_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -38,21 +38,21 @@ public:
|
||||
void setDatabaseType(const std::string &databaseType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(int sourceEndpointPort);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
long backupGatewayId_;
|
||||
std::string databaseType_;
|
||||
std::string clientToken_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
std::string sourceEndpointIP_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -32,21 +32,21 @@ public:
|
||||
~CreateIncrementBackupSetDownloadRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
std::string getBackupSetName() const;
|
||||
void setBackupSetName(const std::string &backupSetName);
|
||||
std::string getBackupSetId() const;
|
||||
void setBackupSetId(const std::string &backupSetId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getBackupSetDataFormat() const;
|
||||
void setBackupSetDataFormat(const std::string &backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDataFormat_;
|
||||
std::string backupSetName_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -32,32 +32,14 @@ public:
|
||||
~CreateRestoreTaskRequest();
|
||||
long getBackupGatewayId() const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getDestinationEndpointInstanceType() const;
|
||||
void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getDestinationEndpointRegion() const;
|
||||
void setDestinationEndpointRegion(const std::string &destinationEndpointRegion);
|
||||
std::string getCrossRoleName() const;
|
||||
void setCrossRoleName(const std::string &crossRoleName);
|
||||
std::string getDestinationEndpointUserName() const;
|
||||
void setDestinationEndpointUserName(const std::string &destinationEndpointUserName);
|
||||
std::string getRestoreObjects() const;
|
||||
void setRestoreObjects(const std::string &restoreObjects);
|
||||
std::string getRestoreTaskName() const;
|
||||
void setRestoreTaskName(const std::string &restoreTaskName);
|
||||
std::string getRestoreHome() const;
|
||||
void setRestoreHome(const std::string &restoreHome);
|
||||
std::string getDestinationEndpointOracleSID() const;
|
||||
void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID);
|
||||
long getRestoreTime() const;
|
||||
void setRestoreTime(long restoreTime);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getDestinationEndpointInstanceID() const;
|
||||
void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID);
|
||||
int getDestinationEndpointPort() const;
|
||||
void setDestinationEndpointPort(int destinationEndpointPort);
|
||||
std::string getBackupSetId() const;
|
||||
@@ -68,35 +50,53 @@ public:
|
||||
void setRestoreDir(const std::string &restoreDir);
|
||||
std::string getDestinationEndpointIP() const;
|
||||
void setDestinationEndpointIP(const std::string &destinationEndpointIP);
|
||||
std::string getDestinationEndpointDatabaseName() const;
|
||||
void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName);
|
||||
std::string getDuplicateConflict() const;
|
||||
void setDuplicateConflict(const std::string &duplicateConflict);
|
||||
std::string getDestinationEndpointInstanceType() const;
|
||||
void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getDestinationEndpointRegion() const;
|
||||
void setDestinationEndpointRegion(const std::string &destinationEndpointRegion);
|
||||
std::string getRestoreObjects() const;
|
||||
void setRestoreObjects(const std::string &restoreObjects);
|
||||
std::string getRestoreHome() const;
|
||||
void setRestoreHome(const std::string &restoreHome);
|
||||
long getRestoreTime() const;
|
||||
void setRestoreTime(long restoreTime);
|
||||
std::string getCrossAliyunId() const;
|
||||
void setCrossAliyunId(const std::string &crossAliyunId);
|
||||
std::string getDestinationEndpointInstanceID() const;
|
||||
void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID);
|
||||
std::string getDestinationEndpointDatabaseName() const;
|
||||
void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName);
|
||||
std::string getDestinationEndpointPassword() const;
|
||||
void setDestinationEndpointPassword(const std::string &destinationEndpointPassword);
|
||||
|
||||
private:
|
||||
long backupGatewayId_;
|
||||
std::string destinationEndpointInstanceType_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string destinationEndpointRegion_;
|
||||
std::string crossRoleName_;
|
||||
std::string destinationEndpointUserName_;
|
||||
std::string restoreObjects_;
|
||||
std::string restoreTaskName_;
|
||||
std::string restoreHome_;
|
||||
std::string destinationEndpointOracleSID_;
|
||||
long restoreTime_;
|
||||
std::string crossAliyunId_;
|
||||
std::string destinationEndpointInstanceID_;
|
||||
int destinationEndpointPort_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string restoreDir_;
|
||||
std::string destinationEndpointIP_;
|
||||
std::string destinationEndpointDatabaseName_;
|
||||
std::string duplicateConflict_;
|
||||
std::string destinationEndpointInstanceType_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string destinationEndpointRegion_;
|
||||
std::string restoreObjects_;
|
||||
std::string restoreHome_;
|
||||
long restoreTime_;
|
||||
std::string crossAliyunId_;
|
||||
std::string destinationEndpointInstanceID_;
|
||||
std::string destinationEndpointDatabaseName_;
|
||||
std::string destinationEndpointPassword_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,25 +30,25 @@ class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServi
|
||||
public:
|
||||
DescribeBackupGatewayListRequest();
|
||||
~DescribeBackupGatewayListRequest();
|
||||
std::string getIdentifier() const;
|
||||
void setIdentifier(const std::string &identifier);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getIdentifier() const;
|
||||
void setIdentifier(const std::string &identifier);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getRegion() const;
|
||||
void setRegion(const std::string ®ion);
|
||||
|
||||
private:
|
||||
std::string identifier_;
|
||||
std::string clientToken_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
int pageSize_;
|
||||
std::string identifier_;
|
||||
std::string ownerId_;
|
||||
std::string region_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getBackupPlanId() const;
|
||||
void setBackupPlanId(const std::string &backupPlanId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
bool getShowStorageType() const;
|
||||
void setShowStorageType(bool showStorageType);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool showStorageType_;
|
||||
std::string ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dbs
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isExpired;
|
||||
long buyExpiredTimestamp;
|
||||
std::string resourceGroupId;
|
||||
long quotaStartTimestamp;
|
||||
long totalFreeBytes;
|
||||
long paiedBytes;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user