Compare commits
95 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 | ||
|
|
cd65c6d063 | ||
|
|
af64ff1838 | ||
|
|
e1213b9125 | ||
|
|
00eafdf174 | ||
|
|
ebee82abfa | ||
|
|
5d8069b2ae | ||
|
|
7a56454f4a | ||
|
|
0c97547a63 | ||
|
|
6161fb7cdf | ||
|
|
25cf7939ec | ||
|
|
a91b82458d | ||
|
|
031448bbad | ||
|
|
31092444cc | ||
|
|
8a89fa30ff | ||
|
|
705a4d512f |
@@ -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);
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/DescribeCostBudgetsSummaryResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByConsumePeriodRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceAmortizedCostByConsumePeriodResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h
|
||||
@@ -252,6 +254,8 @@ set(bssopenapi_src
|
||||
src/model/DescribeCostBudgetsSummaryResult.cc
|
||||
src/model/DescribeInstanceAmortizedCostByAmortizationPeriodRequest.cc
|
||||
src/model/DescribeInstanceAmortizedCostByAmortizationPeriodResult.cc
|
||||
src/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest.cc
|
||||
src/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateResult.cc
|
||||
src/model/DescribeInstanceAmortizedCostByConsumePeriodRequest.cc
|
||||
src/model/DescribeInstanceAmortizedCostByConsumePeriodResult.cc
|
||||
src/model/DescribeInstanceBillRequest.cc
|
||||
|
||||
@@ -54,6 +54,8 @@
|
||||
#include "model/DescribeCostBudgetsSummaryResult.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByAmortizationPeriodRequest.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByAmortizationPeriodResult.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByAmortizationPeriodDateResult.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByConsumePeriodRequest.h"
|
||||
#include "model/DescribeInstanceAmortizedCostByConsumePeriodResult.h"
|
||||
#include "model/DescribeInstanceBillRequest.h"
|
||||
@@ -275,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInstanceAmortizedCostByAmortizationPeriodResult> DescribeInstanceAmortizedCostByAmortizationPeriodOutcome;
|
||||
typedef std::future<DescribeInstanceAmortizedCostByAmortizationPeriodOutcome> DescribeInstanceAmortizedCostByAmortizationPeriodOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeInstanceAmortizedCostByAmortizationPeriodRequest&, const DescribeInstanceAmortizedCostByAmortizationPeriodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAmortizedCostByAmortizationPeriodAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateResult> DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome;
|
||||
typedef std::future<DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome> DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest&, const DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAmortizedCostByAmortizationPeriodDateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceAmortizedCostByConsumePeriodResult> DescribeInstanceAmortizedCostByConsumePeriodOutcome;
|
||||
typedef std::future<DescribeInstanceAmortizedCostByConsumePeriodOutcome> DescribeInstanceAmortizedCostByConsumePeriodOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeInstanceAmortizedCostByConsumePeriodRequest&, const DescribeInstanceAmortizedCostByConsumePeriodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAmortizedCostByConsumePeriodAsyncHandler;
|
||||
@@ -574,6 +579,9 @@ namespace AlibabaCloud
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodOutcome describeInstanceAmortizedCostByAmortizationPeriod(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodRequest &request)const;
|
||||
void describeInstanceAmortizedCostByAmortizationPeriodAsync(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodRequest& request, const DescribeInstanceAmortizedCostByAmortizationPeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodOutcomeCallable describeInstanceAmortizedCostByAmortizationPeriodCallable(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodRequest& request) const;
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome describeInstanceAmortizedCostByAmortizationPeriodDate(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest &request)const;
|
||||
void describeInstanceAmortizedCostByAmortizationPeriodDateAsync(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest& request, const DescribeInstanceAmortizedCostByAmortizationPeriodDateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcomeCallable describeInstanceAmortizedCostByAmortizationPeriodDateCallable(const Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest& request) const;
|
||||
DescribeInstanceAmortizedCostByConsumePeriodOutcome describeInstanceAmortizedCostByConsumePeriod(const Model::DescribeInstanceAmortizedCostByConsumePeriodRequest &request)const;
|
||||
void describeInstanceAmortizedCostByConsumePeriodAsync(const Model::DescribeInstanceAmortizedCostByConsumePeriodRequest& request, const DescribeInstanceAmortizedCostByConsumePeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceAmortizedCostByConsumePeriodOutcomeCallable describeInstanceAmortizedCostByConsumePeriodCallable(const Model::DescribeInstanceAmortizedCostByConsumePeriodRequest& request) const;
|
||||
|
||||
@@ -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_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace BssOpenApi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest();
|
||||
~DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest();
|
||||
std::string getProductCode() const;
|
||||
void setProductCode(const std::string &productCode);
|
||||
std::string getAmortizationDateStart() const;
|
||||
void setAmortizationDateStart(const std::string &amortizationDateStart);
|
||||
std::string getSubscriptionType() const;
|
||||
void setSubscriptionType(const std::string &subscriptionType);
|
||||
std::string getCostUnitCode() const;
|
||||
void setCostUnitCode(const std::string &costUnitCode);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::vector<std::string> getBillUserIdList() const;
|
||||
void setBillUserIdList(const std::vector<std::string> &billUserIdList);
|
||||
std::string getProductDetail() const;
|
||||
void setProductDetail(const std::string &productDetail);
|
||||
std::vector<std::string> getBillOwnerIdList() const;
|
||||
void setBillOwnerIdList(const std::vector<std::string> &billOwnerIdList);
|
||||
std::string getBillingCycle() const;
|
||||
void setBillingCycle(const std::string &billingCycle);
|
||||
std::string getAmortizationDateEnd() const;
|
||||
void setAmortizationDateEnd(const std::string &amortizationDateEnd);
|
||||
std::vector<std::string> getInstanceIdList() const;
|
||||
void setInstanceIdList(const std::vector<std::string> &instanceIdList);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string amortizationDateStart_;
|
||||
std::string subscriptionType_;
|
||||
std::string costUnitCode_;
|
||||
std::string nextToken_;
|
||||
std::vector<std::string> billUserIdList_;
|
||||
std::string productDetail_;
|
||||
std::vector<std::string> billOwnerIdList_;
|
||||
std::string billingCycle_;
|
||||
std::string amortizationDateEnd_;
|
||||
std::vector<std::string> instanceIdList_;
|
||||
int maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace BssOpenApi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATEREQUEST_H_
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeInstanceAmortizedCostByAmortizationPeriodDateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
double currentAmortizationPretaxAmount;
|
||||
double remainingAmortizationDeductedByCoupons;
|
||||
std::string productName;
|
||||
double previouslyAmortizedExpenditureAmount;
|
||||
std::string instanceID;
|
||||
long billAccountID;
|
||||
std::string productDetailCode;
|
||||
double previouslyAmortizedRoundDownDiscount;
|
||||
std::string amortizationStatus;
|
||||
double deductedByPrepaidCard;
|
||||
std::string splitItemName;
|
||||
std::string subscriptionType;
|
||||
double currentAmortizationDeductedByCashCoupons;
|
||||
std::string costUnitCode;
|
||||
double remainingAmortizationDeductedByPrepaidCard;
|
||||
std::string costUnit;
|
||||
std::string amortizationPeriodDay;
|
||||
double deductedByCoupons;
|
||||
std::string consumePeriodDay;
|
||||
std::string productCode;
|
||||
long billOwnerID;
|
||||
std::string bizType;
|
||||
double previouslyAmortizedPretaxAmount;
|
||||
std::string intranetIP;
|
||||
double currentAmortizationPretaxGrossAmount;
|
||||
std::string internetIP;
|
||||
double remainingAmortizationExpenditureAmount;
|
||||
std::string region;
|
||||
double remainingAmortizationInvoiceDiscount;
|
||||
double previouslyAmortizedDeductedByCashCoupons;
|
||||
double currentAmortizationDeductedByCoupons;
|
||||
double currentAmortizationRoundDownDiscount;
|
||||
double currentAmortizationExpenditureAmount;
|
||||
double remainingAmortizationRoundDownDiscount;
|
||||
double previouslyAmortizedInvoiceDiscount;
|
||||
double deductedByCashCoupons;
|
||||
double previouslyAmortizedDeductedByCoupons;
|
||||
double remainingAmortizationDeductedByCashCoupons;
|
||||
double invoiceDiscount;
|
||||
std::string splitProductDetail;
|
||||
double currentAmortizationDeductedByPrepaidCard;
|
||||
std::string amortizationPeriod;
|
||||
double pretaxGrossAmount;
|
||||
double previouslyAmortizedPretaxGrossAmount;
|
||||
std::string resourceGroup;
|
||||
std::string splitAccountName;
|
||||
double roundDownDiscount;
|
||||
std::string productDetail;
|
||||
std::string consumePeriod;
|
||||
std::string zone;
|
||||
std::string billOwnerName;
|
||||
std::string splitItemID;
|
||||
double remainingAmortizationPretaxGrossAmount;
|
||||
double pretaxAmount;
|
||||
double currentAmortizationInvoiceDiscount;
|
||||
double expenditureAmount;
|
||||
double remainingAmortizationPretaxAmount;
|
||||
std::string billAccountName;
|
||||
std::string tag;
|
||||
double previouslyAmortizedDeductedByPrepaidCard;
|
||||
};
|
||||
int totalCount;
|
||||
std::string accountID;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<Item> items;
|
||||
std::string hostId;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateResult();
|
||||
explicit DescribeInstanceAmortizedCostByAmortizationPeriodDateResult(const std::string &payload);
|
||||
~DescribeInstanceAmortizedCostByAmortizationPeriodDateResult();
|
||||
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_BSSOPENAPI_MODEL_DESCRIBEINSTANCEAMORTIZEDCOSTBYAMORTIZATIONPERIODDATERESULT_H_
|
||||
@@ -627,6 +627,42 @@ BssOpenApiClient::DescribeInstanceAmortizedCostByAmortizationPeriodOutcomeCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome BssOpenApiClient::describeInstanceAmortizedCostByAmortizationPeriodDate(const DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome(DescribeInstanceAmortizedCostByAmortizationPeriodDateResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::describeInstanceAmortizedCostByAmortizationPeriodDateAsync(const DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest& request, const DescribeInstanceAmortizedCostByAmortizationPeriodDateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceAmortizedCostByAmortizationPeriodDate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcomeCallable BssOpenApiClient::describeInstanceAmortizedCostByAmortizationPeriodDateCallable(const DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceAmortizedCostByAmortizationPeriodDateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceAmortizedCostByAmortizationPeriodDate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeInstanceAmortizedCostByConsumePeriodOutcome BssOpenApiClient::describeInstanceAmortizedCostByConsumePeriod(const DescribeInstanceAmortizedCostByConsumePeriodRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -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/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest;
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest()
|
||||
: RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeInstanceAmortizedCostByAmortizationPeriodDate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::~DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest() {}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setBodyParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getAmortizationDateStart() const {
|
||||
return amortizationDateStart_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setAmortizationDateStart(const std::string &amortizationDateStart) {
|
||||
amortizationDateStart_ = amortizationDateStart;
|
||||
setBodyParameter(std::string("AmortizationDateStart"), amortizationDateStart);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getSubscriptionType() const {
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setSubscriptionType(const std::string &subscriptionType) {
|
||||
subscriptionType_ = subscriptionType;
|
||||
setBodyParameter(std::string("SubscriptionType"), subscriptionType);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getCostUnitCode() const {
|
||||
return costUnitCode_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setCostUnitCode(const std::string &costUnitCode) {
|
||||
costUnitCode_ = costUnitCode;
|
||||
setBodyParameter(std::string("CostUnitCode"), costUnitCode);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setBodyParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getBillUserIdList() const {
|
||||
return billUserIdList_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setBillUserIdList(const std::vector<std::string> &billUserIdList) {
|
||||
billUserIdList_ = billUserIdList;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getProductDetail() const {
|
||||
return productDetail_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setProductDetail(const std::string &productDetail) {
|
||||
productDetail_ = productDetail;
|
||||
setBodyParameter(std::string("ProductDetail"), productDetail);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getBillOwnerIdList() const {
|
||||
return billOwnerIdList_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setBillOwnerIdList(const std::vector<std::string> &billOwnerIdList) {
|
||||
billOwnerIdList_ = billOwnerIdList;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getBillingCycle() const {
|
||||
return billingCycle_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setBillingCycle(const std::string &billingCycle) {
|
||||
billingCycle_ = billingCycle;
|
||||
setBodyParameter(std::string("BillingCycle"), billingCycle);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getAmortizationDateEnd() const {
|
||||
return amortizationDateEnd_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setAmortizationDateEnd(const std::string &amortizationDateEnd) {
|
||||
amortizationDateEnd_ = amortizationDateEnd;
|
||||
setBodyParameter(std::string("AmortizationDateEnd"), amortizationDateEnd);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getInstanceIdList() const {
|
||||
return instanceIdList_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setInstanceIdList(const std::vector<std::string> &instanceIdList) {
|
||||
instanceIdList_ = instanceIdList;
|
||||
}
|
||||
|
||||
int DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/DescribeInstanceAmortizedCostByAmortizationPeriodDateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::DescribeInstanceAmortizedCostByAmortizationPeriodDateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::DescribeInstanceAmortizedCostByAmortizationPeriodDateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::~DescribeInstanceAmortizedCostByAmortizationPeriodDateResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::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();
|
||||
if(!dataNode["AccountID"].isNull())
|
||||
data_.accountID = dataNode["AccountID"].asString();
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["HostId"].isNull())
|
||||
data_.hostId = dataNode["HostId"].asString();
|
||||
auto allItemsNode = dataNode["Items"]["Item"];
|
||||
for (auto dataNodeItemsItem : allItemsNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemsItem["CostUnit"].isNull())
|
||||
itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString();
|
||||
if(!dataNodeItemsItem["CostUnitCode"].isNull())
|
||||
itemObject.costUnitCode = dataNodeItemsItem["CostUnitCode"].asString();
|
||||
if(!dataNodeItemsItem["InstanceID"].isNull())
|
||||
itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString();
|
||||
if(!dataNodeItemsItem["ResourceGroup"].isNull())
|
||||
itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString();
|
||||
if(!dataNodeItemsItem["Tag"].isNull())
|
||||
itemObject.tag = dataNodeItemsItem["Tag"].asString();
|
||||
if(!dataNodeItemsItem["InternetIP"].isNull())
|
||||
itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString();
|
||||
if(!dataNodeItemsItem["IntranetIP"].isNull())
|
||||
itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString();
|
||||
if(!dataNodeItemsItem["Region"].isNull())
|
||||
itemObject.region = dataNodeItemsItem["Region"].asString();
|
||||
if(!dataNodeItemsItem["Zone"].isNull())
|
||||
itemObject.zone = dataNodeItemsItem["Zone"].asString();
|
||||
if(!dataNodeItemsItem["SplitAccountName"].isNull())
|
||||
itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString();
|
||||
if(!dataNodeItemsItem["SplitProductDetail"].isNull())
|
||||
itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["SplitItemID"].isNull())
|
||||
itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString();
|
||||
if(!dataNodeItemsItem["SplitItemName"].isNull())
|
||||
itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString();
|
||||
if(!dataNodeItemsItem["ConsumePeriod"].isNull())
|
||||
itemObject.consumePeriod = dataNodeItemsItem["ConsumePeriod"].asString();
|
||||
if(!dataNodeItemsItem["ConsumePeriodDay"].isNull())
|
||||
itemObject.consumePeriodDay = dataNodeItemsItem["ConsumePeriodDay"].asString();
|
||||
if(!dataNodeItemsItem["AmortizationStatus"].isNull())
|
||||
itemObject.amortizationStatus = dataNodeItemsItem["AmortizationStatus"].asString();
|
||||
if(!dataNodeItemsItem["AmortizationPeriod"].isNull())
|
||||
itemObject.amortizationPeriod = dataNodeItemsItem["AmortizationPeriod"].asString();
|
||||
if(!dataNodeItemsItem["AmortizationPeriodDay"].isNull())
|
||||
itemObject.amortizationPeriodDay = dataNodeItemsItem["AmortizationPeriodDay"].asString();
|
||||
if(!dataNodeItemsItem["BillAccountID"].isNull())
|
||||
itemObject.billAccountID = std::stol(dataNodeItemsItem["BillAccountID"].asString());
|
||||
if(!dataNodeItemsItem["BillAccountName"].isNull())
|
||||
itemObject.billAccountName = dataNodeItemsItem["BillAccountName"].asString();
|
||||
if(!dataNodeItemsItem["BillOwnerID"].isNull())
|
||||
itemObject.billOwnerID = std::stol(dataNodeItemsItem["BillOwnerID"].asString());
|
||||
if(!dataNodeItemsItem["BillOwnerName"].isNull())
|
||||
itemObject.billOwnerName = dataNodeItemsItem["BillOwnerName"].asString();
|
||||
if(!dataNodeItemsItem["ProductCode"].isNull())
|
||||
itemObject.productCode = dataNodeItemsItem["ProductCode"].asString();
|
||||
if(!dataNodeItemsItem["ProductName"].isNull())
|
||||
itemObject.productName = dataNodeItemsItem["ProductName"].asString();
|
||||
if(!dataNodeItemsItem["ProductDetailCode"].isNull())
|
||||
itemObject.productDetailCode = dataNodeItemsItem["ProductDetailCode"].asString();
|
||||
if(!dataNodeItemsItem["ProductDetail"].isNull())
|
||||
itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["BizType"].isNull())
|
||||
itemObject.bizType = dataNodeItemsItem["BizType"].asString();
|
||||
if(!dataNodeItemsItem["SubscriptionType"].isNull())
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["PretaxGrossAmount"].isNull())
|
||||
itemObject.pretaxGrossAmount = dataNodeItemsItem["PretaxGrossAmount"].asString();
|
||||
if(!dataNodeItemsItem["InvoiceDiscount"].isNull())
|
||||
itemObject.invoiceDiscount = dataNodeItemsItem["InvoiceDiscount"].asString();
|
||||
if(!dataNodeItemsItem["RoundDownDiscount"].isNull())
|
||||
itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["PretaxAmount"].isNull())
|
||||
itemObject.pretaxAmount = dataNodeItemsItem["PretaxAmount"].asString();
|
||||
if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull())
|
||||
itemObject.deductedByCashCoupons = dataNodeItemsItem["DeductedByCashCoupons"].asString();
|
||||
if(!dataNodeItemsItem["DeductedByCoupons"].isNull())
|
||||
itemObject.deductedByCoupons = dataNodeItemsItem["DeductedByCoupons"].asString();
|
||||
if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull())
|
||||
itemObject.deductedByPrepaidCard = dataNodeItemsItem["DeductedByPrepaidCard"].asString();
|
||||
if(!dataNodeItemsItem["ExpenditureAmount"].isNull())
|
||||
itemObject.expenditureAmount = dataNodeItemsItem["ExpenditureAmount"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedPretaxGrossAmount"].isNull())
|
||||
itemObject.previouslyAmortizedPretaxGrossAmount = dataNodeItemsItem["PreviouslyAmortizedPretaxGrossAmount"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedInvoiceDiscount"].isNull())
|
||||
itemObject.previouslyAmortizedInvoiceDiscount = dataNodeItemsItem["PreviouslyAmortizedInvoiceDiscount"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedRoundDownDiscount"].isNull())
|
||||
itemObject.previouslyAmortizedRoundDownDiscount = dataNodeItemsItem["PreviouslyAmortizedRoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedPretaxAmount"].isNull())
|
||||
itemObject.previouslyAmortizedPretaxAmount = dataNodeItemsItem["PreviouslyAmortizedPretaxAmount"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedDeductedByCashCoupons"].isNull())
|
||||
itemObject.previouslyAmortizedDeductedByCashCoupons = dataNodeItemsItem["PreviouslyAmortizedDeductedByCashCoupons"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedDeductedByCoupons"].isNull())
|
||||
itemObject.previouslyAmortizedDeductedByCoupons = dataNodeItemsItem["PreviouslyAmortizedDeductedByCoupons"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedDeductedByPrepaidCard"].isNull())
|
||||
itemObject.previouslyAmortizedDeductedByPrepaidCard = dataNodeItemsItem["PreviouslyAmortizedDeductedByPrepaidCard"].asString();
|
||||
if(!dataNodeItemsItem["PreviouslyAmortizedExpenditureAmount"].isNull())
|
||||
itemObject.previouslyAmortizedExpenditureAmount = dataNodeItemsItem["PreviouslyAmortizedExpenditureAmount"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationPretaxGrossAmount"].isNull())
|
||||
itemObject.currentAmortizationPretaxGrossAmount = dataNodeItemsItem["CurrentAmortizationPretaxGrossAmount"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationInvoiceDiscount"].isNull())
|
||||
itemObject.currentAmortizationInvoiceDiscount = dataNodeItemsItem["CurrentAmortizationInvoiceDiscount"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationRoundDownDiscount"].isNull())
|
||||
itemObject.currentAmortizationRoundDownDiscount = dataNodeItemsItem["CurrentAmortizationRoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationPretaxAmount"].isNull())
|
||||
itemObject.currentAmortizationPretaxAmount = dataNodeItemsItem["CurrentAmortizationPretaxAmount"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationDeductedByCashCoupons"].isNull())
|
||||
itemObject.currentAmortizationDeductedByCashCoupons = dataNodeItemsItem["CurrentAmortizationDeductedByCashCoupons"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationDeductedByCoupons"].isNull())
|
||||
itemObject.currentAmortizationDeductedByCoupons = dataNodeItemsItem["CurrentAmortizationDeductedByCoupons"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationDeductedByPrepaidCard"].isNull())
|
||||
itemObject.currentAmortizationDeductedByPrepaidCard = dataNodeItemsItem["CurrentAmortizationDeductedByPrepaidCard"].asString();
|
||||
if(!dataNodeItemsItem["CurrentAmortizationExpenditureAmount"].isNull())
|
||||
itemObject.currentAmortizationExpenditureAmount = dataNodeItemsItem["CurrentAmortizationExpenditureAmount"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationPretaxGrossAmount"].isNull())
|
||||
itemObject.remainingAmortizationPretaxGrossAmount = dataNodeItemsItem["RemainingAmortizationPretaxGrossAmount"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationInvoiceDiscount"].isNull())
|
||||
itemObject.remainingAmortizationInvoiceDiscount = dataNodeItemsItem["RemainingAmortizationInvoiceDiscount"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationRoundDownDiscount"].isNull())
|
||||
itemObject.remainingAmortizationRoundDownDiscount = dataNodeItemsItem["RemainingAmortizationRoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationPretaxAmount"].isNull())
|
||||
itemObject.remainingAmortizationPretaxAmount = dataNodeItemsItem["RemainingAmortizationPretaxAmount"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationDeductedByCashCoupons"].isNull())
|
||||
itemObject.remainingAmortizationDeductedByCashCoupons = dataNodeItemsItem["RemainingAmortizationDeductedByCashCoupons"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationDeductedByCoupons"].isNull())
|
||||
itemObject.remainingAmortizationDeductedByCoupons = dataNodeItemsItem["RemainingAmortizationDeductedByCoupons"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationDeductedByPrepaidCard"].isNull())
|
||||
itemObject.remainingAmortizationDeductedByPrepaidCard = dataNodeItemsItem["RemainingAmortizationDeductedByPrepaidCard"].asString();
|
||||
if(!dataNodeItemsItem["RemainingAmortizationExpenditureAmount"].isNull())
|
||||
itemObject.remainingAmortizationExpenditureAmount = dataNodeItemsItem["RemainingAmortizationExpenditureAmount"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::Data DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceAmortizedCostByAmortizationPeriodDateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -35,10 +35,12 @@ namespace AlibabaCloud
|
||||
struct DataItem
|
||||
{
|
||||
std::string state;
|
||||
std::string breakCode;
|
||||
long startTime;
|
||||
std::string stateCode;
|
||||
bool outboundScenario;
|
||||
long duration;
|
||||
std::string workMode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -97,28 +97,42 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
long totalReadyTime;
|
||||
long totalBreakTime;
|
||||
long totalCalls;
|
||||
struct BreakCodeDetail
|
||||
{
|
||||
std::string breakCode;
|
||||
long duration;
|
||||
long count;
|
||||
};
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalOutboundScenarioTime;
|
||||
long firstCheckInTime;
|
||||
long lastCheckOutTime;
|
||||
long totalOffSiteOnlineTime;
|
||||
long totalTalkTime;
|
||||
float averageReadyTime;
|
||||
long totalLoggedInTime;
|
||||
long maxTalkTime;
|
||||
float satisfactionRate;
|
||||
float averageWorkTime;
|
||||
long maxReadyTime;
|
||||
long maxWorkTime;
|
||||
long maxBreakTime;
|
||||
float occupancyRate;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long totalReadyTime;
|
||||
long totalBreakTime;
|
||||
long totalCalls;
|
||||
long satisfactionSurveysOffered;
|
||||
long totalOfficePhoneOnlineTime;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalOutboundScenarioReadyTime;
|
||||
long totalLoggedInTime;
|
||||
float averageWorkTime;
|
||||
std::vector<BreakCodeDetail> breakCodeDetailList;
|
||||
long totalOnSiteOnlineTime;
|
||||
long maxWorkTime;
|
||||
float occupancyRate;
|
||||
};
|
||||
Outbound outbound;
|
||||
Overall overall;
|
||||
|
||||
@@ -95,30 +95,42 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
struct BreakCodeDetail
|
||||
{
|
||||
std::string breakCode;
|
||||
long duration;
|
||||
long count;
|
||||
};
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long totalOutboundScenarioTime;
|
||||
long firstCheckInTime;
|
||||
long totalOffSiteOnlineTime;
|
||||
long totalTalkTime;
|
||||
float averageReadyTime;
|
||||
long maxTalkTime;
|
||||
long maxReadyTime;
|
||||
float satisfactionRate;
|
||||
long maxBreakTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long totalReadyTime;
|
||||
long lastCheckoutTime;
|
||||
long totalCalls;
|
||||
long totalBreakTime;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long firstCheckInTime;
|
||||
long totalOfficePhoneOnlineTime;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalTalkTime;
|
||||
float averageReadyTime;
|
||||
long totalOutboundScenarioReadyTime;
|
||||
long totalLoggedInTime;
|
||||
long maxTalkTime;
|
||||
float averageWorkTime;
|
||||
long maxReadyTime;
|
||||
float satisfactionRate;
|
||||
std::vector<BreakCodeDetail> breakCodeDetailList;
|
||||
long totalOnSiteOnlineTime;
|
||||
long maxWorkTime;
|
||||
long maxBreakTime;
|
||||
float occupancyRate;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
};
|
||||
Outbound outbound;
|
||||
Overall overall;
|
||||
|
||||
@@ -53,6 +53,10 @@ void ListAgentStateLogsResult::parse(const std::string &payload)
|
||||
dataObject.state = valueDataDataItem["State"].asString();
|
||||
if(!valueDataDataItem["OutboundScenario"].isNull())
|
||||
dataObject.outboundScenario = valueDataDataItem["OutboundScenario"].asString() == "true";
|
||||
if(!valueDataDataItem["BreakCode"].isNull())
|
||||
dataObject.breakCode = valueDataDataItem["BreakCode"].asString();
|
||||
if(!valueDataDataItem["WorkMode"].isNull())
|
||||
dataObject.workMode = valueDataDataItem["WorkMode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -213,6 +213,32 @@ void ListHistoricalAgentReportResult::parse(const std::string &payload)
|
||||
itemsObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString());
|
||||
if(!overallNode["TotalCalls"].isNull())
|
||||
itemsObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
|
||||
if(!overallNode["TotalOnSiteOnlineTime"].isNull())
|
||||
itemsObject.overall.totalOnSiteOnlineTime = std::stol(overallNode["TotalOnSiteOnlineTime"].asString());
|
||||
if(!overallNode["TotalOffSiteOnlineTime"].isNull())
|
||||
itemsObject.overall.totalOffSiteOnlineTime = std::stol(overallNode["TotalOffSiteOnlineTime"].asString());
|
||||
if(!overallNode["TotalOfficePhoneOnlineTime"].isNull())
|
||||
itemsObject.overall.totalOfficePhoneOnlineTime = std::stol(overallNode["TotalOfficePhoneOnlineTime"].asString());
|
||||
if(!overallNode["FirstCheckInTime"].isNull())
|
||||
itemsObject.overall.firstCheckInTime = std::stol(overallNode["FirstCheckInTime"].asString());
|
||||
if(!overallNode["LastCheckOutTime"].isNull())
|
||||
itemsObject.overall.lastCheckOutTime = std::stol(overallNode["LastCheckOutTime"].asString());
|
||||
if(!overallNode["TotalOutboundScenarioTime"].isNull())
|
||||
itemsObject.overall.totalOutboundScenarioTime = std::stol(overallNode["TotalOutboundScenarioTime"].asString());
|
||||
if(!overallNode["TotalOutboundScenarioReadyTime"].isNull())
|
||||
itemsObject.overall.totalOutboundScenarioReadyTime = std::stol(overallNode["TotalOutboundScenarioReadyTime"].asString());
|
||||
auto allBreakCodeDetailListNode = overallNode["BreakCodeDetailList"]["BreakCodeDetail"];
|
||||
for (auto overallNodeBreakCodeDetailListBreakCodeDetail : allBreakCodeDetailListNode)
|
||||
{
|
||||
Data::Items::Overall::BreakCodeDetail breakCodeDetailObject;
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["BreakCode"].isNull())
|
||||
breakCodeDetailObject.breakCode = overallNodeBreakCodeDetailListBreakCodeDetail["BreakCode"].asString();
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["Count"].isNull())
|
||||
breakCodeDetailObject.count = std::stol(overallNodeBreakCodeDetailListBreakCodeDetail["Count"].asString());
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["Duration"].isNull())
|
||||
breakCodeDetailObject.duration = std::stol(overallNodeBreakCodeDetailListBreakCodeDetail["Duration"].asString());
|
||||
itemsObject.overall.breakCodeDetailList.push_back(breakCodeDetailObject);
|
||||
}
|
||||
data_.list.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -192,8 +192,6 @@ void ListIntervalAgentReportResult::parse(const std::string &payload)
|
||||
dataObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].asString());
|
||||
if(!overallNode["SatisfactionSurveysOffered"].isNull())
|
||||
dataObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString());
|
||||
if(!overallNode["FirstCheckInTime"].isNull())
|
||||
dataObject.overall.firstCheckInTime = std::stol(overallNode["FirstCheckInTime"].asString());
|
||||
if(!overallNode["SatisfactionSurveysResponded"].isNull())
|
||||
dataObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
|
||||
if(!overallNode["AverageHoldTime"].isNull())
|
||||
@@ -202,6 +200,30 @@ void ListIntervalAgentReportResult::parse(const std::string &payload)
|
||||
dataObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString());
|
||||
if(!overallNode["TotalBreakTime"].isNull())
|
||||
dataObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString());
|
||||
if(!overallNode["TotalOnSiteOnlineTime"].isNull())
|
||||
dataObject.overall.totalOnSiteOnlineTime = std::stol(overallNode["TotalOnSiteOnlineTime"].asString());
|
||||
if(!overallNode["TotalOffSiteOnlineTime"].isNull())
|
||||
dataObject.overall.totalOffSiteOnlineTime = std::stol(overallNode["TotalOffSiteOnlineTime"].asString());
|
||||
if(!overallNode["TotalOfficePhoneOnlineTime"].isNull())
|
||||
dataObject.overall.totalOfficePhoneOnlineTime = std::stol(overallNode["TotalOfficePhoneOnlineTime"].asString());
|
||||
if(!overallNode["TotalOutboundScenarioTime"].isNull())
|
||||
dataObject.overall.totalOutboundScenarioTime = std::stol(overallNode["TotalOutboundScenarioTime"].asString());
|
||||
if(!overallNode["TotalOutboundScenarioReadyTime"].isNull())
|
||||
dataObject.overall.totalOutboundScenarioReadyTime = std::stol(overallNode["TotalOutboundScenarioReadyTime"].asString());
|
||||
if(!overallNode["FirstCheckInTime"].isNull())
|
||||
dataObject.overall.firstCheckInTime = std::stol(overallNode["FirstCheckInTime"].asString());
|
||||
auto allBreakCodeDetailListNode = overallNode["BreakCodeDetailList"]["BreakCodeDetail"];
|
||||
for (auto overallNodeBreakCodeDetailListBreakCodeDetail : allBreakCodeDetailListNode)
|
||||
{
|
||||
DataItem::Overall::BreakCodeDetail breakCodeDetailObject;
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["BreakCode"].isNull())
|
||||
breakCodeDetailObject.breakCode = overallNodeBreakCodeDetailListBreakCodeDetail["BreakCode"].asString();
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["Count"].isNull())
|
||||
breakCodeDetailObject.count = std::stol(overallNodeBreakCodeDetailListBreakCodeDetail["Count"].asString());
|
||||
if(!overallNodeBreakCodeDetailListBreakCodeDetail["Duration"].isNull())
|
||||
breakCodeDetailObject.duration = std::stol(overallNodeBreakCodeDetailListBreakCodeDetail["Duration"].asString());
|
||||
dataObject.overall.breakCodeDetailList.push_back(breakCodeDetailObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
110
computenest/CMakeLists.txt
Normal file
110
computenest/CMakeLists.txt
Normal file
@@ -0,0 +1,110 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(computenest_public_header
|
||||
include/alibabacloud/computenest/ComputeNestClient.h
|
||||
include/alibabacloud/computenest/ComputeNestExport.h )
|
||||
|
||||
set(computenest_public_header_model
|
||||
include/alibabacloud/computenest/model/ContinueDeployServiceInstanceRequest.h
|
||||
include/alibabacloud/computenest/model/ContinueDeployServiceInstanceResult.h
|
||||
include/alibabacloud/computenest/model/CreateServiceInstanceRequest.h
|
||||
include/alibabacloud/computenest/model/CreateServiceInstanceResult.h
|
||||
include/alibabacloud/computenest/model/DeleteServiceInstancesRequest.h
|
||||
include/alibabacloud/computenest/model/DeleteServiceInstancesResult.h
|
||||
include/alibabacloud/computenest/model/GetServiceInstanceRequest.h
|
||||
include/alibabacloud/computenest/model/GetServiceInstanceResult.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstanceLogsRequest.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstanceLogsResult.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstanceResourcesRequest.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstanceResourcesResult.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstancesRequest.h
|
||||
include/alibabacloud/computenest/model/ListServiceInstancesResult.h )
|
||||
|
||||
set(computenest_src
|
||||
src/ComputeNestClient.cc
|
||||
src/model/ContinueDeployServiceInstanceRequest.cc
|
||||
src/model/ContinueDeployServiceInstanceResult.cc
|
||||
src/model/CreateServiceInstanceRequest.cc
|
||||
src/model/CreateServiceInstanceResult.cc
|
||||
src/model/DeleteServiceInstancesRequest.cc
|
||||
src/model/DeleteServiceInstancesResult.cc
|
||||
src/model/GetServiceInstanceRequest.cc
|
||||
src/model/GetServiceInstanceResult.cc
|
||||
src/model/ListServiceInstanceLogsRequest.cc
|
||||
src/model/ListServiceInstanceLogsResult.cc
|
||||
src/model/ListServiceInstanceResourcesRequest.cc
|
||||
src/model/ListServiceInstanceResourcesResult.cc
|
||||
src/model/ListServiceInstancesRequest.cc
|
||||
src/model/ListServiceInstancesResult.cc )
|
||||
|
||||
add_library(computenest ${LIB_TYPE}
|
||||
${computenest_public_header}
|
||||
${computenest_public_header_model}
|
||||
${computenest_src})
|
||||
|
||||
set_target_properties(computenest
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}computenest
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(computenest
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_COMPUTENEST_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(computenest
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(computenest
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(computenest
|
||||
jsoncpp)
|
||||
target_include_directories(computenest
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(computenest
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(computenest
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(computenest
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(computenest
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${computenest_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/computenest)
|
||||
install(FILES ${computenest_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/computenest/model)
|
||||
install(TARGETS computenest
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
102
computenest/include/alibabacloud/computenest/ComputeNestClient.h
Normal file
102
computenest/include/alibabacloud/computenest/ComputeNestClient.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_COMPUTENESTCLIENT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_COMPUTENESTCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ComputeNestExport.h"
|
||||
#include "model/ContinueDeployServiceInstanceRequest.h"
|
||||
#include "model/ContinueDeployServiceInstanceResult.h"
|
||||
#include "model/CreateServiceInstanceRequest.h"
|
||||
#include "model/CreateServiceInstanceResult.h"
|
||||
#include "model/DeleteServiceInstancesRequest.h"
|
||||
#include "model/DeleteServiceInstancesResult.h"
|
||||
#include "model/GetServiceInstanceRequest.h"
|
||||
#include "model/GetServiceInstanceResult.h"
|
||||
#include "model/ListServiceInstanceLogsRequest.h"
|
||||
#include "model/ListServiceInstanceLogsResult.h"
|
||||
#include "model/ListServiceInstanceResourcesRequest.h"
|
||||
#include "model/ListServiceInstanceResourcesResult.h"
|
||||
#include "model/ListServiceInstancesRequest.h"
|
||||
#include "model/ListServiceInstancesResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ComputeNestClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ContinueDeployServiceInstanceResult> ContinueDeployServiceInstanceOutcome;
|
||||
typedef std::future<ContinueDeployServiceInstanceOutcome> ContinueDeployServiceInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::ContinueDeployServiceInstanceRequest&, const ContinueDeployServiceInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContinueDeployServiceInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateServiceInstanceResult> CreateServiceInstanceOutcome;
|
||||
typedef std::future<CreateServiceInstanceOutcome> CreateServiceInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::CreateServiceInstanceRequest&, const CreateServiceInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServiceInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteServiceInstancesResult> DeleteServiceInstancesOutcome;
|
||||
typedef std::future<DeleteServiceInstancesOutcome> DeleteServiceInstancesOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::DeleteServiceInstancesRequest&, const DeleteServiceInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteServiceInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceInstanceResult> GetServiceInstanceOutcome;
|
||||
typedef std::future<GetServiceInstanceOutcome> GetServiceInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::GetServiceInstanceRequest&, const GetServiceInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServiceInstanceLogsResult> ListServiceInstanceLogsOutcome;
|
||||
typedef std::future<ListServiceInstanceLogsOutcome> ListServiceInstanceLogsOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::ListServiceInstanceLogsRequest&, const ListServiceInstanceLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceInstanceLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServiceInstanceResourcesResult> ListServiceInstanceResourcesOutcome;
|
||||
typedef std::future<ListServiceInstanceResourcesOutcome> ListServiceInstanceResourcesOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::ListServiceInstanceResourcesRequest&, const ListServiceInstanceResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceInstanceResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServiceInstancesResult> ListServiceInstancesOutcome;
|
||||
typedef std::future<ListServiceInstancesOutcome> ListServiceInstancesOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestClient*, const Model::ListServiceInstancesRequest&, const ListServiceInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceInstancesAsyncHandler;
|
||||
|
||||
ComputeNestClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ComputeNestClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ComputeNestClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ComputeNestClient();
|
||||
ContinueDeployServiceInstanceOutcome continueDeployServiceInstance(const Model::ContinueDeployServiceInstanceRequest &request)const;
|
||||
void continueDeployServiceInstanceAsync(const Model::ContinueDeployServiceInstanceRequest& request, const ContinueDeployServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContinueDeployServiceInstanceOutcomeCallable continueDeployServiceInstanceCallable(const Model::ContinueDeployServiceInstanceRequest& request) const;
|
||||
CreateServiceInstanceOutcome createServiceInstance(const Model::CreateServiceInstanceRequest &request)const;
|
||||
void createServiceInstanceAsync(const Model::CreateServiceInstanceRequest& request, const CreateServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateServiceInstanceOutcomeCallable createServiceInstanceCallable(const Model::CreateServiceInstanceRequest& request) const;
|
||||
DeleteServiceInstancesOutcome deleteServiceInstances(const Model::DeleteServiceInstancesRequest &request)const;
|
||||
void deleteServiceInstancesAsync(const Model::DeleteServiceInstancesRequest& request, const DeleteServiceInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteServiceInstancesOutcomeCallable deleteServiceInstancesCallable(const Model::DeleteServiceInstancesRequest& request) const;
|
||||
GetServiceInstanceOutcome getServiceInstance(const Model::GetServiceInstanceRequest &request)const;
|
||||
void getServiceInstanceAsync(const Model::GetServiceInstanceRequest& request, const GetServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceInstanceOutcomeCallable getServiceInstanceCallable(const Model::GetServiceInstanceRequest& request) const;
|
||||
ListServiceInstanceLogsOutcome listServiceInstanceLogs(const Model::ListServiceInstanceLogsRequest &request)const;
|
||||
void listServiceInstanceLogsAsync(const Model::ListServiceInstanceLogsRequest& request, const ListServiceInstanceLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceInstanceLogsOutcomeCallable listServiceInstanceLogsCallable(const Model::ListServiceInstanceLogsRequest& request) const;
|
||||
ListServiceInstanceResourcesOutcome listServiceInstanceResources(const Model::ListServiceInstanceResourcesRequest &request)const;
|
||||
void listServiceInstanceResourcesAsync(const Model::ListServiceInstanceResourcesRequest& request, const ListServiceInstanceResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceInstanceResourcesOutcomeCallable listServiceInstanceResourcesCallable(const Model::ListServiceInstanceResourcesRequest& request) const;
|
||||
ListServiceInstancesOutcome listServiceInstances(const Model::ListServiceInstancesRequest &request)const;
|
||||
void listServiceInstancesAsync(const Model::ListServiceInstancesRequest& request, const ListServiceInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceInstancesOutcomeCallable listServiceInstancesCallable(const Model::ListServiceInstancesRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_COMPUTENESTCLIENT_H_
|
||||
@@ -14,27 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/market/model/DescribeRateRequest.h>
|
||||
#ifndef ALIBABACLOUD_COMPUTENEST_COMPUTENESTEXPORT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_COMPUTENESTEXPORT_H_
|
||||
|
||||
using AlibabaCloud::Market::Model::DescribeRateRequest;
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
DescribeRateRequest::DescribeRateRequest() :
|
||||
RpcServiceRequest("market", "2015-11-01", "DescribeRate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_COMPUTENEST_LIBRARY)
|
||||
# define ALIBABACLOUD_COMPUTENEST_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_COMPUTENEST_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_COMPUTENEST_EXPORT
|
||||
#endif
|
||||
|
||||
DescribeRateRequest::~DescribeRateRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRateRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void DescribeRateRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_COMPUTENESTEXPORT_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_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ContinueDeployServiceInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ContinueDeployServiceInstanceRequest();
|
||||
~ContinueDeployServiceInstanceRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getServiceInstanceId() const;
|
||||
void setServiceInstanceId(const std::string &serviceInstanceId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getParameters() const;
|
||||
void setParameters(const std::string ¶meters);
|
||||
std::vector<std::string> getOption() const;
|
||||
void setOption(const std::vector<std::string> &option);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string serviceInstanceId_;
|
||||
bool dryRun_;
|
||||
std::string parameters_;
|
||||
std::vector<std::string> option_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCEREQUEST_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_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ContinueDeployServiceInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DryRunResult
|
||||
{
|
||||
std::vector<std::string> parametersNotAllowedToBeModified;
|
||||
std::vector<std::string> parametersConditionallyAllowedToBeModified;
|
||||
std::vector<std::string> parametersAllowedToBeModified;
|
||||
};
|
||||
|
||||
|
||||
ContinueDeployServiceInstanceResult();
|
||||
explicit ContinueDeployServiceInstanceResult(const std::string &payload);
|
||||
~ContinueDeployServiceInstanceResult();
|
||||
std::string getServiceInstanceId()const;
|
||||
DryRunResult getDryRunResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string serviceInstanceId_;
|
||||
DryRunResult dryRunResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_CONTINUEDEPLOYSERVICEINSTANCERESULT_H_
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_CREATESERVICEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_CREATESERVICEINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT CreateServiceInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Commodity {
|
||||
long payPeriod;
|
||||
std::string payPeriodUnit;
|
||||
};
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct OperationMetadata {
|
||||
std::string endTime;
|
||||
std::string resources;
|
||||
std::string startTime;
|
||||
std::string extraInfo;
|
||||
std::string serviceInstanceId;
|
||||
};
|
||||
CreateServiceInstanceRequest();
|
||||
~CreateServiceInstanceRequest();
|
||||
Commodity getCommodity() const;
|
||||
void setCommodity(const Commodity &commodity);
|
||||
std::string getContactGroup() const;
|
||||
void setContactGroup(const std::string &contactGroup);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getSpecificationCode() const;
|
||||
void setSpecificationCode(const std::string &specificationCode);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
bool getEnableInstanceOps() const;
|
||||
void setEnableInstanceOps(bool enableInstanceOps);
|
||||
std::string getTemplateName() const;
|
||||
void setTemplateName(const std::string &templateName);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
bool getEnableUserPrometheus() const;
|
||||
void setEnableUserPrometheus(bool enableUserPrometheus);
|
||||
std::string getSpecificationName() const;
|
||||
void setSpecificationName(const std::string &specificationName);
|
||||
std::string getTrialType() const;
|
||||
void setTrialType(const std::string &trialType);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getServiceVersion() const;
|
||||
void setServiceVersion(const std::string &serviceVersion);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
std::string getParameters() const;
|
||||
void setParameters(const std::string ¶meters);
|
||||
long getPayType() const;
|
||||
void setPayType(long payType);
|
||||
OperationMetadata getOperationMetadata() const;
|
||||
void setOperationMetadata(const OperationMetadata &operationMetadata);
|
||||
|
||||
private:
|
||||
Commodity commodity_;
|
||||
std::string contactGroup_;
|
||||
std::string clientToken_;
|
||||
std::string specificationCode_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
bool enableInstanceOps_;
|
||||
std::string templateName_;
|
||||
std::vector<Tag> tag_;
|
||||
bool dryRun_;
|
||||
bool enableUserPrometheus_;
|
||||
std::string specificationName_;
|
||||
std::string trialType_;
|
||||
std::string name_;
|
||||
std::string serviceVersion_;
|
||||
std::string serviceId_;
|
||||
std::string parameters_;
|
||||
long payType_;
|
||||
OperationMetadata operationMetadata_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_CREATESERVICEINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENEST_MODEL_CREATESERVICEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_CREATESERVICEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT CreateServiceInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateServiceInstanceResult();
|
||||
explicit CreateServiceInstanceResult(const std::string &payload);
|
||||
~CreateServiceInstanceResult();
|
||||
std::string getStatus()const;
|
||||
std::string getServiceInstanceId()const;
|
||||
std::string getMarketInstanceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string serviceInstanceId_;
|
||||
std::string marketInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_CREATESERVICEINSTANCERESULT_H_
|
||||
@@ -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_COMPUTENEST_MODEL_DELETESERVICEINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_DELETESERVICEINSTANCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT DeleteServiceInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteServiceInstancesRequest();
|
||||
~DeleteServiceInstancesRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<std::string> getServiceInstanceId() const;
|
||||
void setServiceInstanceId(const std::vector<std::string> &serviceInstanceId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> serviceInstanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_DELETESERVICEINSTANCESREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_DELETESERVICEINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_DELETESERVICEINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT DeleteServiceInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteServiceInstancesResult();
|
||||
explicit DeleteServiceInstancesResult(const std::string &payload);
|
||||
~DeleteServiceInstancesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_DELETESERVICEINSTANCESRESULT_H_
|
||||
@@ -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_COMPUTENEST_MODEL_GETSERVICEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_GETSERVICEINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT GetServiceInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetServiceInstanceRequest();
|
||||
~GetServiceInstanceRequest();
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getServiceInstanceId() const;
|
||||
void setServiceInstanceId(const std::string &serviceInstanceId);
|
||||
std::string getMarketInstanceId() const;
|
||||
void setMarketInstanceId(const std::string &marketInstanceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string serviceInstanceId_;
|
||||
std::string marketInstanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_GETSERVICEINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_GETSERVICEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_GETSERVICEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT GetServiceInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Service
|
||||
{
|
||||
struct ServiceInfo
|
||||
{
|
||||
std::string locale;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string shortDescription;
|
||||
};
|
||||
std::string status;
|
||||
std::string deployType;
|
||||
std::vector<std::string> upgradableServiceVersions;
|
||||
std::string serviceId;
|
||||
std::string deployMetadata;
|
||||
std::string version;
|
||||
std::string supplierName;
|
||||
std::string serviceType;
|
||||
std::vector<ServiceInfo> serviceInfos;
|
||||
std::string publishTime;
|
||||
std::string versionName;
|
||||
std::string serviceProductUrl;
|
||||
std::string supplierUrl;
|
||||
std::string upgradeMetadata;
|
||||
std::string serviceDocUrl;
|
||||
};
|
||||
struct NetworkConfig
|
||||
{
|
||||
struct PrivateVpcConnection
|
||||
{
|
||||
struct ConnectionConfig
|
||||
{
|
||||
std::vector<std::string> securityGroups;
|
||||
std::vector<std::string> endpointIps;
|
||||
std::string ingressEndpointStatus;
|
||||
std::string vpcId;
|
||||
std::string domainName;
|
||||
std::string networkServiceStatus;
|
||||
int connectBandwidth;
|
||||
std::vector<std::string> vSwitches;
|
||||
std::string regionId;
|
||||
};
|
||||
std::string privateZoneName;
|
||||
std::vector<PrivateVpcConnection::ConnectionConfig> connectionConfigs;
|
||||
std::string endpointId;
|
||||
std::string regionId;
|
||||
std::string privateZoneId;
|
||||
};
|
||||
struct ReversePrivateVpcConnection
|
||||
{
|
||||
std::string endpointId;
|
||||
};
|
||||
std::vector<ReversePrivateVpcConnection> reversePrivateVpcConnections;
|
||||
std::string endpointId;
|
||||
std::vector<PrivateVpcConnection> privateVpcConnections;
|
||||
std::string privateZoneId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
|
||||
GetServiceInstanceResult();
|
||||
explicit GetServiceInstanceResult(const std::string &payload);
|
||||
~GetServiceInstanceResult();
|
||||
std::string getOperatedServiceInstanceId()const;
|
||||
std::string getEndTime()const;
|
||||
std::string getResourceGroupId()const;
|
||||
std::string getOperationEndTime()const;
|
||||
bool getEnableInstanceOps()const;
|
||||
std::string getPredefinedParameterName()const;
|
||||
std::string getSource()const;
|
||||
std::string getName()const;
|
||||
std::string getComponents()const;
|
||||
std::string getOperationStartTime()const;
|
||||
std::string getServiceInstanceId()const;
|
||||
std::string getServiceType()const;
|
||||
std::string getTemplateName()const;
|
||||
std::string getMarketInstanceId()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getStatus()const;
|
||||
long getProgress()const;
|
||||
std::string getParameters()const;
|
||||
std::string getCreateTime()const;
|
||||
NetworkConfig getNetworkConfig()const;
|
||||
Service getService()const;
|
||||
std::string getPayType()const;
|
||||
std::string getLicenseEndTime()const;
|
||||
long getUserId()const;
|
||||
bool getEnableUserPrometheus()const;
|
||||
std::string getStatusDetail()const;
|
||||
std::string getOutputs()const;
|
||||
std::string getUpdateTime()const;
|
||||
bool getIsOperated()const;
|
||||
long getSupplierUid()const;
|
||||
std::string getResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string operatedServiceInstanceId_;
|
||||
std::string endTime_;
|
||||
std::string resourceGroupId_;
|
||||
std::string operationEndTime_;
|
||||
bool enableInstanceOps_;
|
||||
std::string predefinedParameterName_;
|
||||
std::string source_;
|
||||
std::string name_;
|
||||
std::string components_;
|
||||
std::string operationStartTime_;
|
||||
std::string serviceInstanceId_;
|
||||
std::string serviceType_;
|
||||
std::string templateName_;
|
||||
std::string marketInstanceId_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string status_;
|
||||
long progress_;
|
||||
std::string parameters_;
|
||||
std::string createTime_;
|
||||
NetworkConfig networkConfig_;
|
||||
Service service_;
|
||||
std::string payType_;
|
||||
std::string licenseEndTime_;
|
||||
long userId_;
|
||||
bool enableUserPrometheus_;
|
||||
std::string statusDetail_;
|
||||
std::string outputs_;
|
||||
std::string updateTime_;
|
||||
bool isOperated_;
|
||||
long supplierUid_;
|
||||
std::string resources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_GETSERVICEINSTANCERESULT_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_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstanceLogsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListServiceInstanceLogsRequest();
|
||||
~ListServiceInstanceLogsRequest();
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getServiceInstanceId() const;
|
||||
void setServiceInstanceId(const std::string &serviceInstanceId);
|
||||
std::string getMaxResults() const;
|
||||
void setMaxResults(const std::string &maxResults);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string serviceInstanceId_;
|
||||
std::string maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSRESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstanceLogsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ServiceInstanceLogs
|
||||
{
|
||||
std::string status;
|
||||
std::string serviceInstanceId;
|
||||
std::string resourceId;
|
||||
std::string content;
|
||||
std::string logType;
|
||||
std::string resourceType;
|
||||
std::string timestamp;
|
||||
std::string source;
|
||||
};
|
||||
|
||||
|
||||
ListServiceInstanceLogsResult();
|
||||
explicit ListServiceInstanceLogsResult(const std::string &payload);
|
||||
~ListServiceInstanceLogsResult();
|
||||
std::string getNextToken()const;
|
||||
std::string getMaxResults()const;
|
||||
std::vector<ServiceInstanceLogs> getServiceInstancesLogs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::string maxResults_;
|
||||
std::vector<ServiceInstanceLogs> serviceInstancesLogs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCELOGSRESULT_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstanceResourcesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
ListServiceInstanceResourcesRequest();
|
||||
~ListServiceInstanceResourcesRequest();
|
||||
std::string getExpireTimeEnd() const;
|
||||
void setExpireTimeEnd(const std::string &expireTimeEnd);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<std::string> getResourceARN() const;
|
||||
void setResourceARN(const std::vector<std::string> &resourceARN);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getServiceInstanceId() const;
|
||||
void setServiceInstanceId(const std::string &serviceInstanceId);
|
||||
std::string getExpireTimeStart() const;
|
||||
void setExpireTimeStart(const std::string &expireTimeStart);
|
||||
std::string getMaxResults() const;
|
||||
void setMaxResults(const std::string &maxResults);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
|
||||
private:
|
||||
std::string expireTimeEnd_;
|
||||
std::string nextToken_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> resourceARN_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string serviceInstanceId_;
|
||||
std::string expireTimeStart_;
|
||||
std::string maxResults_;
|
||||
std::string payType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstanceResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourcesItem
|
||||
{
|
||||
std::string resourceARN;
|
||||
std::string productCode;
|
||||
std::string renewalPeriodUnit;
|
||||
std::string createTime;
|
||||
std::string productType;
|
||||
std::string payType;
|
||||
std::string expireTime;
|
||||
std::string renewStatus;
|
||||
int renewalPeriod;
|
||||
};
|
||||
|
||||
|
||||
ListServiceInstanceResourcesResult();
|
||||
explicit ListServiceInstanceResourcesResult(const std::string &payload);
|
||||
~ListServiceInstanceResourcesResult();
|
||||
std::string getNextToken()const;
|
||||
std::string getMaxResults()const;
|
||||
std::vector<ResourcesItem> getResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::string maxResults_;
|
||||
std::vector<ResourcesItem> resources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCERESOURCESRESULT_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_COMPUTENEST_MODEL_LISTSERVICEINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNest {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Filter {
|
||||
std::string name;
|
||||
};
|
||||
ListServiceInstancesRequest();
|
||||
~ListServiceInstancesRequest();
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::vector<Filter> getFilter() const;
|
||||
void setFilter(const std::vector<Filter> &filter);
|
||||
std::string getMaxResults() const;
|
||||
void setMaxResults(const std::string &maxResults);
|
||||
|
||||
private:
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::vector<Tag> tag_;
|
||||
std::vector<Filter> filter_;
|
||||
std::string maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNest
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCESREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenest/ComputeNestExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNest
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENEST_EXPORT ListServiceInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ServiceInstance
|
||||
{
|
||||
struct Service
|
||||
{
|
||||
struct ServiceInfo
|
||||
{
|
||||
std::string locale;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string shortDescription;
|
||||
};
|
||||
std::string status;
|
||||
std::string deployType;
|
||||
std::string version;
|
||||
std::string supplierName;
|
||||
std::string serviceType;
|
||||
std::vector<ServiceInfo> serviceInfos;
|
||||
std::string publishTime;
|
||||
std::string versionName;
|
||||
std::string supplierUrl;
|
||||
std::string serviceId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string operatedServiceInstanceId;
|
||||
long progress;
|
||||
std::string parameters;
|
||||
std::string endTime;
|
||||
std::string resourceGroupId;
|
||||
std::string operationEndTime;
|
||||
std::string createTime;
|
||||
bool enableInstanceOps;
|
||||
Service service;
|
||||
std::string payType;
|
||||
std::string source;
|
||||
std::string name;
|
||||
std::string operationStartTime;
|
||||
std::string serviceInstanceId;
|
||||
std::string serviceType;
|
||||
std::string statusDetail;
|
||||
std::string outputs;
|
||||
std::string updateTime;
|
||||
std::string templateName;
|
||||
std::string resources;
|
||||
std::string marketInstanceId;
|
||||
std::vector<ServiceInstance::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
ListServiceInstancesResult();
|
||||
explicit ListServiceInstancesResult(const std::string &payload);
|
||||
~ListServiceInstancesResult();
|
||||
long getTotalCount()const;
|
||||
std::vector<ServiceInstance> getServiceInstances()const;
|
||||
std::string getNextToken()const;
|
||||
std::string getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::vector<ServiceInstance> serviceInstances_;
|
||||
std::string nextToken_;
|
||||
std::string maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENEST_MODEL_LISTSERVICEINSTANCESRESULT_H_
|
||||
305
computenest/src/ComputeNestClient.cc
Normal file
305
computenest/src/ComputeNestClient.cc
Normal file
@@ -0,0 +1,305 @@
|
||||
/*
|
||||
* 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/computenest/ComputeNestClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ComputeNest";
|
||||
}
|
||||
|
||||
ComputeNestClient::ComputeNestClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "computenest");
|
||||
}
|
||||
|
||||
ComputeNestClient::ComputeNestClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "computenest");
|
||||
}
|
||||
|
||||
ComputeNestClient::ComputeNestClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "computenest");
|
||||
}
|
||||
|
||||
ComputeNestClient::~ComputeNestClient()
|
||||
{}
|
||||
|
||||
ComputeNestClient::ContinueDeployServiceInstanceOutcome ComputeNestClient::continueDeployServiceInstance(const ContinueDeployServiceInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ContinueDeployServiceInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ContinueDeployServiceInstanceOutcome(ContinueDeployServiceInstanceResult(outcome.result()));
|
||||
else
|
||||
return ContinueDeployServiceInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::continueDeployServiceInstanceAsync(const ContinueDeployServiceInstanceRequest& request, const ContinueDeployServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, continueDeployServiceInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::ContinueDeployServiceInstanceOutcomeCallable ComputeNestClient::continueDeployServiceInstanceCallable(const ContinueDeployServiceInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ContinueDeployServiceInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->continueDeployServiceInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::CreateServiceInstanceOutcome ComputeNestClient::createServiceInstance(const CreateServiceInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateServiceInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateServiceInstanceOutcome(CreateServiceInstanceResult(outcome.result()));
|
||||
else
|
||||
return CreateServiceInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::createServiceInstanceAsync(const CreateServiceInstanceRequest& request, const CreateServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createServiceInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::CreateServiceInstanceOutcomeCallable ComputeNestClient::createServiceInstanceCallable(const CreateServiceInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateServiceInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createServiceInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::DeleteServiceInstancesOutcome ComputeNestClient::deleteServiceInstances(const DeleteServiceInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteServiceInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteServiceInstancesOutcome(DeleteServiceInstancesResult(outcome.result()));
|
||||
else
|
||||
return DeleteServiceInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::deleteServiceInstancesAsync(const DeleteServiceInstancesRequest& request, const DeleteServiceInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteServiceInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::DeleteServiceInstancesOutcomeCallable ComputeNestClient::deleteServiceInstancesCallable(const DeleteServiceInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteServiceInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteServiceInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::GetServiceInstanceOutcome ComputeNestClient::getServiceInstance(const GetServiceInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServiceInstanceOutcome(GetServiceInstanceResult(outcome.result()));
|
||||
else
|
||||
return GetServiceInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::getServiceInstanceAsync(const GetServiceInstanceRequest& request, const GetServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getServiceInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::GetServiceInstanceOutcomeCallable ComputeNestClient::getServiceInstanceCallable(const GetServiceInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServiceInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getServiceInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstanceLogsOutcome ComputeNestClient::listServiceInstanceLogs(const ListServiceInstanceLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListServiceInstanceLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListServiceInstanceLogsOutcome(ListServiceInstanceLogsResult(outcome.result()));
|
||||
else
|
||||
return ListServiceInstanceLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::listServiceInstanceLogsAsync(const ListServiceInstanceLogsRequest& request, const ListServiceInstanceLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listServiceInstanceLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstanceLogsOutcomeCallable ComputeNestClient::listServiceInstanceLogsCallable(const ListServiceInstanceLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListServiceInstanceLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listServiceInstanceLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstanceResourcesOutcome ComputeNestClient::listServiceInstanceResources(const ListServiceInstanceResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListServiceInstanceResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListServiceInstanceResourcesOutcome(ListServiceInstanceResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListServiceInstanceResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::listServiceInstanceResourcesAsync(const ListServiceInstanceResourcesRequest& request, const ListServiceInstanceResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listServiceInstanceResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstanceResourcesOutcomeCallable ComputeNestClient::listServiceInstanceResourcesCallable(const ListServiceInstanceResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListServiceInstanceResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listServiceInstanceResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstancesOutcome ComputeNestClient::listServiceInstances(const ListServiceInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListServiceInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListServiceInstancesOutcome(ListServiceInstancesResult(outcome.result()));
|
||||
else
|
||||
return ListServiceInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestClient::listServiceInstancesAsync(const ListServiceInstancesRequest& request, const ListServiceInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listServiceInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestClient::ListServiceInstancesOutcomeCallable ComputeNestClient::listServiceInstancesCallable(const ListServiceInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListServiceInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listServiceInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/computenest/model/ContinueDeployServiceInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::ContinueDeployServiceInstanceRequest;
|
||||
|
||||
ContinueDeployServiceInstanceRequest::ContinueDeployServiceInstanceRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "ContinueDeployServiceInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ContinueDeployServiceInstanceRequest::~ContinueDeployServiceInstanceRequest() {}
|
||||
|
||||
std::string ContinueDeployServiceInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ContinueDeployServiceInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ContinueDeployServiceInstanceRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setServiceInstanceId(const std::string &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
bool ContinueDeployServiceInstanceRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ContinueDeployServiceInstanceRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::vector<std::string> ContinueDeployServiceInstanceRequest::getOption() const {
|
||||
return option_;
|
||||
}
|
||||
|
||||
void ContinueDeployServiceInstanceRequest::setOption(const std::vector<std::string> &option) {
|
||||
option_ = option;
|
||||
}
|
||||
|
||||
66
computenest/src/model/ContinueDeployServiceInstanceResult.cc
Normal file
66
computenest/src/model/ContinueDeployServiceInstanceResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/computenest/model/ContinueDeployServiceInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
ContinueDeployServiceInstanceResult::ContinueDeployServiceInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ContinueDeployServiceInstanceResult::ContinueDeployServiceInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ContinueDeployServiceInstanceResult::~ContinueDeployServiceInstanceResult()
|
||||
{}
|
||||
|
||||
void ContinueDeployServiceInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dryRunResultNode = value["DryRunResult"];
|
||||
auto allParametersNotAllowedToBeModified = dryRunResultNode["ParametersNotAllowedToBeModified"]["parameterNotAllowedToBeModified"];
|
||||
for (auto value : allParametersNotAllowedToBeModified)
|
||||
dryRunResult_.parametersNotAllowedToBeModified.push_back(value.asString());
|
||||
auto allParametersConditionallyAllowedToBeModified = dryRunResultNode["ParametersConditionallyAllowedToBeModified"]["parameterConditionallyAllowedToBeModified"];
|
||||
for (auto value : allParametersConditionallyAllowedToBeModified)
|
||||
dryRunResult_.parametersConditionallyAllowedToBeModified.push_back(value.asString());
|
||||
auto allParametersAllowedToBeModified = dryRunResultNode["ParametersAllowedToBeModified"]["parameterAllowedToBeModified"];
|
||||
for (auto value : allParametersAllowedToBeModified)
|
||||
dryRunResult_.parametersAllowedToBeModified.push_back(value.asString());
|
||||
if(!value["ServiceInstanceId"].isNull())
|
||||
serviceInstanceId_ = value["ServiceInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ContinueDeployServiceInstanceResult::getServiceInstanceId()const
|
||||
{
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
ContinueDeployServiceInstanceResult::DryRunResult ContinueDeployServiceInstanceResult::getDryRunResult()const
|
||||
{
|
||||
return dryRunResult_;
|
||||
}
|
||||
|
||||
208
computenest/src/model/CreateServiceInstanceRequest.cc
Normal file
208
computenest/src/model/CreateServiceInstanceRequest.cc
Normal file
@@ -0,0 +1,208 @@
|
||||
/*
|
||||
* 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/computenest/model/CreateServiceInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::CreateServiceInstanceRequest;
|
||||
|
||||
CreateServiceInstanceRequest::CreateServiceInstanceRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "CreateServiceInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceInstanceRequest::~CreateServiceInstanceRequest() {}
|
||||
|
||||
CreateServiceInstanceRequest::Commodity CreateServiceInstanceRequest::getCommodity() const {
|
||||
return commodity_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setCommodity(const CreateServiceInstanceRequest::Commodity &commodity) {
|
||||
commodity_ = commodity;
|
||||
setParameter(std::string("Commodity") + ".PayPeriod", std::to_string(commodity.payPeriod));
|
||||
setParameter(std::string("Commodity") + ".PayPeriodUnit", commodity.payPeriodUnit);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getContactGroup() const {
|
||||
return contactGroup_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setContactGroup(const std::string &contactGroup) {
|
||||
contactGroup_ = contactGroup;
|
||||
setParameter(std::string("ContactGroup"), contactGroup);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getSpecificationCode() const {
|
||||
return specificationCode_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setSpecificationCode(const std::string &specificationCode) {
|
||||
specificationCode_ = specificationCode;
|
||||
setParameter(std::string("SpecificationCode"), specificationCode);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool CreateServiceInstanceRequest::getEnableInstanceOps() const {
|
||||
return enableInstanceOps_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setEnableInstanceOps(bool enableInstanceOps) {
|
||||
enableInstanceOps_ = enableInstanceOps;
|
||||
setParameter(std::string("EnableInstanceOps"), enableInstanceOps ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
std::vector<CreateServiceInstanceRequest::Tag> CreateServiceInstanceRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setTag(const std::vector<CreateServiceInstanceRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateServiceInstanceRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateServiceInstanceRequest::getEnableUserPrometheus() const {
|
||||
return enableUserPrometheus_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setEnableUserPrometheus(bool enableUserPrometheus) {
|
||||
enableUserPrometheus_ = enableUserPrometheus;
|
||||
setParameter(std::string("EnableUserPrometheus"), enableUserPrometheus ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getSpecificationName() const {
|
||||
return specificationName_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setSpecificationName(const std::string &specificationName) {
|
||||
specificationName_ = specificationName;
|
||||
setParameter(std::string("SpecificationName"), specificationName);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getTrialType() const {
|
||||
return trialType_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setTrialType(const std::string &trialType) {
|
||||
trialType_ = trialType;
|
||||
setParameter(std::string("TrialType"), trialType);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
long CreateServiceInstanceRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setPayType(long payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), std::to_string(payType));
|
||||
}
|
||||
|
||||
CreateServiceInstanceRequest::OperationMetadata CreateServiceInstanceRequest::getOperationMetadata() const {
|
||||
return operationMetadata_;
|
||||
}
|
||||
|
||||
void CreateServiceInstanceRequest::setOperationMetadata(const CreateServiceInstanceRequest::OperationMetadata &operationMetadata) {
|
||||
operationMetadata_ = operationMetadata;
|
||||
setParameter(std::string("OperationMetadata") + ".EndTime", operationMetadata.endTime);
|
||||
setParameter(std::string("OperationMetadata") + ".Resources", operationMetadata.resources);
|
||||
setParameter(std::string("OperationMetadata") + ".StartTime", operationMetadata.startTime);
|
||||
setParameter(std::string("OperationMetadata") + ".ExtraInfo", operationMetadata.extraInfo);
|
||||
setParameter(std::string("OperationMetadata") + ".ServiceInstanceId", operationMetadata.serviceInstanceId);
|
||||
}
|
||||
|
||||
65
computenest/src/model/CreateServiceInstanceResult.cc
Normal file
65
computenest/src/model/CreateServiceInstanceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/computenest/model/CreateServiceInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
CreateServiceInstanceResult::CreateServiceInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceInstanceResult::CreateServiceInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceInstanceResult::~CreateServiceInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateServiceInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["ServiceInstanceId"].isNull())
|
||||
serviceInstanceId_ = value["ServiceInstanceId"].asString();
|
||||
if(!value["MarketInstanceId"].isNull())
|
||||
marketInstanceId_ = value["MarketInstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceResult::getServiceInstanceId()const
|
||||
{
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateServiceInstanceResult::getMarketInstanceId()const
|
||||
{
|
||||
return marketInstanceId_;
|
||||
}
|
||||
|
||||
53
computenest/src/model/DeleteServiceInstancesRequest.cc
Normal file
53
computenest/src/model/DeleteServiceInstancesRequest.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/computenest/model/DeleteServiceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::DeleteServiceInstancesRequest;
|
||||
|
||||
DeleteServiceInstancesRequest::DeleteServiceInstancesRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "DeleteServiceInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceInstancesRequest::~DeleteServiceInstancesRequest() {}
|
||||
|
||||
std::string DeleteServiceInstancesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteServiceInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteServiceInstancesRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setServiceInstanceId(const std::vector<std::string> &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
}
|
||||
|
||||
44
computenest/src/model/DeleteServiceInstancesResult.cc
Normal file
44
computenest/src/model/DeleteServiceInstancesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/computenest/model/DeleteServiceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
DeleteServiceInstancesResult::DeleteServiceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceInstancesResult::DeleteServiceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceInstancesResult::~DeleteServiceInstancesResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
computenest/src/model/GetServiceInstanceRequest.cc
Normal file
54
computenest/src/model/GetServiceInstanceRequest.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/computenest/model/GetServiceInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::GetServiceInstanceRequest;
|
||||
|
||||
GetServiceInstanceRequest::GetServiceInstanceRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "GetServiceInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceInstanceRequest::~GetServiceInstanceRequest() {}
|
||||
|
||||
std::string GetServiceInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void GetServiceInstanceRequest::setServiceInstanceId(const std::string &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceRequest::getMarketInstanceId() const {
|
||||
return marketInstanceId_;
|
||||
}
|
||||
|
||||
void GetServiceInstanceRequest::setMarketInstanceId(const std::string &marketInstanceId) {
|
||||
marketInstanceId_ = marketInstanceId;
|
||||
setParameter(std::string("MarketInstanceId"), marketInstanceId);
|
||||
}
|
||||
|
||||
363
computenest/src/model/GetServiceInstanceResult.cc
Normal file
363
computenest/src/model/GetServiceInstanceResult.cc
Normal file
@@ -0,0 +1,363 @@
|
||||
/*
|
||||
* 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/computenest/model/GetServiceInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
GetServiceInstanceResult::GetServiceInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceInstanceResult::GetServiceInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceInstanceResult::~GetServiceInstanceResult()
|
||||
{}
|
||||
|
||||
void GetServiceInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
if(!valueTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTagsTag["Value"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto serviceNode = value["Service"];
|
||||
if(!serviceNode["Status"].isNull())
|
||||
service_.status = serviceNode["Status"].asString();
|
||||
if(!serviceNode["PublishTime"].isNull())
|
||||
service_.publishTime = serviceNode["PublishTime"].asString();
|
||||
if(!serviceNode["Version"].isNull())
|
||||
service_.version = serviceNode["Version"].asString();
|
||||
if(!serviceNode["DeployMetadata"].isNull())
|
||||
service_.deployMetadata = serviceNode["DeployMetadata"].asString();
|
||||
if(!serviceNode["DeployType"].isNull())
|
||||
service_.deployType = serviceNode["DeployType"].asString();
|
||||
if(!serviceNode["ServiceId"].isNull())
|
||||
service_.serviceId = serviceNode["ServiceId"].asString();
|
||||
if(!serviceNode["SupplierUrl"].isNull())
|
||||
service_.supplierUrl = serviceNode["SupplierUrl"].asString();
|
||||
if(!serviceNode["ServiceType"].isNull())
|
||||
service_.serviceType = serviceNode["ServiceType"].asString();
|
||||
if(!serviceNode["SupplierName"].isNull())
|
||||
service_.supplierName = serviceNode["SupplierName"].asString();
|
||||
if(!serviceNode["VersionName"].isNull())
|
||||
service_.versionName = serviceNode["VersionName"].asString();
|
||||
if(!serviceNode["UpgradeMetadata"].isNull())
|
||||
service_.upgradeMetadata = serviceNode["UpgradeMetadata"].asString();
|
||||
if(!serviceNode["ServiceProductUrl"].isNull())
|
||||
service_.serviceProductUrl = serviceNode["ServiceProductUrl"].asString();
|
||||
if(!serviceNode["ServiceDocUrl"].isNull())
|
||||
service_.serviceDocUrl = serviceNode["ServiceDocUrl"].asString();
|
||||
auto allServiceInfosNode = serviceNode["ServiceInfos"]["ServiceInfo"];
|
||||
for (auto serviceNodeServiceInfosServiceInfo : allServiceInfosNode)
|
||||
{
|
||||
Service::ServiceInfo serviceInfoObject;
|
||||
if(!serviceNodeServiceInfosServiceInfo["Locale"].isNull())
|
||||
serviceInfoObject.locale = serviceNodeServiceInfosServiceInfo["Locale"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["Image"].isNull())
|
||||
serviceInfoObject.image = serviceNodeServiceInfosServiceInfo["Image"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["Name"].isNull())
|
||||
serviceInfoObject.name = serviceNodeServiceInfosServiceInfo["Name"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["ShortDescription"].isNull())
|
||||
serviceInfoObject.shortDescription = serviceNodeServiceInfosServiceInfo["ShortDescription"].asString();
|
||||
service_.serviceInfos.push_back(serviceInfoObject);
|
||||
}
|
||||
auto allUpgradableServiceVersions = serviceNode["UpgradableServiceVersions"]["UpgradableServiceVersion"];
|
||||
for (auto value : allUpgradableServiceVersions)
|
||||
service_.upgradableServiceVersions.push_back(value.asString());
|
||||
auto networkConfigNode = value["NetworkConfig"];
|
||||
if(!networkConfigNode["EndpointId"].isNull())
|
||||
networkConfig_.endpointId = networkConfigNode["EndpointId"].asString();
|
||||
if(!networkConfigNode["PrivateZoneId"].isNull())
|
||||
networkConfig_.privateZoneId = networkConfigNode["PrivateZoneId"].asString();
|
||||
auto allPrivateVpcConnectionsNode = networkConfigNode["PrivateVpcConnections"]["PrivateVpcConnection"];
|
||||
for (auto networkConfigNodePrivateVpcConnectionsPrivateVpcConnection : allPrivateVpcConnectionsNode)
|
||||
{
|
||||
NetworkConfig::PrivateVpcConnection privateVpcConnectionObject;
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["EndpointId"].isNull())
|
||||
privateVpcConnectionObject.endpointId = networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["EndpointId"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["PrivateZoneId"].isNull())
|
||||
privateVpcConnectionObject.privateZoneId = networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["PrivateZoneId"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["PrivateZoneName"].isNull())
|
||||
privateVpcConnectionObject.privateZoneName = networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["PrivateZoneName"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["RegionId"].isNull())
|
||||
privateVpcConnectionObject.regionId = networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["RegionId"].asString();
|
||||
auto allConnectionConfigsNode = networkConfigNodePrivateVpcConnectionsPrivateVpcConnection["ConnectionConfigs"]["ConnectionConfig"];
|
||||
for (auto networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig : allConnectionConfigsNode)
|
||||
{
|
||||
NetworkConfig::PrivateVpcConnection::ConnectionConfig connectionConfigsObject;
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["VpcId"].isNull())
|
||||
connectionConfigsObject.vpcId = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["VpcId"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["IngressEndpointStatus"].isNull())
|
||||
connectionConfigsObject.ingressEndpointStatus = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["IngressEndpointStatus"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["NetworkServiceStatus"].isNull())
|
||||
connectionConfigsObject.networkServiceStatus = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["NetworkServiceStatus"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["DomainName"].isNull())
|
||||
connectionConfigsObject.domainName = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["DomainName"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["RegionId"].isNull())
|
||||
connectionConfigsObject.regionId = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["RegionId"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["ConnectBandwidth"].isNull())
|
||||
connectionConfigsObject.connectBandwidth = std::stoi(networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["ConnectBandwidth"].asString());
|
||||
auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"];
|
||||
for (auto value : allSecurityGroups)
|
||||
connectionConfigsObject.securityGroups.push_back(value.asString());
|
||||
auto allVSwitches = value["VSwitches"]["VSwitch"];
|
||||
for (auto value : allVSwitches)
|
||||
connectionConfigsObject.vSwitches.push_back(value.asString());
|
||||
auto allEndpointIps = value["EndpointIps"]["EndpointIp"];
|
||||
for (auto value : allEndpointIps)
|
||||
connectionConfigsObject.endpointIps.push_back(value.asString());
|
||||
privateVpcConnectionObject.connectionConfigs.push_back(connectionConfigsObject);
|
||||
}
|
||||
networkConfig_.privateVpcConnections.push_back(privateVpcConnectionObject);
|
||||
}
|
||||
auto allReversePrivateVpcConnectionsNode = networkConfigNode["ReversePrivateVpcConnections"]["ReversePrivateVpcConnection"];
|
||||
for (auto networkConfigNodeReversePrivateVpcConnectionsReversePrivateVpcConnection : allReversePrivateVpcConnectionsNode)
|
||||
{
|
||||
NetworkConfig::ReversePrivateVpcConnection reversePrivateVpcConnectionObject;
|
||||
if(!networkConfigNodeReversePrivateVpcConnectionsReversePrivateVpcConnection["EndpointId"].isNull())
|
||||
reversePrivateVpcConnectionObject.endpointId = networkConfigNodeReversePrivateVpcConnectionsReversePrivateVpcConnection["EndpointId"].asString();
|
||||
networkConfig_.reversePrivateVpcConnections.push_back(reversePrivateVpcConnectionObject);
|
||||
}
|
||||
if(!value["Outputs"].isNull())
|
||||
outputs_ = value["Outputs"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["TemplateName"].isNull())
|
||||
templateName_ = value["TemplateName"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stol(value["Progress"].asString());
|
||||
if(!value["Parameters"].isNull())
|
||||
parameters_ = value["Parameters"].asString();
|
||||
if(!value["ServiceInstanceId"].isNull())
|
||||
serviceInstanceId_ = value["ServiceInstanceId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["StatusDetail"].isNull())
|
||||
statusDetail_ = value["StatusDetail"].asString();
|
||||
if(!value["Resources"].isNull())
|
||||
resources_ = value["Resources"].asString();
|
||||
if(!value["OperationStartTime"].isNull())
|
||||
operationStartTime_ = value["OperationStartTime"].asString();
|
||||
if(!value["OperationEndTime"].isNull())
|
||||
operationEndTime_ = value["OperationEndTime"].asString();
|
||||
if(!value["OperatedServiceInstanceId"].isNull())
|
||||
operatedServiceInstanceId_ = value["OperatedServiceInstanceId"].asString();
|
||||
if(!value["EnableInstanceOps"].isNull())
|
||||
enableInstanceOps_ = value["EnableInstanceOps"].asString() == "true";
|
||||
if(!value["IsOperated"].isNull())
|
||||
isOperated_ = value["IsOperated"].asString() == "true";
|
||||
if(!value["LicenseEndTime"].isNull())
|
||||
licenseEndTime_ = value["LicenseEndTime"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = std::stol(value["UserId"].asString());
|
||||
if(!value["SupplierUid"].isNull())
|
||||
supplierUid_ = std::stol(value["SupplierUid"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Source"].isNull())
|
||||
source_ = value["Source"].asString();
|
||||
if(!value["ServiceType"].isNull())
|
||||
serviceType_ = value["ServiceType"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["EnableUserPrometheus"].isNull())
|
||||
enableUserPrometheus_ = value["EnableUserPrometheus"].asString() == "true";
|
||||
if(!value["Components"].isNull())
|
||||
components_ = value["Components"].asString();
|
||||
if(!value["PredefinedParameterName"].isNull())
|
||||
predefinedParameterName_ = value["PredefinedParameterName"].asString();
|
||||
if(!value["MarketInstanceId"].isNull())
|
||||
marketInstanceId_ = value["MarketInstanceId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getOperatedServiceInstanceId()const
|
||||
{
|
||||
return operatedServiceInstanceId_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getOperationEndTime()const
|
||||
{
|
||||
return operationEndTime_;
|
||||
}
|
||||
|
||||
bool GetServiceInstanceResult::getEnableInstanceOps()const
|
||||
{
|
||||
return enableInstanceOps_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getPredefinedParameterName()const
|
||||
{
|
||||
return predefinedParameterName_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getComponents()const
|
||||
{
|
||||
return components_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getOperationStartTime()const
|
||||
{
|
||||
return operationStartTime_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getServiceInstanceId()const
|
||||
{
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getMarketInstanceId()const
|
||||
{
|
||||
return marketInstanceId_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceInstanceResult::Tag> GetServiceInstanceResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
long GetServiceInstanceResult::getProgress()const
|
||||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
GetServiceInstanceResult::NetworkConfig GetServiceInstanceResult::getNetworkConfig()const
|
||||
{
|
||||
return networkConfig_;
|
||||
}
|
||||
|
||||
GetServiceInstanceResult::Service GetServiceInstanceResult::getService()const
|
||||
{
|
||||
return service_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getLicenseEndTime()const
|
||||
{
|
||||
return licenseEndTime_;
|
||||
}
|
||||
|
||||
long GetServiceInstanceResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
bool GetServiceInstanceResult::getEnableUserPrometheus()const
|
||||
{
|
||||
return enableUserPrometheus_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getStatusDetail()const
|
||||
{
|
||||
return statusDetail_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getOutputs()const
|
||||
{
|
||||
return outputs_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
bool GetServiceInstanceResult::getIsOperated()const
|
||||
{
|
||||
return isOperated_;
|
||||
}
|
||||
|
||||
long GetServiceInstanceResult::getSupplierUid()const
|
||||
{
|
||||
return supplierUid_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
63
computenest/src/model/ListServiceInstanceLogsRequest.cc
Normal file
63
computenest/src/model/ListServiceInstanceLogsRequest.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/computenest/model/ListServiceInstanceLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::ListServiceInstanceLogsRequest;
|
||||
|
||||
ListServiceInstanceLogsRequest::ListServiceInstanceLogsRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "ListServiceInstanceLogs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListServiceInstanceLogsRequest::~ListServiceInstanceLogsRequest() {}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setServiceInstanceId(const std::string &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceLogsRequest::setMaxResults(const std::string &maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
}
|
||||
|
||||
85
computenest/src/model/ListServiceInstanceLogsResult.cc
Normal file
85
computenest/src/model/ListServiceInstanceLogsResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/computenest/model/ListServiceInstanceLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
ListServiceInstanceLogsResult::ListServiceInstanceLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServiceInstanceLogsResult::ListServiceInstanceLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServiceInstanceLogsResult::~ListServiceInstanceLogsResult()
|
||||
{}
|
||||
|
||||
void ListServiceInstanceLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServiceInstancesLogsNode = value["ServiceInstancesLogs"]["ServiceInstanceLogs"];
|
||||
for (auto valueServiceInstancesLogsServiceInstanceLogs : allServiceInstancesLogsNode)
|
||||
{
|
||||
ServiceInstanceLogs serviceInstancesLogsObject;
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Timestamp"].isNull())
|
||||
serviceInstancesLogsObject.timestamp = valueServiceInstancesLogsServiceInstanceLogs["Timestamp"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["ServiceInstanceId"].isNull())
|
||||
serviceInstancesLogsObject.serviceInstanceId = valueServiceInstancesLogsServiceInstanceLogs["ServiceInstanceId"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Source"].isNull())
|
||||
serviceInstancesLogsObject.source = valueServiceInstancesLogsServiceInstanceLogs["Source"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Content"].isNull())
|
||||
serviceInstancesLogsObject.content = valueServiceInstancesLogsServiceInstanceLogs["Content"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["LogType"].isNull())
|
||||
serviceInstancesLogsObject.logType = valueServiceInstancesLogsServiceInstanceLogs["LogType"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["ResourceType"].isNull())
|
||||
serviceInstancesLogsObject.resourceType = valueServiceInstancesLogsServiceInstanceLogs["ResourceType"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["ResourceId"].isNull())
|
||||
serviceInstancesLogsObject.resourceId = valueServiceInstancesLogsServiceInstanceLogs["ResourceId"].asString();
|
||||
if(!valueServiceInstancesLogsServiceInstanceLogs["Status"].isNull())
|
||||
serviceInstancesLogsObject.status = valueServiceInstancesLogsServiceInstanceLogs["Status"].asString();
|
||||
serviceInstancesLogs_.push_back(serviceInstancesLogsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceLogsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstanceLogsResult::ServiceInstanceLogs> ListServiceInstanceLogsResult::getServiceInstancesLogs()const
|
||||
{
|
||||
return serviceInstancesLogs_;
|
||||
}
|
||||
|
||||
112
computenest/src/model/ListServiceInstanceResourcesRequest.cc
Normal file
112
computenest/src/model/ListServiceInstanceResourcesRequest.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/computenest/model/ListServiceInstanceResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::ListServiceInstanceResourcesRequest;
|
||||
|
||||
ListServiceInstanceResourcesRequest::ListServiceInstanceResourcesRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "ListServiceInstanceResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListServiceInstanceResourcesRequest::~ListServiceInstanceResourcesRequest() {}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getExpireTimeEnd() const {
|
||||
return expireTimeEnd_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setExpireTimeEnd(const std::string &expireTimeEnd) {
|
||||
expireTimeEnd_ = expireTimeEnd;
|
||||
setParameter(std::string("ExpireTimeEnd"), expireTimeEnd);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> ListServiceInstanceResourcesRequest::getResourceARN() const {
|
||||
return resourceARN_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setResourceARN(const std::vector<std::string> &resourceARN) {
|
||||
resourceARN_ = resourceARN;
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstanceResourcesRequest::Tag> ListServiceInstanceResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setTag(const std::vector<ListServiceInstanceResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getServiceInstanceId() const {
|
||||
return serviceInstanceId_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setServiceInstanceId(const std::string &serviceInstanceId) {
|
||||
serviceInstanceId_ = serviceInstanceId;
|
||||
setParameter(std::string("ServiceInstanceId"), serviceInstanceId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getExpireTimeStart() const {
|
||||
return expireTimeStart_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setExpireTimeStart(const std::string &expireTimeStart) {
|
||||
expireTimeStart_ = expireTimeStart;
|
||||
setParameter(std::string("ExpireTimeStart"), expireTimeStart);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setMaxResults(const std::string &maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void ListServiceInstanceResourcesRequest::setPayType(const std::string &payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), payType);
|
||||
}
|
||||
|
||||
87
computenest/src/model/ListServiceInstanceResourcesResult.cc
Normal file
87
computenest/src/model/ListServiceInstanceResourcesResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/computenest/model/ListServiceInstanceResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
ListServiceInstanceResourcesResult::ListServiceInstanceResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServiceInstanceResourcesResult::ListServiceInstanceResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServiceInstanceResourcesResult::~ListServiceInstanceResourcesResult()
|
||||
{}
|
||||
|
||||
void ListServiceInstanceResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourcesNode = value["Resources"]["ResourcesItem"];
|
||||
for (auto valueResourcesResourcesItem : allResourcesNode)
|
||||
{
|
||||
ResourcesItem resourcesObject;
|
||||
if(!valueResourcesResourcesItem["ResourceARN"].isNull())
|
||||
resourcesObject.resourceARN = valueResourcesResourcesItem["ResourceARN"].asString();
|
||||
if(!valueResourcesResourcesItem["PayType"].isNull())
|
||||
resourcesObject.payType = valueResourcesResourcesItem["PayType"].asString();
|
||||
if(!valueResourcesResourcesItem["RenewStatus"].isNull())
|
||||
resourcesObject.renewStatus = valueResourcesResourcesItem["RenewStatus"].asString();
|
||||
if(!valueResourcesResourcesItem["CreateTime"].isNull())
|
||||
resourcesObject.createTime = valueResourcesResourcesItem["CreateTime"].asString();
|
||||
if(!valueResourcesResourcesItem["ExpireTime"].isNull())
|
||||
resourcesObject.expireTime = valueResourcesResourcesItem["ExpireTime"].asString();
|
||||
if(!valueResourcesResourcesItem["RenewalPeriod"].isNull())
|
||||
resourcesObject.renewalPeriod = std::stoi(valueResourcesResourcesItem["RenewalPeriod"].asString());
|
||||
if(!valueResourcesResourcesItem["RenewalPeriodUnit"].isNull())
|
||||
resourcesObject.renewalPeriodUnit = valueResourcesResourcesItem["RenewalPeriodUnit"].asString();
|
||||
if(!valueResourcesResourcesItem["ProductType"].isNull())
|
||||
resourcesObject.productType = valueResourcesResourcesItem["ProductType"].asString();
|
||||
if(!valueResourcesResourcesItem["ProductCode"].isNull())
|
||||
resourcesObject.productCode = valueResourcesResourcesItem["ProductCode"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstanceResourcesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstanceResourcesResult::ResourcesItem> ListServiceInstanceResourcesResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
90
computenest/src/model/ListServiceInstancesRequest.cc
Normal file
90
computenest/src/model/ListServiceInstancesRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/computenest/model/ListServiceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNest::Model::ListServiceInstancesRequest;
|
||||
|
||||
ListServiceInstancesRequest::ListServiceInstancesRequest()
|
||||
: RpcServiceRequest("computenest", "2021-06-01", "ListServiceInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListServiceInstancesRequest::~ListServiceInstancesRequest() {}
|
||||
|
||||
std::string ListServiceInstancesRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstancesRequest::Tag> ListServiceInstancesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setTag(const std::vector<ListServiceInstancesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstancesRequest::Filter> ListServiceInstancesRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setFilter(const std::vector<ListServiceInstancesRequest::Filter> &filter) {
|
||||
filter_ = filter;
|
||||
for(int dep1 = 0; dep1 != filter.size(); dep1++) {
|
||||
auto filterObj = filter.at(dep1);
|
||||
std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filterObjStr + ".Name", filterObj.name);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setMaxResults(const std::string &maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
}
|
||||
|
||||
161
computenest/src/model/ListServiceInstancesResult.cc
Normal file
161
computenest/src/model/ListServiceInstancesResult.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/computenest/model/ListServiceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNest;
|
||||
using namespace AlibabaCloud::ComputeNest::Model;
|
||||
|
||||
ListServiceInstancesResult::ListServiceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServiceInstancesResult::ListServiceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServiceInstancesResult::~ListServiceInstancesResult()
|
||||
{}
|
||||
|
||||
void ListServiceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServiceInstancesNode = value["ServiceInstances"]["ServiceInstance"];
|
||||
for (auto valueServiceInstancesServiceInstance : allServiceInstancesNode)
|
||||
{
|
||||
ServiceInstance serviceInstancesObject;
|
||||
if(!valueServiceInstancesServiceInstance["Name"].isNull())
|
||||
serviceInstancesObject.name = valueServiceInstancesServiceInstance["Name"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["Status"].isNull())
|
||||
serviceInstancesObject.status = valueServiceInstancesServiceInstance["Status"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["Outputs"].isNull())
|
||||
serviceInstancesObject.outputs = valueServiceInstancesServiceInstance["Outputs"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["UpdateTime"].isNull())
|
||||
serviceInstancesObject.updateTime = valueServiceInstancesServiceInstance["UpdateTime"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["Parameters"].isNull())
|
||||
serviceInstancesObject.parameters = valueServiceInstancesServiceInstance["Parameters"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["ServiceInstanceId"].isNull())
|
||||
serviceInstancesObject.serviceInstanceId = valueServiceInstancesServiceInstance["ServiceInstanceId"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["CreateTime"].isNull())
|
||||
serviceInstancesObject.createTime = valueServiceInstancesServiceInstance["CreateTime"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["StatusDetail"].isNull())
|
||||
serviceInstancesObject.statusDetail = valueServiceInstancesServiceInstance["StatusDetail"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["Progress"].isNull())
|
||||
serviceInstancesObject.progress = std::stol(valueServiceInstancesServiceInstance["Progress"].asString());
|
||||
if(!valueServiceInstancesServiceInstance["Resources"].isNull())
|
||||
serviceInstancesObject.resources = valueServiceInstancesServiceInstance["Resources"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["TemplateName"].isNull())
|
||||
serviceInstancesObject.templateName = valueServiceInstancesServiceInstance["TemplateName"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["OperatedServiceInstanceId"].isNull())
|
||||
serviceInstancesObject.operatedServiceInstanceId = valueServiceInstancesServiceInstance["OperatedServiceInstanceId"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["OperationStartTime"].isNull())
|
||||
serviceInstancesObject.operationStartTime = valueServiceInstancesServiceInstance["OperationStartTime"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["OperationEndTime"].isNull())
|
||||
serviceInstancesObject.operationEndTime = valueServiceInstancesServiceInstance["OperationEndTime"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["EnableInstanceOps"].isNull())
|
||||
serviceInstancesObject.enableInstanceOps = valueServiceInstancesServiceInstance["EnableInstanceOps"].asString() == "true";
|
||||
if(!valueServiceInstancesServiceInstance["Source"].isNull())
|
||||
serviceInstancesObject.source = valueServiceInstancesServiceInstance["Source"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["EndTime"].isNull())
|
||||
serviceInstancesObject.endTime = valueServiceInstancesServiceInstance["EndTime"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["ServiceType"].isNull())
|
||||
serviceInstancesObject.serviceType = valueServiceInstancesServiceInstance["ServiceType"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["PayType"].isNull())
|
||||
serviceInstancesObject.payType = valueServiceInstancesServiceInstance["PayType"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["MarketInstanceId"].isNull())
|
||||
serviceInstancesObject.marketInstanceId = valueServiceInstancesServiceInstance["MarketInstanceId"].asString();
|
||||
if(!valueServiceInstancesServiceInstance["ResourceGroupId"].isNull())
|
||||
serviceInstancesObject.resourceGroupId = valueServiceInstancesServiceInstance["ResourceGroupId"].asString();
|
||||
auto allTagsNode = valueServiceInstancesServiceInstance["Tags"]["Tag"];
|
||||
for (auto valueServiceInstancesServiceInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
ServiceInstance::Tag tagsObject;
|
||||
if(!valueServiceInstancesServiceInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueServiceInstancesServiceInstanceTagsTag["Key"].asString();
|
||||
if(!valueServiceInstancesServiceInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueServiceInstancesServiceInstanceTagsTag["Value"].asString();
|
||||
serviceInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto serviceNode = value["Service"];
|
||||
if(!serviceNode["Status"].isNull())
|
||||
serviceInstancesObject.service.status = serviceNode["Status"].asString();
|
||||
if(!serviceNode["PublishTime"].isNull())
|
||||
serviceInstancesObject.service.publishTime = serviceNode["PublishTime"].asString();
|
||||
if(!serviceNode["Version"].isNull())
|
||||
serviceInstancesObject.service.version = serviceNode["Version"].asString();
|
||||
if(!serviceNode["DeployType"].isNull())
|
||||
serviceInstancesObject.service.deployType = serviceNode["DeployType"].asString();
|
||||
if(!serviceNode["ServiceId"].isNull())
|
||||
serviceInstancesObject.service.serviceId = serviceNode["ServiceId"].asString();
|
||||
if(!serviceNode["SupplierUrl"].isNull())
|
||||
serviceInstancesObject.service.supplierUrl = serviceNode["SupplierUrl"].asString();
|
||||
if(!serviceNode["ServiceType"].isNull())
|
||||
serviceInstancesObject.service.serviceType = serviceNode["ServiceType"].asString();
|
||||
if(!serviceNode["SupplierName"].isNull())
|
||||
serviceInstancesObject.service.supplierName = serviceNode["SupplierName"].asString();
|
||||
if(!serviceNode["VersionName"].isNull())
|
||||
serviceInstancesObject.service.versionName = serviceNode["VersionName"].asString();
|
||||
auto allServiceInfosNode = serviceNode["ServiceInfos"]["ServiceInfo"];
|
||||
for (auto serviceNodeServiceInfosServiceInfo : allServiceInfosNode)
|
||||
{
|
||||
ServiceInstance::Service::ServiceInfo serviceInfoObject;
|
||||
if(!serviceNodeServiceInfosServiceInfo["Locale"].isNull())
|
||||
serviceInfoObject.locale = serviceNodeServiceInfosServiceInfo["Locale"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["Image"].isNull())
|
||||
serviceInfoObject.image = serviceNodeServiceInfosServiceInfo["Image"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["Name"].isNull())
|
||||
serviceInfoObject.name = serviceNodeServiceInfosServiceInfo["Name"].asString();
|
||||
if(!serviceNodeServiceInfosServiceInfo["ShortDescription"].isNull())
|
||||
serviceInfoObject.shortDescription = serviceNodeServiceInfosServiceInfo["ShortDescription"].asString();
|
||||
serviceInstancesObject.service.serviceInfos.push_back(serviceInfoObject);
|
||||
}
|
||||
serviceInstances_.push_back(serviceInstancesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
|
||||
}
|
||||
|
||||
long ListServiceInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstancesResult::ServiceInstance> ListServiceInstancesResult::getServiceInstances()const
|
||||
{
|
||||
return serviceInstances_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListServiceInstancesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -23,14 +23,24 @@ set(computenestsupplier_public_header
|
||||
set(computenestsupplier_public_header_model
|
||||
include/alibabacloud/computenestsupplier/model/CreateArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/CreateArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/CreateServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/CreateServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRepositoryCredentialsRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRepositoryCredentialsResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceEstimateCostRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceEstimateCostResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceInstanceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceInstanceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetUploadCredentialsRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetUploadCredentialsResult.h
|
||||
include/alibabacloud/computenestsupplier/model/ListArtifactVersionsRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/ListArtifactVersionsResult.h
|
||||
include/alibabacloud/computenestsupplier/model/ListArtifactsRequest.h
|
||||
@@ -39,23 +49,37 @@ set(computenestsupplier_public_header_model
|
||||
include/alibabacloud/computenestsupplier/model/ListServiceInstancesResult.h
|
||||
include/alibabacloud/computenestsupplier/model/ListServiceUsagesRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/ListServiceUsagesResult.h
|
||||
include/alibabacloud/computenestsupplier/model/ListServicesRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/ListServicesResult.h
|
||||
include/alibabacloud/computenestsupplier/model/ReleaseArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/ReleaseArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactResult.h )
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateServiceResult.h )
|
||||
|
||||
set(computenestsupplier_src
|
||||
src/ComputeNestSupplierClient.cc
|
||||
src/model/CreateArtifactRequest.cc
|
||||
src/model/CreateArtifactResult.cc
|
||||
src/model/CreateServiceRequest.cc
|
||||
src/model/CreateServiceResult.cc
|
||||
src/model/DeleteArtifactRequest.cc
|
||||
src/model/DeleteArtifactResult.cc
|
||||
src/model/DeleteServiceRequest.cc
|
||||
src/model/DeleteServiceResult.cc
|
||||
src/model/GetArtifactRequest.cc
|
||||
src/model/GetArtifactResult.cc
|
||||
src/model/GetArtifactRepositoryCredentialsRequest.cc
|
||||
src/model/GetArtifactRepositoryCredentialsResult.cc
|
||||
src/model/GetServiceRequest.cc
|
||||
src/model/GetServiceResult.cc
|
||||
src/model/GetServiceEstimateCostRequest.cc
|
||||
src/model/GetServiceEstimateCostResult.cc
|
||||
src/model/GetServiceInstanceRequest.cc
|
||||
src/model/GetServiceInstanceResult.cc
|
||||
src/model/GetUploadCredentialsRequest.cc
|
||||
src/model/GetUploadCredentialsResult.cc
|
||||
src/model/ListArtifactVersionsRequest.cc
|
||||
src/model/ListArtifactVersionsResult.cc
|
||||
src/model/ListArtifactsRequest.cc
|
||||
@@ -64,10 +88,14 @@ set(computenestsupplier_src
|
||||
src/model/ListServiceInstancesResult.cc
|
||||
src/model/ListServiceUsagesRequest.cc
|
||||
src/model/ListServiceUsagesResult.cc
|
||||
src/model/ListServicesRequest.cc
|
||||
src/model/ListServicesResult.cc
|
||||
src/model/ReleaseArtifactRequest.cc
|
||||
src/model/ReleaseArtifactResult.cc
|
||||
src/model/UpdateArtifactRequest.cc
|
||||
src/model/UpdateArtifactResult.cc )
|
||||
src/model/UpdateArtifactResult.cc
|
||||
src/model/UpdateServiceRequest.cc
|
||||
src/model/UpdateServiceResult.cc )
|
||||
|
||||
add_library(computenestsupplier ${LIB_TYPE}
|
||||
${computenestsupplier_public_header}
|
||||
|
||||
@@ -24,14 +24,24 @@
|
||||
#include "ComputeNestSupplierExport.h"
|
||||
#include "model/CreateArtifactRequest.h"
|
||||
#include "model/CreateArtifactResult.h"
|
||||
#include "model/CreateServiceRequest.h"
|
||||
#include "model/CreateServiceResult.h"
|
||||
#include "model/DeleteArtifactRequest.h"
|
||||
#include "model/DeleteArtifactResult.h"
|
||||
#include "model/DeleteServiceRequest.h"
|
||||
#include "model/DeleteServiceResult.h"
|
||||
#include "model/GetArtifactRequest.h"
|
||||
#include "model/GetArtifactResult.h"
|
||||
#include "model/GetArtifactRepositoryCredentialsRequest.h"
|
||||
#include "model/GetArtifactRepositoryCredentialsResult.h"
|
||||
#include "model/GetServiceRequest.h"
|
||||
#include "model/GetServiceResult.h"
|
||||
#include "model/GetServiceEstimateCostRequest.h"
|
||||
#include "model/GetServiceEstimateCostResult.h"
|
||||
#include "model/GetServiceInstanceRequest.h"
|
||||
#include "model/GetServiceInstanceResult.h"
|
||||
#include "model/GetUploadCredentialsRequest.h"
|
||||
#include "model/GetUploadCredentialsResult.h"
|
||||
#include "model/ListArtifactVersionsRequest.h"
|
||||
#include "model/ListArtifactVersionsResult.h"
|
||||
#include "model/ListArtifactsRequest.h"
|
||||
@@ -40,10 +50,14 @@
|
||||
#include "model/ListServiceInstancesResult.h"
|
||||
#include "model/ListServiceUsagesRequest.h"
|
||||
#include "model/ListServiceUsagesResult.h"
|
||||
#include "model/ListServicesRequest.h"
|
||||
#include "model/ListServicesResult.h"
|
||||
#include "model/ReleaseArtifactRequest.h"
|
||||
#include "model/ReleaseArtifactResult.h"
|
||||
#include "model/UpdateArtifactRequest.h"
|
||||
#include "model/UpdateArtifactResult.h"
|
||||
#include "model/UpdateServiceRequest.h"
|
||||
#include "model/UpdateServiceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -56,18 +70,33 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateArtifactResult> CreateArtifactOutcome;
|
||||
typedef std::future<CreateArtifactOutcome> CreateArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::CreateArtifactRequest&, const CreateArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateServiceResult> CreateServiceOutcome;
|
||||
typedef std::future<CreateServiceOutcome> CreateServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::CreateServiceRequest&, const CreateServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteArtifactResult> DeleteArtifactOutcome;
|
||||
typedef std::future<DeleteArtifactOutcome> DeleteArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::DeleteArtifactRequest&, const DeleteArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteServiceResult> DeleteServiceOutcome;
|
||||
typedef std::future<DeleteServiceOutcome> DeleteServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::DeleteServiceRequest&, const DeleteServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetArtifactResult> GetArtifactOutcome;
|
||||
typedef std::future<GetArtifactOutcome> GetArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetArtifactRequest&, const GetArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetArtifactRepositoryCredentialsResult> GetArtifactRepositoryCredentialsOutcome;
|
||||
typedef std::future<GetArtifactRepositoryCredentialsOutcome> GetArtifactRepositoryCredentialsOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetArtifactRepositoryCredentialsRequest&, const GetArtifactRepositoryCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetArtifactRepositoryCredentialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceResult> GetServiceOutcome;
|
||||
typedef std::future<GetServiceOutcome> GetServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetServiceRequest&, const GetServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceEstimateCostResult> GetServiceEstimateCostOutcome;
|
||||
typedef std::future<GetServiceEstimateCostOutcome> GetServiceEstimateCostOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetServiceEstimateCostRequest&, const GetServiceEstimateCostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceEstimateCostAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceInstanceResult> GetServiceInstanceOutcome;
|
||||
typedef std::future<GetServiceInstanceOutcome> GetServiceInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetServiceInstanceRequest&, const GetServiceInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUploadCredentialsResult> GetUploadCredentialsOutcome;
|
||||
typedef std::future<GetUploadCredentialsOutcome> GetUploadCredentialsOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetUploadCredentialsRequest&, const GetUploadCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUploadCredentialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListArtifactVersionsResult> ListArtifactVersionsOutcome;
|
||||
typedef std::future<ListArtifactVersionsOutcome> ListArtifactVersionsOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::ListArtifactVersionsRequest&, const ListArtifactVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListArtifactVersionsAsyncHandler;
|
||||
@@ -80,12 +109,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListServiceUsagesResult> ListServiceUsagesOutcome;
|
||||
typedef std::future<ListServiceUsagesOutcome> ListServiceUsagesOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::ListServiceUsagesRequest&, const ListServiceUsagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceUsagesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServicesResult> ListServicesOutcome;
|
||||
typedef std::future<ListServicesOutcome> ListServicesOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::ListServicesRequest&, const ListServicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseArtifactResult> ReleaseArtifactOutcome;
|
||||
typedef std::future<ReleaseArtifactOutcome> ReleaseArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::ReleaseArtifactRequest&, const ReleaseArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateArtifactResult> UpdateArtifactOutcome;
|
||||
typedef std::future<UpdateArtifactOutcome> UpdateArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::UpdateArtifactRequest&, const UpdateArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateServiceResult> UpdateServiceOutcome;
|
||||
typedef std::future<UpdateServiceOutcome> UpdateServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::UpdateServiceRequest&, const UpdateServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateServiceAsyncHandler;
|
||||
|
||||
ComputeNestSupplierClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ComputeNestSupplierClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -94,18 +129,33 @@ namespace AlibabaCloud
|
||||
CreateArtifactOutcome createArtifact(const Model::CreateArtifactRequest &request)const;
|
||||
void createArtifactAsync(const Model::CreateArtifactRequest& request, const CreateArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateArtifactOutcomeCallable createArtifactCallable(const Model::CreateArtifactRequest& request) const;
|
||||
CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const;
|
||||
void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const;
|
||||
DeleteArtifactOutcome deleteArtifact(const Model::DeleteArtifactRequest &request)const;
|
||||
void deleteArtifactAsync(const Model::DeleteArtifactRequest& request, const DeleteArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteArtifactOutcomeCallable deleteArtifactCallable(const Model::DeleteArtifactRequest& request) const;
|
||||
DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const;
|
||||
void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const;
|
||||
GetArtifactOutcome getArtifact(const Model::GetArtifactRequest &request)const;
|
||||
void getArtifactAsync(const Model::GetArtifactRequest& request, const GetArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetArtifactOutcomeCallable getArtifactCallable(const Model::GetArtifactRequest& request) const;
|
||||
GetArtifactRepositoryCredentialsOutcome getArtifactRepositoryCredentials(const Model::GetArtifactRepositoryCredentialsRequest &request)const;
|
||||
void getArtifactRepositoryCredentialsAsync(const Model::GetArtifactRepositoryCredentialsRequest& request, const GetArtifactRepositoryCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetArtifactRepositoryCredentialsOutcomeCallable getArtifactRepositoryCredentialsCallable(const Model::GetArtifactRepositoryCredentialsRequest& request) const;
|
||||
GetServiceOutcome getService(const Model::GetServiceRequest &request)const;
|
||||
void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const;
|
||||
GetServiceEstimateCostOutcome getServiceEstimateCost(const Model::GetServiceEstimateCostRequest &request)const;
|
||||
void getServiceEstimateCostAsync(const Model::GetServiceEstimateCostRequest& request, const GetServiceEstimateCostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceEstimateCostOutcomeCallable getServiceEstimateCostCallable(const Model::GetServiceEstimateCostRequest& request) const;
|
||||
GetServiceInstanceOutcome getServiceInstance(const Model::GetServiceInstanceRequest &request)const;
|
||||
void getServiceInstanceAsync(const Model::GetServiceInstanceRequest& request, const GetServiceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceInstanceOutcomeCallable getServiceInstanceCallable(const Model::GetServiceInstanceRequest& request) const;
|
||||
GetUploadCredentialsOutcome getUploadCredentials(const Model::GetUploadCredentialsRequest &request)const;
|
||||
void getUploadCredentialsAsync(const Model::GetUploadCredentialsRequest& request, const GetUploadCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUploadCredentialsOutcomeCallable getUploadCredentialsCallable(const Model::GetUploadCredentialsRequest& request) const;
|
||||
ListArtifactVersionsOutcome listArtifactVersions(const Model::ListArtifactVersionsRequest &request)const;
|
||||
void listArtifactVersionsAsync(const Model::ListArtifactVersionsRequest& request, const ListArtifactVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListArtifactVersionsOutcomeCallable listArtifactVersionsCallable(const Model::ListArtifactVersionsRequest& request) const;
|
||||
@@ -118,12 +168,18 @@ namespace AlibabaCloud
|
||||
ListServiceUsagesOutcome listServiceUsages(const Model::ListServiceUsagesRequest &request)const;
|
||||
void listServiceUsagesAsync(const Model::ListServiceUsagesRequest& request, const ListServiceUsagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceUsagesOutcomeCallable listServiceUsagesCallable(const Model::ListServiceUsagesRequest& request) const;
|
||||
ListServicesOutcome listServices(const Model::ListServicesRequest &request)const;
|
||||
void listServicesAsync(const Model::ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServicesOutcomeCallable listServicesCallable(const Model::ListServicesRequest& request) const;
|
||||
ReleaseArtifactOutcome releaseArtifact(const Model::ReleaseArtifactRequest &request)const;
|
||||
void releaseArtifactAsync(const Model::ReleaseArtifactRequest& request, const ReleaseArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseArtifactOutcomeCallable releaseArtifactCallable(const Model::ReleaseArtifactRequest& request) const;
|
||||
UpdateArtifactOutcome updateArtifact(const Model::UpdateArtifactRequest &request)const;
|
||||
void updateArtifactAsync(const Model::UpdateArtifactRequest& request, const UpdateArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateArtifactOutcomeCallable updateArtifactCallable(const Model::UpdateArtifactRequest& request) const;
|
||||
UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const;
|
||||
void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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_COMPUTENESTSUPPLIER_MODEL_CREATESERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_CREATESERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNestSupplier {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT CreateServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct ServiceInfo {
|
||||
std::string shortDescription;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string locale;
|
||||
};
|
||||
CreateServiceRequest();
|
||||
~CreateServiceRequest();
|
||||
std::string getAlarmMetadata() const;
|
||||
void setAlarmMetadata(const std::string &alarmMetadata);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getPolicyNames() const;
|
||||
void setPolicyNames(const std::string &policyNames);
|
||||
std::string getLicenseMetadata() const;
|
||||
void setLicenseMetadata(const std::string &licenseMetadata);
|
||||
long getDuration() const;
|
||||
void setDuration(long duration);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getApprovalType() const;
|
||||
void setApprovalType(const std::string &approvalType);
|
||||
long getTrialDuration() const;
|
||||
void setTrialDuration(long trialDuration);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getShareType() const;
|
||||
void setShareType(const std::string &shareType);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getUpgradeMetadata() const;
|
||||
void setUpgradeMetadata(const std::string &upgradeMetadata);
|
||||
std::string getDeployMetadata() const;
|
||||
void setDeployMetadata(const std::string &deployMetadata);
|
||||
std::string getServiceType() const;
|
||||
void setServiceType(const std::string &serviceType);
|
||||
bool getIsSupportOperated() const;
|
||||
void setIsSupportOperated(bool isSupportOperated);
|
||||
std::string getTenantType() const;
|
||||
void setTenantType(const std::string &tenantType);
|
||||
std::vector<ServiceInfo> getServiceInfo() const;
|
||||
void setServiceInfo(const std::vector<ServiceInfo> &serviceInfo);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
std::string getVersionName() const;
|
||||
void setVersionName(const std::string &versionName);
|
||||
std::string getOperationMetadata() const;
|
||||
void setOperationMetadata(const std::string &operationMetadata);
|
||||
std::string getDeployType() const;
|
||||
void setDeployType(const std::string &deployType);
|
||||
|
||||
private:
|
||||
std::string alarmMetadata_;
|
||||
std::string clientToken_;
|
||||
std::string policyNames_;
|
||||
std::string licenseMetadata_;
|
||||
long duration_;
|
||||
std::string resourceGroupId_;
|
||||
std::string approvalType_;
|
||||
long trialDuration_;
|
||||
std::string regionId_;
|
||||
std::string shareType_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string upgradeMetadata_;
|
||||
std::string deployMetadata_;
|
||||
std::string serviceType_;
|
||||
bool isSupportOperated_;
|
||||
std::string tenantType_;
|
||||
std::vector<ServiceInfo> serviceInfo_;
|
||||
std::string serviceId_;
|
||||
std::string versionName_;
|
||||
std::string operationMetadata_;
|
||||
std::string deployType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNestSupplier
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_CREATESERVICEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_CREATESERVICERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_CREATESERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNestSupplier
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT CreateServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateServiceResult();
|
||||
explicit CreateServiceResult(const std::string &payload);
|
||||
~CreateServiceResult();
|
||||
std::string getStatus()const;
|
||||
std::string getVersion()const;
|
||||
std::string getServiceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string version_;
|
||||
std::string serviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_CREATESERVICERESULT_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_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNestSupplier {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT DeleteServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteServiceRequest();
|
||||
~DeleteServiceRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getServiceVersion() const;
|
||||
void setServiceVersion(const std::string &serviceVersion);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string serviceVersion_;
|
||||
std::string serviceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNestSupplier
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNestSupplier
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT DeleteServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteServiceResult();
|
||||
explicit DeleteServiceResult(const std::string &payload);
|
||||
~DeleteServiceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user