Compare commits
56 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59dbc66bfe | ||
|
|
d6292fe40b | ||
|
|
061f62c362 | ||
|
|
a3ccdb3f65 | ||
|
|
565bfada36 | ||
|
|
716769a300 | ||
|
|
c4348c87cb | ||
|
|
d3ce4be157 | ||
|
|
05e5980ef3 | ||
|
|
7cf2b932e7 | ||
|
|
c056e54eae | ||
|
|
04cce0ba30 | ||
|
|
c5b68d7ead | ||
|
|
52e7b30f54 | ||
|
|
98ef8c88e8 | ||
|
|
8f2290c159 | ||
|
|
a264cee31b | ||
|
|
ebdf18def1 | ||
|
|
5a6bd32d63 | ||
|
|
86f01c44a8 | ||
|
|
a69c540c10 | ||
|
|
60ea8efd1a | ||
|
|
20e471c41f | ||
|
|
dbb5d5f56d | ||
|
|
68f2493757 | ||
|
|
ff645a988c | ||
|
|
151822de9a | ||
|
|
793abf30f9 | ||
|
|
c0045d1c32 | ||
|
|
43f0c30248 | ||
|
|
dff2b43722 | ||
|
|
090d6da253 | ||
|
|
bd85a14b02 | ||
|
|
30c9817822 | ||
|
|
8f847b0f5d | ||
|
|
1dcf6cb7f3 | ||
|
|
b5790be0db | ||
|
|
371081045a | ||
|
|
480c9b3700 | ||
|
|
72ca50ab65 | ||
|
|
34747e61fe | ||
|
|
b6697980bc | ||
|
|
e3e5a0ff42 | ||
|
|
3c1c245147 | ||
|
|
8c27cbdc14 | ||
|
|
8ac065c14f | ||
|
|
e68269b045 | ||
|
|
53ac431b11 | ||
|
|
5255330d62 | ||
|
|
b9a879f696 | ||
|
|
7ac2669922 | ||
|
|
9693807164 | ||
|
|
e20435dd22 | ||
|
|
06eedce285 | ||
|
|
2e76d1dcac | ||
|
|
e1718ed478 |
185
CHANGELOG
185
CHANGELOG
@@ -1,3 +1,188 @@
|
||||
2020-09-09 Version: patch
|
||||
- Add support cn-beijing service region.
|
||||
- Add ai video cover interface,include submit and query.
|
||||
- Add dynamic image query interface.
|
||||
- Update SubmitMediaAuditJob support MediaAuditConfiguration to set ResourceType.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release ChangeSky.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectChefCap.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Release DetectKneeKeypointXRay, DetectHipKeypointXRay, CalcCACS, RunCTRegistration, ClassifyFNF.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Supported backend interface for ICBU.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Add DescribeActiveOperationTask.
|
||||
- Add DescribeActiveOperationTaskCount.
|
||||
- Add DescribeActiveOperationTaskRegion.
|
||||
- Add DescribeActiveOperationTaskType.
|
||||
- Add ModifyActiveOperationTask.
|
||||
|
||||
2020-09-08 Version: patch
|
||||
- Modify CreateAsyncPredict add new parameters.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Support parameter APIs.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-07 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-05 Version: patch
|
||||
- Add describes devices API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Update domain API.
|
||||
|
||||
2020-09-04 Version: patch
|
||||
- Add GetImageQuality API.
|
||||
- Add more info as parameters to Images related APIs.
|
||||
|
||||
2020-09-03 Version: 1.36.632
|
||||
- DescribeCameraStatistics add parameters.
|
||||
|
||||
2020-09-02 Version: 1.36.631
|
||||
- Support sg for ml region.
|
||||
|
||||
2020-09-02 Version: 1.36.630
|
||||
- ChatApp second version.
|
||||
- Support new message fomat.
|
||||
|
||||
2020-09-02 Version: 1.36.629
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-02 Version: 1.36.628
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
2020-09-01 Version: 1.36.627
|
||||
- Add Smart Verify API.
|
||||
|
||||
2020-09-01 Version: 1.36.626
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.625
|
||||
- Support region route.
|
||||
|
||||
2020-09-01 Version: 1.36.624
|
||||
- Update Parameter.
|
||||
|
||||
2020-08-31 Version: 1.36.623
|
||||
- Support PersonList.
|
||||
|
||||
2020-08-31 Version: 1.36.622
|
||||
- GetPersonList Support LastShotTime.
|
||||
|
||||
2020-08-31 Version: 1.36.621
|
||||
- Support config resource recorder deliverychannel rule.
|
||||
|
||||
2020-08-31 Version: 1.36.620
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.619
|
||||
- Support config resource recorder deliverychannel rule.
|
||||
|
||||
2020-08-31 Version: 1.36.618
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.617
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-08-31 Version: 1.36.616
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-28 Version: 1.36.615
|
||||
- Add name.
|
||||
|
||||
2020-08-28 Version: 1.36.614
|
||||
- Support multiple security group for one ehpc cluster.
|
||||
- Update GWS apis.
|
||||
|
||||
2020-08-28 Version: 1.36.613
|
||||
- Supported Add GetAlgorithmHistoryResult.
|
||||
|
||||
2020-08-27 Version: 1.36.612
|
||||
- Update parameter.
|
||||
|
||||
2020-08-25 Version: 1.36.611
|
||||
- Release ExtractPedestrianFeatureAttribute and BlurFace.
|
||||
|
||||
2020-08-25 Version: 1.36.610
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-25 Version: 1.36.609
|
||||
- Video Content analytics template introduced to this SDK.
|
||||
|
||||
2020-08-25 Version: 1.36.608
|
||||
- Change DeviceSerialNumber to DeviceSn in API RegisterDevice.
|
||||
|
||||
2020-08-24 Version: 1.36.607
|
||||
- Change DeviceSerialNumber to DeviceSn in API RegisterDevice.
|
||||
|
||||
2020-08-24 Version: 1.36.606
|
||||
- Add project api.
|
||||
|
||||
2020-08-24 Version: 1.36.605
|
||||
- Edit QueryMetricByPage api.
|
||||
|
||||
2020-08-21 Version: 1.36.604
|
||||
- Add QueryMetricByPage api.
|
||||
- Add GetAppApiByPage api.
|
||||
|
||||
2020-08-20 Version: 1.36.603
|
||||
- PullActionData add parameters.
|
||||
- DescribeCursor add parameter.
|
||||
|
||||
2020-08-20 Version: 1.36.602
|
||||
- Add list person visit count API.
|
||||
|
||||
2020-08-20 Version: 1.36.601
|
||||
- Added Global Distribute Cache OpenAPIs.
|
||||
- Added direct connection OpenAPIs.
|
||||
|
||||
2020-08-19 Version: 1.36.600
|
||||
- Add DescribeLiveDomainCertificateInfo.
|
||||
|
||||
2020-08-19 Version: 1.36.599
|
||||
- Generated 2020-08-01 for `SmartHosting`.
|
||||
|
||||
2020-08-18 Version: 1.36.598
|
||||
- Support for describe hbaseue multi-zone model.
|
||||
|
||||
2020-08-18 Version: 1.36.597
|
||||
- Support session query operations.
|
||||
|
||||
2020-08-18 Version: 1.36.596
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-08-17 Version: 1.36.595
|
||||
- Add list event algorithm details.
|
||||
|
||||
2020-08-17 Version: 1.36.594
|
||||
- Add list event algorithm details.
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/BatchDeleteDevicesResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CallDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CallDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/ConferenceToLiveResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateEvaluationRequest.h
|
||||
@@ -47,6 +49,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomLayoutRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomLayoutResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteLiveRequest.h
|
||||
@@ -55,6 +59,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/DeleteMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerResult.h
|
||||
include/alibabacloud/aliyuncvc/model/EndDeviceMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/EndDeviceMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/EndLiveRequest.h
|
||||
@@ -103,6 +109,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/RegisterDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/RegisterUemDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/RegisterUemDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.h
|
||||
include/alibabacloud/aliyuncvc/model/StartLiveRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/StartLiveResult.h
|
||||
include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h
|
||||
@@ -124,6 +132,8 @@ set(aliyuncvc_src
|
||||
src/model/BatchDeleteDevicesResult.cc
|
||||
src/model/CallDeviceRequest.cc
|
||||
src/model/CallDeviceResult.cc
|
||||
src/model/ConferenceToLiveRequest.cc
|
||||
src/model/ConferenceToLiveResult.cc
|
||||
src/model/CreateDeviceMeetingRequest.cc
|
||||
src/model/CreateDeviceMeetingResult.cc
|
||||
src/model/CreateEvaluationRequest.cc
|
||||
@@ -140,6 +150,8 @@ set(aliyuncvc_src
|
||||
src/model/CreateUserInternationalResult.cc
|
||||
src/model/CustomGonggeLayoutRequest.cc
|
||||
src/model/CustomGonggeLayoutResult.cc
|
||||
src/model/CustomLayoutRequest.cc
|
||||
src/model/CustomLayoutResult.cc
|
||||
src/model/DeleteDeviceRequest.cc
|
||||
src/model/DeleteDeviceResult.cc
|
||||
src/model/DeleteLiveRequest.cc
|
||||
@@ -148,6 +160,8 @@ set(aliyuncvc_src
|
||||
src/model/DeleteMeetingResult.cc
|
||||
src/model/DeleteUserRequest.cc
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/EnableLiveSpeakerRequest.cc
|
||||
src/model/EnableLiveSpeakerResult.cc
|
||||
src/model/EndDeviceMeetingRequest.cc
|
||||
src/model/EndDeviceMeetingResult.cc
|
||||
src/model/EndLiveRequest.cc
|
||||
@@ -196,6 +210,8 @@ set(aliyuncvc_src
|
||||
src/model/RegisterDeviceResult.cc
|
||||
src/model/RegisterUemDeviceRequest.cc
|
||||
src/model/RegisterUemDeviceResult.cc
|
||||
src/model/SendMeetingCommandRequest.cc
|
||||
src/model/SendMeetingCommandResult.cc
|
||||
src/model/StartLiveRequest.cc
|
||||
src/model/StartLiveResult.cc
|
||||
src/model/UpdateDeviceHeartBeatRequest.cc
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/BatchDeleteDevicesResult.h"
|
||||
#include "model/CallDeviceRequest.h"
|
||||
#include "model/CallDeviceResult.h"
|
||||
#include "model/ConferenceToLiveRequest.h"
|
||||
#include "model/ConferenceToLiveResult.h"
|
||||
#include "model/CreateDeviceMeetingRequest.h"
|
||||
#include "model/CreateDeviceMeetingResult.h"
|
||||
#include "model/CreateEvaluationRequest.h"
|
||||
@@ -48,6 +50,8 @@
|
||||
#include "model/CreateUserInternationalResult.h"
|
||||
#include "model/CustomGonggeLayoutRequest.h"
|
||||
#include "model/CustomGonggeLayoutResult.h"
|
||||
#include "model/CustomLayoutRequest.h"
|
||||
#include "model/CustomLayoutResult.h"
|
||||
#include "model/DeleteDeviceRequest.h"
|
||||
#include "model/DeleteDeviceResult.h"
|
||||
#include "model/DeleteLiveRequest.h"
|
||||
@@ -56,6 +60,8 @@
|
||||
#include "model/DeleteMeetingResult.h"
|
||||
#include "model/DeleteUserRequest.h"
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/EnableLiveSpeakerRequest.h"
|
||||
#include "model/EnableLiveSpeakerResult.h"
|
||||
#include "model/EndDeviceMeetingRequest.h"
|
||||
#include "model/EndDeviceMeetingResult.h"
|
||||
#include "model/EndLiveRequest.h"
|
||||
@@ -104,6 +110,8 @@
|
||||
#include "model/RegisterDeviceResult.h"
|
||||
#include "model/RegisterUemDeviceRequest.h"
|
||||
#include "model/RegisterUemDeviceResult.h"
|
||||
#include "model/SendMeetingCommandRequest.h"
|
||||
#include "model/SendMeetingCommandResult.h"
|
||||
#include "model/StartLiveRequest.h"
|
||||
#include "model/StartLiveResult.h"
|
||||
#include "model/UpdateDeviceHeartBeatRequest.h"
|
||||
@@ -136,6 +144,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CallDeviceResult> CallDeviceOutcome;
|
||||
typedef std::future<CallDeviceOutcome> CallDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CallDeviceRequest&, const CallDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CallDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConferenceToLiveResult> ConferenceToLiveOutcome;
|
||||
typedef std::future<ConferenceToLiveOutcome> ConferenceToLiveOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::ConferenceToLiveRequest&, const ConferenceToLiveOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConferenceToLiveAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDeviceMeetingResult> CreateDeviceMeetingOutcome;
|
||||
typedef std::future<CreateDeviceMeetingOutcome> CreateDeviceMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateDeviceMeetingRequest&, const CreateDeviceMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceMeetingAsyncHandler;
|
||||
@@ -160,6 +171,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CustomGonggeLayoutResult> CustomGonggeLayoutOutcome;
|
||||
typedef std::future<CustomGonggeLayoutOutcome> CustomGonggeLayoutOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CustomGonggeLayoutRequest&, const CustomGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CustomGonggeLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::CustomLayoutResult> CustomLayoutOutcome;
|
||||
typedef std::future<CustomLayoutOutcome> CustomLayoutOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CustomLayoutRequest&, const CustomLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CustomLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
|
||||
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
|
||||
@@ -172,6 +186,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableLiveSpeakerResult> EnableLiveSpeakerOutcome;
|
||||
typedef std::future<EnableLiveSpeakerOutcome> EnableLiveSpeakerOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::EnableLiveSpeakerRequest&, const EnableLiveSpeakerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableLiveSpeakerAsyncHandler;
|
||||
typedef Outcome<Error, Model::EndDeviceMeetingResult> EndDeviceMeetingOutcome;
|
||||
typedef std::future<EndDeviceMeetingOutcome> EndDeviceMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::EndDeviceMeetingRequest&, const EndDeviceMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EndDeviceMeetingAsyncHandler;
|
||||
@@ -244,6 +261,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RegisterUemDeviceResult> RegisterUemDeviceOutcome;
|
||||
typedef std::future<RegisterUemDeviceOutcome> RegisterUemDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::RegisterUemDeviceRequest&, const RegisterUemDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterUemDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendMeetingCommandResult> SendMeetingCommandOutcome;
|
||||
typedef std::future<SendMeetingCommandOutcome> SendMeetingCommandOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::SendMeetingCommandRequest&, const SendMeetingCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMeetingCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartLiveResult> StartLiveOutcome;
|
||||
typedef std::future<StartLiveOutcome> StartLiveOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::StartLiveRequest&, const StartLiveOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartLiveAsyncHandler;
|
||||
@@ -276,6 +296,9 @@ namespace AlibabaCloud
|
||||
CallDeviceOutcome callDevice(const Model::CallDeviceRequest &request)const;
|
||||
void callDeviceAsync(const Model::CallDeviceRequest& request, const CallDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CallDeviceOutcomeCallable callDeviceCallable(const Model::CallDeviceRequest& request) const;
|
||||
ConferenceToLiveOutcome conferenceToLive(const Model::ConferenceToLiveRequest &request)const;
|
||||
void conferenceToLiveAsync(const Model::ConferenceToLiveRequest& request, const ConferenceToLiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConferenceToLiveOutcomeCallable conferenceToLiveCallable(const Model::ConferenceToLiveRequest& request) const;
|
||||
CreateDeviceMeetingOutcome createDeviceMeeting(const Model::CreateDeviceMeetingRequest &request)const;
|
||||
void createDeviceMeetingAsync(const Model::CreateDeviceMeetingRequest& request, const CreateDeviceMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeviceMeetingOutcomeCallable createDeviceMeetingCallable(const Model::CreateDeviceMeetingRequest& request) const;
|
||||
@@ -300,6 +323,9 @@ namespace AlibabaCloud
|
||||
CustomGonggeLayoutOutcome customGonggeLayout(const Model::CustomGonggeLayoutRequest &request)const;
|
||||
void customGonggeLayoutAsync(const Model::CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CustomGonggeLayoutOutcomeCallable customGonggeLayoutCallable(const Model::CustomGonggeLayoutRequest& request) const;
|
||||
CustomLayoutOutcome customLayout(const Model::CustomLayoutRequest &request)const;
|
||||
void customLayoutAsync(const Model::CustomLayoutRequest& request, const CustomLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CustomLayoutOutcomeCallable customLayoutCallable(const Model::CustomLayoutRequest& request) const;
|
||||
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
|
||||
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
|
||||
@@ -312,6 +338,9 @@ namespace AlibabaCloud
|
||||
DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const;
|
||||
void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const;
|
||||
EnableLiveSpeakerOutcome enableLiveSpeaker(const Model::EnableLiveSpeakerRequest &request)const;
|
||||
void enableLiveSpeakerAsync(const Model::EnableLiveSpeakerRequest& request, const EnableLiveSpeakerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableLiveSpeakerOutcomeCallable enableLiveSpeakerCallable(const Model::EnableLiveSpeakerRequest& request) const;
|
||||
EndDeviceMeetingOutcome endDeviceMeeting(const Model::EndDeviceMeetingRequest &request)const;
|
||||
void endDeviceMeetingAsync(const Model::EndDeviceMeetingRequest& request, const EndDeviceMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EndDeviceMeetingOutcomeCallable endDeviceMeetingCallable(const Model::EndDeviceMeetingRequest& request) const;
|
||||
@@ -384,6 +413,9 @@ namespace AlibabaCloud
|
||||
RegisterUemDeviceOutcome registerUemDevice(const Model::RegisterUemDeviceRequest &request)const;
|
||||
void registerUemDeviceAsync(const Model::RegisterUemDeviceRequest& request, const RegisterUemDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterUemDeviceOutcomeCallable registerUemDeviceCallable(const Model::RegisterUemDeviceRequest& request) const;
|
||||
SendMeetingCommandOutcome sendMeetingCommand(const Model::SendMeetingCommandRequest &request)const;
|
||||
void sendMeetingCommandAsync(const Model::SendMeetingCommandRequest& request, const SendMeetingCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendMeetingCommandOutcomeCallable sendMeetingCommandCallable(const Model::SendMeetingCommandRequest& request) const;
|
||||
StartLiveOutcome startLive(const Model::StartLiveRequest &request)const;
|
||||
void startLiveAsync(const Model::StartLiveRequest& request, const StartLiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartLiveOutcomeCallable startLiveCallable(const Model::StartLiveRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ConferenceToLiveRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConferenceToLiveRequest();
|
||||
~ConferenceToLiveRequest();
|
||||
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
bool getOpenPasswordFlag()const;
|
||||
void setOpenPasswordFlag(bool openPasswordFlag);
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getLiveName()const;
|
||||
void setLiveName(const std::string& liveName);
|
||||
|
||||
private:
|
||||
std::string userId_;
|
||||
bool openPasswordFlag_;
|
||||
std::string meetingUUID_;
|
||||
std::string password_;
|
||||
std::string liveName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT ConferenceToLiveResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LiveInfo
|
||||
{
|
||||
std::string liveUUID;
|
||||
};
|
||||
|
||||
|
||||
ConferenceToLiveResult();
|
||||
explicit ConferenceToLiveResult(const std::string &payload);
|
||||
~ConferenceToLiveResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
LiveInfo getLiveInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
LiveInfo liveInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_
|
||||
@@ -35,8 +35,6 @@ namespace AlibabaCloud
|
||||
CreateLiveRequest();
|
||||
~CreateLiveRequest();
|
||||
|
||||
std::string getMemo()const;
|
||||
void setMemo(const std::string& memo);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
bool getOpenPasswordFlag()const;
|
||||
@@ -47,7 +45,6 @@ namespace AlibabaCloud
|
||||
void setLiveName(const std::string& liveName);
|
||||
|
||||
private:
|
||||
std::string memo_;
|
||||
std::string userId_;
|
||||
bool openPasswordFlag_;
|
||||
std::string password_;
|
||||
|
||||
@@ -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_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CustomLayoutRequest();
|
||||
~CustomLayoutRequest();
|
||||
|
||||
std::string getLiveUUID()const;
|
||||
void setLiveUUID(const std::string& liveUUID);
|
||||
std::string getLayoutInfo()const;
|
||||
void setLayoutInfo(const std::string& layoutInfo);
|
||||
|
||||
private:
|
||||
std::string liveUUID_;
|
||||
std::string layoutInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_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_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CustomLayoutResult();
|
||||
explicit CustomLayoutResult(const std::string &payload);
|
||||
~CustomLayoutResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_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_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT EnableLiveSpeakerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableLiveSpeakerRequest();
|
||||
~EnableLiveSpeakerRequest();
|
||||
|
||||
std::string getLiveUUID()const;
|
||||
void setLiveUUID(const std::string& liveUUID);
|
||||
bool getEnableSpeakerFlag()const;
|
||||
void setEnableSpeakerFlag(bool enableSpeakerFlag);
|
||||
|
||||
private:
|
||||
std::string liveUUID_;
|
||||
bool enableSpeakerFlag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_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_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT EnableLiveSpeakerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableLiveSpeakerResult();
|
||||
explicit EnableLiveSpeakerResult(const std::string &payload);
|
||||
~EnableLiveSpeakerResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT SendMeetingCommandRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SendMeetingCommandRequest();
|
||||
~SendMeetingCommandRequest();
|
||||
|
||||
std::string getOperatorMemberUUID()const;
|
||||
void setOperatorMemberUUID(const std::string& operatorMemberUUID);
|
||||
std::string getMemberUUID()const;
|
||||
void setMemberUUID(const std::string& memberUUID);
|
||||
int getSendType()const;
|
||||
void setSendType(int sendType);
|
||||
std::string getCommand()const;
|
||||
void setCommand(const std::string& command);
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
|
||||
private:
|
||||
std::string operatorMemberUUID_;
|
||||
std::string memberUUID_;
|
||||
int sendType_;
|
||||
std::string command_;
|
||||
std::string meetingUUID_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_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_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT SendMeetingCommandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SendMeetingCommandResult();
|
||||
explicit SendMeetingCommandResult(const std::string &payload);
|
||||
~SendMeetingCommandResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_
|
||||
@@ -37,12 +37,18 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getLiveUUID()const;
|
||||
void setLiveUUID(const std::string& liveUUID);
|
||||
std::string getPushInfo()const;
|
||||
void setPushInfo(const std::string& pushInfo);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getLayoutInfo()const;
|
||||
void setLayoutInfo(const std::string& layoutInfo);
|
||||
|
||||
private:
|
||||
std::string liveUUID_;
|
||||
std::string pushInfo_;
|
||||
std::string userId_;
|
||||
std::string layoutInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -231,6 +231,42 @@ AliyuncvcClient::CallDeviceOutcomeCallable AliyuncvcClient::callDeviceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::ConferenceToLiveOutcome AliyuncvcClient::conferenceToLive(const ConferenceToLiveRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConferenceToLiveOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConferenceToLiveOutcome(ConferenceToLiveResult(outcome.result()));
|
||||
else
|
||||
return ConferenceToLiveOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::conferenceToLiveAsync(const ConferenceToLiveRequest& request, const ConferenceToLiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, conferenceToLive(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::ConferenceToLiveOutcomeCallable AliyuncvcClient::conferenceToLiveCallable(const ConferenceToLiveRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConferenceToLiveOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->conferenceToLive(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CreateDeviceMeetingOutcome AliyuncvcClient::createDeviceMeeting(const CreateDeviceMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +555,42 @@ AliyuncvcClient::CustomGonggeLayoutOutcomeCallable AliyuncvcClient::customGongge
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CustomLayoutOutcome AliyuncvcClient::customLayout(const CustomLayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CustomLayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CustomLayoutOutcome(CustomLayoutResult(outcome.result()));
|
||||
else
|
||||
return CustomLayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::customLayoutAsync(const CustomLayoutRequest& request, const CustomLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, customLayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CustomLayoutOutcomeCallable AliyuncvcClient::customLayoutCallable(const CustomLayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CustomLayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->customLayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteDeviceOutcome AliyuncvcClient::deleteDevice(const DeleteDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +735,42 @@ AliyuncvcClient::DeleteUserOutcomeCallable AliyuncvcClient::deleteUserCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::EnableLiveSpeakerOutcome AliyuncvcClient::enableLiveSpeaker(const EnableLiveSpeakerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableLiveSpeakerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableLiveSpeakerOutcome(EnableLiveSpeakerResult(outcome.result()));
|
||||
else
|
||||
return EnableLiveSpeakerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::enableLiveSpeakerAsync(const EnableLiveSpeakerRequest& request, const EnableLiveSpeakerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableLiveSpeaker(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::EnableLiveSpeakerOutcomeCallable AliyuncvcClient::enableLiveSpeakerCallable(const EnableLiveSpeakerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableLiveSpeakerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableLiveSpeaker(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::EndDeviceMeetingOutcome AliyuncvcClient::endDeviceMeeting(const EndDeviceMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1635,42 @@ AliyuncvcClient::RegisterUemDeviceOutcomeCallable AliyuncvcClient::registerUemDe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::SendMeetingCommandOutcome AliyuncvcClient::sendMeetingCommand(const SendMeetingCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendMeetingCommandOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendMeetingCommandOutcome(SendMeetingCommandResult(outcome.result()));
|
||||
else
|
||||
return SendMeetingCommandOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::sendMeetingCommandAsync(const SendMeetingCommandRequest& request, const SendMeetingCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendMeetingCommand(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::SendMeetingCommandOutcomeCallable AliyuncvcClient::sendMeetingCommandCallable(const SendMeetingCommandRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendMeetingCommandOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendMeetingCommand(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::StartLiveOutcome AliyuncvcClient::startLive(const StartLiveRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
aliyuncvc/src/model/ConferenceToLiveRequest.cc
Normal file
84
aliyuncvc/src/model/ConferenceToLiveRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::ConferenceToLiveRequest;
|
||||
|
||||
ConferenceToLiveRequest::ConferenceToLiveRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "ConferenceToLive")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConferenceToLiveRequest::~ConferenceToLiveRequest()
|
||||
{}
|
||||
|
||||
std::string ConferenceToLiveRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ConferenceToLiveRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
bool ConferenceToLiveRequest::getOpenPasswordFlag()const
|
||||
{
|
||||
return openPasswordFlag_;
|
||||
}
|
||||
|
||||
void ConferenceToLiveRequest::setOpenPasswordFlag(bool openPasswordFlag)
|
||||
{
|
||||
openPasswordFlag_ = openPasswordFlag;
|
||||
setBodyParameter("OpenPasswordFlag", openPasswordFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConferenceToLiveRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void ConferenceToLiveRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setBodyParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string ConferenceToLiveRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void ConferenceToLiveRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setBodyParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string ConferenceToLiveRequest::getLiveName()const
|
||||
{
|
||||
return liveName_;
|
||||
}
|
||||
|
||||
void ConferenceToLiveRequest::setLiveName(const std::string& liveName)
|
||||
{
|
||||
liveName_ = liveName;
|
||||
setBodyParameter("LiveName", liveName);
|
||||
}
|
||||
|
||||
73
aliyuncvc/src/model/ConferenceToLiveResult.cc
Normal file
73
aliyuncvc/src/model/ConferenceToLiveResult.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/aliyuncvc/model/ConferenceToLiveResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
ConferenceToLiveResult::ConferenceToLiveResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConferenceToLiveResult::ConferenceToLiveResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConferenceToLiveResult::~ConferenceToLiveResult()
|
||||
{}
|
||||
|
||||
void ConferenceToLiveResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto liveInfoNode = value["LiveInfo"];
|
||||
if(!liveInfoNode["LiveUUID"].isNull())
|
||||
liveInfo_.liveUUID = liveInfoNode["LiveUUID"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ConferenceToLiveResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ConferenceToLiveResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ConferenceToLiveResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
ConferenceToLiveResult::LiveInfo ConferenceToLiveResult::getLiveInfo()const
|
||||
{
|
||||
return liveInfo_;
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ CreateLiveRequest::CreateLiveRequest() :
|
||||
CreateLiveRequest::~CreateLiveRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLiveRequest::getMemo()const
|
||||
{
|
||||
return memo_;
|
||||
}
|
||||
|
||||
void CreateLiveRequest::setMemo(const std::string& memo)
|
||||
{
|
||||
memo_ = memo;
|
||||
setBodyParameter("Memo", memo);
|
||||
}
|
||||
|
||||
std::string CreateLiveRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
|
||||
51
aliyuncvc/src/model/CustomLayoutRequest.cc
Normal file
51
aliyuncvc/src/model/CustomLayoutRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CustomLayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CustomLayoutRequest;
|
||||
|
||||
CustomLayoutRequest::CustomLayoutRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CustomLayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CustomLayoutRequest::~CustomLayoutRequest()
|
||||
{}
|
||||
|
||||
std::string CustomLayoutRequest::getLiveUUID()const
|
||||
{
|
||||
return liveUUID_;
|
||||
}
|
||||
|
||||
void CustomLayoutRequest::setLiveUUID(const std::string& liveUUID)
|
||||
{
|
||||
liveUUID_ = liveUUID;
|
||||
setBodyParameter("LiveUUID", liveUUID);
|
||||
}
|
||||
|
||||
std::string CustomLayoutRequest::getLayoutInfo()const
|
||||
{
|
||||
return layoutInfo_;
|
||||
}
|
||||
|
||||
void CustomLayoutRequest::setLayoutInfo(const std::string& layoutInfo)
|
||||
{
|
||||
layoutInfo_ = layoutInfo;
|
||||
setBodyParameter("LayoutInfo", layoutInfo);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/CustomLayoutResult.cc
Normal file
65
aliyuncvc/src/model/CustomLayoutResult.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/aliyuncvc/model/CustomLayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CustomLayoutResult::CustomLayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CustomLayoutResult::CustomLayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CustomLayoutResult::~CustomLayoutResult()
|
||||
{}
|
||||
|
||||
void CustomLayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CustomLayoutResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CustomLayoutResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CustomLayoutResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
aliyuncvc/src/model/EnableLiveSpeakerRequest.cc
Normal file
51
aliyuncvc/src/model/EnableLiveSpeakerRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::EnableLiveSpeakerRequest;
|
||||
|
||||
EnableLiveSpeakerRequest::EnableLiveSpeakerRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "EnableLiveSpeaker")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableLiveSpeakerRequest::~EnableLiveSpeakerRequest()
|
||||
{}
|
||||
|
||||
std::string EnableLiveSpeakerRequest::getLiveUUID()const
|
||||
{
|
||||
return liveUUID_;
|
||||
}
|
||||
|
||||
void EnableLiveSpeakerRequest::setLiveUUID(const std::string& liveUUID)
|
||||
{
|
||||
liveUUID_ = liveUUID;
|
||||
setBodyParameter("LiveUUID", liveUUID);
|
||||
}
|
||||
|
||||
bool EnableLiveSpeakerRequest::getEnableSpeakerFlag()const
|
||||
{
|
||||
return enableSpeakerFlag_;
|
||||
}
|
||||
|
||||
void EnableLiveSpeakerRequest::setEnableSpeakerFlag(bool enableSpeakerFlag)
|
||||
{
|
||||
enableSpeakerFlag_ = enableSpeakerFlag;
|
||||
setBodyParameter("EnableSpeakerFlag", enableSpeakerFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/EnableLiveSpeakerResult.cc
Normal file
65
aliyuncvc/src/model/EnableLiveSpeakerResult.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/aliyuncvc/model/EnableLiveSpeakerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
EnableLiveSpeakerResult::EnableLiveSpeakerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableLiveSpeakerResult::EnableLiveSpeakerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableLiveSpeakerResult::~EnableLiveSpeakerResult()
|
||||
{}
|
||||
|
||||
void EnableLiveSpeakerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string EnableLiveSpeakerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int EnableLiveSpeakerResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool EnableLiveSpeakerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
aliyuncvc/src/model/SendMeetingCommandRequest.cc
Normal file
84
aliyuncvc/src/model/SendMeetingCommandRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::SendMeetingCommandRequest;
|
||||
|
||||
SendMeetingCommandRequest::SendMeetingCommandRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "SendMeetingCommand")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendMeetingCommandRequest::~SendMeetingCommandRequest()
|
||||
{}
|
||||
|
||||
std::string SendMeetingCommandRequest::getOperatorMemberUUID()const
|
||||
{
|
||||
return operatorMemberUUID_;
|
||||
}
|
||||
|
||||
void SendMeetingCommandRequest::setOperatorMemberUUID(const std::string& operatorMemberUUID)
|
||||
{
|
||||
operatorMemberUUID_ = operatorMemberUUID;
|
||||
setBodyParameter("OperatorMemberUUID", operatorMemberUUID);
|
||||
}
|
||||
|
||||
std::string SendMeetingCommandRequest::getMemberUUID()const
|
||||
{
|
||||
return memberUUID_;
|
||||
}
|
||||
|
||||
void SendMeetingCommandRequest::setMemberUUID(const std::string& memberUUID)
|
||||
{
|
||||
memberUUID_ = memberUUID;
|
||||
setParameter("MemberUUID", memberUUID);
|
||||
}
|
||||
|
||||
int SendMeetingCommandRequest::getSendType()const
|
||||
{
|
||||
return sendType_;
|
||||
}
|
||||
|
||||
void SendMeetingCommandRequest::setSendType(int sendType)
|
||||
{
|
||||
sendType_ = sendType;
|
||||
setBodyParameter("SendType", std::to_string(sendType));
|
||||
}
|
||||
|
||||
std::string SendMeetingCommandRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void SendMeetingCommandRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setBodyParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string SendMeetingCommandRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void SendMeetingCommandRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/SendMeetingCommandResult.cc
Normal file
65
aliyuncvc/src/model/SendMeetingCommandResult.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/aliyuncvc/model/SendMeetingCommandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
SendMeetingCommandResult::SendMeetingCommandResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendMeetingCommandResult::SendMeetingCommandResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendMeetingCommandResult::~SendMeetingCommandResult()
|
||||
{}
|
||||
|
||||
void SendMeetingCommandResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SendMeetingCommandResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SendMeetingCommandResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool SendMeetingCommandResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void StartLiveRequest::setLiveUUID(const std::string& liveUUID)
|
||||
setBodyParameter("LiveUUID", liveUUID);
|
||||
}
|
||||
|
||||
std::string StartLiveRequest::getPushInfo()const
|
||||
{
|
||||
return pushInfo_;
|
||||
}
|
||||
|
||||
void StartLiveRequest::setPushInfo(const std::string& pushInfo)
|
||||
{
|
||||
pushInfo_ = pushInfo;
|
||||
setBodyParameter("PushInfo", pushInfo);
|
||||
}
|
||||
|
||||
std::string StartLiveRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
@@ -49,3 +60,14 @@ void StartLiveRequest::setUserId(const std::string& userId)
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string StartLiveRequest::getLayoutInfo()const
|
||||
{
|
||||
return layoutInfo_;
|
||||
}
|
||||
|
||||
void StartLiveRequest::setLayoutInfo(const std::string& layoutInfo)
|
||||
{
|
||||
layoutInfo_ = layoutInfo;
|
||||
setBodyParameter("LayoutInfo", layoutInfo);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
|
||||
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
|
||||
include/alibabacloud/arms/model/GetAppApiByPageResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
|
||||
@@ -83,6 +85,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/QueryDatasetResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricRequest.h
|
||||
include/alibabacloud/arms/model/QueryMetricResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageRequest.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h
|
||||
@@ -148,6 +152,8 @@ set(arms_src
|
||||
src/model/DescribeTraceLicenseKeyResult.cc
|
||||
src/model/DescribeTraceLocationRequest.cc
|
||||
src/model/DescribeTraceLocationResult.cc
|
||||
src/model/GetAppApiByPageRequest.cc
|
||||
src/model/GetAppApiByPageResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetMultipleTraceRequest.cc
|
||||
@@ -180,6 +186,8 @@ set(arms_src
|
||||
src/model/QueryDatasetResult.cc
|
||||
src/model/QueryMetricRequest.cc
|
||||
src/model/QueryMetricResult.cc
|
||||
src/model/QueryMetricByPageRequest.cc
|
||||
src/model/QueryMetricByPageResult.cc
|
||||
src/model/SearchAlertContactRequest.cc
|
||||
src/model/SearchAlertContactResult.cc
|
||||
src/model/SearchAlertContactGroupRequest.cc
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include "model/DescribeTraceLicenseKeyResult.h"
|
||||
#include "model/DescribeTraceLocationRequest.h"
|
||||
#include "model/DescribeTraceLocationResult.h"
|
||||
#include "model/GetAppApiByPageRequest.h"
|
||||
#include "model/GetAppApiByPageResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetMultipleTraceRequest.h"
|
||||
@@ -84,6 +86,8 @@
|
||||
#include "model/QueryDatasetResult.h"
|
||||
#include "model/QueryMetricRequest.h"
|
||||
#include "model/QueryMetricResult.h"
|
||||
#include "model/QueryMetricByPageRequest.h"
|
||||
#include "model/QueryMetricByPageResult.h"
|
||||
#include "model/SearchAlertContactRequest.h"
|
||||
#include "model/SearchAlertContactResult.h"
|
||||
#include "model/SearchAlertContactGroupRequest.h"
|
||||
@@ -170,6 +174,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTraceLocationResult> DescribeTraceLocationOutcome;
|
||||
typedef std::future<DescribeTraceLocationOutcome> DescribeTraceLocationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DescribeTraceLocationRequest&, const DescribeTraceLocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTraceLocationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAppApiByPageResult> GetAppApiByPageOutcome;
|
||||
typedef std::future<GetAppApiByPageOutcome> GetAppApiByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetAppApiByPageRequest&, const GetAppApiByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAppApiByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
@@ -218,6 +225,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryMetricResult> QueryMetricOutcome;
|
||||
typedef std::future<QueryMetricOutcome> QueryMetricOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryMetricRequest&, const QueryMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryMetricByPageResult> QueryMetricByPageOutcome;
|
||||
typedef std::future<QueryMetricByPageOutcome> QueryMetricByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryMetricByPageRequest&, const QueryMetricByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMetricByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAlertContactResult> SearchAlertContactOutcome;
|
||||
typedef std::future<SearchAlertContactOutcome> SearchAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertContactRequest&, const SearchAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertContactAsyncHandler;
|
||||
@@ -316,6 +326,9 @@ namespace AlibabaCloud
|
||||
DescribeTraceLocationOutcome describeTraceLocation(const Model::DescribeTraceLocationRequest &request)const;
|
||||
void describeTraceLocationAsync(const Model::DescribeTraceLocationRequest& request, const DescribeTraceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTraceLocationOutcomeCallable describeTraceLocationCallable(const Model::DescribeTraceLocationRequest& request) const;
|
||||
GetAppApiByPageOutcome getAppApiByPage(const Model::GetAppApiByPageRequest &request)const;
|
||||
void getAppApiByPageAsync(const Model::GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAppApiByPageOutcomeCallable getAppApiByPageCallable(const Model::GetAppApiByPageRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
@@ -364,6 +377,9 @@ namespace AlibabaCloud
|
||||
QueryMetricOutcome queryMetric(const Model::QueryMetricRequest &request)const;
|
||||
void queryMetricAsync(const Model::QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMetricOutcomeCallable queryMetricCallable(const Model::QueryMetricRequest& request) const;
|
||||
QueryMetricByPageOutcome queryMetricByPage(const Model::QueryMetricByPageRequest &request)const;
|
||||
void queryMetricByPageAsync(const Model::QueryMetricByPageRequest& request, const QueryMetricByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMetricByPageOutcomeCallable queryMetricByPageCallable(const Model::QueryMetricByPageRequest& request) const;
|
||||
SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const;
|
||||
void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertContactOutcomeCallable searchAlertContactCallable(const Model::SearchAlertContactRequest& request) const;
|
||||
|
||||
@@ -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_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAppApiByPageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAppApiByPageRequest();
|
||||
~GetAppApiByPageRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getPId()const;
|
||||
void setPId(const std::string& pId);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getIntervalMills()const;
|
||||
void setIntervalMills(int intervalMills);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
int currentPage_;
|
||||
std::string pId_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int intervalMills_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGEREQUEST_H_
|
||||
64
arms/include/alibabacloud/arms/model/GetAppApiByPageResult.h
Normal file
64
arms/include/alibabacloud/arms/model/GetAppApiByPageResult.h
Normal file
@@ -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_ARMS_MODEL_GETAPPAPIBYPAGERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetAppApiByPageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int pageSize;
|
||||
std::string total;
|
||||
int page;
|
||||
std::vector<std::string> items;
|
||||
};
|
||||
|
||||
|
||||
GetAppApiByPageResult();
|
||||
explicit GetAppApiByPageResult(const std::string &payload);
|
||||
~GetAppApiByPageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETAPPAPIBYPAGERESULT_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_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryMetricByPageRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
QueryMetricByPageRequest();
|
||||
~QueryMetricByPageRequest();
|
||||
|
||||
std::string getConsistencyQueryStrategy()const;
|
||||
void setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getConsistencyDataKey()const;
|
||||
void setConsistencyDataKey(const std::string& consistencyDataKey);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
int getIntervalInSec()const;
|
||||
void setIntervalInSec(int intervalInSec);
|
||||
std::string getMetric()const;
|
||||
void setMetric(const std::string& metric);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<std::string> getDimensions()const;
|
||||
void setDimensions(const std::vector<std::string>& dimensions);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string consistencyQueryStrategy_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
int currentPage_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string consistencyDataKey_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
std::string metric_;
|
||||
int pageSize_;
|
||||
std::vector<std::string> dimensions_;
|
||||
std::string order_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGEREQUEST_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_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryMetricByPageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int pageSize;
|
||||
int total;
|
||||
int page;
|
||||
std::vector<std::string> items;
|
||||
};
|
||||
|
||||
|
||||
QueryMetricByPageResult();
|
||||
explicit QueryMetricByPageResult(const std::string &payload);
|
||||
~QueryMetricByPageResult();
|
||||
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_ARMS_MODEL_QUERYMETRICBYPAGERESULT_H_
|
||||
@@ -591,6 +591,42 @@ ARMSClient::DescribeTraceLocationOutcomeCallable ARMSClient::describeTraceLocati
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcome ARMSClient::getAppApiByPage(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAppApiByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAppApiByPageOutcome(GetAppApiByPageResult(outcome.result()));
|
||||
else
|
||||
return GetAppApiByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getAppApiByPageAsync(const GetAppApiByPageRequest& request, const GetAppApiByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAppApiByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetAppApiByPageOutcomeCallable ARMSClient::getAppApiByPageCallable(const GetAppApiByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAppApiByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAppApiByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1203,42 @@ ARMSClient::QueryMetricOutcomeCallable ARMSClient::queryMetricCallable(const Que
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::QueryMetricByPageOutcome ARMSClient::queryMetricByPage(const QueryMetricByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMetricByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryMetricByPageOutcome(QueryMetricByPageResult(outcome.result()));
|
||||
else
|
||||
return QueryMetricByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::queryMetricByPageAsync(const QueryMetricByPageRequest& request, const QueryMetricByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryMetricByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::QueryMetricByPageOutcomeCallable ARMSClient::queryMetricByPageCallable(const QueryMetricByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryMetricByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryMetricByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertContactOutcome ARMSClient::searchAlertContact(const SearchAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
106
arms/src/model/GetAppApiByPageRequest.cc
Normal file
106
arms/src/model/GetAppApiByPageRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/arms/model/GetAppApiByPageRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetAppApiByPageRequest;
|
||||
|
||||
GetAppApiByPageRequest::GetAppApiByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetAppApiByPage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAppApiByPageRequest::~GetAppApiByPageRequest()
|
||||
{}
|
||||
|
||||
long GetAppApiByPageRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageRequest::getPId()const
|
||||
{
|
||||
return pId_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setPId(const std::string& pId)
|
||||
{
|
||||
pId_ = pId;
|
||||
setParameter("PId", pId);
|
||||
}
|
||||
|
||||
long GetAppApiByPageRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetAppApiByPageRequest::getIntervalMills()const
|
||||
{
|
||||
return intervalMills_;
|
||||
}
|
||||
|
||||
void GetAppApiByPageRequest::setIntervalMills(int intervalMills)
|
||||
{
|
||||
intervalMills_ = intervalMills;
|
||||
setParameter("IntervalMills", std::to_string(intervalMills));
|
||||
}
|
||||
|
||||
80
arms/src/model/GetAppApiByPageResult.cc
Normal file
80
arms/src/model/GetAppApiByPageResult.cc
Normal file
@@ -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/arms/model/GetAppApiByPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetAppApiByPageResult::GetAppApiByPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAppApiByPageResult::GetAppApiByPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAppApiByPageResult::~GetAppApiByPageResult()
|
||||
{}
|
||||
|
||||
void GetAppApiByPageResult::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["Total"].isNull())
|
||||
data_.total = dataNode["Total"].asString();
|
||||
if(!dataNode["Page"].isNull())
|
||||
data_.page = std::stoi(dataNode["Page"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allItems = dataNode["Items"]["Items"];
|
||||
for (auto value : allItems)
|
||||
data_.items.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAppApiByPageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetAppApiByPageResult::Data GetAppApiByPageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetAppApiByPageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAppApiByPageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
192
arms/src/model/QueryMetricByPageRequest.cc
Normal file
192
arms/src/model/QueryMetricByPageRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* 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/arms/model/QueryMetricByPageRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::QueryMetricByPageRequest;
|
||||
|
||||
QueryMetricByPageRequest::QueryMetricByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "QueryMetricByPage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryMetricByPageRequest::~QueryMetricByPageRequest()
|
||||
{}
|
||||
|
||||
std::string QueryMetricByPageRequest::getConsistencyQueryStrategy()const
|
||||
{
|
||||
return consistencyQueryStrategy_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy)
|
||||
{
|
||||
consistencyQueryStrategy_ = consistencyQueryStrategy;
|
||||
setParameter("ConsistencyQueryStrategy", consistencyQueryStrategy);
|
||||
}
|
||||
|
||||
long QueryMetricByPageRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long QueryMetricByPageRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<QueryMetricByPageRequest::Filters> QueryMetricByPageRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getConsistencyDataKey()const
|
||||
{
|
||||
return consistencyDataKey_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setConsistencyDataKey(const std::string& consistencyDataKey)
|
||||
{
|
||||
consistencyDataKey_ = consistencyDataKey;
|
||||
setParameter("ConsistencyDataKey", consistencyDataKey);
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricByPageRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int dep1 = 0; dep1!= measures.size(); dep1++) {
|
||||
setParameter("Measures."+ std::to_string(dep1), measures.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getIntervalInSec()const
|
||||
{
|
||||
return intervalInSec_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
int QueryMetricByPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricByPageRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setDimensions(const std::vector<std::string>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
||||
setParameter("Dimensions."+ std::to_string(dep1), dimensions.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void QueryMetricByPageRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
80
arms/src/model/QueryMetricByPageResult.cc
Normal file
80
arms/src/model/QueryMetricByPageResult.cc
Normal file
@@ -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/arms/model/QueryMetricByPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
QueryMetricByPageResult::QueryMetricByPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryMetricByPageResult::QueryMetricByPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryMetricByPageResult::~QueryMetricByPageResult()
|
||||
{}
|
||||
|
||||
void QueryMetricByPageResult::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["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Page"].isNull())
|
||||
data_.page = std::stoi(dataNode["Page"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allItems = dataNode["Items"]["Items"];
|
||||
for (auto value : allItems)
|
||||
data_.items.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryMetricByPageResult::Data QueryMetricByPageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryMetricByPageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryMetricByPageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -39,8 +39,14 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getTemplateBodyParams()const;
|
||||
void setTemplateBodyParams(const std::string& templateBodyParams);
|
||||
std::string getLink()const;
|
||||
void setLink(const std::string& link);
|
||||
std::string getCaption()const;
|
||||
void setCaption(const std::string& caption);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getChannelType()const;
|
||||
@@ -55,11 +61,16 @@ namespace AlibabaCloud
|
||||
void setTo(const std::string& to);
|
||||
std::string getTemplateCode()const;
|
||||
void setTemplateCode(const std::string& templateCode);
|
||||
std::string getMediaType()const;
|
||||
void setMediaType(const std::string& mediaType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string templateBodyParams_;
|
||||
std::string link_;
|
||||
std::string caption_;
|
||||
std::string type_;
|
||||
std::string body_;
|
||||
std::string accessKeyId_;
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
@@ -67,6 +78,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string to_;
|
||||
std::string templateCode_;
|
||||
std::string mediaType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,7 +46,29 @@ std::string SendMessageRequest::getTemplateBodyParams()const
|
||||
void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
|
||||
{
|
||||
templateBodyParams_ = templateBodyParams;
|
||||
setParameter("TemplateBodyParams", templateBodyParams);
|
||||
setBodyParameter("TemplateBodyParams", templateBodyParams);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setLink(const std::string& link)
|
||||
{
|
||||
link_ = link;
|
||||
setBodyParameter("Link", link);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getCaption()const
|
||||
{
|
||||
return caption_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setCaption(const std::string& caption)
|
||||
{
|
||||
caption_ = caption;
|
||||
setBodyParameter("Caption", caption);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getType()const
|
||||
@@ -57,7 +79,18 @@ std::string SendMessageRequest::getType()const
|
||||
void SendMessageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setBodyParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getAccessKeyId()const
|
||||
@@ -79,7 +112,7 @@ std::string SendMessageRequest::getChannelType()const
|
||||
void SendMessageRequest::setChannelType(const std::string& channelType)
|
||||
{
|
||||
channelType_ = channelType;
|
||||
setParameter("ChannelType", channelType);
|
||||
setBodyParameter("ChannelType", channelType);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getFrom()const
|
||||
@@ -90,7 +123,7 @@ std::string SendMessageRequest::getFrom()const
|
||||
void SendMessageRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
setBodyParameter("From", from);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getResourceOwnerAccount()const
|
||||
@@ -123,7 +156,7 @@ std::string SendMessageRequest::getTo()const
|
||||
void SendMessageRequest::setTo(const std::string& to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", to);
|
||||
setBodyParameter("To", to);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTemplateCode()const
|
||||
@@ -134,6 +167,17 @@ std::string SendMessageRequest::getTemplateCode()const
|
||||
void SendMessageRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setBodyParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getMediaType()const
|
||||
{
|
||||
return mediaType_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setMediaType(const std::string& mediaType)
|
||||
{
|
||||
mediaType_ = mediaType;
|
||||
setBodyParameter("MediaType", mediaType);
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +109,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserBillTypeResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserConfigsResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserQuotaResult.h
|
||||
include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageRequest.h
|
||||
@@ -397,8 +399,6 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWafConfigResult.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h
|
||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h
|
||||
include/alibabacloud/cdn/model/StartCdnDomainRequest.h
|
||||
@@ -506,6 +506,8 @@ set(cdn_src
|
||||
src/model/DescribeCdnUserBillTypeResult.cc
|
||||
src/model/DescribeCdnUserConfigsRequest.cc
|
||||
src/model/DescribeCdnUserConfigsResult.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncRequest.cc
|
||||
src/model/DescribeCdnUserDomainsByFuncResult.cc
|
||||
src/model/DescribeCdnUserQuotaRequest.cc
|
||||
src/model/DescribeCdnUserQuotaResult.cc
|
||||
src/model/DescribeCdnUserResourcePackageRequest.cc
|
||||
@@ -794,8 +796,6 @@ set(cdn_src
|
||||
src/model/SetUserGreenManagerConfigResult.cc
|
||||
src/model/SetVideoSeekConfigRequest.cc
|
||||
src/model/SetVideoSeekConfigResult.cc
|
||||
src/model/SetWafConfigRequest.cc
|
||||
src/model/SetWafConfigResult.cc
|
||||
src/model/SetWaitingRoomConfigRequest.cc
|
||||
src/model/SetWaitingRoomConfigResult.cc
|
||||
src/model/StartCdnDomainRequest.cc
|
||||
|
||||
@@ -110,6 +110,8 @@
|
||||
#include "model/DescribeCdnUserBillTypeResult.h"
|
||||
#include "model/DescribeCdnUserConfigsRequest.h"
|
||||
#include "model/DescribeCdnUserConfigsResult.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncRequest.h"
|
||||
#include "model/DescribeCdnUserDomainsByFuncResult.h"
|
||||
#include "model/DescribeCdnUserQuotaRequest.h"
|
||||
#include "model/DescribeCdnUserQuotaResult.h"
|
||||
#include "model/DescribeCdnUserResourcePackageRequest.h"
|
||||
@@ -398,8 +400,6 @@
|
||||
#include "model/SetUserGreenManagerConfigResult.h"
|
||||
#include "model/SetVideoSeekConfigRequest.h"
|
||||
#include "model/SetVideoSeekConfigResult.h"
|
||||
#include "model/SetWafConfigRequest.h"
|
||||
#include "model/SetWafConfigResult.h"
|
||||
#include "model/SetWaitingRoomConfigRequest.h"
|
||||
#include "model/SetWaitingRoomConfigResult.h"
|
||||
#include "model/StartCdnDomainRequest.h"
|
||||
@@ -557,6 +557,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeCdnUserConfigsResult> DescribeCdnUserConfigsOutcome;
|
||||
typedef std::future<DescribeCdnUserConfigsOutcome> DescribeCdnUserConfigsOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserConfigsRequest&, const DescribeCdnUserConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserConfigsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserDomainsByFuncResult> DescribeCdnUserDomainsByFuncOutcome;
|
||||
typedef std::future<DescribeCdnUserDomainsByFuncOutcome> DescribeCdnUserDomainsByFuncOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserDomainsByFuncRequest&, const DescribeCdnUserDomainsByFuncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserDomainsByFuncAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCdnUserQuotaResult> DescribeCdnUserQuotaOutcome;
|
||||
typedef std::future<DescribeCdnUserQuotaOutcome> DescribeCdnUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeCdnUserQuotaRequest&, const DescribeCdnUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnUserQuotaAsyncHandler;
|
||||
@@ -989,9 +992,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetVideoSeekConfigResult> SetVideoSeekConfigOutcome;
|
||||
typedef std::future<SetVideoSeekConfigOutcome> SetVideoSeekConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetVideoSeekConfigRequest&, const SetVideoSeekConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetVideoSeekConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWafConfigResult> SetWafConfigOutcome;
|
||||
typedef std::future<SetWafConfigOutcome> SetWafConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWafConfigRequest&, const SetWafConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWafConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetWaitingRoomConfigResult> SetWaitingRoomConfigOutcome;
|
||||
typedef std::future<SetWaitingRoomConfigOutcome> SetWaitingRoomConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::SetWaitingRoomConfigRequest&, const SetWaitingRoomConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetWaitingRoomConfigAsyncHandler;
|
||||
@@ -1153,6 +1153,9 @@ namespace AlibabaCloud
|
||||
DescribeCdnUserConfigsOutcome describeCdnUserConfigs(const Model::DescribeCdnUserConfigsRequest &request)const;
|
||||
void describeCdnUserConfigsAsync(const Model::DescribeCdnUserConfigsRequest& request, const DescribeCdnUserConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserConfigsOutcomeCallable describeCdnUserConfigsCallable(const Model::DescribeCdnUserConfigsRequest& request) const;
|
||||
DescribeCdnUserDomainsByFuncOutcome describeCdnUserDomainsByFunc(const Model::DescribeCdnUserDomainsByFuncRequest &request)const;
|
||||
void describeCdnUserDomainsByFuncAsync(const Model::DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserDomainsByFuncOutcomeCallable describeCdnUserDomainsByFuncCallable(const Model::DescribeCdnUserDomainsByFuncRequest& request) const;
|
||||
DescribeCdnUserQuotaOutcome describeCdnUserQuota(const Model::DescribeCdnUserQuotaRequest &request)const;
|
||||
void describeCdnUserQuotaAsync(const Model::DescribeCdnUserQuotaRequest& request, const DescribeCdnUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCdnUserQuotaOutcomeCallable describeCdnUserQuotaCallable(const Model::DescribeCdnUserQuotaRequest& request) const;
|
||||
@@ -1585,9 +1588,6 @@ namespace AlibabaCloud
|
||||
SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const;
|
||||
void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const;
|
||||
SetWafConfigOutcome setWafConfig(const Model::SetWafConfigRequest &request)const;
|
||||
void setWafConfigAsync(const Model::SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWafConfigOutcomeCallable setWafConfigCallable(const Model::SetWafConfigRequest& request) const;
|
||||
SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const;
|
||||
void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCdnUserDomainsByFuncRequest();
|
||||
~DescribeCdnUserDomainsByFuncRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getFuncId()const;
|
||||
void setFuncId(int funcId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
long ownerId_;
|
||||
int funcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCREQUEST_H_
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeCdnUserDomainsByFuncResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageData
|
||||
{
|
||||
struct Source
|
||||
{
|
||||
std::string type;
|
||||
std::string content;
|
||||
std::string priority;
|
||||
int port;
|
||||
std::string weight;
|
||||
};
|
||||
std::string description;
|
||||
std::string sslProtocol;
|
||||
std::string resourceGroupId;
|
||||
std::string domainName;
|
||||
std::string gmtModified;
|
||||
std::string cdnType;
|
||||
std::string gmtCreated;
|
||||
std::vector<PageData::Source> sources;
|
||||
std::string cname;
|
||||
std::string domainStatus;
|
||||
std::string sandbox;
|
||||
};
|
||||
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult();
|
||||
explicit DescribeCdnUserDomainsByFuncResult(const std::string &payload);
|
||||
~DescribeCdnUserDomainsByFuncResult();
|
||||
std::vector<PageData> getDomains()const;
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PageData> domains_;
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNUSERDOMAINSBYFUNCRESULT_H_
|
||||
@@ -1635,6 +1635,42 @@ CdnClient::DescribeCdnUserConfigsOutcomeCallable CdnClient::describeCdnUserConfi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcome CdnClient::describeCdnUserDomainsByFunc(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCdnUserDomainsByFuncOutcome(DescribeCdnUserDomainsByFuncResult(outcome.result()));
|
||||
else
|
||||
return DescribeCdnUserDomainsByFuncOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeCdnUserDomainsByFuncAsync(const DescribeCdnUserDomainsByFuncRequest& request, const DescribeCdnUserDomainsByFuncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCdnUserDomainsByFunc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserDomainsByFuncOutcomeCallable CdnClient::describeCdnUserDomainsByFuncCallable(const DescribeCdnUserDomainsByFuncRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCdnUserDomainsByFuncOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCdnUserDomainsByFunc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeCdnUserQuotaOutcome CdnClient::describeCdnUserQuota(const DescribeCdnUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6819,42 +6855,6 @@ CdnClient::SetVideoSeekConfigOutcomeCallable CdnClient::setVideoSeekConfigCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcome CdnClient::setWafConfig(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetWafConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetWafConfigOutcome(SetWafConfigResult(outcome.result()));
|
||||
else
|
||||
return SetWafConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::setWafConfigAsync(const SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setWafConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::SetWafConfigOutcomeCallable CdnClient::setWafConfigCallable(const SetWafConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetWafConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setWafConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
84
cdn/src/model/DescribeCdnUserDomainsByFuncRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnUserDomainsByFuncRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnUserDomainsByFuncRequest;
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::DescribeCdnUserDomainsByFuncRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnUserDomainsByFunc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncRequest::~DescribeCdnUserDomainsByFuncRequest()
|
||||
{}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserDomainsByFuncRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeCdnUserDomainsByFuncRequest::getFuncId()const
|
||||
{
|
||||
return funcId_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncRequest::setFuncId(int funcId)
|
||||
{
|
||||
funcId_ = funcId;
|
||||
setParameter("FuncId", std::to_string(funcId));
|
||||
}
|
||||
|
||||
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.cc
Normal file
112
cdn/src/model/DescribeCdnUserDomainsByFuncResult.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/cdn/model/DescribeCdnUserDomainsByFuncResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::DescribeCdnUserDomainsByFuncResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnUserDomainsByFuncResult::~DescribeCdnUserDomainsByFuncResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["PageData"];
|
||||
for (auto valueDomainsPageData : allDomainsNode)
|
||||
{
|
||||
PageData domainsObject;
|
||||
if(!valueDomainsPageData["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["Cname"].isNull())
|
||||
domainsObject.cname = valueDomainsPageData["Cname"].asString();
|
||||
if(!valueDomainsPageData["CdnType"].isNull())
|
||||
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
|
||||
if(!valueDomainsPageData["DomainStatus"].isNull())
|
||||
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
|
||||
if(!valueDomainsPageData["GmtCreated"].isNull())
|
||||
domainsObject.gmtCreated = valueDomainsPageData["GmtCreated"].asString();
|
||||
if(!valueDomainsPageData["GmtModified"].isNull())
|
||||
domainsObject.gmtModified = valueDomainsPageData["GmtModified"].asString();
|
||||
if(!valueDomainsPageData["Description"].isNull())
|
||||
domainsObject.description = valueDomainsPageData["Description"].asString();
|
||||
if(!valueDomainsPageData["SslProtocol"].isNull())
|
||||
domainsObject.sslProtocol = valueDomainsPageData["SslProtocol"].asString();
|
||||
if(!valueDomainsPageData["ResourceGroupId"].isNull())
|
||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
||||
{
|
||||
PageData::Source sourcesObject;
|
||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
||||
domainsObject.sources.push_back(sourcesObject);
|
||||
}
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnUserDomainsByFuncResult::PageData> DescribeCdnUserDomainsByFuncResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeCdnUserDomainsByFuncResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,73 +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/cdn/model/SetWafConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetWafConfigRequest;
|
||||
|
||||
SetWafConfigRequest::SetWafConfigRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetWafConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetWafConfigRequest::~SetWafConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SetWafConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
}
|
||||
|
||||
std::string SetWafConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long SetWafConfigRequest::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
void SetWafConfigRequest::setConfigId(long configId)
|
||||
{
|
||||
configId_ = configId;
|
||||
setParameter("ConfigId", std::to_string(configId));
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
float passedScore;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,12 +37,16 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
@@ -51,16 +55,21 @@ namespace AlibabaCloud
|
||||
void setSceneId(long sceneId);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
std::string getOcr()const;
|
||||
void setOcr(const std::string& ocr);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
std::string metaInfo_;
|
||||
std::string ocr_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void DescribeSmartVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["PassedScore"].isNull())
|
||||
resultObject_.passedScore = std::stof(resultObjectNode["PassedScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
@@ -71,6 +82,17 @@ void InitSmartVerifyRequest::setMode(const std::string& mode)
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
@@ -115,3 +137,14 @@ void InitSmartVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOcr()const
|
||||
{
|
||||
return ocr_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOcr(const std::string& ocr)
|
||||
{
|
||||
ocr_ = ocr;
|
||||
setBodyParameter("Ocr", ocr);
|
||||
}
|
||||
|
||||
|
||||
174
config/CMakeLists.txt
Normal file
174
config/CMakeLists.txt
Normal file
@@ -0,0 +1,174 @@
|
||||
#
|
||||
# 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(config_public_header
|
||||
include/alibabacloud/config/ConfigClient.h
|
||||
include/alibabacloud/config/ConfigExport.h )
|
||||
|
||||
set(config_public_header_model
|
||||
include/alibabacloud/config/model/ActiveConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/ActiveConfigRulesResult.h
|
||||
include/alibabacloud/config/model/DeleteConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/DeleteConfigRulesResult.h
|
||||
include/alibabacloud/config/model/DescribeComplianceRequest.h
|
||||
include/alibabacloud/config/model/DescribeComplianceResult.h
|
||||
include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h
|
||||
include/alibabacloud/config/model/DescribeComplianceSummaryResult.h
|
||||
include/alibabacloud/config/model/DescribeConfigRuleRequest.h
|
||||
include/alibabacloud/config/model/DescribeConfigRuleResult.h
|
||||
include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h
|
||||
include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h
|
||||
include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h
|
||||
include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h
|
||||
include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h
|
||||
include/alibabacloud/config/model/DescribeEvaluationResultsResult.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h
|
||||
include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h
|
||||
include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h
|
||||
include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h
|
||||
include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h
|
||||
include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h
|
||||
include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h
|
||||
include/alibabacloud/config/model/GetSupportedResourceTypesResult.h
|
||||
include/alibabacloud/config/model/ListConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/ListConfigRulesResult.h
|
||||
include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h
|
||||
include/alibabacloud/config/model/ListDiscoveredResourcesResult.h
|
||||
include/alibabacloud/config/model/PutConfigRuleRequest.h
|
||||
include/alibabacloud/config/model/PutConfigRuleResult.h
|
||||
include/alibabacloud/config/model/PutConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/PutConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/PutDeliveryChannelRequest.h
|
||||
include/alibabacloud/config/model/PutDeliveryChannelResult.h
|
||||
include/alibabacloud/config/model/PutEvaluationsRequest.h
|
||||
include/alibabacloud/config/model/PutEvaluationsResult.h
|
||||
include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h
|
||||
include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h
|
||||
include/alibabacloud/config/model/StartConfigurationRecorderRequest.h
|
||||
include/alibabacloud/config/model/StartConfigurationRecorderResult.h
|
||||
include/alibabacloud/config/model/StopConfigRulesRequest.h
|
||||
include/alibabacloud/config/model/StopConfigRulesResult.h )
|
||||
|
||||
set(config_src
|
||||
src/ConfigClient.cc
|
||||
src/model/ActiveConfigRulesRequest.cc
|
||||
src/model/ActiveConfigRulesResult.cc
|
||||
src/model/DeleteConfigRulesRequest.cc
|
||||
src/model/DeleteConfigRulesResult.cc
|
||||
src/model/DescribeComplianceRequest.cc
|
||||
src/model/DescribeComplianceResult.cc
|
||||
src/model/DescribeComplianceSummaryRequest.cc
|
||||
src/model/DescribeComplianceSummaryResult.cc
|
||||
src/model/DescribeConfigRuleRequest.cc
|
||||
src/model/DescribeConfigRuleResult.cc
|
||||
src/model/DescribeConfigurationRecorderRequest.cc
|
||||
src/model/DescribeConfigurationRecorderResult.cc
|
||||
src/model/DescribeDeliveryChannelsRequest.cc
|
||||
src/model/DescribeDeliveryChannelsResult.cc
|
||||
src/model/DescribeDiscoveredResourceRequest.cc
|
||||
src/model/DescribeDiscoveredResourceResult.cc
|
||||
src/model/DescribeEvaluationResultsRequest.cc
|
||||
src/model/DescribeEvaluationResultsResult.cc
|
||||
src/model/GetDiscoveredResourceCountsRequest.cc
|
||||
src/model/GetDiscoveredResourceCountsResult.cc
|
||||
src/model/GetDiscoveredResourceSummaryRequest.cc
|
||||
src/model/GetDiscoveredResourceSummaryResult.cc
|
||||
src/model/GetResourceComplianceTimelineRequest.cc
|
||||
src/model/GetResourceComplianceTimelineResult.cc
|
||||
src/model/GetResourceConfigurationTimelineRequest.cc
|
||||
src/model/GetResourceConfigurationTimelineResult.cc
|
||||
src/model/GetSupportedResourceTypesRequest.cc
|
||||
src/model/GetSupportedResourceTypesResult.cc
|
||||
src/model/ListConfigRulesRequest.cc
|
||||
src/model/ListConfigRulesResult.cc
|
||||
src/model/ListDiscoveredResourcesRequest.cc
|
||||
src/model/ListDiscoveredResourcesResult.cc
|
||||
src/model/PutConfigRuleRequest.cc
|
||||
src/model/PutConfigRuleResult.cc
|
||||
src/model/PutConfigurationRecorderRequest.cc
|
||||
src/model/PutConfigurationRecorderResult.cc
|
||||
src/model/PutDeliveryChannelRequest.cc
|
||||
src/model/PutDeliveryChannelResult.cc
|
||||
src/model/PutEvaluationsRequest.cc
|
||||
src/model/PutEvaluationsResult.cc
|
||||
src/model/StartConfigRuleEvaluationRequest.cc
|
||||
src/model/StartConfigRuleEvaluationResult.cc
|
||||
src/model/StartConfigurationRecorderRequest.cc
|
||||
src/model/StartConfigurationRecorderResult.cc
|
||||
src/model/StopConfigRulesRequest.cc
|
||||
src/model/StopConfigRulesResult.cc )
|
||||
|
||||
add_library(config ${LIB_TYPE}
|
||||
${config_public_header}
|
||||
${config_public_header_model}
|
||||
${config_src})
|
||||
|
||||
set_target_properties(config
|
||||
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}config
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(config
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CONFIG_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(config
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(config
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(config
|
||||
jsoncpp)
|
||||
target_include_directories(config
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(config
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(config
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(config
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(config
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${config_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/config)
|
||||
install(FILES ${config_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/config/model)
|
||||
install(TARGETS config
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
230
config/include/alibabacloud/config/ConfigClient.h
Normal file
230
config/include/alibabacloud/config/ConfigClient.h
Normal file
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* 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_CONFIG_CONFIGCLIENT_H_
|
||||
#define ALIBABACLOUD_CONFIG_CONFIGCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ConfigExport.h"
|
||||
#include "model/ActiveConfigRulesRequest.h"
|
||||
#include "model/ActiveConfigRulesResult.h"
|
||||
#include "model/DeleteConfigRulesRequest.h"
|
||||
#include "model/DeleteConfigRulesResult.h"
|
||||
#include "model/DescribeComplianceRequest.h"
|
||||
#include "model/DescribeComplianceResult.h"
|
||||
#include "model/DescribeComplianceSummaryRequest.h"
|
||||
#include "model/DescribeComplianceSummaryResult.h"
|
||||
#include "model/DescribeConfigRuleRequest.h"
|
||||
#include "model/DescribeConfigRuleResult.h"
|
||||
#include "model/DescribeConfigurationRecorderRequest.h"
|
||||
#include "model/DescribeConfigurationRecorderResult.h"
|
||||
#include "model/DescribeDeliveryChannelsRequest.h"
|
||||
#include "model/DescribeDeliveryChannelsResult.h"
|
||||
#include "model/DescribeDiscoveredResourceRequest.h"
|
||||
#include "model/DescribeDiscoveredResourceResult.h"
|
||||
#include "model/DescribeEvaluationResultsRequest.h"
|
||||
#include "model/DescribeEvaluationResultsResult.h"
|
||||
#include "model/GetDiscoveredResourceCountsRequest.h"
|
||||
#include "model/GetDiscoveredResourceCountsResult.h"
|
||||
#include "model/GetDiscoveredResourceSummaryRequest.h"
|
||||
#include "model/GetDiscoveredResourceSummaryResult.h"
|
||||
#include "model/GetResourceComplianceTimelineRequest.h"
|
||||
#include "model/GetResourceComplianceTimelineResult.h"
|
||||
#include "model/GetResourceConfigurationTimelineRequest.h"
|
||||
#include "model/GetResourceConfigurationTimelineResult.h"
|
||||
#include "model/GetSupportedResourceTypesRequest.h"
|
||||
#include "model/GetSupportedResourceTypesResult.h"
|
||||
#include "model/ListConfigRulesRequest.h"
|
||||
#include "model/ListConfigRulesResult.h"
|
||||
#include "model/ListDiscoveredResourcesRequest.h"
|
||||
#include "model/ListDiscoveredResourcesResult.h"
|
||||
#include "model/PutConfigRuleRequest.h"
|
||||
#include "model/PutConfigRuleResult.h"
|
||||
#include "model/PutConfigurationRecorderRequest.h"
|
||||
#include "model/PutConfigurationRecorderResult.h"
|
||||
#include "model/PutDeliveryChannelRequest.h"
|
||||
#include "model/PutDeliveryChannelResult.h"
|
||||
#include "model/PutEvaluationsRequest.h"
|
||||
#include "model/PutEvaluationsResult.h"
|
||||
#include "model/StartConfigRuleEvaluationRequest.h"
|
||||
#include "model/StartConfigRuleEvaluationResult.h"
|
||||
#include "model/StartConfigurationRecorderRequest.h"
|
||||
#include "model/StartConfigurationRecorderResult.h"
|
||||
#include "model/StopConfigRulesRequest.h"
|
||||
#include "model/StopConfigRulesResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ConfigClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ActiveConfigRulesResult> ActiveConfigRulesOutcome;
|
||||
typedef std::future<ActiveConfigRulesOutcome> ActiveConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ActiveConfigRulesRequest&, const ActiveConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActiveConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigRulesResult> DeleteConfigRulesOutcome;
|
||||
typedef std::future<DeleteConfigRulesOutcome> DeleteConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DeleteConfigRulesRequest&, const DeleteConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeComplianceResult> DescribeComplianceOutcome;
|
||||
typedef std::future<DescribeComplianceOutcome> DescribeComplianceOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeComplianceRequest&, const DescribeComplianceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeComplianceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeComplianceSummaryResult> DescribeComplianceSummaryOutcome;
|
||||
typedef std::future<DescribeComplianceSummaryOutcome> DescribeComplianceSummaryOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeComplianceSummaryRequest&, const DescribeComplianceSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeComplianceSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigRuleResult> DescribeConfigRuleOutcome;
|
||||
typedef std::future<DescribeConfigRuleOutcome> DescribeConfigRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeConfigRuleRequest&, const DescribeConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationRecorderResult> DescribeConfigurationRecorderOutcome;
|
||||
typedef std::future<DescribeConfigurationRecorderOutcome> DescribeConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeConfigurationRecorderRequest&, const DescribeConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDeliveryChannelsResult> DescribeDeliveryChannelsOutcome;
|
||||
typedef std::future<DescribeDeliveryChannelsOutcome> DescribeDeliveryChannelsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeDeliveryChannelsRequest&, const DescribeDeliveryChannelsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeliveryChannelsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDiscoveredResourceResult> DescribeDiscoveredResourceOutcome;
|
||||
typedef std::future<DescribeDiscoveredResourceOutcome> DescribeDiscoveredResourceOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeDiscoveredResourceRequest&, const DescribeDiscoveredResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiscoveredResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEvaluationResultsResult> DescribeEvaluationResultsOutcome;
|
||||
typedef std::future<DescribeEvaluationResultsOutcome> DescribeEvaluationResultsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::DescribeEvaluationResultsRequest&, const DescribeEvaluationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEvaluationResultsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDiscoveredResourceCountsResult> GetDiscoveredResourceCountsOutcome;
|
||||
typedef std::future<GetDiscoveredResourceCountsOutcome> GetDiscoveredResourceCountsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceCountsRequest&, const GetDiscoveredResourceCountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceCountsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDiscoveredResourceSummaryResult> GetDiscoveredResourceSummaryOutcome;
|
||||
typedef std::future<GetDiscoveredResourceSummaryOutcome> GetDiscoveredResourceSummaryOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceSummaryRequest&, const GetDiscoveredResourceSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceTimelineResult> GetResourceComplianceTimelineOutcome;
|
||||
typedef std::future<GetResourceComplianceTimelineOutcome> GetResourceComplianceTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceTimelineRequest&, const GetResourceComplianceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceTimelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceConfigurationTimelineResult> GetResourceConfigurationTimelineOutcome;
|
||||
typedef std::future<GetResourceConfigurationTimelineOutcome> GetResourceConfigurationTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceConfigurationTimelineRequest&, const GetResourceConfigurationTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceConfigurationTimelineAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSupportedResourceTypesResult> GetSupportedResourceTypesOutcome;
|
||||
typedef std::future<GetSupportedResourceTypesOutcome> GetSupportedResourceTypesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetSupportedResourceTypesRequest&, const GetSupportedResourceTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSupportedResourceTypesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListConfigRulesResult> ListConfigRulesOutcome;
|
||||
typedef std::future<ListConfigRulesOutcome> ListConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListConfigRulesRequest&, const ListConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDiscoveredResourcesResult> ListDiscoveredResourcesOutcome;
|
||||
typedef std::future<ListDiscoveredResourcesOutcome> ListDiscoveredResourcesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListDiscoveredResourcesRequest&, const ListDiscoveredResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDiscoveredResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutConfigRuleResult> PutConfigRuleOutcome;
|
||||
typedef std::future<PutConfigRuleOutcome> PutConfigRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutConfigRuleRequest&, const PutConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutConfigRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutConfigurationRecorderResult> PutConfigurationRecorderOutcome;
|
||||
typedef std::future<PutConfigurationRecorderOutcome> PutConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutConfigurationRecorderRequest&, const PutConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutDeliveryChannelResult> PutDeliveryChannelOutcome;
|
||||
typedef std::future<PutDeliveryChannelOutcome> PutDeliveryChannelOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutDeliveryChannelRequest&, const PutDeliveryChannelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutDeliveryChannelAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutEvaluationsResult> PutEvaluationsOutcome;
|
||||
typedef std::future<PutEvaluationsOutcome> PutEvaluationsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::PutEvaluationsRequest&, const PutEvaluationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutEvaluationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartConfigRuleEvaluationResult> StartConfigRuleEvaluationOutcome;
|
||||
typedef std::future<StartConfigRuleEvaluationOutcome> StartConfigRuleEvaluationOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StartConfigRuleEvaluationRequest&, const StartConfigRuleEvaluationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartConfigRuleEvaluationAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartConfigurationRecorderResult> StartConfigurationRecorderOutcome;
|
||||
typedef std::future<StartConfigurationRecorderOutcome> StartConfigurationRecorderOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StartConfigurationRecorderRequest&, const StartConfigurationRecorderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartConfigurationRecorderAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopConfigRulesResult> StopConfigRulesOutcome;
|
||||
typedef std::future<StopConfigRulesOutcome> StopConfigRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::StopConfigRulesRequest&, const StopConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopConfigRulesAsyncHandler;
|
||||
|
||||
ConfigClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ConfigClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ConfigClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ConfigClient();
|
||||
ActiveConfigRulesOutcome activeConfigRules(const Model::ActiveConfigRulesRequest &request)const;
|
||||
void activeConfigRulesAsync(const Model::ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ActiveConfigRulesOutcomeCallable activeConfigRulesCallable(const Model::ActiveConfigRulesRequest& request) const;
|
||||
DeleteConfigRulesOutcome deleteConfigRules(const Model::DeleteConfigRulesRequest &request)const;
|
||||
void deleteConfigRulesAsync(const Model::DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigRulesOutcomeCallable deleteConfigRulesCallable(const Model::DeleteConfigRulesRequest& request) const;
|
||||
DescribeComplianceOutcome describeCompliance(const Model::DescribeComplianceRequest &request)const;
|
||||
void describeComplianceAsync(const Model::DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeComplianceOutcomeCallable describeComplianceCallable(const Model::DescribeComplianceRequest& request) const;
|
||||
DescribeComplianceSummaryOutcome describeComplianceSummary(const Model::DescribeComplianceSummaryRequest &request)const;
|
||||
void describeComplianceSummaryAsync(const Model::DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeComplianceSummaryOutcomeCallable describeComplianceSummaryCallable(const Model::DescribeComplianceSummaryRequest& request) const;
|
||||
DescribeConfigRuleOutcome describeConfigRule(const Model::DescribeConfigRuleRequest &request)const;
|
||||
void describeConfigRuleAsync(const Model::DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigRuleOutcomeCallable describeConfigRuleCallable(const Model::DescribeConfigRuleRequest& request) const;
|
||||
DescribeConfigurationRecorderOutcome describeConfigurationRecorder(const Model::DescribeConfigurationRecorderRequest &request)const;
|
||||
void describeConfigurationRecorderAsync(const Model::DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationRecorderOutcomeCallable describeConfigurationRecorderCallable(const Model::DescribeConfigurationRecorderRequest& request) const;
|
||||
DescribeDeliveryChannelsOutcome describeDeliveryChannels(const Model::DescribeDeliveryChannelsRequest &request)const;
|
||||
void describeDeliveryChannelsAsync(const Model::DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeliveryChannelsOutcomeCallable describeDeliveryChannelsCallable(const Model::DescribeDeliveryChannelsRequest& request) const;
|
||||
DescribeDiscoveredResourceOutcome describeDiscoveredResource(const Model::DescribeDiscoveredResourceRequest &request)const;
|
||||
void describeDiscoveredResourceAsync(const Model::DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDiscoveredResourceOutcomeCallable describeDiscoveredResourceCallable(const Model::DescribeDiscoveredResourceRequest& request) const;
|
||||
DescribeEvaluationResultsOutcome describeEvaluationResults(const Model::DescribeEvaluationResultsRequest &request)const;
|
||||
void describeEvaluationResultsAsync(const Model::DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEvaluationResultsOutcomeCallable describeEvaluationResultsCallable(const Model::DescribeEvaluationResultsRequest& request) const;
|
||||
GetDiscoveredResourceCountsOutcome getDiscoveredResourceCounts(const Model::GetDiscoveredResourceCountsRequest &request)const;
|
||||
void getDiscoveredResourceCountsAsync(const Model::GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDiscoveredResourceCountsOutcomeCallable getDiscoveredResourceCountsCallable(const Model::GetDiscoveredResourceCountsRequest& request) const;
|
||||
GetDiscoveredResourceSummaryOutcome getDiscoveredResourceSummary(const Model::GetDiscoveredResourceSummaryRequest &request)const;
|
||||
void getDiscoveredResourceSummaryAsync(const Model::GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDiscoveredResourceSummaryOutcomeCallable getDiscoveredResourceSummaryCallable(const Model::GetDiscoveredResourceSummaryRequest& request) const;
|
||||
GetResourceComplianceTimelineOutcome getResourceComplianceTimeline(const Model::GetResourceComplianceTimelineRequest &request)const;
|
||||
void getResourceComplianceTimelineAsync(const Model::GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceTimelineOutcomeCallable getResourceComplianceTimelineCallable(const Model::GetResourceComplianceTimelineRequest& request) const;
|
||||
GetResourceConfigurationTimelineOutcome getResourceConfigurationTimeline(const Model::GetResourceConfigurationTimelineRequest &request)const;
|
||||
void getResourceConfigurationTimelineAsync(const Model::GetResourceConfigurationTimelineRequest& request, const GetResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceConfigurationTimelineOutcomeCallable getResourceConfigurationTimelineCallable(const Model::GetResourceConfigurationTimelineRequest& request) const;
|
||||
GetSupportedResourceTypesOutcome getSupportedResourceTypes(const Model::GetSupportedResourceTypesRequest &request)const;
|
||||
void getSupportedResourceTypesAsync(const Model::GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSupportedResourceTypesOutcomeCallable getSupportedResourceTypesCallable(const Model::GetSupportedResourceTypesRequest& request) const;
|
||||
ListConfigRulesOutcome listConfigRules(const Model::ListConfigRulesRequest &request)const;
|
||||
void listConfigRulesAsync(const Model::ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConfigRulesOutcomeCallable listConfigRulesCallable(const Model::ListConfigRulesRequest& request) const;
|
||||
ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const;
|
||||
void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDiscoveredResourcesOutcomeCallable listDiscoveredResourcesCallable(const Model::ListDiscoveredResourcesRequest& request) const;
|
||||
PutConfigRuleOutcome putConfigRule(const Model::PutConfigRuleRequest &request)const;
|
||||
void putConfigRuleAsync(const Model::PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutConfigRuleOutcomeCallable putConfigRuleCallable(const Model::PutConfigRuleRequest& request) const;
|
||||
PutConfigurationRecorderOutcome putConfigurationRecorder(const Model::PutConfigurationRecorderRequest &request)const;
|
||||
void putConfigurationRecorderAsync(const Model::PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutConfigurationRecorderOutcomeCallable putConfigurationRecorderCallable(const Model::PutConfigurationRecorderRequest& request) const;
|
||||
PutDeliveryChannelOutcome putDeliveryChannel(const Model::PutDeliveryChannelRequest &request)const;
|
||||
void putDeliveryChannelAsync(const Model::PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutDeliveryChannelOutcomeCallable putDeliveryChannelCallable(const Model::PutDeliveryChannelRequest& request) const;
|
||||
PutEvaluationsOutcome putEvaluations(const Model::PutEvaluationsRequest &request)const;
|
||||
void putEvaluationsAsync(const Model::PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutEvaluationsOutcomeCallable putEvaluationsCallable(const Model::PutEvaluationsRequest& request) const;
|
||||
StartConfigRuleEvaluationOutcome startConfigRuleEvaluation(const Model::StartConfigRuleEvaluationRequest &request)const;
|
||||
void startConfigRuleEvaluationAsync(const Model::StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartConfigRuleEvaluationOutcomeCallable startConfigRuleEvaluationCallable(const Model::StartConfigRuleEvaluationRequest& request) const;
|
||||
StartConfigurationRecorderOutcome startConfigurationRecorder(const Model::StartConfigurationRecorderRequest &request)const;
|
||||
void startConfigurationRecorderAsync(const Model::StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartConfigurationRecorderOutcomeCallable startConfigurationRecorderCallable(const Model::StartConfigurationRecorderRequest& request) const;
|
||||
StopConfigRulesOutcome stopConfigRules(const Model::StopConfigRulesRequest &request)const;
|
||||
void stopConfigRulesAsync(const Model::StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopConfigRulesOutcomeCallable stopConfigRulesCallable(const Model::StopConfigRulesRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CONFIG_CONFIGCLIENT_H_
|
||||
32
config/include/alibabacloud/config/ConfigExport.h
Normal file
32
config/include/alibabacloud/config/ConfigExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_CONFIG_CONFIGEXPORT_H_
|
||||
#define ALIBABACLOUD_CONFIG_CONFIGEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CONFIG_LIBRARY)
|
||||
# define ALIBABACLOUD_CONFIG_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CONFIG_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CONFIG_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CONFIG_CONFIGEXPORT_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_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ActiveConfigRulesRequest();
|
||||
~ActiveConfigRulesRequest();
|
||||
|
||||
std::string getConfigRuleIds()const;
|
||||
void setConfigRuleIds(const std::string& configRuleIds);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OperateRuleResult
|
||||
{
|
||||
struct OperateRuleItem
|
||||
{
|
||||
std::string configRuleId;
|
||||
std::string errorCode;
|
||||
bool success;
|
||||
};
|
||||
std::vector<OperateRuleItem> operateRuleItemList;
|
||||
};
|
||||
|
||||
|
||||
ActiveConfigRulesResult();
|
||||
explicit ActiveConfigRulesResult(const std::string &payload);
|
||||
~ActiveConfigRulesResult();
|
||||
OperateRuleResult getOperateRuleResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
OperateRuleResult operateRuleResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_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_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigRulesRequest();
|
||||
~DeleteConfigRulesRequest();
|
||||
|
||||
std::string getConfigRuleIds()const;
|
||||
void setConfigRuleIds(const std::string& configRuleIds);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OperateRuleResult
|
||||
{
|
||||
struct OperateRuleItem
|
||||
{
|
||||
std::string configRuleId;
|
||||
std::string errorCode;
|
||||
bool success;
|
||||
};
|
||||
std::vector<OperateRuleItem> operateRuleItemList;
|
||||
};
|
||||
|
||||
|
||||
DeleteConfigRulesResult();
|
||||
explicit DeleteConfigRulesResult(const std::string &payload);
|
||||
~DeleteConfigRulesResult();
|
||||
OperateRuleResult getOperateRuleResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
OperateRuleResult operateRuleResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeComplianceRequest();
|
||||
~DescribeComplianceRequest();
|
||||
|
||||
std::string getConfigRuleId()const;
|
||||
void setConfigRuleId(const std::string& configRuleId);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getComplianceType()const;
|
||||
void setComplianceType(const std::string& complianceType);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
std::string resourceId_;
|
||||
bool multiAccount_;
|
||||
std::string resourceType_;
|
||||
std::string complianceType_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceResult
|
||||
{
|
||||
struct CompliancesItem
|
||||
{
|
||||
std::string complianceType;
|
||||
int count;
|
||||
};
|
||||
long totalCount;
|
||||
std::vector<CompliancesItem> compliances;
|
||||
};
|
||||
|
||||
|
||||
DescribeComplianceResult();
|
||||
explicit DescribeComplianceResult(const std::string &payload);
|
||||
~DescribeComplianceResult();
|
||||
ComplianceResult getComplianceResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceResult complianceResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_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_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeComplianceSummaryRequest();
|
||||
~DescribeComplianceSummaryRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_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_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceSummary
|
||||
{
|
||||
struct ComplianceSummaryByConfigRule
|
||||
{
|
||||
long totalCount;
|
||||
int compliantCount;
|
||||
int nonCompliantCount;
|
||||
long complianceSummaryTimestamp;
|
||||
};
|
||||
struct ComplianceSummaryByResource
|
||||
{
|
||||
long totalCount;
|
||||
int compliantCount;
|
||||
int nonCompliantCount;
|
||||
long complianceSummaryTimestamp;
|
||||
};
|
||||
ComplianceSummaryByResource complianceSummaryByResource;
|
||||
ComplianceSummaryByConfigRule complianceSummaryByConfigRule;
|
||||
};
|
||||
|
||||
|
||||
DescribeComplianceSummaryResult();
|
||||
explicit DescribeComplianceSummaryResult(const std::string &payload);
|
||||
~DescribeComplianceSummaryResult();
|
||||
ComplianceSummary getComplianceSummary()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceSummary complianceSummary_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigRuleRequest();
|
||||
~DescribeConfigRuleRequest();
|
||||
|
||||
std::string getConfigRuleId()const;
|
||||
void setConfigRuleId(const std::string& configRuleId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
bool multiAccount_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigRule
|
||||
{
|
||||
struct CreateBy
|
||||
{
|
||||
std::string creatorId;
|
||||
std::string configRuleSceneName;
|
||||
std::string configRuleSceneId;
|
||||
std::string creatorType;
|
||||
std::string creatorName;
|
||||
};
|
||||
struct ConfigRuleEvaluationStatus
|
||||
{
|
||||
std::string lastErrorMessage;
|
||||
long lastFailedInvocationTimestamp;
|
||||
long firstActivatedTimestamp;
|
||||
long lastSuccessfulEvaluationTimestamp;
|
||||
bool firstEvaluationStarted;
|
||||
long lastFailedEvaluationTimestamp;
|
||||
std::string lastErrorCode;
|
||||
long lastSuccessfulInvocationTimestamp;
|
||||
};
|
||||
struct ManagedRule
|
||||
{
|
||||
struct SourceDetailsItem
|
||||
{
|
||||
std::string eventSource;
|
||||
std::string maximumExecutionFrequency;
|
||||
std::string messageType;
|
||||
};
|
||||
std::string managedRuleName;
|
||||
std::string optionalInputParameterDetails;
|
||||
std::string description;
|
||||
std::string identifier;
|
||||
std::string compulsoryInputParameterDetails;
|
||||
std::vector<std::string> labels;
|
||||
std::vector<SourceDetailsItem> sourceDetails;
|
||||
std::string helpUrl;
|
||||
};
|
||||
struct Source
|
||||
{
|
||||
struct SourceConditionsItem
|
||||
{
|
||||
std::string desiredValue;
|
||||
bool required;
|
||||
std::string _operator;
|
||||
std::string selectPath;
|
||||
std::string name;
|
||||
std::string tips;
|
||||
};
|
||||
struct SourceDetailsItem2
|
||||
{
|
||||
std::string eventSource;
|
||||
std::string maximumExecutionFrequency;
|
||||
std::string messageType;
|
||||
};
|
||||
std::string owner;
|
||||
std::string identifier;
|
||||
std::vector<SourceConditionsItem> sourceConditions;
|
||||
std::vector<SourceDetailsItem2> sourceDetails1;
|
||||
};
|
||||
struct Scope
|
||||
{
|
||||
std::string complianceResourceId;
|
||||
std::vector<std::string> complianceResourceTypes;
|
||||
};
|
||||
ManagedRule managedRule;
|
||||
std::string description;
|
||||
CreateBy createBy;
|
||||
ConfigRuleEvaluationStatus configRuleEvaluationStatus;
|
||||
Source source;
|
||||
std::string configRuleState;
|
||||
std::string configRuleId;
|
||||
Scope scope;
|
||||
std::string configRuleArn;
|
||||
long modifiedTimestamp;
|
||||
std::string configRuleName;
|
||||
long createTimestamp;
|
||||
int riskLevel;
|
||||
std::string inputParameters;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigRuleResult();
|
||||
explicit DescribeConfigRuleResult(const std::string &payload);
|
||||
~DescribeConfigRuleResult();
|
||||
ConfigRule getConfigRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConfigRule configRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_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_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRecorderRequest();
|
||||
~DescribeConfigurationRecorderRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_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_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigurationRecorder
|
||||
{
|
||||
std::string configurationRecorderStatus;
|
||||
std::vector<std::string> resourceTypes;
|
||||
long accountId;
|
||||
long organizationMasterId;
|
||||
std::string organizationEnableStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationRecorderResult();
|
||||
explicit DescribeConfigurationRecorderResult(const std::string &payload);
|
||||
~DescribeConfigurationRecorderResult();
|
||||
ConfigurationRecorder getConfigurationRecorder()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConfigurationRecorder configurationRecorder_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_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_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeliveryChannelsRequest();
|
||||
~DescribeDeliveryChannelsRequest();
|
||||
|
||||
std::string getDeliveryChannelIds()const;
|
||||
void setDeliveryChannelIds(const std::string& deliveryChannelIds);
|
||||
|
||||
private:
|
||||
std::string deliveryChannelIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
|
||||
@@ -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_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeliveryChannel
|
||||
{
|
||||
int status;
|
||||
std::string description;
|
||||
std::string deliveryChannelId;
|
||||
std::string deliveryChannelName;
|
||||
std::string deliveryChannelTargetArn;
|
||||
std::string deliveryChannelAssumeRoleArn;
|
||||
std::string deliveryChannelType;
|
||||
std::string deliveryChannelCondition;
|
||||
};
|
||||
|
||||
|
||||
DescribeDeliveryChannelsResult();
|
||||
explicit DescribeDeliveryChannelsResult(const std::string &payload);
|
||||
~DescribeDeliveryChannelsResult();
|
||||
std::vector<DeliveryChannel> getDeliveryChannels()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DeliveryChannel> deliveryChannels_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDiscoveredResourceRequest();
|
||||
~DescribeDiscoveredResourceRequest();
|
||||
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string resourceId_;
|
||||
bool multiAccount_;
|
||||
std::string resourceType_;
|
||||
std::string region_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DiscoveredResourceDetail
|
||||
{
|
||||
long accountId;
|
||||
long resourceCreationTime;
|
||||
std::string configuration;
|
||||
std::string resourceId;
|
||||
std::string resourceName;
|
||||
std::string region;
|
||||
std::string availabilityZone;
|
||||
std::string resourceStatus;
|
||||
std::string resourceType;
|
||||
int resourceDeleted;
|
||||
std::string tags;
|
||||
};
|
||||
|
||||
|
||||
DescribeDiscoveredResourceResult();
|
||||
explicit DescribeDiscoveredResourceResult(const std::string &payload);
|
||||
~DescribeDiscoveredResourceResult();
|
||||
DiscoveredResourceDetail getDiscoveredResourceDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DiscoveredResourceDetail discoveredResourceDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeEvaluationResultsRequest();
|
||||
~DescribeEvaluationResultsRequest();
|
||||
|
||||
std::string getConfigRuleId()const;
|
||||
void setConfigRuleId(const std::string& configRuleId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getComplianceType()const;
|
||||
void setComplianceType(const std::string& complianceType);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
bool multiAccount_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string complianceType_;
|
||||
std::string resourceId_;
|
||||
std::string resourceType_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct EvaluationResults
|
||||
{
|
||||
struct EvaluationResult
|
||||
{
|
||||
struct EvaluationResultIdentifier
|
||||
{
|
||||
struct EvaluationResultQualifier
|
||||
{
|
||||
std::string configRuleId;
|
||||
std::string configRuleArn;
|
||||
std::string resourceId;
|
||||
std::string configRuleName;
|
||||
std::string resourceType;
|
||||
std::string regionId;
|
||||
};
|
||||
EvaluationResultQualifier evaluationResultQualifier;
|
||||
long orderingTimestamp;
|
||||
};
|
||||
long configRuleInvokedTimestamp;
|
||||
std::string complianceType;
|
||||
long resultRecordedTimestamp;
|
||||
std::string invokingEventMessageType;
|
||||
EvaluationResultIdentifier evaluationResultIdentifier;
|
||||
int riskLevel;
|
||||
std::string annotation;
|
||||
};
|
||||
std::vector<EvaluationResult> evaluationResultList;
|
||||
long totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
DescribeEvaluationResultsResult();
|
||||
explicit DescribeEvaluationResultsResult(const std::string &payload);
|
||||
~DescribeEvaluationResultsResult();
|
||||
EvaluationResults getEvaluationResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
EvaluationResults evaluationResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDiscoveredResourceCountsRequest();
|
||||
~GetDiscoveredResourceCountsRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getGroupByKey()const;
|
||||
void setGroupByKey(const std::string& groupByKey);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
std::string groupByKey_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct GroupedResourceCounts
|
||||
{
|
||||
struct GroupedResourceCount
|
||||
{
|
||||
std::string groupName;
|
||||
long resourceCount;
|
||||
};
|
||||
std::vector<GroupedResourceCount> groupedResourceCountList;
|
||||
std::string groupByKey;
|
||||
};
|
||||
|
||||
|
||||
GetDiscoveredResourceCountsResult();
|
||||
explicit GetDiscoveredResourceCountsResult(const std::string &payload);
|
||||
~GetDiscoveredResourceCountsResult();
|
||||
GroupedResourceCounts getGroupedResourceCounts()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
GroupedResourceCounts groupedResourceCounts_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_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_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDiscoveredResourceSummaryRequest();
|
||||
~GetDiscoveredResourceSummaryRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_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_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DiscoveredResourceSummary
|
||||
{
|
||||
int resourceTypeCount;
|
||||
int resourceCount;
|
||||
int regionCount;
|
||||
};
|
||||
|
||||
|
||||
GetDiscoveredResourceSummaryResult();
|
||||
explicit GetDiscoveredResourceSummaryResult(const std::string &payload);
|
||||
~GetDiscoveredResourceSummaryResult();
|
||||
DiscoveredResourceSummary getDiscoveredResourceSummary()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DiscoveredResourceSummary discoveredResourceSummary_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetResourceComplianceTimelineRequest();
|
||||
~GetResourceComplianceTimelineRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
long startTime_;
|
||||
std::string nextToken_;
|
||||
int limit_;
|
||||
std::string resourceId_;
|
||||
long endTime_;
|
||||
std::string resourceType_;
|
||||
std::string region_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourceComplianceTimeline
|
||||
{
|
||||
struct ComplianceListItem
|
||||
{
|
||||
std::string accountId;
|
||||
long captureTime;
|
||||
std::string configurationDiff;
|
||||
std::string configuration;
|
||||
std::string resourceId;
|
||||
std::string resourceName;
|
||||
std::string availabilityZone;
|
||||
std::string region;
|
||||
std::string resourceStatus;
|
||||
std::string resourceType;
|
||||
long resourceCreateTime;
|
||||
std::string tags;
|
||||
};
|
||||
long totalCount;
|
||||
std::vector<ComplianceListItem> complianceList;
|
||||
std::string nextToken;
|
||||
int limit;
|
||||
};
|
||||
|
||||
|
||||
GetResourceComplianceTimelineResult();
|
||||
explicit GetResourceComplianceTimelineResult(const std::string &payload);
|
||||
~GetResourceComplianceTimelineResult();
|
||||
ResourceComplianceTimeline getResourceComplianceTimeline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResourceComplianceTimeline resourceComplianceTimeline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINERESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetResourceConfigurationTimelineRequest();
|
||||
~GetResourceConfigurationTimelineRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
long startTime_;
|
||||
std::string nextToken_;
|
||||
int limit_;
|
||||
std::string resourceId_;
|
||||
long endTime_;
|
||||
std::string resourceType_;
|
||||
std::string region_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourceConfigurationTimeline
|
||||
{
|
||||
struct ConfigurationListItem
|
||||
{
|
||||
long accountId;
|
||||
std::string captureTime;
|
||||
std::string configurationDiff;
|
||||
std::string resourceId;
|
||||
std::string resourceName;
|
||||
std::string relationship;
|
||||
std::string availabilityZone;
|
||||
std::string region;
|
||||
std::string resourceType;
|
||||
std::string resourceCreateTime;
|
||||
std::string relationshipDiff;
|
||||
std::string tags;
|
||||
};
|
||||
long totalCount;
|
||||
std::string nextToken;
|
||||
std::vector<ConfigurationListItem> configurationList;
|
||||
int limit;
|
||||
};
|
||||
|
||||
|
||||
GetResourceConfigurationTimelineResult();
|
||||
explicit GetResourceConfigurationTimelineResult(const std::string &payload);
|
||||
~GetResourceConfigurationTimelineResult();
|
||||
ResourceConfigurationTimeline getResourceConfigurationTimeline()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResourceConfigurationTimeline resourceConfigurationTimeline_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINERESULT_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_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSupportedResourceTypesRequest();
|
||||
~GetSupportedResourceTypesRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_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_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetSupportedResourceTypesResult();
|
||||
explicit GetSupportedResourceTypesResult(const std::string &payload);
|
||||
~GetSupportedResourceTypesResult();
|
||||
std::vector<std::string> getResourceTypes()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> resourceTypes_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListConfigRulesRequest();
|
||||
~ListConfigRulesRequest();
|
||||
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getMessageType()const;
|
||||
void setMessageType(const std::string& messageType);
|
||||
std::string getConfigRuleState()const;
|
||||
void setConfigRuleState(const std::string& configRuleState);
|
||||
int getRiskLevel()const;
|
||||
void setRiskLevel(int riskLevel);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getComplianceType()const;
|
||||
void setComplianceType(const std::string& complianceType);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
bool multiAccount_;
|
||||
std::string messageType_;
|
||||
std::string configRuleState_;
|
||||
int riskLevel_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string complianceType_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigRules
|
||||
{
|
||||
struct ConfigRule
|
||||
{
|
||||
struct Compliance
|
||||
{
|
||||
std::string complianceType;
|
||||
int count;
|
||||
};
|
||||
struct CreateBy
|
||||
{
|
||||
std::string creatorId;
|
||||
std::string configRuleSceneName;
|
||||
std::string configRuleSceneId;
|
||||
std::string creatorType;
|
||||
std::string creatorName;
|
||||
};
|
||||
std::string configRuleId;
|
||||
long accountId;
|
||||
std::string description;
|
||||
Compliance compliance;
|
||||
std::string configRuleArn;
|
||||
std::string automationType;
|
||||
std::string sourceOwner;
|
||||
CreateBy createBy;
|
||||
std::string sourceIdentifier;
|
||||
std::string configRuleName;
|
||||
int riskLevel;
|
||||
std::string configRuleState;
|
||||
};
|
||||
long totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<ConfigRule> configRuleList;
|
||||
};
|
||||
|
||||
|
||||
ListConfigRulesResult();
|
||||
explicit ListConfigRulesResult(const std::string &payload);
|
||||
~ListConfigRulesResult();
|
||||
ConfigRules getConfigRules()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConfigRules configRules_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDiscoveredResourcesRequest();
|
||||
~ListDiscoveredResourcesRequest();
|
||||
|
||||
int getResourceDeleted()const;
|
||||
void setResourceDeleted(int resourceDeleted);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getRegions()const;
|
||||
void setRegions(const std::string& regions);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getComplianceType()const;
|
||||
void setComplianceType(const std::string& complianceType);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
std::string getResourceTypes()const;
|
||||
void setResourceTypes(const std::string& resourceTypes);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
int resourceDeleted_;
|
||||
bool multiAccount_;
|
||||
std::string regions_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string complianceType_;
|
||||
std::string resourceId_;
|
||||
std::string resourceTypes_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_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_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DiscoveredResourceProfiles
|
||||
{
|
||||
struct DiscoveredResourceProfile
|
||||
{
|
||||
long accountId;
|
||||
long resourceCreationTime;
|
||||
std::string resourceId;
|
||||
std::string resourceName;
|
||||
std::string region;
|
||||
std::string resourceStatus;
|
||||
std::string resourceType;
|
||||
int resourceDeleted;
|
||||
std::string tags;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<DiscoveredResourceProfile> discoveredResourceProfileList;
|
||||
};
|
||||
|
||||
|
||||
ListDiscoveredResourcesResult();
|
||||
explicit ListDiscoveredResourcesResult(const std::string &payload);
|
||||
~ListDiscoveredResourcesResult();
|
||||
DiscoveredResourceProfiles getDiscoveredResourceProfiles()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DiscoveredResourceProfiles discoveredResourceProfiles_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_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_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutConfigRuleRequest();
|
||||
~PutConfigRuleRequest();
|
||||
|
||||
std::string getConfigRuleId()const;
|
||||
void setConfigRuleId(const std::string& configRuleId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getSourceIdentifier()const;
|
||||
void setSourceIdentifier(const std::string& sourceIdentifier);
|
||||
std::string getSourceMaximumExecutionFrequency()const;
|
||||
void setSourceMaximumExecutionFrequency(const std::string& sourceMaximumExecutionFrequency);
|
||||
std::string getScopeComplianceResourceTypes()const;
|
||||
void setScopeComplianceResourceTypes(const std::string& scopeComplianceResourceTypes);
|
||||
std::string getSourceDetailMessageType()const;
|
||||
void setSourceDetailMessageType(const std::string& sourceDetailMessageType);
|
||||
int getRiskLevel()const;
|
||||
void setRiskLevel(int riskLevel);
|
||||
std::string getSourceOwner()const;
|
||||
void setSourceOwner(const std::string& sourceOwner);
|
||||
std::string getInputParameters()const;
|
||||
void setInputParameters(const std::string& inputParameters);
|
||||
std::string getConfigRuleName()const;
|
||||
void setConfigRuleName(const std::string& configRuleName);
|
||||
std::string getScopeComplianceResourceId()const;
|
||||
void setScopeComplianceResourceId(const std::string& scopeComplianceResourceId);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
bool multiAccount_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string sourceIdentifier_;
|
||||
std::string sourceMaximumExecutionFrequency_;
|
||||
std::string scopeComplianceResourceTypes_;
|
||||
std::string sourceDetailMessageType_;
|
||||
int riskLevel_;
|
||||
std::string sourceOwner_;
|
||||
std::string inputParameters_;
|
||||
std::string configRuleName_;
|
||||
std::string scopeComplianceResourceId_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_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_CONFIG_MODEL_PUTCONFIGRULERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutConfigRuleResult();
|
||||
explicit PutConfigRuleResult(const std::string &payload);
|
||||
~PutConfigRuleResult();
|
||||
std::string getConfigRuleId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_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_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutConfigurationRecorderRequest();
|
||||
~PutConfigurationRecorderRequest();
|
||||
|
||||
std::string getResourceTypes()const;
|
||||
void setResourceTypes(const std::string& resourceTypes);
|
||||
|
||||
private:
|
||||
std::string resourceTypes_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_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_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigurationRecorder
|
||||
{
|
||||
std::string configurationRecorderStatus;
|
||||
std::vector<std::string> resourceTypes;
|
||||
long accountId;
|
||||
long organizationMasterId;
|
||||
std::string organizationEnableStatus;
|
||||
};
|
||||
|
||||
|
||||
PutConfigurationRecorderResult();
|
||||
explicit PutConfigurationRecorderResult(const std::string &payload);
|
||||
~PutConfigurationRecorderResult();
|
||||
ConfigurationRecorder getConfigurationRecorder()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConfigurationRecorder configurationRecorder_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutDeliveryChannelRequest();
|
||||
~PutDeliveryChannelRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getDeliveryChannelTargetArn()const;
|
||||
void setDeliveryChannelTargetArn(const std::string& deliveryChannelTargetArn);
|
||||
std::string getDeliveryChannelCondition()const;
|
||||
void setDeliveryChannelCondition(const std::string& deliveryChannelCondition);
|
||||
std::string getDeliveryChannelAssumeRoleArn()const;
|
||||
void setDeliveryChannelAssumeRoleArn(const std::string& deliveryChannelAssumeRoleArn);
|
||||
std::string getDeliveryChannelName()const;
|
||||
void setDeliveryChannelName(const std::string& deliveryChannelName);
|
||||
std::string getDeliveryChannelId()const;
|
||||
void setDeliveryChannelId(const std::string& deliveryChannelId);
|
||||
std::string getDeliveryChannelType()const;
|
||||
void setDeliveryChannelType(const std::string& deliveryChannelType);
|
||||
int getStatus()const;
|
||||
void setStatus(int status);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string deliveryChannelTargetArn_;
|
||||
std::string deliveryChannelCondition_;
|
||||
std::string deliveryChannelAssumeRoleArn_;
|
||||
std::string deliveryChannelName_;
|
||||
std::string deliveryChannelId_;
|
||||
std::string deliveryChannelType_;
|
||||
int status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_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_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutDeliveryChannelResult();
|
||||
explicit PutDeliveryChannelResult(const std::string &payload);
|
||||
~PutDeliveryChannelResult();
|
||||
std::string getDeliveryChannelId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string deliveryChannelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_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_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutEvaluationsRequest();
|
||||
~PutEvaluationsRequest();
|
||||
|
||||
std::string getEvaluations()const;
|
||||
void setEvaluations(const std::string& evaluations);
|
||||
std::string getResultToken()const;
|
||||
void setResultToken(const std::string& resultToken);
|
||||
|
||||
private:
|
||||
std::string evaluations_;
|
||||
std::string resultToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_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_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutEvaluationsResult();
|
||||
explicit PutEvaluationsResult(const std::string &payload);
|
||||
~PutEvaluationsResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartConfigRuleEvaluationRequest();
|
||||
~StartConfigRuleEvaluationRequest();
|
||||
|
||||
std::string getConfigRuleId()const;
|
||||
void setConfigRuleId(const std::string& configRuleId);
|
||||
bool getMultiAccount()const;
|
||||
void setMultiAccount(bool multiAccount);
|
||||
long getMemberId()const;
|
||||
void setMemberId(long memberId);
|
||||
|
||||
private:
|
||||
std::string configRuleId_;
|
||||
bool multiAccount_;
|
||||
long memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_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_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartConfigRuleEvaluationResult();
|
||||
explicit StartConfigRuleEvaluationResult(const std::string &payload);
|
||||
~StartConfigRuleEvaluationResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_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_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartConfigurationRecorderRequest();
|
||||
~StartConfigurationRecorderRequest();
|
||||
|
||||
bool getEnterpriseEdition()const;
|
||||
void setEnterpriseEdition(bool enterpriseEdition);
|
||||
|
||||
private:
|
||||
bool enterpriseEdition_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_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_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigurationRecorder
|
||||
{
|
||||
std::string configurationRecorderStatus;
|
||||
std::vector<std::string> resourceTypes;
|
||||
long accountId;
|
||||
long organizationMasterId;
|
||||
std::string organizationEnableStatus;
|
||||
};
|
||||
|
||||
|
||||
StartConfigurationRecorderResult();
|
||||
explicit StartConfigurationRecorderResult(const std::string &payload);
|
||||
~StartConfigurationRecorderResult();
|
||||
ConfigurationRecorder getConfigurationRecorder()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConfigurationRecorder configurationRecorder_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_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_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopConfigRulesRequest();
|
||||
~StopConfigRulesRequest();
|
||||
|
||||
std::string getConfigRuleIds()const;
|
||||
void setConfigRuleIds(const std::string& configRuleIds);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/config/ConfigExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Config
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OperateRuleResult
|
||||
{
|
||||
struct OperateRuleItem
|
||||
{
|
||||
std::string configRuleId;
|
||||
std::string errorCode;
|
||||
bool success;
|
||||
};
|
||||
std::vector<OperateRuleItem> operateRuleItemList;
|
||||
};
|
||||
|
||||
|
||||
StopConfigRulesResult();
|
||||
explicit StopConfigRulesResult(const std::string &payload);
|
||||
~StopConfigRulesResult();
|
||||
OperateRuleResult getOperateRuleResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
OperateRuleResult operateRuleResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_
|
||||
881
config/src/ConfigClient.cc
Normal file
881
config/src/ConfigClient.cc
Normal file
@@ -0,0 +1,881 @@
|
||||
/*
|
||||
* 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/config/ConfigClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Config";
|
||||
}
|
||||
|
||||
ConfigClient::ConfigClient(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, "config");
|
||||
}
|
||||
|
||||
ConfigClient::ConfigClient(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, "config");
|
||||
}
|
||||
|
||||
ConfigClient::ConfigClient(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, "config");
|
||||
}
|
||||
|
||||
ConfigClient::~ConfigClient()
|
||||
{}
|
||||
|
||||
ConfigClient::ActiveConfigRulesOutcome ConfigClient::activeConfigRules(const ActiveConfigRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ActiveConfigRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ActiveConfigRulesOutcome(ActiveConfigRulesResult(outcome.result()));
|
||||
else
|
||||
return ActiveConfigRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::activeConfigRulesAsync(const ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, activeConfigRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::ActiveConfigRulesOutcomeCallable ConfigClient::activeConfigRulesCallable(const ActiveConfigRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ActiveConfigRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->activeConfigRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DeleteConfigRulesOutcome ConfigClient::deleteConfigRules(const DeleteConfigRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigRulesOutcome(DeleteConfigRulesResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::deleteConfigRulesAsync(const DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfigRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DeleteConfigRulesOutcomeCallable ConfigClient::deleteConfigRulesCallable(const DeleteConfigRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfigRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeComplianceOutcome ConfigClient::describeCompliance(const DescribeComplianceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeComplianceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeComplianceOutcome(DescribeComplianceResult(outcome.result()));
|
||||
else
|
||||
return DescribeComplianceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeComplianceAsync(const DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCompliance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeComplianceOutcomeCallable ConfigClient::describeComplianceCallable(const DescribeComplianceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeComplianceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCompliance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeComplianceSummaryOutcome ConfigClient::describeComplianceSummary(const DescribeComplianceSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeComplianceSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeComplianceSummaryOutcome(DescribeComplianceSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeComplianceSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeComplianceSummaryAsync(const DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeComplianceSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeComplianceSummaryOutcomeCallable ConfigClient::describeComplianceSummaryCallable(const DescribeComplianceSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeComplianceSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeComplianceSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeConfigRuleOutcome ConfigClient::describeConfigRule(const DescribeConfigRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigRuleOutcome(DescribeConfigRuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeConfigRuleAsync(const DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfigRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeConfigRuleOutcomeCallable ConfigClient::describeConfigRuleCallable(const DescribeConfigRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfigRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeConfigurationRecorderOutcome ConfigClient::describeConfigurationRecorder(const DescribeConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationRecorderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationRecorderOutcome(DescribeConfigurationRecorderResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationRecorderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeConfigurationRecorderAsync(const DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfigurationRecorder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeConfigurationRecorderOutcomeCallable ConfigClient::describeConfigurationRecorderCallable(const DescribeConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationRecorderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfigurationRecorder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeDeliveryChannelsOutcome ConfigClient::describeDeliveryChannels(const DescribeDeliveryChannelsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeliveryChannelsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeliveryChannelsOutcome(DescribeDeliveryChannelsResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeliveryChannelsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeDeliveryChannelsAsync(const DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeliveryChannels(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeDeliveryChannelsOutcomeCallable ConfigClient::describeDeliveryChannelsCallable(const DescribeDeliveryChannelsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeliveryChannelsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeliveryChannels(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeDiscoveredResourceOutcome ConfigClient::describeDiscoveredResource(const DescribeDiscoveredResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDiscoveredResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDiscoveredResourceOutcome(DescribeDiscoveredResourceResult(outcome.result()));
|
||||
else
|
||||
return DescribeDiscoveredResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeDiscoveredResourceAsync(const DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDiscoveredResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeDiscoveredResourceOutcomeCallable ConfigClient::describeDiscoveredResourceCallable(const DescribeDiscoveredResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDiscoveredResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDiscoveredResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::DescribeEvaluationResultsOutcome ConfigClient::describeEvaluationResults(const DescribeEvaluationResultsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEvaluationResultsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeEvaluationResultsOutcome(DescribeEvaluationResultsResult(outcome.result()));
|
||||
else
|
||||
return DescribeEvaluationResultsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::describeEvaluationResultsAsync(const DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeEvaluationResults(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::DescribeEvaluationResultsOutcomeCallable ConfigClient::describeEvaluationResultsCallable(const DescribeEvaluationResultsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeEvaluationResultsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeEvaluationResults(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::GetDiscoveredResourceCountsOutcome ConfigClient::getDiscoveredResourceCounts(const GetDiscoveredResourceCountsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDiscoveredResourceCountsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDiscoveredResourceCountsOutcome(GetDiscoveredResourceCountsResult(outcome.result()));
|
||||
else
|
||||
return GetDiscoveredResourceCountsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::getDiscoveredResourceCountsAsync(const GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDiscoveredResourceCounts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::GetDiscoveredResourceCountsOutcomeCallable ConfigClient::getDiscoveredResourceCountsCallable(const GetDiscoveredResourceCountsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDiscoveredResourceCountsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDiscoveredResourceCounts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::GetDiscoveredResourceSummaryOutcome ConfigClient::getDiscoveredResourceSummary(const GetDiscoveredResourceSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDiscoveredResourceSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDiscoveredResourceSummaryOutcome(GetDiscoveredResourceSummaryResult(outcome.result()));
|
||||
else
|
||||
return GetDiscoveredResourceSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::getDiscoveredResourceSummaryAsync(const GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDiscoveredResourceSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::GetDiscoveredResourceSummaryOutcomeCallable ConfigClient::getDiscoveredResourceSummaryCallable(const GetDiscoveredResourceSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDiscoveredResourceSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDiscoveredResourceSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::GetResourceComplianceTimelineOutcome ConfigClient::getResourceComplianceTimeline(const GetResourceComplianceTimelineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetResourceComplianceTimelineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetResourceComplianceTimelineOutcome(GetResourceComplianceTimelineResult(outcome.result()));
|
||||
else
|
||||
return GetResourceComplianceTimelineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::getResourceComplianceTimelineAsync(const GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getResourceComplianceTimeline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::GetResourceComplianceTimelineOutcomeCallable ConfigClient::getResourceComplianceTimelineCallable(const GetResourceComplianceTimelineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetResourceComplianceTimelineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getResourceComplianceTimeline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::GetResourceConfigurationTimelineOutcome ConfigClient::getResourceConfigurationTimeline(const GetResourceConfigurationTimelineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetResourceConfigurationTimelineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetResourceConfigurationTimelineOutcome(GetResourceConfigurationTimelineResult(outcome.result()));
|
||||
else
|
||||
return GetResourceConfigurationTimelineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::getResourceConfigurationTimelineAsync(const GetResourceConfigurationTimelineRequest& request, const GetResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getResourceConfigurationTimeline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::GetResourceConfigurationTimelineOutcomeCallable ConfigClient::getResourceConfigurationTimelineCallable(const GetResourceConfigurationTimelineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetResourceConfigurationTimelineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getResourceConfigurationTimeline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::GetSupportedResourceTypesOutcome ConfigClient::getSupportedResourceTypes(const GetSupportedResourceTypesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSupportedResourceTypesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSupportedResourceTypesOutcome(GetSupportedResourceTypesResult(outcome.result()));
|
||||
else
|
||||
return GetSupportedResourceTypesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::getSupportedResourceTypesAsync(const GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSupportedResourceTypes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::GetSupportedResourceTypesOutcomeCallable ConfigClient::getSupportedResourceTypesCallable(const GetSupportedResourceTypesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSupportedResourceTypesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSupportedResourceTypes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::ListConfigRulesOutcome ConfigClient::listConfigRules(const ListConfigRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListConfigRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListConfigRulesOutcome(ListConfigRulesResult(outcome.result()));
|
||||
else
|
||||
return ListConfigRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::listConfigRulesAsync(const ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listConfigRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::ListConfigRulesOutcomeCallable ConfigClient::listConfigRulesCallable(const ListConfigRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListConfigRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listConfigRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::ListDiscoveredResourcesOutcome ConfigClient::listDiscoveredResources(const ListDiscoveredResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDiscoveredResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDiscoveredResourcesOutcome(ListDiscoveredResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListDiscoveredResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::listDiscoveredResourcesAsync(const ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDiscoveredResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscoveredResourcesCallable(const ListDiscoveredResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDiscoveredResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDiscoveredResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::PutConfigRuleOutcome ConfigClient::putConfigRule(const PutConfigRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutConfigRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutConfigRuleOutcome(PutConfigRuleResult(outcome.result()));
|
||||
else
|
||||
return PutConfigRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::putConfigRuleAsync(const PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putConfigRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::PutConfigRuleOutcomeCallable ConfigClient::putConfigRuleCallable(const PutConfigRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutConfigRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putConfigRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::PutConfigurationRecorderOutcome ConfigClient::putConfigurationRecorder(const PutConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutConfigurationRecorderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutConfigurationRecorderOutcome(PutConfigurationRecorderResult(outcome.result()));
|
||||
else
|
||||
return PutConfigurationRecorderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::putConfigurationRecorderAsync(const PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putConfigurationRecorder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::PutConfigurationRecorderOutcomeCallable ConfigClient::putConfigurationRecorderCallable(const PutConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutConfigurationRecorderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putConfigurationRecorder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::PutDeliveryChannelOutcome ConfigClient::putDeliveryChannel(const PutDeliveryChannelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutDeliveryChannelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutDeliveryChannelOutcome(PutDeliveryChannelResult(outcome.result()));
|
||||
else
|
||||
return PutDeliveryChannelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::putDeliveryChannelAsync(const PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putDeliveryChannel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::PutDeliveryChannelOutcomeCallable ConfigClient::putDeliveryChannelCallable(const PutDeliveryChannelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutDeliveryChannelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putDeliveryChannel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::PutEvaluationsOutcome ConfigClient::putEvaluations(const PutEvaluationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutEvaluationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutEvaluationsOutcome(PutEvaluationsResult(outcome.result()));
|
||||
else
|
||||
return PutEvaluationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::putEvaluationsAsync(const PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putEvaluations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::PutEvaluationsOutcomeCallable ConfigClient::putEvaluationsCallable(const PutEvaluationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutEvaluationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putEvaluations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::StartConfigRuleEvaluationOutcome ConfigClient::startConfigRuleEvaluation(const StartConfigRuleEvaluationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartConfigRuleEvaluationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartConfigRuleEvaluationOutcome(StartConfigRuleEvaluationResult(outcome.result()));
|
||||
else
|
||||
return StartConfigRuleEvaluationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::startConfigRuleEvaluationAsync(const StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startConfigRuleEvaluation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::StartConfigRuleEvaluationOutcomeCallable ConfigClient::startConfigRuleEvaluationCallable(const StartConfigRuleEvaluationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartConfigRuleEvaluationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startConfigRuleEvaluation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::StartConfigurationRecorderOutcome ConfigClient::startConfigurationRecorder(const StartConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartConfigurationRecorderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartConfigurationRecorderOutcome(StartConfigurationRecorderResult(outcome.result()));
|
||||
else
|
||||
return StartConfigurationRecorderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::startConfigurationRecorderAsync(const StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startConfigurationRecorder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::StartConfigurationRecorderOutcomeCallable ConfigClient::startConfigurationRecorderCallable(const StartConfigurationRecorderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartConfigurationRecorderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startConfigurationRecorder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ConfigClient::StopConfigRulesOutcome ConfigClient::stopConfigRules(const StopConfigRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopConfigRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopConfigRulesOutcome(StopConfigRulesResult(outcome.result()));
|
||||
else
|
||||
return StopConfigRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ConfigClient::stopConfigRulesAsync(const StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopConfigRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ConfigClient::StopConfigRulesOutcomeCallable ConfigClient::stopConfigRulesCallable(const StopConfigRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopConfigRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopConfigRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user