Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe60cca404 | ||
|
|
288efa5b1f | ||
|
|
660dacf04d | ||
|
|
fde408fe24 | ||
|
|
f78ca8c724 | ||
|
|
6f8b83d17e | ||
|
|
9b5da5d494 | ||
|
|
ba890b6d6c | ||
|
|
6bdc46aefb | ||
|
|
e2a8813a1b | ||
|
|
37dde26ac1 | ||
|
|
cf984bbcfc | ||
|
|
fe11ae7d12 | ||
|
|
4095ec22b9 | ||
|
|
2829dacfb2 | ||
|
|
051e0b3a92 |
50
CHANGELOG
50
CHANGELOG
@@ -1,3 +1,53 @@
|
||||
2021-12-07 Version: 1.36.968
|
||||
- Add MetaTag APIs.
|
||||
|
||||
2021-12-06 Version: 1.36.967
|
||||
- Support Bond Eni.
|
||||
|
||||
2021-12-06 Version: 1.36.966
|
||||
- Support Bond Eni.
|
||||
|
||||
2021-12-06 Version: 1.36.965
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-12-06 Version: 1.36.964
|
||||
- Modify the input parameter Action of DescribeCenInterRegionBandwidthLimits to be required.
|
||||
|
||||
2021-12-03 Version: 1.36.963
|
||||
- Add EventRule Content Filter.
|
||||
- Add MetricRule Labels.
|
||||
|
||||
2021-12-03 Version: 1.36.962
|
||||
- Support EndpointType and ServiceType.
|
||||
|
||||
2021-12-02 Version: 1.36.961
|
||||
- Update MergeImageFace QueryFaceImageTemplate AddFaceImageTemplate DeleteFaceImageTemplate.
|
||||
|
||||
2021-12-01 Version: 1.36.960
|
||||
- Support not switching routes when VBR health check fails.
|
||||
- Support order type when cross-account authorization and display.
|
||||
|
||||
2021-12-01 Version: 1.36.959
|
||||
- Supported RequestDecision For YN.
|
||||
|
||||
2021-11-30 Version: 1.36.958
|
||||
- Support health check paging.
|
||||
|
||||
2021-11-30 Version: 1.36.957
|
||||
- Support health check paging.
|
||||
|
||||
2021-11-29 Version: 1.36.956
|
||||
- Add API for unregister sip phone device, masked callee, etc.
|
||||
|
||||
2021-11-29 Version: 1.36.955
|
||||
- Update DescribeCdnSMCertificateDetail.
|
||||
|
||||
2021-11-29 Version: 1.36.954
|
||||
- Update SetDcdnDomainSMCertificate.
|
||||
|
||||
2021-11-29 Version: 1.36.953
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2021-11-26 Version: 1.36.952
|
||||
- Support CEN Qos Apis.
|
||||
- Support TransitRouter Latest Apis.
|
||||
|
||||
@@ -25,10 +25,14 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/AddEntriesToAclResult.h
|
||||
include/alibabacloud/alb/model/AddServersToServerGroupRequest.h
|
||||
include/alibabacloud/alb/model/AddServersToServerGroupResult.h
|
||||
include/alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupRequest.h
|
||||
include/alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupResult.h
|
||||
include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h
|
||||
include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h
|
||||
include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h
|
||||
include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h
|
||||
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h
|
||||
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h
|
||||
include/alibabacloud/alb/model/CreateAclRequest.h
|
||||
include/alibabacloud/alb/model/CreateAclResult.h
|
||||
include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h
|
||||
@@ -65,6 +69,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/alb/model/DescribeZonesRequest.h
|
||||
include/alibabacloud/alb/model/DescribeZonesResult.h
|
||||
include/alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h
|
||||
include/alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h
|
||||
include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h
|
||||
include/alibabacloud/alb/model/DisableDeletionProtectionResult.h
|
||||
include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h
|
||||
@@ -81,6 +87,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h
|
||||
include/alibabacloud/alb/model/GetListenerAttributeRequest.h
|
||||
include/alibabacloud/alb/model/GetListenerAttributeResult.h
|
||||
include/alibabacloud/alb/model/GetListenerHealthStatusRequest.h
|
||||
include/alibabacloud/alb/model/GetListenerHealthStatusResult.h
|
||||
include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h
|
||||
include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h
|
||||
include/alibabacloud/alb/model/ListAclEntriesRequest.h
|
||||
@@ -145,6 +153,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerZonesRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerZonesResult.h
|
||||
include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h
|
||||
include/alibabacloud/alb/model/UpdateRuleAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h
|
||||
@@ -162,10 +172,14 @@ set(alb_src
|
||||
src/model/AddEntriesToAclResult.cc
|
||||
src/model/AddServersToServerGroupRequest.cc
|
||||
src/model/AddServersToServerGroupResult.cc
|
||||
src/model/ApplyHealthCheckTemplateToServerGroupRequest.cc
|
||||
src/model/ApplyHealthCheckTemplateToServerGroupResult.cc
|
||||
src/model/AssociateAclsWithListenerRequest.cc
|
||||
src/model/AssociateAclsWithListenerResult.cc
|
||||
src/model/AssociateAdditionalCertificatesWithListenerRequest.cc
|
||||
src/model/AssociateAdditionalCertificatesWithListenerResult.cc
|
||||
src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc
|
||||
src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc
|
||||
src/model/CreateAclRequest.cc
|
||||
src/model/CreateAclResult.cc
|
||||
src/model/CreateHealthCheckTemplateRequest.cc
|
||||
@@ -202,6 +216,8 @@ set(alb_src
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeZonesRequest.cc
|
||||
src/model/DescribeZonesResult.cc
|
||||
src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc
|
||||
src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc
|
||||
src/model/DisableDeletionProtectionRequest.cc
|
||||
src/model/DisableDeletionProtectionResult.cc
|
||||
src/model/DisableLoadBalancerAccessLogRequest.cc
|
||||
@@ -218,6 +234,8 @@ set(alb_src
|
||||
src/model/GetHealthCheckTemplateAttributeResult.cc
|
||||
src/model/GetListenerAttributeRequest.cc
|
||||
src/model/GetListenerAttributeResult.cc
|
||||
src/model/GetListenerHealthStatusRequest.cc
|
||||
src/model/GetListenerHealthStatusResult.cc
|
||||
src/model/GetLoadBalancerAttributeRequest.cc
|
||||
src/model/GetLoadBalancerAttributeResult.cc
|
||||
src/model/ListAclEntriesRequest.cc
|
||||
@@ -282,6 +300,8 @@ set(alb_src
|
||||
src/model/UpdateLoadBalancerAttributeResult.cc
|
||||
src/model/UpdateLoadBalancerEditionRequest.cc
|
||||
src/model/UpdateLoadBalancerEditionResult.cc
|
||||
src/model/UpdateLoadBalancerZonesRequest.cc
|
||||
src/model/UpdateLoadBalancerZonesResult.cc
|
||||
src/model/UpdateRuleAttributeRequest.cc
|
||||
src/model/UpdateRuleAttributeResult.cc
|
||||
src/model/UpdateRulesAttributeRequest.cc
|
||||
|
||||
@@ -26,10 +26,14 @@
|
||||
#include "model/AddEntriesToAclResult.h"
|
||||
#include "model/AddServersToServerGroupRequest.h"
|
||||
#include "model/AddServersToServerGroupResult.h"
|
||||
#include "model/ApplyHealthCheckTemplateToServerGroupRequest.h"
|
||||
#include "model/ApplyHealthCheckTemplateToServerGroupResult.h"
|
||||
#include "model/AssociateAclsWithListenerRequest.h"
|
||||
#include "model/AssociateAclsWithListenerResult.h"
|
||||
#include "model/AssociateAdditionalCertificatesWithListenerRequest.h"
|
||||
#include "model/AssociateAdditionalCertificatesWithListenerResult.h"
|
||||
#include "model/AttachCommonBandwidthPackageToLoadBalancerRequest.h"
|
||||
#include "model/AttachCommonBandwidthPackageToLoadBalancerResult.h"
|
||||
#include "model/CreateAclRequest.h"
|
||||
#include "model/CreateAclResult.h"
|
||||
#include "model/CreateHealthCheckTemplateRequest.h"
|
||||
@@ -66,6 +70,8 @@
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeZonesRequest.h"
|
||||
#include "model/DescribeZonesResult.h"
|
||||
#include "model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h"
|
||||
#include "model/DetachCommonBandwidthPackageFromLoadBalancerResult.h"
|
||||
#include "model/DisableDeletionProtectionRequest.h"
|
||||
#include "model/DisableDeletionProtectionResult.h"
|
||||
#include "model/DisableLoadBalancerAccessLogRequest.h"
|
||||
@@ -82,6 +88,8 @@
|
||||
#include "model/GetHealthCheckTemplateAttributeResult.h"
|
||||
#include "model/GetListenerAttributeRequest.h"
|
||||
#include "model/GetListenerAttributeResult.h"
|
||||
#include "model/GetListenerHealthStatusRequest.h"
|
||||
#include "model/GetListenerHealthStatusResult.h"
|
||||
#include "model/GetLoadBalancerAttributeRequest.h"
|
||||
#include "model/GetLoadBalancerAttributeResult.h"
|
||||
#include "model/ListAclEntriesRequest.h"
|
||||
@@ -146,6 +154,8 @@
|
||||
#include "model/UpdateLoadBalancerAttributeResult.h"
|
||||
#include "model/UpdateLoadBalancerEditionRequest.h"
|
||||
#include "model/UpdateLoadBalancerEditionResult.h"
|
||||
#include "model/UpdateLoadBalancerZonesRequest.h"
|
||||
#include "model/UpdateLoadBalancerZonesResult.h"
|
||||
#include "model/UpdateRuleAttributeRequest.h"
|
||||
#include "model/UpdateRuleAttributeResult.h"
|
||||
#include "model/UpdateRulesAttributeRequest.h"
|
||||
@@ -171,12 +181,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddServersToServerGroupResult> AddServersToServerGroupOutcome;
|
||||
typedef std::future<AddServersToServerGroupOutcome> AddServersToServerGroupOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AddServersToServerGroupRequest&, const AddServersToServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddServersToServerGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyHealthCheckTemplateToServerGroupResult> ApplyHealthCheckTemplateToServerGroupOutcome;
|
||||
typedef std::future<ApplyHealthCheckTemplateToServerGroupOutcome> ApplyHealthCheckTemplateToServerGroupOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::ApplyHealthCheckTemplateToServerGroupRequest&, const ApplyHealthCheckTemplateToServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyHealthCheckTemplateToServerGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssociateAclsWithListenerResult> AssociateAclsWithListenerOutcome;
|
||||
typedef std::future<AssociateAclsWithListenerOutcome> AssociateAclsWithListenerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AssociateAclsWithListenerRequest&, const AssociateAclsWithListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateAclsWithListenerAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssociateAdditionalCertificatesWithListenerResult> AssociateAdditionalCertificatesWithListenerOutcome;
|
||||
typedef std::future<AssociateAdditionalCertificatesWithListenerOutcome> AssociateAdditionalCertificatesWithListenerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AssociateAdditionalCertificatesWithListenerRequest&, const AssociateAdditionalCertificatesWithListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateAdditionalCertificatesWithListenerAsyncHandler;
|
||||
typedef Outcome<Error, Model::AttachCommonBandwidthPackageToLoadBalancerResult> AttachCommonBandwidthPackageToLoadBalancerOutcome;
|
||||
typedef std::future<AttachCommonBandwidthPackageToLoadBalancerOutcome> AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::AttachCommonBandwidthPackageToLoadBalancerRequest&, const AttachCommonBandwidthPackageToLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachCommonBandwidthPackageToLoadBalancerAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAclResult> CreateAclOutcome;
|
||||
typedef std::future<CreateAclOutcome> CreateAclOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::CreateAclRequest&, const CreateAclOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAclAsyncHandler;
|
||||
@@ -231,6 +247,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeZonesResult> DescribeZonesOutcome;
|
||||
typedef std::future<DescribeZonesOutcome> DescribeZonesOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DescribeZonesRequest&, const DescribeZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZonesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachCommonBandwidthPackageFromLoadBalancerResult> DetachCommonBandwidthPackageFromLoadBalancerOutcome;
|
||||
typedef std::future<DetachCommonBandwidthPackageFromLoadBalancerOutcome> DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest&, const DetachCommonBandwidthPackageFromLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableDeletionProtectionResult> DisableDeletionProtectionOutcome;
|
||||
typedef std::future<DisableDeletionProtectionOutcome> DisableDeletionProtectionOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::DisableDeletionProtectionRequest&, const DisableDeletionProtectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDeletionProtectionAsyncHandler;
|
||||
@@ -255,6 +274,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetListenerAttributeResult> GetListenerAttributeOutcome;
|
||||
typedef std::future<GetListenerAttributeOutcome> GetListenerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetListenerAttributeRequest&, const GetListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetListenerHealthStatusResult> GetListenerHealthStatusOutcome;
|
||||
typedef std::future<GetListenerHealthStatusOutcome> GetListenerHealthStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetListenerHealthStatusRequest&, const GetListenerHealthStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerHealthStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLoadBalancerAttributeResult> GetLoadBalancerAttributeOutcome;
|
||||
typedef std::future<GetLoadBalancerAttributeOutcome> GetLoadBalancerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::GetLoadBalancerAttributeRequest&, const GetLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLoadBalancerAttributeAsyncHandler;
|
||||
@@ -351,6 +373,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerEditionResult> UpdateLoadBalancerEditionOutcome;
|
||||
typedef std::future<UpdateLoadBalancerEditionOutcome> UpdateLoadBalancerEditionOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerEditionRequest&, const UpdateLoadBalancerEditionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerEditionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerZonesResult> UpdateLoadBalancerZonesOutcome;
|
||||
typedef std::future<UpdateLoadBalancerZonesOutcome> UpdateLoadBalancerZonesOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerZonesRequest&, const UpdateLoadBalancerZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerZonesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRuleAttributeResult> UpdateRuleAttributeOutcome;
|
||||
typedef std::future<UpdateRuleAttributeOutcome> UpdateRuleAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateRuleAttributeRequest&, const UpdateRuleAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRuleAttributeAsyncHandler;
|
||||
@@ -377,12 +402,18 @@ namespace AlibabaCloud
|
||||
AddServersToServerGroupOutcome addServersToServerGroup(const Model::AddServersToServerGroupRequest &request)const;
|
||||
void addServersToServerGroupAsync(const Model::AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddServersToServerGroupOutcomeCallable addServersToServerGroupCallable(const Model::AddServersToServerGroupRequest& request) const;
|
||||
ApplyHealthCheckTemplateToServerGroupOutcome applyHealthCheckTemplateToServerGroup(const Model::ApplyHealthCheckTemplateToServerGroupRequest &request)const;
|
||||
void applyHealthCheckTemplateToServerGroupAsync(const Model::ApplyHealthCheckTemplateToServerGroupRequest& request, const ApplyHealthCheckTemplateToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyHealthCheckTemplateToServerGroupOutcomeCallable applyHealthCheckTemplateToServerGroupCallable(const Model::ApplyHealthCheckTemplateToServerGroupRequest& request) const;
|
||||
AssociateAclsWithListenerOutcome associateAclsWithListener(const Model::AssociateAclsWithListenerRequest &request)const;
|
||||
void associateAclsWithListenerAsync(const Model::AssociateAclsWithListenerRequest& request, const AssociateAclsWithListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssociateAclsWithListenerOutcomeCallable associateAclsWithListenerCallable(const Model::AssociateAclsWithListenerRequest& request) const;
|
||||
AssociateAdditionalCertificatesWithListenerOutcome associateAdditionalCertificatesWithListener(const Model::AssociateAdditionalCertificatesWithListenerRequest &request)const;
|
||||
void associateAdditionalCertificatesWithListenerAsync(const Model::AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssociateAdditionalCertificatesWithListenerOutcomeCallable associateAdditionalCertificatesWithListenerCallable(const Model::AssociateAdditionalCertificatesWithListenerRequest& request) const;
|
||||
AttachCommonBandwidthPackageToLoadBalancerOutcome attachCommonBandwidthPackageToLoadBalancer(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest &request)const;
|
||||
void attachCommonBandwidthPackageToLoadBalancerAsync(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable attachCommonBandwidthPackageToLoadBalancerCallable(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request) const;
|
||||
CreateAclOutcome createAcl(const Model::CreateAclRequest &request)const;
|
||||
void createAclAsync(const Model::CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAclOutcomeCallable createAclCallable(const Model::CreateAclRequest& request) const;
|
||||
@@ -437,6 +468,9 @@ namespace AlibabaCloud
|
||||
DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const;
|
||||
void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const;
|
||||
DetachCommonBandwidthPackageFromLoadBalancerOutcome detachCommonBandwidthPackageFromLoadBalancer(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest &request)const;
|
||||
void detachCommonBandwidthPackageFromLoadBalancerAsync(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable detachCommonBandwidthPackageFromLoadBalancerCallable(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request) const;
|
||||
DisableDeletionProtectionOutcome disableDeletionProtection(const Model::DisableDeletionProtectionRequest &request)const;
|
||||
void disableDeletionProtectionAsync(const Model::DisableDeletionProtectionRequest& request, const DisableDeletionProtectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableDeletionProtectionOutcomeCallable disableDeletionProtectionCallable(const Model::DisableDeletionProtectionRequest& request) const;
|
||||
@@ -461,6 +495,9 @@ namespace AlibabaCloud
|
||||
GetListenerAttributeOutcome getListenerAttribute(const Model::GetListenerAttributeRequest &request)const;
|
||||
void getListenerAttributeAsync(const Model::GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetListenerAttributeOutcomeCallable getListenerAttributeCallable(const Model::GetListenerAttributeRequest& request) const;
|
||||
GetListenerHealthStatusOutcome getListenerHealthStatus(const Model::GetListenerHealthStatusRequest &request)const;
|
||||
void getListenerHealthStatusAsync(const Model::GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetListenerHealthStatusOutcomeCallable getListenerHealthStatusCallable(const Model::GetListenerHealthStatusRequest& request) const;
|
||||
GetLoadBalancerAttributeOutcome getLoadBalancerAttribute(const Model::GetLoadBalancerAttributeRequest &request)const;
|
||||
void getLoadBalancerAttributeAsync(const Model::GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLoadBalancerAttributeOutcomeCallable getLoadBalancerAttributeCallable(const Model::GetLoadBalancerAttributeRequest& request) const;
|
||||
@@ -557,6 +594,9 @@ namespace AlibabaCloud
|
||||
UpdateLoadBalancerEditionOutcome updateLoadBalancerEdition(const Model::UpdateLoadBalancerEditionRequest &request)const;
|
||||
void updateLoadBalancerEditionAsync(const Model::UpdateLoadBalancerEditionRequest& request, const UpdateLoadBalancerEditionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerEditionOutcomeCallable updateLoadBalancerEditionCallable(const Model::UpdateLoadBalancerEditionRequest& request) const;
|
||||
UpdateLoadBalancerZonesOutcome updateLoadBalancerZones(const Model::UpdateLoadBalancerZonesRequest &request)const;
|
||||
void updateLoadBalancerZonesAsync(const Model::UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerZonesOutcomeCallable updateLoadBalancerZonesCallable(const Model::UpdateLoadBalancerZonesRequest& request) const;
|
||||
UpdateRuleAttributeOutcome updateRuleAttribute(const Model::UpdateRuleAttributeRequest &request)const;
|
||||
void updateRuleAttributeAsync(const Model::UpdateRuleAttributeRequest& request, const UpdateRuleAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRuleAttributeOutcomeCallable updateRuleAttributeCallable(const Model::UpdateRuleAttributeRequest& request) const;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT AddServersToServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Servers {
|
||||
bool remoteIpEnabled;
|
||||
std::string serverType;
|
||||
int port;
|
||||
std::string description;
|
||||
|
||||
@@ -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_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT ApplyHealthCheckTemplateToServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ApplyHealthCheckTemplateToServerGroupRequest();
|
||||
~ApplyHealthCheckTemplateToServerGroupRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getServerGroupId() const;
|
||||
void setServerGroupId(const std::string &serverGroupId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getHealthCheckTemplateId() const;
|
||||
void setHealthCheckTemplateId(const std::string &healthCheckTemplateId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string serverGroupId_;
|
||||
bool dryRun_;
|
||||
std::string healthCheckTemplateId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPREQUEST_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_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT ApplyHealthCheckTemplateToServerGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult();
|
||||
explicit ApplyHealthCheckTemplateToServerGroupResult(const std::string &payload);
|
||||
~ApplyHealthCheckTemplateToServerGroupResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_APPLYHEALTHCHECKTEMPLATETOSERVERGROUPRESULT_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_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT AttachCommonBandwidthPackageToLoadBalancerRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest();
|
||||
~AttachCommonBandwidthPackageToLoadBalancerRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getBandwidthPackageId() const;
|
||||
void setBandwidthPackageId(const std::string &bandwidthPackageId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string bandwidthPackageId_;
|
||||
bool dryRun_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_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_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT AttachCommonBandwidthPackageToLoadBalancerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult();
|
||||
explicit AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload);
|
||||
~AttachCommonBandwidthPackageToLoadBalancerResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_
|
||||
@@ -33,6 +33,7 @@ public:
|
||||
std::string status;
|
||||
};
|
||||
struct LoadBalancerBillingConfig {
|
||||
std::string bandwidthPackageId;
|
||||
std::string internetChargeType;
|
||||
int internetBandwidth;
|
||||
std::string payType;
|
||||
@@ -40,6 +41,7 @@ public:
|
||||
struct ZoneMappings {
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
std::string allocationId;
|
||||
};
|
||||
CreateLoadBalancerRequest();
|
||||
~CreateLoadBalancerRequest();
|
||||
@@ -51,6 +53,8 @@ public:
|
||||
void setModificationProtectionConfig(const ModificationProtectionConfig &modificationProtectionConfig);
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig() const;
|
||||
void setLoadBalancerBillingConfig(const LoadBalancerBillingConfig &loadBalancerBillingConfig);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
bool getDeletionProtectionEnabled() const;
|
||||
void setDeletionProtectionEnabled(bool deletionProtectionEnabled);
|
||||
std::string getResourceGroupId() const;
|
||||
@@ -73,6 +77,7 @@ private:
|
||||
std::string clientToken_;
|
||||
ModificationProtectionConfig modificationProtectionConfig_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::string addressIpVersion_;
|
||||
bool deletionProtectionEnabled_;
|
||||
std::string resourceGroupId_;
|
||||
std::string loadBalancerName_;
|
||||
|
||||
@@ -66,10 +66,14 @@ public:
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getProtocol() const;
|
||||
void setProtocol(const std::string &protocol);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
bool getIpv6Enabled() const;
|
||||
void setIpv6Enabled(bool ipv6Enabled);
|
||||
std::string getServerGroupType() const;
|
||||
void setServerGroupType(const std::string &serverGroupType);
|
||||
std::string getVpcId() const;
|
||||
@@ -82,8 +86,10 @@ private:
|
||||
std::string scheduler_;
|
||||
std::string resourceGroupId_;
|
||||
std::string protocol_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
bool ipv6Enabled_;
|
||||
std::string serverGroupType_;
|
||||
std::string vpcId_;
|
||||
};
|
||||
|
||||
@@ -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_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest();
|
||||
~DetachCommonBandwidthPackageFromLoadBalancerRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getBandwidthPackageId() const;
|
||||
void setBandwidthPackageId(const std::string &bandwidthPackageId);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string bandwidthPackageId_;
|
||||
bool dryRun_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_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_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult();
|
||||
explicit DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload);
|
||||
~DetachCommonBandwidthPackageFromLoadBalancerResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_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_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT GetListenerHealthStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetListenerHealthStatusRequest();
|
||||
~GetListenerHealthStatusRequest();
|
||||
bool getIncludeRule() const;
|
||||
void setIncludeRule(bool includeRule);
|
||||
std::string getListenerId() const;
|
||||
void setListenerId(const std::string &listenerId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
long getMaxResults() const;
|
||||
void setMaxResults(long maxResults);
|
||||
|
||||
private:
|
||||
bool includeRule_;
|
||||
std::string listenerId_;
|
||||
std::string nextToken_;
|
||||
long maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT GetListenerHealthStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ListenerHealthStatusModel
|
||||
{
|
||||
struct ServerGroupHealthStatusModel
|
||||
{
|
||||
struct BackendServerHealthStatusModel
|
||||
{
|
||||
struct Reason
|
||||
{
|
||||
std::string expectedResponse;
|
||||
std::string actualResponse;
|
||||
std::string reasonCode;
|
||||
};
|
||||
std::string status;
|
||||
std::string serverId;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
Reason reason;
|
||||
};
|
||||
std::string actionType;
|
||||
std::vector<ServerGroupHealthStatusModel::BackendServerHealthStatusModel> nonNormalServers;
|
||||
std::string serverGroupId;
|
||||
std::string healthCheckEnabled;
|
||||
};
|
||||
int listenerPort;
|
||||
std::vector<ListenerHealthStatusModel::ServerGroupHealthStatusModel> serverGroupInfos;
|
||||
std::string listenerProtocol;
|
||||
std::string listenerId;
|
||||
};
|
||||
struct RuleHealthStatusModel
|
||||
{
|
||||
struct ServerGroupHealthStatusModel2
|
||||
{
|
||||
struct NonNormalServer
|
||||
{
|
||||
struct Reason4
|
||||
{
|
||||
std::string expectedResponse;
|
||||
std::string actualResponse;
|
||||
std::string reasonCode;
|
||||
};
|
||||
std::string status;
|
||||
std::string serverId;
|
||||
Reason4 reason4;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
};
|
||||
std::string actionType;
|
||||
std::string serverGroupId;
|
||||
std::string healthCheckEnabled;
|
||||
std::vector<ServerGroupHealthStatusModel2::NonNormalServer> nonNormalServers3;
|
||||
};
|
||||
std::vector<RuleHealthStatusModel::ServerGroupHealthStatusModel2> serverGroupInfos1;
|
||||
std::string ruleId;
|
||||
};
|
||||
|
||||
|
||||
GetListenerHealthStatusResult();
|
||||
explicit GetListenerHealthStatusResult(const std::string &payload);
|
||||
~GetListenerHealthStatusResult();
|
||||
std::vector<RuleHealthStatusModel> getRuleHealthStatus()const;
|
||||
std::vector<ListenerHealthStatusModel> getListenerHealthStatus()const;
|
||||
std::string getNextToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RuleHealthStatusModel> ruleHealthStatus_;
|
||||
std::vector<ListenerHealthStatusModel> listenerHealthStatus_;
|
||||
std::string nextToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
|
||||
@@ -68,6 +68,7 @@ namespace AlibabaCloud
|
||||
struct LoadBalancerAddress
|
||||
{
|
||||
std::string address;
|
||||
std::string ipv6Address;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::string vSwitchId;
|
||||
@@ -79,56 +80,62 @@ namespace AlibabaCloud
|
||||
explicit GetLoadBalancerAttributeResult(const std::string &payload);
|
||||
~GetLoadBalancerAttributeResult();
|
||||
bool getServiceManagedEnabled()const;
|
||||
std::string getLoadBalancerEdition()const;
|
||||
std::string getAddressIpVersion()const;
|
||||
std::string getResourceGroupId()const;
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
|
||||
std::vector<std::string> getFeatureLabels()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getLoadBalancerId()const;
|
||||
std::vector<ZoneMapping> getZoneMappings()const;
|
||||
std::string getDNSName()const;
|
||||
std::string getIpv6AddressType()const;
|
||||
int getBandwidthCapacity()const;
|
||||
DeletionProtectionConfig getDeletionProtectionConfig()const;
|
||||
std::string getServiceManagedMode()const;
|
||||
std::string getBandwidthPackageId()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getLoadBalancerEdition()const;
|
||||
LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
|
||||
std::string getCreateTime()const;
|
||||
ModificationProtectionConfig getModificationProtectionConfig()const;
|
||||
std::string getLoadBalancerName()const;
|
||||
AccessLogConfig getAccessLogConfig()const;
|
||||
int getBandwidthCapacity()const;
|
||||
DeletionProtectionConfig getDeletionProtectionConfig()const;
|
||||
bool getConfigManagedEnabled()const;
|
||||
std::string getLoadBalancerBussinessStatus()const;
|
||||
std::string getVpcId()const;
|
||||
std::string getServiceManagedMode()const;
|
||||
std::string getBandwidthPackageId()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getAddressAllocatedMode()const;
|
||||
std::string getAddressType()const;
|
||||
std::string getLoadBalancerStatus()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::vector<LoadBalancerOperationLock> getLoadBalancerOperationLocks()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool serviceManagedEnabled_;
|
||||
std::string loadBalancerEdition_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::vector<std::string> featureLabels_;
|
||||
std::string createTime_;
|
||||
std::string loadBalancerId_;
|
||||
std::vector<ZoneMapping> zoneMappings_;
|
||||
std::string dNSName_;
|
||||
std::string ipv6AddressType_;
|
||||
int bandwidthCapacity_;
|
||||
DeletionProtectionConfig deletionProtectionConfig_;
|
||||
std::string serviceManagedMode_;
|
||||
std::string bandwidthPackageId_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string loadBalancerEdition_;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig_;
|
||||
std::string createTime_;
|
||||
ModificationProtectionConfig modificationProtectionConfig_;
|
||||
std::string loadBalancerName_;
|
||||
AccessLogConfig accessLogConfig_;
|
||||
int bandwidthCapacity_;
|
||||
DeletionProtectionConfig deletionProtectionConfig_;
|
||||
bool configManagedEnabled_;
|
||||
std::string loadBalancerBussinessStatus_;
|
||||
std::string vpcId_;
|
||||
std::string serviceManagedMode_;
|
||||
std::string bandwidthPackageId_;
|
||||
std::string regionId_;
|
||||
std::string addressAllocatedMode_;
|
||||
std::string addressType_;
|
||||
std::string loadBalancerStatus_;
|
||||
std::vector<Tag> tags_;
|
||||
std::vector<LoadBalancerOperationLock> loadBalancerOperationLocks_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Acl
|
||||
{
|
||||
bool serviceManagedEnabled;
|
||||
bool configManagedEnabled;
|
||||
std::string aclStatus;
|
||||
std::string resourceGroupId;
|
||||
std::string aclId;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setLoadBalancerNames(const std::vector<std::string> &loadBalancerNames);
|
||||
std::vector<std::string> getLoadBalancerIds() const;
|
||||
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getNextToken() const;
|
||||
@@ -60,12 +62,15 @@ public:
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
std::string getIpv6AddressType() const;
|
||||
void setIpv6AddressType(const std::string &ipv6AddressType);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
|
||||
private:
|
||||
std::vector<std::string> loadBalancerNames_;
|
||||
std::vector<std::string> loadBalancerIds_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
std::string nextToken_;
|
||||
std::string loadBalancerBussinessStatus_;
|
||||
@@ -77,6 +82,7 @@ private:
|
||||
std::string internetChargeType_;
|
||||
int maxResults_;
|
||||
std::string zoneId_;
|
||||
std::string ipv6AddressType_;
|
||||
std::string payType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -67,15 +67,18 @@ namespace AlibabaCloud
|
||||
};
|
||||
bool serviceManagedEnabled;
|
||||
std::string loadBalancerEdition;
|
||||
std::string addressIpVersion;
|
||||
std::string resourceGroupId;
|
||||
LoadBalancerBillingConfig loadBalancerBillingConfig;
|
||||
std::string createTime;
|
||||
std::string loadBalancerId;
|
||||
std::string dNSName;
|
||||
ModificationProtectionConfig modificationProtectionConfig;
|
||||
std::string ipv6AddressType;
|
||||
std::string loadBalancerName;
|
||||
AccessLogConfig accessLogConfig;
|
||||
int bandwidthCapacity;
|
||||
bool configManagedEnabled;
|
||||
DeletionProtectionConfig deletionProtectionConfig;
|
||||
std::string loadBalancerBussinessStatus;
|
||||
std::string vpcId;
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string serverId;
|
||||
int port;
|
||||
std::string serverIp;
|
||||
bool remoteIpEnabled;
|
||||
std::string serverGroupId;
|
||||
int weight;
|
||||
};
|
||||
|
||||
@@ -67,10 +67,14 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> relatedLoadBalancerIds;
|
||||
std::string resourceGroupId;
|
||||
std::string scheduler;
|
||||
bool upstreamKeepaliveEnabled;
|
||||
StickySessionConfig stickySessionConfig;
|
||||
std::string serverGroupId;
|
||||
int serverCount;
|
||||
std::string serverGroupType;
|
||||
std::string serverGroupStatus;
|
||||
bool ipv6Enabled;
|
||||
bool configManagedEnabled;
|
||||
std::string vpcId;
|
||||
std::string serviceManagedMode;
|
||||
HealthCheckConfig healthCheckConfig;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT ReplaceServersInServerGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct AddedServers {
|
||||
bool remoteIpEnabled;
|
||||
std::string serverType;
|
||||
int port;
|
||||
std::string description;
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerZonesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ZoneMappings {
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
std::string allocationId;
|
||||
};
|
||||
UpdateLoadBalancerZonesRequest();
|
||||
~UpdateLoadBalancerZonesRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::vector<ZoneMappings> getZoneMappings() const;
|
||||
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
bool dryRun_;
|
||||
std::vector<ZoneMappings> zoneMappings_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESREQUEST_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_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerZonesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateLoadBalancerZonesResult();
|
||||
explicit UpdateLoadBalancerZonesResult(const std::string &payload);
|
||||
~UpdateLoadBalancerZonesResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
|
||||
@@ -64,6 +64,8 @@ public:
|
||||
void setScheduler(const std::string &scheduler);
|
||||
std::string getServerGroupId() const;
|
||||
void setServerGroupId(const std::string &serverGroupId);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
@@ -75,6 +77,7 @@ private:
|
||||
HealthCheckConfig healthCheckConfig_;
|
||||
std::string scheduler_;
|
||||
std::string serverGroupId_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
};
|
||||
|
||||
@@ -123,6 +123,42 @@ AlbClient::AddServersToServerGroupOutcomeCallable AlbClient::addServersToServerG
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::ApplyHealthCheckTemplateToServerGroupOutcome AlbClient::applyHealthCheckTemplateToServerGroup(const ApplyHealthCheckTemplateToServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(ApplyHealthCheckTemplateToServerGroupResult(outcome.result()));
|
||||
else
|
||||
return ApplyHealthCheckTemplateToServerGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::applyHealthCheckTemplateToServerGroupAsync(const ApplyHealthCheckTemplateToServerGroupRequest& request, const ApplyHealthCheckTemplateToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, applyHealthCheckTemplateToServerGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::ApplyHealthCheckTemplateToServerGroupOutcomeCallable AlbClient::applyHealthCheckTemplateToServerGroupCallable(const ApplyHealthCheckTemplateToServerGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ApplyHealthCheckTemplateToServerGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->applyHealthCheckTemplateToServerGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::AssociateAclsWithListenerOutcome AlbClient::associateAclsWithListener(const AssociateAclsWithListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ AlbClient::AssociateAdditionalCertificatesWithListenerOutcomeCallable AlbClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcome AlbClient::attachCommonBandwidthPackageToLoadBalancer(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(AttachCommonBandwidthPackageToLoadBalancerResult(outcome.result()));
|
||||
else
|
||||
return AttachCommonBandwidthPackageToLoadBalancerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::attachCommonBandwidthPackageToLoadBalancerAsync(const AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, attachCommonBandwidthPackageToLoadBalancer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable AlbClient::attachCommonBandwidthPackageToLoadBalancerCallable(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AttachCommonBandwidthPackageToLoadBalancerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->attachCommonBandwidthPackageToLoadBalancer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::CreateAclOutcome AlbClient::createAcl(const CreateAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +915,42 @@ AlbClient::DescribeZonesOutcomeCallable AlbClient::describeZonesCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcome AlbClient::detachCommonBandwidthPackageFromLoadBalancer(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(DetachCommonBandwidthPackageFromLoadBalancerResult(outcome.result()));
|
||||
else
|
||||
return DetachCommonBandwidthPackageFromLoadBalancerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::detachCommonBandwidthPackageFromLoadBalancerAsync(const DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detachCommonBandwidthPackageFromLoadBalancer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable AlbClient::detachCommonBandwidthPackageFromLoadBalancerCallable(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetachCommonBandwidthPackageFromLoadBalancerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detachCommonBandwidthPackageFromLoadBalancer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::DisableDeletionProtectionOutcome AlbClient::disableDeletionProtection(const DisableDeletionProtectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1239,42 @@ AlbClient::GetListenerAttributeOutcomeCallable AlbClient::getListenerAttributeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::GetListenerHealthStatusOutcome AlbClient::getListenerHealthStatus(const GetListenerHealthStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetListenerHealthStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetListenerHealthStatusOutcome(GetListenerHealthStatusResult(outcome.result()));
|
||||
else
|
||||
return GetListenerHealthStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::getListenerHealthStatusAsync(const GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getListenerHealthStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::GetListenerHealthStatusOutcomeCallable AlbClient::getListenerHealthStatusCallable(const GetListenerHealthStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetListenerHealthStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getListenerHealthStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::GetLoadBalancerAttributeOutcome AlbClient::getLoadBalancerAttribute(const GetLoadBalancerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,6 +2427,42 @@ AlbClient::UpdateLoadBalancerEditionOutcomeCallable AlbClient::updateLoadBalance
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerZonesOutcome AlbClient::updateLoadBalancerZones(const UpdateLoadBalancerZonesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLoadBalancerZonesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLoadBalancerZonesOutcome(UpdateLoadBalancerZonesResult(outcome.result()));
|
||||
else
|
||||
return UpdateLoadBalancerZonesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::updateLoadBalancerZonesAsync(const UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLoadBalancerZones(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerZonesOutcomeCallable AlbClient::updateLoadBalancerZonesCallable(const UpdateLoadBalancerZonesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerZonesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLoadBalancerZones(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateRuleAttributeOutcome AlbClient::updateRuleAttribute(const UpdateRuleAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -50,6 +50,7 @@ std::vector<AddServersToServerGroupRequest::Servers> AddServersToServerGroupRequ
|
||||
void AddServersToServerGroupRequest::setServers(const std::vector<AddServersToServerGroupRequest::Servers> &servers) {
|
||||
servers_ = servers;
|
||||
for(int dep1 = 0; dep1 != servers.size(); dep1++) {
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".RemoteIpEnabled", servers[dep1].remoteIpEnabled ? "true" : "false");
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType);
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port));
|
||||
setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Description", servers[dep1].description);
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/ApplyHealthCheckTemplateToServerGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::ApplyHealthCheckTemplateToServerGroupRequest;
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupRequest::ApplyHealthCheckTemplateToServerGroupRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "ApplyHealthCheckTemplateToServerGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupRequest::~ApplyHealthCheckTemplateToServerGroupRequest() {}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getServerGroupId() const {
|
||||
return serverGroupId_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setServerGroupId(const std::string &serverGroupId) {
|
||||
serverGroupId_ = serverGroupId;
|
||||
setParameter(std::string("ServerGroupId"), serverGroupId);
|
||||
}
|
||||
|
||||
bool ApplyHealthCheckTemplateToServerGroupRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupRequest::getHealthCheckTemplateId() const {
|
||||
return healthCheckTemplateId_;
|
||||
}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupRequest::setHealthCheckTemplateId(const std::string &healthCheckTemplateId) {
|
||||
healthCheckTemplateId_ = healthCheckTemplateId;
|
||||
setParameter(std::string("HealthCheckTemplateId"), healthCheckTemplateId);
|
||||
}
|
||||
|
||||
51
alb/src/model/ApplyHealthCheckTemplateToServerGroupResult.cc
Normal file
51
alb/src/model/ApplyHealthCheckTemplateToServerGroupResult.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/alb/model/ApplyHealthCheckTemplateToServerGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::ApplyHealthCheckTemplateToServerGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::ApplyHealthCheckTemplateToServerGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyHealthCheckTemplateToServerGroupResult::~ApplyHealthCheckTemplateToServerGroupResult()
|
||||
{}
|
||||
|
||||
void ApplyHealthCheckTemplateToServerGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyHealthCheckTemplateToServerGroupResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::AttachCommonBandwidthPackageToLoadBalancerRequest;
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest::AttachCommonBandwidthPackageToLoadBalancerRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "AttachCommonBandwidthPackageToLoadBalancer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerRequest::~AttachCommonBandwidthPackageToLoadBalancerRequest() {}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getBandwidthPackageId() const {
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
|
||||
}
|
||||
|
||||
bool AttachCommonBandwidthPackageToLoadBalancerRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
@@ -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/alb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachCommonBandwidthPackageToLoadBalancerResult::~AttachCommonBandwidthPackageToLoadBalancerResult()
|
||||
{}
|
||||
|
||||
void AttachCommonBandwidthPackageToLoadBalancerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AttachCommonBandwidthPackageToLoadBalancerResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -59,11 +59,21 @@ CreateLoadBalancerRequest::LoadBalancerBillingConfig CreateLoadBalancerRequest::
|
||||
|
||||
void CreateLoadBalancerRequest::setLoadBalancerBillingConfig(const CreateLoadBalancerRequest::LoadBalancerBillingConfig &loadBalancerBillingConfig) {
|
||||
loadBalancerBillingConfig_ = loadBalancerBillingConfig;
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".BandwidthPackageId", loadBalancerBillingConfig.bandwidthPackageId);
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".InternetChargeType", loadBalancerBillingConfig.internetChargeType);
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".InternetBandwidth", std::to_string(loadBalancerBillingConfig.internetBandwidth));
|
||||
setParameter(std::string("LoadBalancerBillingConfig") + ".PayType", loadBalancerBillingConfig.payType);
|
||||
}
|
||||
|
||||
std::string CreateLoadBalancerRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
void CreateLoadBalancerRequest::setAddressIpVersion(const std::string &addressIpVersion) {
|
||||
addressIpVersion_ = addressIpVersion;
|
||||
setParameter(std::string("AddressIpVersion"), addressIpVersion);
|
||||
}
|
||||
|
||||
bool CreateLoadBalancerRequest::getDeletionProtectionEnabled() const {
|
||||
return deletionProtectionEnabled_;
|
||||
}
|
||||
@@ -127,6 +137,7 @@ void CreateLoadBalancerRequest::setZoneMappings(const std::vector<CreateLoadBala
|
||||
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,6 +96,15 @@ void CreateServerGroupRequest::setProtocol(const std::string &protocol) {
|
||||
setParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
bool CreateServerGroupRequest::getUpstreamKeepaliveEnabled() const {
|
||||
return upstreamKeepaliveEnabled_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled) {
|
||||
upstreamKeepaliveEnabled_ = upstreamKeepaliveEnabled;
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
@@ -117,6 +126,15 @@ void CreateServerGroupRequest::setDryRun(bool dryRun) {
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateServerGroupRequest::getIpv6Enabled() const {
|
||||
return ipv6Enabled_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setIpv6Enabled(bool ipv6Enabled) {
|
||||
ipv6Enabled_ = ipv6Enabled;
|
||||
setParameter(std::string("Ipv6Enabled"), ipv6Enabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServerGroupRequest::getServerGroupType() const {
|
||||
return serverGroupType_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::DetachCommonBandwidthPackageFromLoadBalancerRequest;
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest::DetachCommonBandwidthPackageFromLoadBalancerRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "DetachCommonBandwidthPackageFromLoadBalancer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerRequest::~DetachCommonBandwidthPackageFromLoadBalancerRequest() {}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getBandwidthPackageId() const {
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) {
|
||||
bandwidthPackageId_ = bandwidthPackageId;
|
||||
setParameter(std::string("BandwidthPackageId"), bandwidthPackageId);
|
||||
}
|
||||
|
||||
bool DetachCommonBandwidthPackageFromLoadBalancerRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
@@ -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/alb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachCommonBandwidthPackageFromLoadBalancerResult::~DetachCommonBandwidthPackageFromLoadBalancerResult()
|
||||
{}
|
||||
|
||||
void DetachCommonBandwidthPackageFromLoadBalancerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
63
alb/src/model/GetListenerHealthStatusRequest.cc
Normal file
63
alb/src/model/GetListenerHealthStatusRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/GetListenerHealthStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::GetListenerHealthStatusRequest;
|
||||
|
||||
GetListenerHealthStatusRequest::GetListenerHealthStatusRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "GetListenerHealthStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetListenerHealthStatusRequest::~GetListenerHealthStatusRequest() {}
|
||||
|
||||
bool GetListenerHealthStatusRequest::getIncludeRule() const {
|
||||
return includeRule_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setIncludeRule(bool includeRule) {
|
||||
includeRule_ = includeRule;
|
||||
setParameter(std::string("IncludeRule"), includeRule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusRequest::getListenerId() const {
|
||||
return listenerId_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setListenerId(const std::string &listenerId) {
|
||||
listenerId_ = listenerId;
|
||||
setParameter(std::string("ListenerId"), listenerId);
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
long GetListenerHealthStatusRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void GetListenerHealthStatusRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
147
alb/src/model/GetListenerHealthStatusResult.cc
Normal file
147
alb/src/model/GetListenerHealthStatusResult.cc
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* 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/alb/model/GetListenerHealthStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
GetListenerHealthStatusResult::GetListenerHealthStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetListenerHealthStatusResult::GetListenerHealthStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetListenerHealthStatusResult::~GetListenerHealthStatusResult()
|
||||
{}
|
||||
|
||||
void GetListenerHealthStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allListenerHealthStatusNode = value["ListenerHealthStatus"]["ListenerHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModel : allListenerHealthStatusNode)
|
||||
{
|
||||
ListenerHealthStatusModel listenerHealthStatusObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerId"].isNull())
|
||||
listenerHealthStatusObject.listenerId = valueListenerHealthStatusListenerHealthStatusModel["ListenerId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerPort"].isNull())
|
||||
listenerHealthStatusObject.listenerPort = std::stoi(valueListenerHealthStatusListenerHealthStatusModel["ListenerPort"].asString());
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModel["ListenerProtocol"].isNull())
|
||||
listenerHealthStatusObject.listenerProtocol = valueListenerHealthStatusListenerHealthStatusModel["ListenerProtocol"].asString();
|
||||
auto allServerGroupInfosNode = valueListenerHealthStatusListenerHealthStatusModel["ServerGroupInfos"]["ServerGroupHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel : allServerGroupInfosNode)
|
||||
{
|
||||
ListenerHealthStatusModel::ServerGroupHealthStatusModel serverGroupInfosObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].isNull())
|
||||
serverGroupInfosObject.healthCheckEnabled = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].isNull())
|
||||
serverGroupInfosObject.serverGroupId = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].isNull())
|
||||
serverGroupInfosObject.actionType = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].asString();
|
||||
auto allNonNormalServersNode = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["NonNormalServers"]["BackendServerHealthStatusModel"];
|
||||
for (auto valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel : allNonNormalServersNode)
|
||||
{
|
||||
ListenerHealthStatusModel::ServerGroupHealthStatusModel::BackendServerHealthStatusModel nonNormalServersObject;
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Port"].isNull())
|
||||
nonNormalServersObject.port = std::stoi(valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Port"].asString());
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerId"].isNull())
|
||||
nonNormalServersObject.serverId = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerId"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerIp"].isNull())
|
||||
nonNormalServersObject.serverIp = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["ServerIp"].asString();
|
||||
if(!valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Status"].isNull())
|
||||
nonNormalServersObject.status = valueListenerHealthStatusListenerHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersBackendServerHealthStatusModel["Status"].asString();
|
||||
auto reasonNode = value["Reason"];
|
||||
if(!reasonNode["ActualResponse"].isNull())
|
||||
nonNormalServersObject.reason.actualResponse = reasonNode["ActualResponse"].asString();
|
||||
if(!reasonNode["ExpectedResponse"].isNull())
|
||||
nonNormalServersObject.reason.expectedResponse = reasonNode["ExpectedResponse"].asString();
|
||||
if(!reasonNode["ReasonCode"].isNull())
|
||||
nonNormalServersObject.reason.reasonCode = reasonNode["ReasonCode"].asString();
|
||||
serverGroupInfosObject.nonNormalServers.push_back(nonNormalServersObject);
|
||||
}
|
||||
listenerHealthStatusObject.serverGroupInfos.push_back(serverGroupInfosObject);
|
||||
}
|
||||
listenerHealthStatus_.push_back(listenerHealthStatusObject);
|
||||
}
|
||||
auto allRuleHealthStatusNode = value["RuleHealthStatus"]["RuleHealthStatusModel"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModel : allRuleHealthStatusNode)
|
||||
{
|
||||
RuleHealthStatusModel ruleHealthStatusObject;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModel["RuleId"].isNull())
|
||||
ruleHealthStatusObject.ruleId = valueRuleHealthStatusRuleHealthStatusModel["RuleId"].asString();
|
||||
auto allServerGroupInfos1Node = valueRuleHealthStatusRuleHealthStatusModel["ServerGroupInfos"]["ServerGroupHealthStatusModel"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel : allServerGroupInfos1Node)
|
||||
{
|
||||
RuleHealthStatusModel::ServerGroupHealthStatusModel2 serverGroupInfos1Object;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].isNull())
|
||||
serverGroupInfos1Object.healthCheckEnabled = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["HealthCheckEnabled"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].isNull())
|
||||
serverGroupInfos1Object.serverGroupId = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ServerGroupId"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].isNull())
|
||||
serverGroupInfos1Object.actionType = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["ActionType"].asString();
|
||||
auto allNonNormalServers3Node = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModel["NonNormalServers"]["NonNormalServer"];
|
||||
for (auto valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer : allNonNormalServers3Node)
|
||||
{
|
||||
RuleHealthStatusModel::ServerGroupHealthStatusModel2::NonNormalServer nonNormalServers3Object;
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Port"].isNull())
|
||||
nonNormalServers3Object.port = std::stoi(valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Port"].asString());
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerId"].isNull())
|
||||
nonNormalServers3Object.serverId = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerId"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerIp"].isNull())
|
||||
nonNormalServers3Object.serverIp = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["ServerIp"].asString();
|
||||
if(!valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Status"].isNull())
|
||||
nonNormalServers3Object.status = valueRuleHealthStatusRuleHealthStatusModelServerGroupInfosServerGroupHealthStatusModelNonNormalServersNonNormalServer["Status"].asString();
|
||||
auto reason4Node = value["Reason"];
|
||||
if(!reason4Node["ActualResponse"].isNull())
|
||||
nonNormalServers3Object.reason4.actualResponse = reason4Node["ActualResponse"].asString();
|
||||
if(!reason4Node["ExpectedResponse"].isNull())
|
||||
nonNormalServers3Object.reason4.expectedResponse = reason4Node["ExpectedResponse"].asString();
|
||||
if(!reason4Node["ReasonCode"].isNull())
|
||||
nonNormalServers3Object.reason4.reasonCode = reason4Node["ReasonCode"].asString();
|
||||
serverGroupInfos1Object.nonNormalServers3.push_back(nonNormalServers3Object);
|
||||
}
|
||||
ruleHealthStatusObject.serverGroupInfos1.push_back(serverGroupInfos1Object);
|
||||
}
|
||||
ruleHealthStatus_.push_back(ruleHealthStatusObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetListenerHealthStatusResult::RuleHealthStatusModel> GetListenerHealthStatusResult::getRuleHealthStatus()const
|
||||
{
|
||||
return ruleHealthStatus_;
|
||||
}
|
||||
|
||||
std::vector<GetListenerHealthStatusResult::ListenerHealthStatusModel> GetListenerHealthStatusResult::getListenerHealthStatus()const
|
||||
{
|
||||
return listenerHealthStatus_;
|
||||
}
|
||||
|
||||
std::string GetListenerHealthStatusResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
|
||||
ZoneMapping::LoadBalancerAddress loadBalancerAddressesObject;
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].isNull())
|
||||
loadBalancerAddressesObject.address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].asString();
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull())
|
||||
loadBalancerAddressesObject.ipv6Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString();
|
||||
zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject);
|
||||
}
|
||||
zoneMappings_.push_back(zoneMappingsObject);
|
||||
@@ -134,6 +136,12 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["ConfigManagedEnabled"].isNull())
|
||||
configManagedEnabled_ = value["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!value["AddressIpVersion"].isNull())
|
||||
addressIpVersion_ = value["AddressIpVersion"].asString();
|
||||
if(!value["Ipv6AddressType"].isNull())
|
||||
ipv6AddressType_ = value["Ipv6AddressType"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -142,9 +150,9 @@ bool GetLoadBalancerAttributeResult::getServiceManagedEnabled()const
|
||||
return serviceManagedEnabled_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerEdition()const
|
||||
std::string GetLoadBalancerAttributeResult::getAddressIpVersion()const
|
||||
{
|
||||
return loadBalancerEdition_;
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getResourceGroupId()const
|
||||
@@ -152,21 +160,11 @@ std::string GetLoadBalancerAttributeResult::getResourceGroupId()const
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const
|
||||
{
|
||||
return loadBalancerBillingConfig_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetLoadBalancerAttributeResult::getFeatureLabels()const
|
||||
{
|
||||
return featureLabels_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerId()const
|
||||
{
|
||||
return loadBalancerId_;
|
||||
@@ -182,6 +180,51 @@ std::string GetLoadBalancerAttributeResult::getDNSName()const
|
||||
return dNSName_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getIpv6AddressType()const
|
||||
{
|
||||
return ipv6AddressType_;
|
||||
}
|
||||
|
||||
int GetLoadBalancerAttributeResult::getBandwidthCapacity()const
|
||||
{
|
||||
return bandwidthCapacity_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const
|
||||
{
|
||||
return deletionProtectionConfig_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getServiceManagedMode()const
|
||||
{
|
||||
return serviceManagedMode_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::Tag> GetLoadBalancerAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerEdition()const
|
||||
{
|
||||
return loadBalancerEdition_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const
|
||||
{
|
||||
return loadBalancerBillingConfig_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::ModificationProtectionConfig GetLoadBalancerAttributeResult::getModificationProtectionConfig()const
|
||||
{
|
||||
return modificationProtectionConfig_;
|
||||
@@ -197,14 +240,9 @@ GetLoadBalancerAttributeResult::AccessLogConfig GetLoadBalancerAttributeResult::
|
||||
return accessLogConfig_;
|
||||
}
|
||||
|
||||
int GetLoadBalancerAttributeResult::getBandwidthCapacity()const
|
||||
bool GetLoadBalancerAttributeResult::getConfigManagedEnabled()const
|
||||
{
|
||||
return bandwidthCapacity_;
|
||||
}
|
||||
|
||||
GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const
|
||||
{
|
||||
return deletionProtectionConfig_;
|
||||
return configManagedEnabled_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getLoadBalancerBussinessStatus()const
|
||||
@@ -217,16 +255,6 @@ std::string GetLoadBalancerAttributeResult::getVpcId()const
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getServiceManagedMode()const
|
||||
{
|
||||
return serviceManagedMode_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const
|
||||
{
|
||||
return bandwidthPackageId_;
|
||||
}
|
||||
|
||||
std::string GetLoadBalancerAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -247,11 +275,6 @@ std::string GetLoadBalancerAttributeResult::getLoadBalancerStatus()const
|
||||
return loadBalancerStatus_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::Tag> GetLoadBalancerAttributeResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::vector<GetLoadBalancerAttributeResult::LoadBalancerOperationLock> GetLoadBalancerAttributeResult::getLoadBalancerOperationLocks()const
|
||||
{
|
||||
return loadBalancerOperationLocks_;
|
||||
|
||||
@@ -57,6 +57,8 @@ void ListAclsResult::parse(const std::string &payload)
|
||||
aclsObject.serviceManagedEnabled = valueAclsAcl["ServiceManagedEnabled"].asString() == "true";
|
||||
if(!valueAclsAcl["ServiceManagedMode"].isNull())
|
||||
aclsObject.serviceManagedMode = valueAclsAcl["ServiceManagedMode"].asString();
|
||||
if(!valueAclsAcl["ConfigManagedEnabled"].isNull())
|
||||
aclsObject.configManagedEnabled = valueAclsAcl["ConfigManagedEnabled"].asString() == "true";
|
||||
acls_.push_back(aclsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
|
||||
@@ -47,6 +47,15 @@ void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector<ListLoadBala
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setAddressIpVersion(const std::string &addressIpVersion) {
|
||||
addressIpVersion_ = addressIpVersion;
|
||||
setParameter(std::string("AddressIpVersion"), addressIpVersion);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
@@ -151,6 +160,15 @@ void ListLoadBalancersRequest::setZoneId(const std::string &zoneId) {
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getIpv6AddressType() const {
|
||||
return ipv6AddressType_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setIpv6AddressType(const std::string &ipv6AddressType) {
|
||||
ipv6AddressType_ = ipv6AddressType;
|
||||
setParameter(std::string("Ipv6AddressType"), ipv6AddressType);
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,12 @@ void ListLoadBalancersResult::parse(const std::string &payload)
|
||||
loadBalancersObject.resourceGroupId = valueLoadBalancersloadBalancer["ResourceGroupId"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["VpcId"].isNull())
|
||||
loadBalancersObject.vpcId = valueLoadBalancersloadBalancer["VpcId"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["ConfigManagedEnabled"].isNull())
|
||||
loadBalancersObject.configManagedEnabled = valueLoadBalancersloadBalancer["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!valueLoadBalancersloadBalancer["AddressIpVersion"].isNull())
|
||||
loadBalancersObject.addressIpVersion = valueLoadBalancersloadBalancer["AddressIpVersion"].asString();
|
||||
if(!valueLoadBalancersloadBalancer["Ipv6AddressType"].isNull())
|
||||
loadBalancersObject.ipv6AddressType = valueLoadBalancersloadBalancer["Ipv6AddressType"].asString();
|
||||
auto allLoadBalancerOperationLocksNode = valueLoadBalancersloadBalancer["LoadBalancerOperationLocks"]["LoadBalancerOperationLock"];
|
||||
for (auto valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock : allLoadBalancerOperationLocksNode)
|
||||
{
|
||||
|
||||
@@ -59,6 +59,8 @@ void ListServerGroupServersResult::parse(const std::string &payload)
|
||||
serversObject.weight = std::stoi(valueServersBackendServer["Weight"].asString());
|
||||
if(!valueServersBackendServer["ServerGroupId"].isNull())
|
||||
serversObject.serverGroupId = valueServersBackendServer["ServerGroupId"].asString();
|
||||
if(!valueServersBackendServer["RemoteIpEnabled"].isNull())
|
||||
serversObject.remoteIpEnabled = valueServersBackendServer["RemoteIpEnabled"].asString() == "true";
|
||||
servers_.push_back(serversObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
|
||||
@@ -63,6 +63,14 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.serviceManagedEnabled = valueServerGroupsServerGroup["ServiceManagedEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["ServiceManagedMode"].isNull())
|
||||
serverGroupsObject.serviceManagedMode = valueServerGroupsServerGroup["ServiceManagedMode"].asString();
|
||||
if(!valueServerGroupsServerGroup["ConfigManagedEnabled"].isNull())
|
||||
serverGroupsObject.configManagedEnabled = valueServerGroupsServerGroup["ConfigManagedEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["UpstreamKeepaliveEnabled"].isNull())
|
||||
serverGroupsObject.upstreamKeepaliveEnabled = valueServerGroupsServerGroup["UpstreamKeepaliveEnabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["Ipv6Enabled"].isNull())
|
||||
serverGroupsObject.ipv6Enabled = valueServerGroupsServerGroup["Ipv6Enabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["ServerCount"].isNull())
|
||||
serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString());
|
||||
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
|
||||
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -50,6 +50,7 @@ std::vector<ReplaceServersInServerGroupRequest::AddedServers> ReplaceServersInSe
|
||||
void ReplaceServersInServerGroupRequest::setAddedServers(const std::vector<ReplaceServersInServerGroupRequest::AddedServers> &addedServers) {
|
||||
addedServers_ = addedServers;
|
||||
for(int dep1 = 0; dep1 != addedServers.size(); dep1++) {
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".RemoteIpEnabled", addedServers[dep1].remoteIpEnabled ? "true" : "false");
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".ServerType", addedServers[dep1].serverType);
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(addedServers[dep1].port));
|
||||
setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Description", addedServers[dep1].description);
|
||||
|
||||
67
alb/src/model/UpdateLoadBalancerZonesRequest.cc
Normal file
67
alb/src/model/UpdateLoadBalancerZonesRequest.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/UpdateLoadBalancerZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::UpdateLoadBalancerZonesRequest;
|
||||
|
||||
UpdateLoadBalancerZonesRequest::UpdateLoadBalancerZonesRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerZones") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerZonesRequest::~UpdateLoadBalancerZonesRequest() {}
|
||||
|
||||
std::string UpdateLoadBalancerZonesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool UpdateLoadBalancerZonesRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<UpdateLoadBalancerZonesRequest::ZoneMappings> UpdateLoadBalancerZonesRequest::getZoneMappings() const {
|
||||
return zoneMappings_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setZoneMappings(const std::vector<UpdateLoadBalancerZonesRequest::ZoneMappings> &zoneMappings) {
|
||||
zoneMappings_ = zoneMappings;
|
||||
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerZonesRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
51
alb/src/model/UpdateLoadBalancerZonesResult.cc
Normal file
51
alb/src/model/UpdateLoadBalancerZonesResult.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/alb/model/UpdateLoadBalancerZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerZonesResult::~UpdateLoadBalancerZonesResult()
|
||||
{}
|
||||
|
||||
void UpdateLoadBalancerZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerZonesResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -87,6 +87,15 @@ void UpdateServerGroupAttributeRequest::setServerGroupId(const std::string &serv
|
||||
setParameter(std::string("ServerGroupId"), serverGroupId);
|
||||
}
|
||||
|
||||
bool UpdateServerGroupAttributeRequest::getUpstreamKeepaliveEnabled() const {
|
||||
return upstreamKeepaliveEnabled_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled) {
|
||||
upstreamKeepaliveEnabled_ = upstreamKeepaliveEnabled;
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct CenInterRegionBandwidthLimit
|
||||
{
|
||||
std::string status;
|
||||
std::string transitRouterAttachmentId;
|
||||
std::string status;
|
||||
std::string geographicSpanId;
|
||||
std::string oppositeRegionId;
|
||||
std::string cenId;
|
||||
|
||||
@@ -38,12 +38,13 @@ namespace AlibabaCloud
|
||||
std::string linkStatus;
|
||||
int healthCheckInterval;
|
||||
std::string vbrInstanceId;
|
||||
std::string healthCheckSourceIp;
|
||||
int healthyThreshold;
|
||||
std::string healthCheckSourceIp;
|
||||
std::string cenId;
|
||||
long packetLoss;
|
||||
std::string healthCheckTargetIp;
|
||||
long delay;
|
||||
bool healthCheckOnly;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct GrantRule
|
||||
{
|
||||
std::string childInstanceType;
|
||||
std::string orderType;
|
||||
std::string cenId;
|
||||
long childInstanceOwnerId;
|
||||
std::string childInstanceId;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setHealthyThreshold(int healthyThreshold);
|
||||
long getVbrInstanceOwnerId()const;
|
||||
void setVbrInstanceOwnerId(long vbrInstanceOwnerId);
|
||||
bool getHealthCheckOnly()const;
|
||||
void setHealthCheckOnly(bool healthCheckOnly);
|
||||
std::string getVbrInstanceRegionId()const;
|
||||
void setVbrInstanceRegionId(const std::string& vbrInstanceRegionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -66,6 +68,7 @@ namespace AlibabaCloud
|
||||
std::string healthCheckTargetIp_;
|
||||
int healthyThreshold_;
|
||||
long vbrInstanceOwnerId_;
|
||||
bool healthCheckOnly_;
|
||||
std::string vbrInstanceRegionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -43,30 +43,30 @@ void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &paylo
|
||||
for (auto valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit : allCenInterRegionBandwidthLimitsNode)
|
||||
{
|
||||
CenInterRegionBandwidthLimit cenInterRegionBandwidthLimitsObject;
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["CenId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.cenId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["CenId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["LocalRegionId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.localRegionId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["LocalRegionId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.transitRouterAttachmentId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.status = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.bandwidthPackageId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["OppositeRegionId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.oppositeRegionId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["OppositeRegionId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["GeographicSpanId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.geographicSpanId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["GeographicSpanId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["CenId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.cenId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["CenId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["LocalRegionId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.localRegionId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["LocalRegionId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthLimit"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.bandwidthLimit = std::stol(valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthLimit"].asString());
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.status = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.transitRouterAttachmentId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].asString();
|
||||
if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].isNull())
|
||||
cenInterRegionBandwidthLimitsObject.bandwidthPackageId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].asString();
|
||||
cenInterRegionBandwidthLimits_.push_back(cenInterRegionBandwidthLimitsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,36 @@ void DescribeCenVbrHealthCheckResult::parse(const std::string &payload)
|
||||
for (auto valueVbrHealthChecksVbrHealthCheck : allVbrHealthChecksNode)
|
||||
{
|
||||
VbrHealthCheck vbrHealthChecksObject;
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["CenId"].isNull())
|
||||
vbrHealthChecksObject.cenId = valueVbrHealthChecksVbrHealthCheck["CenId"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["VbrInstanceId"].isNull())
|
||||
vbrHealthChecksObject.vbrInstanceId = valueVbrHealthChecksVbrHealthCheck["VbrInstanceId"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["LinkStatus"].isNull())
|
||||
vbrHealthChecksObject.linkStatus = valueVbrHealthChecksVbrHealthCheck["LinkStatus"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["PacketLoss"].isNull())
|
||||
vbrHealthChecksObject.packetLoss = std::stol(valueVbrHealthChecksVbrHealthCheck["PacketLoss"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckSourceIp"].isNull())
|
||||
vbrHealthChecksObject.healthCheckSourceIp = valueVbrHealthChecksVbrHealthCheck["HealthCheckSourceIp"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckTargetIp"].isNull())
|
||||
vbrHealthChecksObject.healthCheckTargetIp = valueVbrHealthChecksVbrHealthCheck["HealthCheckTargetIp"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["Delay"].isNull())
|
||||
vbrHealthChecksObject.delay = std::stol(valueVbrHealthChecksVbrHealthCheck["Delay"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckInterval"].isNull())
|
||||
vbrHealthChecksObject.healthCheckInterval = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthCheckInterval"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].isNull())
|
||||
vbrHealthChecksObject.healthyThreshold = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["VbrInstanceId"].isNull())
|
||||
vbrHealthChecksObject.vbrInstanceId = valueVbrHealthChecksVbrHealthCheck["VbrInstanceId"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["VbrInstanceRegionId"].isNull())
|
||||
vbrHealthChecksObject.vbrInstanceRegionId = valueVbrHealthChecksVbrHealthCheck["VbrInstanceRegionId"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["Delay"].isNull())
|
||||
vbrHealthChecksObject.delay = std::stol(valueVbrHealthChecksVbrHealthCheck["Delay"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["LinkStatus"].isNull())
|
||||
vbrHealthChecksObject.linkStatus = valueVbrHealthChecksVbrHealthCheck["LinkStatus"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["CenId"].isNull())
|
||||
vbrHealthChecksObject.cenId = valueVbrHealthChecksVbrHealthCheck["CenId"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].isNull())
|
||||
vbrHealthChecksObject.healthyThreshold = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckInterval"].isNull())
|
||||
vbrHealthChecksObject.healthCheckInterval = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthCheckInterval"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckSourceIp"].isNull())
|
||||
vbrHealthChecksObject.healthCheckSourceIp = valueVbrHealthChecksVbrHealthCheck["HealthCheckSourceIp"].asString();
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["PacketLoss"].isNull())
|
||||
vbrHealthChecksObject.packetLoss = std::stol(valueVbrHealthChecksVbrHealthCheck["PacketLoss"].asString());
|
||||
if(!valueVbrHealthChecksVbrHealthCheck["HealthCheckOnly"].isNull())
|
||||
vbrHealthChecksObject.healthCheckOnly = valueVbrHealthChecksVbrHealthCheck["HealthCheckOnly"].asString() == "true";
|
||||
vbrHealthChecks_.push_back(vbrHealthChecksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,16 +43,18 @@ void DescribeGrantRulesToCenResult::parse(const std::string &payload)
|
||||
for (auto valueGrantRulesGrantRule : allGrantRulesNode)
|
||||
{
|
||||
GrantRule grantRulesObject;
|
||||
if(!valueGrantRulesGrantRule["CenId"].isNull())
|
||||
grantRulesObject.cenId = valueGrantRulesGrantRule["CenId"].asString();
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceRegionId"].isNull())
|
||||
grantRulesObject.childInstanceRegionId = valueGrantRulesGrantRule["ChildInstanceRegionId"].asString();
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceType"].isNull())
|
||||
grantRulesObject.childInstanceType = valueGrantRulesGrantRule["ChildInstanceType"].asString();
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceId"].isNull())
|
||||
grantRulesObject.childInstanceId = valueGrantRulesGrantRule["ChildInstanceId"].asString();
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceRegionId"].isNull())
|
||||
grantRulesObject.childInstanceRegionId = valueGrantRulesGrantRule["ChildInstanceRegionId"].asString();
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceOwnerId"].isNull())
|
||||
grantRulesObject.childInstanceOwnerId = std::stol(valueGrantRulesGrantRule["ChildInstanceOwnerId"].asString());
|
||||
if(!valueGrantRulesGrantRule["ChildInstanceId"].isNull())
|
||||
grantRulesObject.childInstanceId = valueGrantRulesGrantRule["ChildInstanceId"].asString();
|
||||
if(!valueGrantRulesGrantRule["CenId"].isNull())
|
||||
grantRulesObject.cenId = valueGrantRulesGrantRule["CenId"].asString();
|
||||
if(!valueGrantRulesGrantRule["OrderType"].isNull())
|
||||
grantRulesObject.orderType = valueGrantRulesGrantRule["OrderType"].asString();
|
||||
grantRules_.push_back(grantRulesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,17 @@ void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwner
|
||||
setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId));
|
||||
}
|
||||
|
||||
bool EnableCenVbrHealthCheckRequest::getHealthCheckOnly()const
|
||||
{
|
||||
return healthCheckOnly_;
|
||||
}
|
||||
|
||||
void EnableCenVbrHealthCheckRequest::setHealthCheckOnly(bool healthCheckOnly)
|
||||
{
|
||||
healthCheckOnly_ = healthCheckOnly;
|
||||
setParameter("HealthCheckOnly", healthCheckOnly ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const
|
||||
{
|
||||
return vbrInstanceRegionId_;
|
||||
|
||||
@@ -155,6 +155,10 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h
|
||||
include/alibabacloud/ccc/model/ListRolesRequest.h
|
||||
include/alibabacloud/ccc/model/ListRolesResult.h
|
||||
include/alibabacloud/ccc/model/ListSipCallRecordsRequest.h
|
||||
include/alibabacloud/ccc/model/ListSipCallRecordsResult.h
|
||||
include/alibabacloud/ccc/model/ListSipTracesRequest.h
|
||||
include/alibabacloud/ccc/model/ListSipTracesResult.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsRequest.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsResult.h
|
||||
include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h
|
||||
@@ -380,6 +384,10 @@ set(ccc_src
|
||||
src/model/ListRecentCallDetailRecordsResult.cc
|
||||
src/model/ListRolesRequest.cc
|
||||
src/model/ListRolesResult.cc
|
||||
src/model/ListSipCallRecordsRequest.cc
|
||||
src/model/ListSipCallRecordsResult.cc
|
||||
src/model/ListSipTracesRequest.cc
|
||||
src/model/ListSipTracesResult.cc
|
||||
src/model/ListSkillGroupsRequest.cc
|
||||
src/model/ListSkillGroupsResult.cc
|
||||
src/model/ListSkillLevelsOfUserRequest.cc
|
||||
|
||||
@@ -156,6 +156,10 @@
|
||||
#include "model/ListRecentCallDetailRecordsResult.h"
|
||||
#include "model/ListRolesRequest.h"
|
||||
#include "model/ListRolesResult.h"
|
||||
#include "model/ListSipCallRecordsRequest.h"
|
||||
#include "model/ListSipCallRecordsResult.h"
|
||||
#include "model/ListSipTracesRequest.h"
|
||||
#include "model/ListSipTracesResult.h"
|
||||
#include "model/ListSkillGroupsRequest.h"
|
||||
#include "model/ListSkillGroupsResult.h"
|
||||
#include "model/ListSkillLevelsOfUserRequest.h"
|
||||
@@ -454,6 +458,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListRolesResult> ListRolesOutcome;
|
||||
typedef std::future<ListRolesOutcome> ListRolesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRolesRequest&, const ListRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRolesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSipCallRecordsResult> ListSipCallRecordsOutcome;
|
||||
typedef std::future<ListSipCallRecordsOutcome> ListSipCallRecordsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSipCallRecordsRequest&, const ListSipCallRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSipCallRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSipTracesResult> ListSipTracesOutcome;
|
||||
typedef std::future<ListSipTracesOutcome> ListSipTracesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSipTracesRequest&, const ListSipTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSipTracesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSkillGroupsResult> ListSkillGroupsOutcome;
|
||||
typedef std::future<ListSkillGroupsOutcome> ListSkillGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSkillGroupsRequest&, const ListSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSkillGroupsAsyncHandler;
|
||||
@@ -792,6 +802,12 @@ namespace AlibabaCloud
|
||||
ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const;
|
||||
void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const;
|
||||
ListSipCallRecordsOutcome listSipCallRecords(const Model::ListSipCallRecordsRequest &request)const;
|
||||
void listSipCallRecordsAsync(const Model::ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSipCallRecordsOutcomeCallable listSipCallRecordsCallable(const Model::ListSipCallRecordsRequest& request) const;
|
||||
ListSipTracesOutcome listSipTraces(const Model::ListSipTracesRequest &request)const;
|
||||
void listSipTracesAsync(const Model::ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSipTracesOutcomeCallable listSipTracesCallable(const Model::ListSipTracesRequest& request) const;
|
||||
ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const;
|
||||
void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const;
|
||||
|
||||
@@ -38,16 +38,16 @@ namespace AlibabaCloud
|
||||
explicit CreateCampaignResult(const std::string &payload);
|
||||
~CreateCampaignResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCampaignId()const;
|
||||
long getHttpStatusCode()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string campaignId_;
|
||||
long httpStatusCode_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
|
||||
@@ -69,27 +69,38 @@ namespace AlibabaCloud
|
||||
std::string queueName;
|
||||
int queueType;
|
||||
};
|
||||
struct CustomerEventsItem
|
||||
{
|
||||
struct EventSequenceItem6
|
||||
{
|
||||
long eventTime;
|
||||
std::string event;
|
||||
};
|
||||
std::vector<CustomerEventsItem::EventSequenceItem6> eventSequence5;
|
||||
std::string customerId;
|
||||
};
|
||||
std::vector<AgentEventsItem> agentEvents;
|
||||
std::string skillGroupIds;
|
||||
std::string calledNumber;
|
||||
std::string contactType;
|
||||
std::string releaseInitiator;
|
||||
std::string contactDisposition;
|
||||
std::string instanceId;
|
||||
int satisfaction;
|
||||
long startTime;
|
||||
std::string contactId;
|
||||
long callDuration;
|
||||
std::string callingNumber;
|
||||
std::vector<QueueEventsItem> queueEvents;
|
||||
std::string calleeLocation;
|
||||
bool recordingReady;
|
||||
long releaseTime;
|
||||
std::vector<CustomerEventsItem> customerEvents;
|
||||
std::string skillGroupNames;
|
||||
std::string satisfactionSurveyChannel;
|
||||
std::string agentIds;
|
||||
bool satisfactionSurveyOffered;
|
||||
long establishedTime;
|
||||
std::string skillGroupIds;
|
||||
std::string releaseInitiator;
|
||||
std::string instanceId;
|
||||
long startTime;
|
||||
long callDuration;
|
||||
std::vector<QueueEventsItem> queueEvents;
|
||||
std::string calleeLocation;
|
||||
long releaseTime;
|
||||
std::string satisfactionSurveyChannel;
|
||||
std::string agentIds;
|
||||
std::string callerLocation;
|
||||
std::string agentNames;
|
||||
std::vector<IvrEventsItem> ivrEvents;
|
||||
|
||||
@@ -50,7 +50,6 @@ namespace AlibabaCloud
|
||||
bool simulation;
|
||||
std::string campaignId;
|
||||
std::string state;
|
||||
long completedRate;
|
||||
long actualEndTime;
|
||||
long planedEndTime;
|
||||
std::string queueName;
|
||||
|
||||
@@ -51,7 +51,6 @@ namespace AlibabaCloud
|
||||
bool simulation;
|
||||
std::string campaignId;
|
||||
std::string state;
|
||||
long completedRate;
|
||||
long actualEndTime;
|
||||
long planedEndTime;
|
||||
std::string queueName;
|
||||
|
||||
@@ -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_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSipCallRecordsRequest();
|
||||
~ListSipCallRecordsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getContactIdList()const;
|
||||
void setContactIdList(const std::string& contactIdList);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string contactIdList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SipCallRecords
|
||||
{
|
||||
std::string callee;
|
||||
std::string lastResponseText;
|
||||
std::string callerClusterId;
|
||||
std::string calleeClusterId;
|
||||
std::string instanceId;
|
||||
std::string callId;
|
||||
int releaseReasonCode;
|
||||
std::string contactId;
|
||||
long ringTime;
|
||||
long inviteTime;
|
||||
std::string earlyMediaText;
|
||||
long releasedTime;
|
||||
std::string caller;
|
||||
int lastResponseCode;
|
||||
long establishedTime;
|
||||
std::string earlyMediaUrl;
|
||||
};
|
||||
|
||||
|
||||
ListSipCallRecordsResult();
|
||||
explicit ListSipCallRecordsResult(const std::string &payload);
|
||||
~ListSipCallRecordsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<SipCallRecords> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<SipCallRecords> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_
|
||||
51
ccc/include/alibabacloud/ccc/model/ListSipTracesRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/ListSipTracesRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListSipTracesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSipTracesRequest();
|
||||
~ListSipTracesRequest();
|
||||
|
||||
std::string getCallId()const;
|
||||
void setCallId(const std::string& callId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string callId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_
|
||||
67
ccc/include/alibabacloud/ccc/model/ListSipTracesResult.h
Normal file
67
ccc/include/alibabacloud/ccc/model/ListSipTracesResult.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT ListSipTracesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CallTraces
|
||||
{
|
||||
std::string destinationNodeIp;
|
||||
std::string callId;
|
||||
std::string firstLine;
|
||||
std::string payload;
|
||||
std::string contactId;
|
||||
long timestamp;
|
||||
std::string sourceNodeIp;
|
||||
};
|
||||
|
||||
|
||||
ListSipTracesResult();
|
||||
explicit ListSipTracesResult(const std::string &payload);
|
||||
~ListSipTracesResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<CallTraces> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<CallTraces> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string description;
|
||||
std::string skillGroupName;
|
||||
std::string instanceId;
|
||||
int phoneNumberCount;
|
||||
std::string instanceId;
|
||||
int userCount;
|
||||
std::string displayName;
|
||||
std::string skillGroupId;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getCallee()const;
|
||||
void setCallee(const std::string& callee);
|
||||
std::string getMaskedCallee()const;
|
||||
void setMaskedCallee(const std::string& maskedCallee);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getDeviceId()const;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string callee_;
|
||||
std::string maskedCallee_;
|
||||
std::string userId_;
|
||||
std::string deviceId_;
|
||||
std::string tags_;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setContactFlowId(const std::string& contactFlowId);
|
||||
std::string getCallee()const;
|
||||
void setCallee(const std::string& callee);
|
||||
std::string getMaskedCallee()const;
|
||||
void setMaskedCallee(const std::string& maskedCallee);
|
||||
std::string getContactFlowVariables()const;
|
||||
void setContactFlowVariables(const std::string& contactFlowVariables);
|
||||
std::string getTags()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string contactFlowId_;
|
||||
std::string callee_;
|
||||
std::string maskedCallee_;
|
||||
std::string contactFlowVariables_;
|
||||
std::string tags_;
|
||||
int timeoutSeconds_;
|
||||
|
||||
@@ -2463,6 +2463,78 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSipCallRecordsOutcome CCCClient::listSipCallRecords(const ListSipCallRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSipCallRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSipCallRecordsOutcome(ListSipCallRecordsResult(outcome.result()));
|
||||
else
|
||||
return ListSipCallRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listSipCallRecordsAsync(const ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSipCallRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListSipCallRecordsOutcomeCallable CCCClient::listSipCallRecordsCallable(const ListSipCallRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSipCallRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSipCallRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSipTracesOutcome CCCClient::listSipTraces(const ListSipTracesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSipTracesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSipTracesOutcome(ListSipTracesResult(outcome.result()));
|
||||
else
|
||||
return ListSipTracesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listSipTracesAsync(const ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSipTraces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListSipTracesOutcomeCallable CCCClient::listSipTracesCallable(const ListSipTracesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSipTracesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSipTraces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,8 +39,8 @@ void CreateCampaignResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CampaignId"].isNull())
|
||||
campaignId_ = value["CampaignId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -55,16 +55,16 @@ std::string CreateCampaignResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getCampaignId()const
|
||||
{
|
||||
return campaignId_;
|
||||
}
|
||||
|
||||
long CreateCampaignResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateCampaignResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
|
||||
@@ -146,6 +146,24 @@ void GetCallDetailRecordResult::parse(const std::string &payload)
|
||||
}
|
||||
data_.queueEvents.push_back(queueEventsItemObject);
|
||||
}
|
||||
auto allCustomerEventsNode = dataNode["CustomerEvents"]["CustomerEventsItem"];
|
||||
for (auto dataNodeCustomerEventsCustomerEventsItem : allCustomerEventsNode)
|
||||
{
|
||||
Data::CustomerEventsItem customerEventsItemObject;
|
||||
if(!dataNodeCustomerEventsCustomerEventsItem["CustomerId"].isNull())
|
||||
customerEventsItemObject.customerId = dataNodeCustomerEventsCustomerEventsItem["CustomerId"].asString();
|
||||
auto allEventSequence5Node = dataNodeCustomerEventsCustomerEventsItem["EventSequence"]["EventSequenceItem"];
|
||||
for (auto dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem : allEventSequence5Node)
|
||||
{
|
||||
Data::CustomerEventsItem::EventSequenceItem6 eventSequence5Object;
|
||||
if(!dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["Event"].isNull())
|
||||
eventSequence5Object.event = dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["Event"].asString();
|
||||
if(!dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["EventTime"].isNull())
|
||||
eventSequence5Object.eventTime = std::stol(dataNodeCustomerEventsCustomerEventsItemEventSequenceEventSequenceItem["EventTime"].asString());
|
||||
customerEventsItemObject.eventSequence5.push_back(eventSequence5Object);
|
||||
}
|
||||
data_.customerEvents.push_back(customerEventsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -50,8 +50,6 @@ void GetCampaignResult::parse(const std::string &payload)
|
||||
data_.casesUncompleted = std::stol(dataNode["CasesUncompleted"].asString());
|
||||
if(!dataNode["CasesConnected"].isNull())
|
||||
data_.casesConnected = std::stol(dataNode["CasesConnected"].asString());
|
||||
if(!dataNode["CompletedRate"].isNull())
|
||||
data_.completedRate = std::stol(dataNode["CompletedRate"].asString());
|
||||
if(!dataNode["MaxAttemptCount"].isNull())
|
||||
data_.maxAttemptCount = std::stol(dataNode["MaxAttemptCount"].asString());
|
||||
if(!dataNode["MinAttemptInterval"].isNull())
|
||||
|
||||
@@ -40,10 +40,10 @@ void GetMonoRecordingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["FileUrl"].isNull())
|
||||
data_.fileUrl = dataNode["FileUrl"].asString();
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -60,8 +60,6 @@ void ListCampaignsResult::parse(const std::string &payload)
|
||||
listItemObject.casesUncompleted = std::stol(dataNodeListlistItem["CasesUncompleted"].asString());
|
||||
if(!dataNodeListlistItem["CasesConnected"].isNull())
|
||||
listItemObject.casesConnected = std::stol(dataNodeListlistItem["CasesConnected"].asString());
|
||||
if(!dataNodeListlistItem["CompletedRate"].isNull())
|
||||
listItemObject.completedRate = std::stol(dataNodeListlistItem["CompletedRate"].asString());
|
||||
if(!dataNodeListlistItem["MaxAttemptCount"].isNull())
|
||||
listItemObject.maxAttemptCount = std::stol(dataNodeListlistItem["MaxAttemptCount"].asString());
|
||||
if(!dataNodeListlistItem["MinAttemptInterval"].isNull())
|
||||
|
||||
51
ccc/src/model/ListSipCallRecordsRequest.cc
Normal file
51
ccc/src/model/ListSipCallRecordsRequest.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/ccc/model/ListSipCallRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListSipCallRecordsRequest;
|
||||
|
||||
ListSipCallRecordsRequest::ListSipCallRecordsRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListSipCallRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSipCallRecordsRequest::~ListSipCallRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string ListSipCallRecordsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListSipCallRecordsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsRequest::getContactIdList()const
|
||||
{
|
||||
return contactIdList_;
|
||||
}
|
||||
|
||||
void ListSipCallRecordsRequest::setContactIdList(const std::string& contactIdList)
|
||||
{
|
||||
contactIdList_ = contactIdList;
|
||||
setParameter("ContactIdList", contactIdList);
|
||||
}
|
||||
|
||||
108
ccc/src/model/ListSipCallRecordsResult.cc
Normal file
108
ccc/src/model/ListSipCallRecordsResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipCallRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListSipCallRecordsResult::ListSipCallRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSipCallRecordsResult::ListSipCallRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSipCallRecordsResult::~ListSipCallRecordsResult()
|
||||
{}
|
||||
|
||||
void ListSipCallRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["sipCallRecords"];
|
||||
for (auto valueDatasipCallRecords : allDataNode)
|
||||
{
|
||||
SipCallRecords dataObject;
|
||||
if(!valueDatasipCallRecords["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDatasipCallRecords["InstanceId"].asString();
|
||||
if(!valueDatasipCallRecords["CallId"].isNull())
|
||||
dataObject.callId = valueDatasipCallRecords["CallId"].asString();
|
||||
if(!valueDatasipCallRecords["ContactId"].isNull())
|
||||
dataObject.contactId = valueDatasipCallRecords["ContactId"].asString();
|
||||
if(!valueDatasipCallRecords["Caller"].isNull())
|
||||
dataObject.caller = valueDatasipCallRecords["Caller"].asString();
|
||||
if(!valueDatasipCallRecords["Callee"].isNull())
|
||||
dataObject.callee = valueDatasipCallRecords["Callee"].asString();
|
||||
if(!valueDatasipCallRecords["CallerClusterId"].isNull())
|
||||
dataObject.callerClusterId = valueDatasipCallRecords["CallerClusterId"].asString();
|
||||
if(!valueDatasipCallRecords["CalleeClusterId"].isNull())
|
||||
dataObject.calleeClusterId = valueDatasipCallRecords["CalleeClusterId"].asString();
|
||||
if(!valueDatasipCallRecords["LastResponseCode"].isNull())
|
||||
dataObject.lastResponseCode = std::stoi(valueDatasipCallRecords["LastResponseCode"].asString());
|
||||
if(!valueDatasipCallRecords["LastResponseText"].isNull())
|
||||
dataObject.lastResponseText = valueDatasipCallRecords["LastResponseText"].asString();
|
||||
if(!valueDatasipCallRecords["InviteTime"].isNull())
|
||||
dataObject.inviteTime = std::stol(valueDatasipCallRecords["InviteTime"].asString());
|
||||
if(!valueDatasipCallRecords["RingTime"].isNull())
|
||||
dataObject.ringTime = std::stol(valueDatasipCallRecords["RingTime"].asString());
|
||||
if(!valueDatasipCallRecords["EstablishedTime"].isNull())
|
||||
dataObject.establishedTime = std::stol(valueDatasipCallRecords["EstablishedTime"].asString());
|
||||
if(!valueDatasipCallRecords["ReleasedTime"].isNull())
|
||||
dataObject.releasedTime = std::stol(valueDatasipCallRecords["ReleasedTime"].asString());
|
||||
if(!valueDatasipCallRecords["ReleaseReasonCode"].isNull())
|
||||
dataObject.releaseReasonCode = std::stoi(valueDatasipCallRecords["ReleaseReasonCode"].asString());
|
||||
if(!valueDatasipCallRecords["EarlyMediaUrl"].isNull())
|
||||
dataObject.earlyMediaUrl = valueDatasipCallRecords["EarlyMediaUrl"].asString();
|
||||
if(!valueDatasipCallRecords["EarlyMediaText"].isNull())
|
||||
dataObject.earlyMediaText = valueDatasipCallRecords["EarlyMediaText"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSipCallRecordsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSipCallRecordsResult::SipCallRecords> ListSipCallRecordsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSipCallRecordsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/ListSipTracesRequest.cc
Normal file
51
ccc/src/model/ListSipTracesRequest.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/ccc/model/ListSipTracesRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListSipTracesRequest;
|
||||
|
||||
ListSipTracesRequest::ListSipTracesRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListSipTraces")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSipTracesRequest::~ListSipTracesRequest()
|
||||
{}
|
||||
|
||||
std::string ListSipTracesRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void ListSipTracesRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string ListSipTracesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListSipTracesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
90
ccc/src/model/ListSipTracesResult.cc
Normal file
90
ccc/src/model/ListSipTracesResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/ListSipTracesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListSipTracesResult::ListSipTracesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSipTracesResult::ListSipTracesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSipTracesResult::~ListSipTracesResult()
|
||||
{}
|
||||
|
||||
void ListSipTracesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["CallTraces"];
|
||||
for (auto valueDataCallTraces : allDataNode)
|
||||
{
|
||||
CallTraces dataObject;
|
||||
if(!valueDataCallTraces["CallId"].isNull())
|
||||
dataObject.callId = valueDataCallTraces["CallId"].asString();
|
||||
if(!valueDataCallTraces["ContactId"].isNull())
|
||||
dataObject.contactId = valueDataCallTraces["ContactId"].asString();
|
||||
if(!valueDataCallTraces["FirstLine"].isNull())
|
||||
dataObject.firstLine = valueDataCallTraces["FirstLine"].asString();
|
||||
if(!valueDataCallTraces["DestinationNodeIp"].isNull())
|
||||
dataObject.destinationNodeIp = valueDataCallTraces["DestinationNodeIp"].asString();
|
||||
if(!valueDataCallTraces["SourceNodeIp"].isNull())
|
||||
dataObject.sourceNodeIp = valueDataCallTraces["SourceNodeIp"].asString();
|
||||
if(!valueDataCallTraces["Payload"].isNull())
|
||||
dataObject.payload = valueDataCallTraces["Payload"].asString();
|
||||
if(!valueDataCallTraces["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataCallTraces["Timestamp"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSipTracesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSipTracesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSipTracesResult::CallTraces> ListSipTracesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSipTracesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -50,12 +50,10 @@ void ListSkillGroupsResult::parse(const std::string &payload)
|
||||
for (auto dataNodeListSkillGroup : allListNode)
|
||||
{
|
||||
Data::SkillGroup skillGroupObject;
|
||||
if(!dataNodeListSkillGroup["Description"].isNull())
|
||||
skillGroupObject.description = dataNodeListSkillGroup["Description"].asString();
|
||||
if(!dataNodeListSkillGroup["DisplayName"].isNull())
|
||||
skillGroupObject.displayName = dataNodeListSkillGroup["DisplayName"].asString();
|
||||
if(!dataNodeListSkillGroup["InstanceId"].isNull())
|
||||
skillGroupObject.instanceId = dataNodeListSkillGroup["InstanceId"].asString();
|
||||
if(!dataNodeListSkillGroup["Description"].isNull())
|
||||
skillGroupObject.description = dataNodeListSkillGroup["Description"].asString();
|
||||
if(!dataNodeListSkillGroup["PhoneNumberCount"].isNull())
|
||||
skillGroupObject.phoneNumberCount = std::stoi(dataNodeListSkillGroup["PhoneNumberCount"].asString());
|
||||
if(!dataNodeListSkillGroup["SkillGroupId"].isNull())
|
||||
@@ -64,6 +62,8 @@ void ListSkillGroupsResult::parse(const std::string &payload)
|
||||
skillGroupObject.skillGroupName = dataNodeListSkillGroup["SkillGroupName"].asString();
|
||||
if(!dataNodeListSkillGroup["UserCount"].isNull())
|
||||
skillGroupObject.userCount = std::stoi(dataNodeListSkillGroup["UserCount"].asString());
|
||||
if(!dataNodeListSkillGroup["InstanceId"].isNull())
|
||||
skillGroupObject.instanceId = dataNodeListSkillGroup["InstanceId"].asString();
|
||||
data_.list.push_back(skillGroupObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void MakeCallRequest::setCallee(const std::string& callee)
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string MakeCallRequest::getMaskedCallee()const
|
||||
{
|
||||
return maskedCallee_;
|
||||
}
|
||||
|
||||
void MakeCallRequest::setMaskedCallee(const std::string& maskedCallee)
|
||||
{
|
||||
maskedCallee_ = maskedCallee;
|
||||
setParameter("MaskedCallee", maskedCallee);
|
||||
}
|
||||
|
||||
std::string MakeCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void StartPredictiveCallRequest::setCallee(const std::string& callee)
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string StartPredictiveCallRequest::getMaskedCallee()const
|
||||
{
|
||||
return maskedCallee_;
|
||||
}
|
||||
|
||||
void StartPredictiveCallRequest::setMaskedCallee(const std::string& maskedCallee)
|
||||
{
|
||||
maskedCallee_ = maskedCallee;
|
||||
setParameter("MaskedCallee", maskedCallee);
|
||||
}
|
||||
|
||||
std::string StartPredictiveCallRequest::getContactFlowVariables()const
|
||||
{
|
||||
return contactFlowVariables_;
|
||||
|
||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getDomainNames()const;
|
||||
void setDomainNames(const std::string& domainNames);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string domainNames_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getDomainNames()const;
|
||||
void setDomainNames(const std::string& domainNames);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string domainNames_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
DeleteCdnDomainRequest();
|
||||
~DeleteCdnDomainRequest();
|
||||
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string ownerAccount_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,18 +37,26 @@ namespace AlibabaCloud
|
||||
DescribeCdnSMCertificateDetailResult();
|
||||
explicit DescribeCdnSMCertificateDetailResult(const std::string &payload);
|
||||
~DescribeCdnSMCertificateDetailResult();
|
||||
std::string getSans()const;
|
||||
std::string getCertOrg()const;
|
||||
std::string getCertIdentifier()const;
|
||||
std::string getSignCertificate()const;
|
||||
std::string getCertExpireTime()const;
|
||||
std::string getCertName()const;
|
||||
std::string getEncryptCertificate()const;
|
||||
std::string getCommonName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sans_;
|
||||
std::string certOrg_;
|
||||
std::string certIdentifier_;
|
||||
std::string signCertificate_;
|
||||
std::string certExpireTime_;
|
||||
std::string certName_;
|
||||
std::string encryptCertificate_;
|
||||
std::string commonName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string createTime;
|
||||
std::string updateTime;
|
||||
std::string domainCname;
|
||||
std::string cdnType;
|
||||
};
|
||||
std::vector<std::string> domains;
|
||||
std::vector<DomainsData::DomainInfo> domainInfos;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
SetCdnDomainSMCertificateRequest();
|
||||
~SetCdnDomainSMCertificateRequest();
|
||||
|
||||
std::string getSSLProtocol()const;
|
||||
void setSSLProtocol(const std::string& sSLProtocol);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
||||
void setCertIdentifier(const std::string& certIdentifier);
|
||||
|
||||
private:
|
||||
std::string sSLProtocol_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
StartCdnDomainRequest();
|
||||
~StartCdnDomainRequest();
|
||||
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
StopCdnDomainRequest();
|
||||
~StopCdnDomainRequest();
|
||||
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,17 +38,6 @@ void BatchStartCdnDomainRequest::setDomainNames(const std::string& domainNames)
|
||||
setParameter("DomainNames", domainNames);
|
||||
}
|
||||
|
||||
long BatchStartCdnDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchStartCdnDomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchStartCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
@@ -60,3 +49,14 @@ void BatchStartCdnDomainRequest::setSecurityToken(const std::string& securityTok
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
long BatchStartCdnDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchStartCdnDomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -38,17 +38,6 @@ void BatchStopCdnDomainRequest::setDomainNames(const std::string& domainNames)
|
||||
setParameter("DomainNames", domainNames);
|
||||
}
|
||||
|
||||
long BatchStopCdnDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchStopCdnDomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchStopCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
@@ -60,3 +49,14 @@ void BatchStopCdnDomainRequest::setSecurityToken(const std::string& securityToke
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
long BatchStopCdnDomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchStopCdnDomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ DeleteCdnDomainRequest::DeleteCdnDomainRequest() :
|
||||
DeleteCdnDomainRequest::~DeleteCdnDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteCdnDomainRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -60,14 +71,3 @@ void DeleteCdnDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,9 +47,27 @@ void DescribeCdnSMCertificateDetailResult::parse(const std::string &payload)
|
||||
certIdentifier_ = value["CertIdentifier"].asString();
|
||||
if(!value["CertName"].isNull())
|
||||
certName_ = value["CertName"].asString();
|
||||
if(!value["CommonName"].isNull())
|
||||
commonName_ = value["CommonName"].asString();
|
||||
if(!value["Sans"].isNull())
|
||||
sans_ = value["Sans"].asString();
|
||||
if(!value["CertOrg"].isNull())
|
||||
certOrg_ = value["CertOrg"].asString();
|
||||
if(!value["CertExpireTime"].isNull())
|
||||
certExpireTime_ = value["CertExpireTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getSans()const
|
||||
{
|
||||
return sans_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertOrg()const
|
||||
{
|
||||
return certOrg_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertIdentifier()const
|
||||
{
|
||||
return certIdentifier_;
|
||||
@@ -60,6 +78,11 @@ std::string DescribeCdnSMCertificateDetailResult::getSignCertificate()const
|
||||
return signCertificate_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertExpireTime()const
|
||||
{
|
||||
return certExpireTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
@@ -70,3 +93,8 @@ std::string DescribeCdnSMCertificateDetailResult::getEncryptCertificate()const
|
||||
return encryptCertificate_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCommonName()const
|
||||
{
|
||||
return commonName_;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
|
||||
domainInfosObject.updateTime = valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].isNull())
|
||||
domainInfosObject.status = valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].asString();
|
||||
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["CdnType"].isNull())
|
||||
domainInfosObject.cdnType = valueDomainsListDomainsDataDomainInfosdomainInfo["CdnType"].asString();
|
||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||
}
|
||||
auto allDomains = value["Domains"]["domainNames"];
|
||||
|
||||
@@ -27,6 +27,17 @@ SetCdnDomainSMCertificateRequest::SetCdnDomainSMCertificateRequest() :
|
||||
SetCdnDomainSMCertificateRequest::~SetCdnDomainSMCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string SetCdnDomainSMCertificateRequest::getSSLProtocol()const
|
||||
{
|
||||
return sSLProtocol_;
|
||||
}
|
||||
|
||||
void SetCdnDomainSMCertificateRequest::setSSLProtocol(const std::string& sSLProtocol)
|
||||
{
|
||||
sSLProtocol_ = sSLProtocol;
|
||||
setParameter("SSLProtocol", sSLProtocol);
|
||||
}
|
||||
|
||||
std::string SetCdnDomainSMCertificateRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
@@ -27,6 +27,17 @@ StartCdnDomainRequest::StartCdnDomainRequest() :
|
||||
StartCdnDomainRequest::~StartCdnDomainRequest()
|
||||
{}
|
||||
|
||||
std::string StartCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StartCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StartCdnDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -49,14 +60,3 @@ void StartCdnDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StartCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ StopCdnDomainRequest::StopCdnDomainRequest() :
|
||||
StopCdnDomainRequest::~StopCdnDomainRequest()
|
||||
{}
|
||||
|
||||
std::string StopCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StopCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StopCdnDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -49,14 +60,3 @@ void StopCdnDomainRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopCdnDomainRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StopCdnDomainRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h
|
||||
include/alibabacloud/cms/model/CreateHostAvailabilityResult.h
|
||||
include/alibabacloud/cms/model/CreateInstantSiteMonitorRequest.h
|
||||
include/alibabacloud/cms/model/CreateInstantSiteMonitorResult.h
|
||||
include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h
|
||||
include/alibabacloud/cms/model/CreateMetricRuleResourcesResult.h
|
||||
include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h
|
||||
@@ -205,6 +207,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorListResult.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorLogRequest.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorLogResult.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h
|
||||
include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h
|
||||
@@ -322,6 +326,8 @@ set(cms_src
|
||||
src/model/CreateGroupMonitoringAgentProcessResult.cc
|
||||
src/model/CreateHostAvailabilityRequest.cc
|
||||
src/model/CreateHostAvailabilityResult.cc
|
||||
src/model/CreateInstantSiteMonitorRequest.cc
|
||||
src/model/CreateInstantSiteMonitorResult.cc
|
||||
src/model/CreateMetricRuleResourcesRequest.cc
|
||||
src/model/CreateMetricRuleResourcesResult.cc
|
||||
src/model/CreateMetricRuleTemplateRequest.cc
|
||||
@@ -488,6 +494,8 @@ set(cms_src
|
||||
src/model/DescribeSiteMonitorISPCityListResult.cc
|
||||
src/model/DescribeSiteMonitorListRequest.cc
|
||||
src/model/DescribeSiteMonitorListResult.cc
|
||||
src/model/DescribeSiteMonitorLogRequest.cc
|
||||
src/model/DescribeSiteMonitorLogResult.cc
|
||||
src/model/DescribeSiteMonitorQuotaRequest.cc
|
||||
src/model/DescribeSiteMonitorQuotaResult.cc
|
||||
src/model/DescribeSiteMonitorStatisticsRequest.cc
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
#include "model/CreateGroupMonitoringAgentProcessResult.h"
|
||||
#include "model/CreateHostAvailabilityRequest.h"
|
||||
#include "model/CreateHostAvailabilityResult.h"
|
||||
#include "model/CreateInstantSiteMonitorRequest.h"
|
||||
#include "model/CreateInstantSiteMonitorResult.h"
|
||||
#include "model/CreateMetricRuleResourcesRequest.h"
|
||||
#include "model/CreateMetricRuleResourcesResult.h"
|
||||
#include "model/CreateMetricRuleTemplateRequest.h"
|
||||
@@ -206,6 +208,8 @@
|
||||
#include "model/DescribeSiteMonitorISPCityListResult.h"
|
||||
#include "model/DescribeSiteMonitorListRequest.h"
|
||||
#include "model/DescribeSiteMonitorListResult.h"
|
||||
#include "model/DescribeSiteMonitorLogRequest.h"
|
||||
#include "model/DescribeSiteMonitorLogResult.h"
|
||||
#include "model/DescribeSiteMonitorQuotaRequest.h"
|
||||
#include "model/DescribeSiteMonitorQuotaResult.h"
|
||||
#include "model/DescribeSiteMonitorStatisticsRequest.h"
|
||||
@@ -338,6 +342,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateHostAvailabilityResult> CreateHostAvailabilityOutcome;
|
||||
typedef std::future<CreateHostAvailabilityOutcome> CreateHostAvailabilityOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateHostAvailabilityRequest&, const CreateHostAvailabilityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHostAvailabilityAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstantSiteMonitorResult> CreateInstantSiteMonitorOutcome;
|
||||
typedef std::future<CreateInstantSiteMonitorOutcome> CreateInstantSiteMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateInstantSiteMonitorRequest&, const CreateInstantSiteMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstantSiteMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMetricRuleResourcesResult> CreateMetricRuleResourcesOutcome;
|
||||
typedef std::future<CreateMetricRuleResourcesOutcome> CreateMetricRuleResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateMetricRuleResourcesRequest&, const CreateMetricRuleResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMetricRuleResourcesAsyncHandler;
|
||||
@@ -587,6 +594,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSiteMonitorListResult> DescribeSiteMonitorListOutcome;
|
||||
typedef std::future<DescribeSiteMonitorListOutcome> DescribeSiteMonitorListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeSiteMonitorListRequest&, const DescribeSiteMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSiteMonitorListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSiteMonitorLogResult> DescribeSiteMonitorLogOutcome;
|
||||
typedef std::future<DescribeSiteMonitorLogOutcome> DescribeSiteMonitorLogOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeSiteMonitorLogRequest&, const DescribeSiteMonitorLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSiteMonitorLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSiteMonitorQuotaResult> DescribeSiteMonitorQuotaOutcome;
|
||||
typedef std::future<DescribeSiteMonitorQuotaOutcome> DescribeSiteMonitorQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeSiteMonitorQuotaRequest&, const DescribeSiteMonitorQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSiteMonitorQuotaAsyncHandler;
|
||||
@@ -763,6 +773,9 @@ namespace AlibabaCloud
|
||||
CreateHostAvailabilityOutcome createHostAvailability(const Model::CreateHostAvailabilityRequest &request)const;
|
||||
void createHostAvailabilityAsync(const Model::CreateHostAvailabilityRequest& request, const CreateHostAvailabilityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateHostAvailabilityOutcomeCallable createHostAvailabilityCallable(const Model::CreateHostAvailabilityRequest& request) const;
|
||||
CreateInstantSiteMonitorOutcome createInstantSiteMonitor(const Model::CreateInstantSiteMonitorRequest &request)const;
|
||||
void createInstantSiteMonitorAsync(const Model::CreateInstantSiteMonitorRequest& request, const CreateInstantSiteMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstantSiteMonitorOutcomeCallable createInstantSiteMonitorCallable(const Model::CreateInstantSiteMonitorRequest& request) const;
|
||||
CreateMetricRuleResourcesOutcome createMetricRuleResources(const Model::CreateMetricRuleResourcesRequest &request)const;
|
||||
void createMetricRuleResourcesAsync(const Model::CreateMetricRuleResourcesRequest& request, const CreateMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMetricRuleResourcesOutcomeCallable createMetricRuleResourcesCallable(const Model::CreateMetricRuleResourcesRequest& request) const;
|
||||
@@ -1012,6 +1025,9 @@ namespace AlibabaCloud
|
||||
DescribeSiteMonitorListOutcome describeSiteMonitorList(const Model::DescribeSiteMonitorListRequest &request)const;
|
||||
void describeSiteMonitorListAsync(const Model::DescribeSiteMonitorListRequest& request, const DescribeSiteMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSiteMonitorListOutcomeCallable describeSiteMonitorListCallable(const Model::DescribeSiteMonitorListRequest& request) const;
|
||||
DescribeSiteMonitorLogOutcome describeSiteMonitorLog(const Model::DescribeSiteMonitorLogRequest &request)const;
|
||||
void describeSiteMonitorLogAsync(const Model::DescribeSiteMonitorLogRequest& request, const DescribeSiteMonitorLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSiteMonitorLogOutcomeCallable describeSiteMonitorLogCallable(const Model::DescribeSiteMonitorLogRequest& request) const;
|
||||
DescribeSiteMonitorQuotaOutcome describeSiteMonitorQuota(const Model::DescribeSiteMonitorQuotaRequest &request)const;
|
||||
void describeSiteMonitorQuotaAsync(const Model::DescribeSiteMonitorQuotaRequest& request, const DescribeSiteMonitorQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSiteMonitorQuotaOutcomeCallable describeSiteMonitorQuotaCallable(const Model::DescribeSiteMonitorQuotaRequest& request) const;
|
||||
|
||||
@@ -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_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateInstantSiteMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateInstantSiteMonitorRequest();
|
||||
~CreateInstantSiteMonitorRequest();
|
||||
|
||||
int getRandomIspCity()const;
|
||||
void setRandomIspCity(int randomIspCity);
|
||||
std::string getAddress()const;
|
||||
void setAddress(const std::string& address);
|
||||
std::string getTaskType()const;
|
||||
void setTaskType(const std::string& taskType);
|
||||
std::string getTaskName()const;
|
||||
void setTaskName(const std::string& taskName);
|
||||
std::string getIspCities()const;
|
||||
void setIspCities(const std::string& ispCities);
|
||||
std::string getOptionsJson()const;
|
||||
void setOptionsJson(const std::string& optionsJson);
|
||||
|
||||
private:
|
||||
int randomIspCity_;
|
||||
std::string address_;
|
||||
std::string taskType_;
|
||||
std::string taskName_;
|
||||
std::string ispCities_;
|
||||
std::string optionsJson_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user