Compare commits

..

14 Commits

Author SHA1 Message Date
sdk-team
669f7e68c2 Fix DescribeInstances clusterId. 2021-12-07 13:38:36 +00:00
sdk-team
4604ad2323 Add MetaTag APIs. 2021-12-07 07:34:38 +00:00
sdk-team
fe60cca404 Add MetaTag APIs. 2021-12-07 07:25:44 +00:00
sdk-team
288efa5b1f Support Bond Eni. 2021-12-06 13:07:29 +00:00
sdk-team
660dacf04d Support Bond Eni. 2021-12-06 11:51:53 +00:00
sdk-team
fde408fe24 Generated 2020-05-18 for dataworks-public. 2021-12-06 09:41:31 +00:00
sdk-team
f78ca8c724 Modify the input parameter Action of DescribeCenInterRegionBandwidthLimits to be required. 2021-12-06 03:47:38 +00:00
sdk-team
6f8b83d17e Add EventRule Content Filter. 2021-12-03 08:43:24 +00:00
sdk-team
9b5da5d494 Support EndpointType and ServiceType. 2021-12-03 06:19:13 +00:00
sdk-team
ba890b6d6c Update MergeImageFace QueryFaceImageTemplate AddFaceImageTemplate DeleteFaceImageTemplate. 2021-12-02 07:58:02 +00:00
sdk-team
6bdc46aefb Support not switching routes when VBR health check fails. 2021-12-01 06:21:45 +00:00
sdk-team
e2a8813a1b Supported RequestDecision For YN. 2021-12-01 05:43:33 +00:00
sdk-team
37dde26ac1 Support health check paging. 2021-11-30 03:20:26 +00:00
sdk-team
cf984bbcfc Support health check paging. 2021-11-30 02:41:43 +00:00
235 changed files with 7641 additions and 2536 deletions

View File

@@ -1,3 +1,47 @@
2021-12-07 Version: 1.36.970
- Fix DescribeInstances clusterId.
2021-12-07 Version: 1.36.969
- Add MetaTag APIs.
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.

View File

@@ -1 +1 @@
1.36.956
1.36.970

View File

@@ -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

View File

@@ -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;

View File

@@ -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;

View 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_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_

View 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_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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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 &regionId);
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_

View 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_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_

View File

@@ -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_;

View File

@@ -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_;
};

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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 &regionId);
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_

View 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_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_

View 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_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_

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_

View File

@@ -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_;
};

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct Acl
{
bool serviceManagedEnabled;
bool configManagedEnabled;
std::string aclStatus;
std::string resourceGroupId;
std::string aclId;

View File

@@ -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

View File

@@ -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;

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string serverId;
int port;
std::string serverIp;
bool remoteIpEnabled;
std::string serverGroupId;
int weight;
};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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_

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRRESULT_H_
#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/ecs/EcsExport.h>
#include <alibabacloud/alb/AlbExport.h>
namespace AlibabaCloud
{
namespace Ecs
namespace Alb
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateDiskReplicaPairResult : public ServiceResult
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerZonesResult : public ServiceResult
{
public:
CreateDiskReplicaPairResult();
explicit CreateDiskReplicaPairResult(const std::string &payload);
~CreateDiskReplicaPairResult();
std::string getPairId()const;
UpdateLoadBalancerZonesResult();
explicit UpdateLoadBalancerZonesResult(const std::string &payload);
~UpdateLoadBalancerZonesResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string pairId_;
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRRESULT_H_
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERZONESRESULT_H_

View File

@@ -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_;
};

View File

@@ -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();

View File

@@ -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);

View 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/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);
}

View 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_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 &regionId) {
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);
}

View 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/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_;
}

View File

@@ -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);
}
}

View File

@@ -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_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 &regionId) {
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);
}

View 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/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_;
}

View 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));
}

View 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_;
}

View File

@@ -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_;

View File

@@ -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())

View File

@@ -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_;
}

View File

@@ -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)
{

View File

@@ -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())

View File

@@ -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)
{

View File

@@ -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);

View 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);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/ecs/model/CreateDiskReplicaPairResult.h>
#include <alibabacloud/alb/model/UpdateLoadBalancerZonesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
using namespace AlibabaCloud::Alb;
using namespace AlibabaCloud::Alb::Model;
CreateDiskReplicaPairResult::CreateDiskReplicaPairResult() :
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult() :
ServiceResult()
{}
CreateDiskReplicaPairResult::CreateDiskReplicaPairResult(const std::string &payload) :
UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiskReplicaPairResult::~CreateDiskReplicaPairResult()
UpdateLoadBalancerZonesResult::~UpdateLoadBalancerZonesResult()
{}
void CreateDiskReplicaPairResult::parse(const std::string &payload)
void UpdateLoadBalancerZonesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["PairId"].isNull())
pairId_ = value["PairId"].asString();
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string CreateDiskReplicaPairResult::getPairId()const
std::string UpdateLoadBalancerZonesResult::getJobId()const
{
return pairId_;
return jobId_;
}

View File

@@ -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_;
}

View File

@@ -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;

View File

@@ -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;
};

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct GrantRule
{
std::string childInstanceType;
std::string orderType;
std::string cenId;
long childInstanceOwnerId;
std::string childInstanceId;

View File

@@ -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_;

View File

@@ -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());
}

View File

@@ -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());
}

View File

@@ -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);
}

View File

@@ -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_;

View File

@@ -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

View File

@@ -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;

View 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.
*/
#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_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORRESULT_H_
#define ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cms/CmsExport.h>
namespace AlibabaCloud
{
namespace Cms
{
namespace Model
{
class ALIBABACLOUD_CMS_EXPORT CreateInstantSiteMonitorResult : public ServiceResult
{
public:
struct CreateResultListItem
{
std::string taskId;
std::string taskName;
};
CreateInstantSiteMonitorResult();
explicit CreateInstantSiteMonitorResult(const std::string &payload);
~CreateInstantSiteMonitorResult();
std::string getMessage()const;
std::vector<CreateResultListItem> getCreateResultList()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<CreateResultListItem> createResultList_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORRESULT_H_

View File

@@ -81,28 +81,48 @@ namespace AlibabaCloud
std::string expressionListJoin;
std::vector<ExpressionListItem> expressionList;
};
struct Prometheus
{
struct AnnotationsItem
{
std::string value;
std::string key;
};
std::vector<AnnotationsItem> annotations;
std::string promQL;
long times;
std::string level;
};
struct LabelsItem
{
std::string value;
std::string key;
};
std::string groupName;
int silenceTime;
std::string contactGroups;
std::string noEffectiveInterval;
std::string groupBy;
std::string options;
std::string mailSubject;
std::string sourceType;
std::string ruleId;
Prometheus prometheus;
std::string metricName;
CompositeExpression compositeExpression;
std::string ruleName;
int silenceTime;
std::string contactGroups;
std::string groupBy;
std::string period;
std::string dimensions;
std::vector<Alarm::LabelsItem> labels;
std::string _namespace;
std::string effectiveInterval;
std::string noDataPolicy;
std::string alertState;
std::string groupId;
std::string metricName;
Escalations escalations;
bool enableState;
CompositeExpression compositeExpression;
std::string webhook;
std::string resources;
std::string ruleName;
};

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_
#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_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 DescribeSiteMonitorLogRequest : public RpcServiceRequest
{
public:
DescribeSiteMonitorLogRequest();
~DescribeSiteMonitorLogRequest();
std::string getCity()const;
void setCity(const std::string& city);
std::string getIsp()const;
void setIsp(const std::string& isp);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getTaskIds()const;
void setTaskIds(const std::string& taskIds);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getMetricName()const;
void setMetricName(const std::string& metricName);
int getLength()const;
void setLength(int length);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getFilter()const;
void setFilter(const std::string& filter);
std::string getDimensions()const;
void setDimensions(const std::string& dimensions);
private:
std::string city_;
std::string isp_;
std::string startTime_;
std::string taskIds_;
std::string nextToken_;
std::string metricName_;
int length_;
std::string endTime_;
std::string filter_;
std::string dimensions_;
};
}
}
}
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGRESULT_H_
#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cms/CmsExport.h>
namespace AlibabaCloud
{
namespace Cms
{
namespace Model
{
class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorLogResult : public ServiceResult
{
public:
DescribeSiteMonitorLogResult();
explicit DescribeSiteMonitorLogResult(const std::string &payload);
~DescribeSiteMonitorLogResult();
std::string getNextToken()const;
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::string message_;
std::string data_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGRESULT_H_

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
struct EventPattern
{
std::vector<std::string> levelList;
Struct keywordFilter;
std::string product;
std::vector<std::string> statusList;
std::vector<std::string> nameList;

View File

@@ -41,26 +41,20 @@ namespace AlibabaCloud
void setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator);
std::string getRuleName()const;
void setRuleName(const std::string& ruleName);
std::string getEscalationsInfoStatistics()const;
void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics);
std::string getEffectiveInterval()const;
void setEffectiveInterval(const std::string& effectiveInterval);
std::string getEscalationsInfoComparisonOperator()const;
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
std::string getNoDataPolicy()const;
void setNoDataPolicy(const std::string& noDataPolicy);
std::string getNoEffectiveInterval()const;
void setNoEffectiveInterval(const std::string& noEffectiveInterval);
std::string getEmailSubject()const;
void setEmailSubject(const std::string& emailSubject);
int getSilenceTime()const;
void setSilenceTime(int silenceTime);
std::string getOptions()const;
void setOptions(const std::string& options);
std::string getMetricName()const;
void setMetricName(const std::string& metricName);
int getEscalationsWarnTimes()const;
void setEscalationsWarnTimes(int escalationsWarnTimes);
Struct getCompositeExpression()const;
void setCompositeExpression(const Struct& compositeExpression);
std::string getPeriod()const;
void setPeriod(const std::string& period);
std::string getEscalationsWarnThreshold()const;
@@ -71,14 +65,32 @@ namespace AlibabaCloud
void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
Array getLabels()const;
void setLabels(const Array& labels);
std::string getInterval()const;
void setInterval(const std::string& interval);
std::string getRuleId()const;
void setRuleId(const std::string& ruleId);
std::string getEscalationsCriticalThreshold()const;
void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold);
std::string getEscalationsInfoStatistics()const;
void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics);
std::string getEscalationsInfoComparisonOperator()const;
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
int getSilenceTime()const;
void setSilenceTime(int silenceTime);
Struct getPrometheus()const;
void setPrometheus(const Struct& prometheus);
Struct getCompositeExpression()const;
void setCompositeExpression(const Struct& compositeExpression);
std::string getResources()const;
void setResources(const std::string& resources);
int getEscalationsInfoTimes()const;
void setEscalationsInfoTimes(int escalationsInfoTimes);
std::string getGroupBy()const;
void setGroupBy(const std::string& groupBy);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
int getEscalationsCriticalTimes()const;
void setEscalationsCriticalTimes(int escalationsCriticalTimes);
std::string getEscalationsWarnStatistics()const;
@@ -87,46 +99,43 @@ namespace AlibabaCloud
void setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold);
std::string get_Namespace()const;
void set_Namespace(const std::string& _namespace);
std::string getInterval()const;
void setInterval(const std::string& interval);
std::string getRuleId()const;
void setRuleId(const std::string& ruleId);
std::string getEscalationsCriticalComparisonOperator()const;
void setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator);
std::string getEscalationsCriticalThreshold()const;
void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold);
private:
std::string webhook_;
std::string escalationsWarnComparisonOperator_;
std::string ruleName_;
std::string escalationsInfoStatistics_;
std::string effectiveInterval_;
std::string escalationsInfoComparisonOperator_;
std::string noDataPolicy_;
std::string noEffectiveInterval_;
std::string emailSubject_;
int silenceTime_;
std::string options_;
std::string metricName_;
int escalationsWarnTimes_;
Struct compositeExpression_;
std::string period_;
std::string escalationsWarnThreshold_;
std::string contactGroups_;
std::string escalationsCriticalStatistics_;
std::string groupId_;
std::string groupName_;
Array labels_;
std::string interval_;
std::string ruleId_;
std::string escalationsCriticalThreshold_;
std::string escalationsInfoStatistics_;
std::string escalationsInfoComparisonOperator_;
int silenceTime_;
Struct prometheus_;
Struct compositeExpression_;
std::string resources_;
int escalationsInfoTimes_;
std::string groupBy_;
std::string groupName_;
int escalationsCriticalTimes_;
std::string escalationsWarnStatistics_;
std::string escalationsInfoThreshold_;
std::string _namespace_;
std::string interval_;
std::string ruleId_;
std::string escalationsCriticalComparisonOperator_;
std::string escalationsCriticalThreshold_;
};
}

View File

@@ -375,6 +375,42 @@ CmsClient::CreateHostAvailabilityOutcomeCallable CmsClient::createHostAvailabili
return task->get_future();
}
CmsClient::CreateInstantSiteMonitorOutcome CmsClient::createInstantSiteMonitor(const CreateInstantSiteMonitorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstantSiteMonitorOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstantSiteMonitorOutcome(CreateInstantSiteMonitorResult(outcome.result()));
else
return CreateInstantSiteMonitorOutcome(outcome.error());
}
void CmsClient::createInstantSiteMonitorAsync(const CreateInstantSiteMonitorRequest& request, const CreateInstantSiteMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstantSiteMonitor(request), context);
};
asyncExecute(new Runnable(fn));
}
CmsClient::CreateInstantSiteMonitorOutcomeCallable CmsClient::createInstantSiteMonitorCallable(const CreateInstantSiteMonitorRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstantSiteMonitorOutcome()>>(
[this, request]()
{
return this->createInstantSiteMonitor(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CmsClient::CreateMetricRuleResourcesOutcome CmsClient::createMetricRuleResources(const CreateMetricRuleResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3363,6 +3399,42 @@ CmsClient::DescribeSiteMonitorListOutcomeCallable CmsClient::describeSiteMonitor
return task->get_future();
}
CmsClient::DescribeSiteMonitorLogOutcome CmsClient::describeSiteMonitorLog(const DescribeSiteMonitorLogRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSiteMonitorLogOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSiteMonitorLogOutcome(DescribeSiteMonitorLogResult(outcome.result()));
else
return DescribeSiteMonitorLogOutcome(outcome.error());
}
void CmsClient::describeSiteMonitorLogAsync(const DescribeSiteMonitorLogRequest& request, const DescribeSiteMonitorLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSiteMonitorLog(request), context);
};
asyncExecute(new Runnable(fn));
}
CmsClient::DescribeSiteMonitorLogOutcomeCallable CmsClient::describeSiteMonitorLogCallable(const DescribeSiteMonitorLogRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSiteMonitorLogOutcome()>>(
[this, request]()
{
return this->describeSiteMonitorLog(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CmsClient::DescribeSiteMonitorQuotaOutcome CmsClient::describeSiteMonitorQuota(const DescribeSiteMonitorQuotaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,95 @@
/*
* 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/cms/model/CreateInstantSiteMonitorRequest.h>
using AlibabaCloud::Cms::Model::CreateInstantSiteMonitorRequest;
CreateInstantSiteMonitorRequest::CreateInstantSiteMonitorRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateInstantSiteMonitor")
{
setMethod(HttpRequest::Method::Post);
}
CreateInstantSiteMonitorRequest::~CreateInstantSiteMonitorRequest()
{}
int CreateInstantSiteMonitorRequest::getRandomIspCity()const
{
return randomIspCity_;
}
void CreateInstantSiteMonitorRequest::setRandomIspCity(int randomIspCity)
{
randomIspCity_ = randomIspCity;
setParameter("RandomIspCity", std::to_string(randomIspCity));
}
std::string CreateInstantSiteMonitorRequest::getAddress()const
{
return address_;
}
void CreateInstantSiteMonitorRequest::setAddress(const std::string& address)
{
address_ = address;
setParameter("Address", address);
}
std::string CreateInstantSiteMonitorRequest::getTaskType()const
{
return taskType_;
}
void CreateInstantSiteMonitorRequest::setTaskType(const std::string& taskType)
{
taskType_ = taskType;
setParameter("TaskType", taskType);
}
std::string CreateInstantSiteMonitorRequest::getTaskName()const
{
return taskName_;
}
void CreateInstantSiteMonitorRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setParameter("TaskName", taskName);
}
std::string CreateInstantSiteMonitorRequest::getIspCities()const
{
return ispCities_;
}
void CreateInstantSiteMonitorRequest::setIspCities(const std::string& ispCities)
{
ispCities_ = ispCities;
setParameter("IspCities", ispCities);
}
std::string CreateInstantSiteMonitorRequest::getOptionsJson()const
{
return optionsJson_;
}
void CreateInstantSiteMonitorRequest::setOptionsJson(const std::string& optionsJson)
{
optionsJson_ = optionsJson;
setParameter("OptionsJson", optionsJson);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cms/model/CreateInstantSiteMonitorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateInstantSiteMonitorResult::CreateInstantSiteMonitorResult() :
ServiceResult()
{}
CreateInstantSiteMonitorResult::CreateInstantSiteMonitorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstantSiteMonitorResult::~CreateInstantSiteMonitorResult()
{}
void CreateInstantSiteMonitorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCreateResultListNode = value["CreateResultList"]["CreateResultListItem"];
for (auto valueCreateResultListCreateResultListItem : allCreateResultListNode)
{
CreateResultListItem createResultListObject;
if(!valueCreateResultListCreateResultListItem["TaskId"].isNull())
createResultListObject.taskId = valueCreateResultListCreateResultListItem["TaskId"].asString();
if(!valueCreateResultListCreateResultListItem["TaskName"].isNull())
createResultListObject.taskName = valueCreateResultListCreateResultListItem["TaskName"].asString();
createResultList_.push_back(createResultListObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
}
std::string CreateInstantSiteMonitorResult::getMessage()const
{
return message_;
}
std::vector<CreateInstantSiteMonitorResult::CreateResultListItem> CreateInstantSiteMonitorResult::getCreateResultList()const
{
return createResultList_;
}
std::string CreateInstantSiteMonitorResult::getCode()const
{
return code_;
}
std::string CreateInstantSiteMonitorResult::getSuccess()const
{
return success_;
}

View File

@@ -83,6 +83,18 @@ void DescribeMetricRuleListResult::parse(const std::string &payload)
alarmsObject.resources = valueAlarmsAlarm["Resources"].asString();
if(!valueAlarmsAlarm["NoDataPolicy"].isNull())
alarmsObject.noDataPolicy = valueAlarmsAlarm["NoDataPolicy"].asString();
if(!valueAlarmsAlarm["Options"].isNull())
alarmsObject.options = valueAlarmsAlarm["Options"].asString();
auto allLabelsNode = valueAlarmsAlarm["Labels"]["LabelsItem"];
for (auto valueAlarmsAlarmLabelsLabelsItem : allLabelsNode)
{
Alarm::LabelsItem labelsObject;
if(!valueAlarmsAlarmLabelsLabelsItem["Key"].isNull())
labelsObject.key = valueAlarmsAlarmLabelsLabelsItem["Key"].asString();
if(!valueAlarmsAlarmLabelsLabelsItem["Value"].isNull())
labelsObject.value = valueAlarmsAlarmLabelsLabelsItem["Value"].asString();
alarmsObject.labels.push_back(labelsObject);
}
auto escalationsNode = value["Escalations"];
auto infoNode = escalationsNode["Info"];
if(!infoNode["ComparisonOperator"].isNull())
@@ -144,6 +156,23 @@ void DescribeMetricRuleListResult::parse(const std::string &payload)
expressionListItemObject.id = compositeExpressionNodeExpressionListExpressionListItem["Id"].asString();
alarmsObject.compositeExpression.expressionList.push_back(expressionListItemObject);
}
auto prometheusNode = value["Prometheus"];
if(!prometheusNode["PromQL"].isNull())
alarmsObject.prometheus.promQL = prometheusNode["PromQL"].asString();
if(!prometheusNode["Level"].isNull())
alarmsObject.prometheus.level = prometheusNode["Level"].asString();
if(!prometheusNode["Times"].isNull())
alarmsObject.prometheus.times = std::stol(prometheusNode["Times"].asString());
auto allAnnotationsNode = prometheusNode["Annotations"]["AnnotationsItem"];
for (auto prometheusNodeAnnotationsAnnotationsItem : allAnnotationsNode)
{
Alarm::Prometheus::AnnotationsItem annotationsItemObject;
if(!prometheusNodeAnnotationsAnnotationsItem["Key"].isNull())
annotationsItemObject.key = prometheusNodeAnnotationsAnnotationsItem["Key"].asString();
if(!prometheusNodeAnnotationsAnnotationsItem["Value"].isNull())
annotationsItemObject.value = prometheusNodeAnnotationsAnnotationsItem["Value"].asString();
alarmsObject.prometheus.annotations.push_back(annotationsItemObject);
}
alarms_.push_back(alarmsObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,139 @@
/*
* 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/cms/model/DescribeSiteMonitorLogRequest.h>
using AlibabaCloud::Cms::Model::DescribeSiteMonitorLogRequest;
DescribeSiteMonitorLogRequest::DescribeSiteMonitorLogRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSiteMonitorLogRequest::~DescribeSiteMonitorLogRequest()
{}
std::string DescribeSiteMonitorLogRequest::getCity()const
{
return city_;
}
void DescribeSiteMonitorLogRequest::setCity(const std::string& city)
{
city_ = city;
setParameter("City", city);
}
std::string DescribeSiteMonitorLogRequest::getIsp()const
{
return isp_;
}
void DescribeSiteMonitorLogRequest::setIsp(const std::string& isp)
{
isp_ = isp;
setParameter("Isp", isp);
}
std::string DescribeSiteMonitorLogRequest::getStartTime()const
{
return startTime_;
}
void DescribeSiteMonitorLogRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeSiteMonitorLogRequest::getTaskIds()const
{
return taskIds_;
}
void DescribeSiteMonitorLogRequest::setTaskIds(const std::string& taskIds)
{
taskIds_ = taskIds;
setParameter("TaskIds", taskIds);
}
std::string DescribeSiteMonitorLogRequest::getNextToken()const
{
return nextToken_;
}
void DescribeSiteMonitorLogRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string DescribeSiteMonitorLogRequest::getMetricName()const
{
return metricName_;
}
void DescribeSiteMonitorLogRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setParameter("MetricName", metricName);
}
int DescribeSiteMonitorLogRequest::getLength()const
{
return length_;
}
void DescribeSiteMonitorLogRequest::setLength(int length)
{
length_ = length;
setParameter("Length", std::to_string(length));
}
std::string DescribeSiteMonitorLogRequest::getEndTime()const
{
return endTime_;
}
void DescribeSiteMonitorLogRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeSiteMonitorLogRequest::getFilter()const
{
return filter_;
}
void DescribeSiteMonitorLogRequest::setFilter(const std::string& filter)
{
filter_ = filter;
setParameter("Filter", filter);
}
std::string DescribeSiteMonitorLogRequest::getDimensions()const
{
return dimensions_;
}
void DescribeSiteMonitorLogRequest::setDimensions(const std::string& dimensions)
{
dimensions_ = dimensions;
setParameter("Dimensions", dimensions);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cms/model/DescribeSiteMonitorLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeSiteMonitorLogResult::DescribeSiteMonitorLogResult() :
ServiceResult()
{}
DescribeSiteMonitorLogResult::DescribeSiteMonitorLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSiteMonitorLogResult::~DescribeSiteMonitorLogResult()
{}
void DescribeSiteMonitorLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeSiteMonitorLogResult::getNextToken()const
{
return nextToken_;
}
std::string DescribeSiteMonitorLogResult::getMessage()const
{
return message_;
}
std::string DescribeSiteMonitorLogResult::getData()const
{
return data_;
}
std::string DescribeSiteMonitorLogResult::getCode()const
{
return code_;
}
std::string DescribeSiteMonitorLogResult::getSuccess()const
{
return success_;
}

View File

@@ -74,6 +74,7 @@ void PutEventRuleRequest::setEventPattern(const std::vector<EventPattern>& event
for(int dep2 = 0; dep2!= eventPatternObj.levelList.size(); dep2++) {
setParameter(eventPatternObjStr + ".LevelList."+ std::to_string(dep2), eventPatternObj.levelList.at(dep2));
}
setParameter(eventPatternObjStr + ".KeywordFilter", std::to_string(eventPatternObj.keywordFilter));
setParameter(eventPatternObjStr + ".Product", eventPatternObj.product);
for(int dep2 = 0; dep2!= eventPatternObj.statusList.size(); dep2++) {
setParameter(eventPatternObjStr + ".StatusList."+ std::to_string(dep2), eventPatternObj.statusList.at(dep2));

View File

@@ -39,14 +39,14 @@ void PutEventRuleResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -60,17 +60,6 @@ void PutResourceMetricRuleRequest::setRuleName(const std::string& ruleName)
setParameter("RuleName", ruleName);
}
std::string PutResourceMetricRuleRequest::getEscalationsInfoStatistics()const
{
return escalationsInfoStatistics_;
}
void PutResourceMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics)
{
escalationsInfoStatistics_ = escalationsInfoStatistics;
setParameter("EscalationsInfoStatistics", escalationsInfoStatistics);
}
std::string PutResourceMetricRuleRequest::getEffectiveInterval()const
{
return effectiveInterval_;
@@ -82,17 +71,6 @@ void PutResourceMetricRuleRequest::setEffectiveInterval(const std::string& effec
setParameter("EffectiveInterval", effectiveInterval);
}
std::string PutResourceMetricRuleRequest::getEscalationsInfoComparisonOperator()const
{
return escalationsInfoComparisonOperator_;
}
void PutResourceMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator)
{
escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator;
setParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator);
}
std::string PutResourceMetricRuleRequest::getNoDataPolicy()const
{
return noDataPolicy_;
@@ -126,15 +104,15 @@ void PutResourceMetricRuleRequest::setEmailSubject(const std::string& emailSubje
setParameter("EmailSubject", emailSubject);
}
int PutResourceMetricRuleRequest::getSilenceTime()const
std::string PutResourceMetricRuleRequest::getOptions()const
{
return silenceTime_;
return options_;
}
void PutResourceMetricRuleRequest::setSilenceTime(int silenceTime)
void PutResourceMetricRuleRequest::setOptions(const std::string& options)
{
silenceTime_ = silenceTime;
setParameter("SilenceTime", std::to_string(silenceTime));
options_ = options;
setParameter("Options", options);
}
std::string PutResourceMetricRuleRequest::getMetricName()const
@@ -159,17 +137,6 @@ void PutResourceMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTi
setParameter("EscalationsWarnTimes", std::to_string(escalationsWarnTimes));
}
Struct PutResourceMetricRuleRequest::getCompositeExpression()const
{
return compositeExpression_;
}
void PutResourceMetricRuleRequest::setCompositeExpression(const Struct& compositeExpression)
{
compositeExpression_ = compositeExpression;
setParameter("CompositeExpression", std::to_string(compositeExpression));
}
std::string PutResourceMetricRuleRequest::getPeriod()const
{
return period_;
@@ -225,6 +192,116 @@ void PutResourceMetricRuleRequest::setGroupId(const std::string& groupId)
setParameter("GroupId", groupId);
}
std::string PutResourceMetricRuleRequest::getGroupName()const
{
return groupName_;
}
void PutResourceMetricRuleRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
Array PutResourceMetricRuleRequest::getLabels()const
{
return labels_;
}
void PutResourceMetricRuleRequest::setLabels(const Array& labels)
{
labels_ = labels;
setParameter("Labels", std::to_string(labels));
}
std::string PutResourceMetricRuleRequest::getInterval()const
{
return interval_;
}
void PutResourceMetricRuleRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string PutResourceMetricRuleRequest::getRuleId()const
{
return ruleId_;
}
void PutResourceMetricRuleRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}
std::string PutResourceMetricRuleRequest::getEscalationsCriticalThreshold()const
{
return escalationsCriticalThreshold_;
}
void PutResourceMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold)
{
escalationsCriticalThreshold_ = escalationsCriticalThreshold;
setParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold);
}
std::string PutResourceMetricRuleRequest::getEscalationsInfoStatistics()const
{
return escalationsInfoStatistics_;
}
void PutResourceMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics)
{
escalationsInfoStatistics_ = escalationsInfoStatistics;
setParameter("EscalationsInfoStatistics", escalationsInfoStatistics);
}
std::string PutResourceMetricRuleRequest::getEscalationsInfoComparisonOperator()const
{
return escalationsInfoComparisonOperator_;
}
void PutResourceMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator)
{
escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator;
setParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator);
}
int PutResourceMetricRuleRequest::getSilenceTime()const
{
return silenceTime_;
}
void PutResourceMetricRuleRequest::setSilenceTime(int silenceTime)
{
silenceTime_ = silenceTime;
setParameter("SilenceTime", std::to_string(silenceTime));
}
Struct PutResourceMetricRuleRequest::getPrometheus()const
{
return prometheus_;
}
void PutResourceMetricRuleRequest::setPrometheus(const Struct& prometheus)
{
prometheus_ = prometheus;
setParameter("Prometheus", std::to_string(prometheus));
}
Struct PutResourceMetricRuleRequest::getCompositeExpression()const
{
return compositeExpression_;
}
void PutResourceMetricRuleRequest::setCompositeExpression(const Struct& compositeExpression)
{
compositeExpression_ = compositeExpression;
setParameter("CompositeExpression", std::to_string(compositeExpression));
}
std::string PutResourceMetricRuleRequest::getResources()const
{
return resources_;
@@ -258,17 +335,6 @@ void PutResourceMetricRuleRequest::setGroupBy(const std::string& groupBy)
setParameter("GroupBy", groupBy);
}
std::string PutResourceMetricRuleRequest::getGroupName()const
{
return groupName_;
}
void PutResourceMetricRuleRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
int PutResourceMetricRuleRequest::getEscalationsCriticalTimes()const
{
return escalationsCriticalTimes_;
@@ -313,28 +379,6 @@ void PutResourceMetricRuleRequest::set_Namespace(const std::string& _namespace)
setParameter("_Namespace", _namespace);
}
std::string PutResourceMetricRuleRequest::getInterval()const
{
return interval_;
}
void PutResourceMetricRuleRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string PutResourceMetricRuleRequest::getRuleId()const
{
return ruleId_;
}
void PutResourceMetricRuleRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}
std::string PutResourceMetricRuleRequest::getEscalationsCriticalComparisonOperator()const
{
return escalationsCriticalComparisonOperator_;
@@ -346,14 +390,3 @@ void PutResourceMetricRuleRequest::setEscalationsCriticalComparisonOperator(cons
setParameter("EscalationsCriticalComparisonOperator", escalationsCriticalComparisonOperator);
}
std::string PutResourceMetricRuleRequest::getEscalationsCriticalThreshold()const
{
return escalationsCriticalThreshold_;
}
void PutResourceMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold)
{
escalationsCriticalThreshold_ = escalationsCriticalThreshold;
setParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold);
}

View File

@@ -61,6 +61,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/CreateDataServiceGroupResult.h
include/alibabacloud/dataworks-public/model/CreateDataSourceRequest.h
include/alibabacloud/dataworks-public/model/CreateDataSourceResult.h
include/alibabacloud/dataworks-public/model/CreateExportMigrationRequest.h
include/alibabacloud/dataworks-public/model/CreateExportMigrationResult.h
include/alibabacloud/dataworks-public/model/CreateFileRequest.h
include/alibabacloud/dataworks-public/model/CreateFileResult.h
include/alibabacloud/dataworks-public/model/CreateFolderRequest.h
@@ -195,6 +197,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/GetFileVersionResult.h
include/alibabacloud/dataworks-public/model/GetFolderRequest.h
include/alibabacloud/dataworks-public/model/GetFolderResult.h
include/alibabacloud/dataworks-public/model/GetIDEEventDetailRequest.h
include/alibabacloud/dataworks-public/model/GetIDEEventDetailResult.h
include/alibabacloud/dataworks-public/model/GetInstanceRequest.h
include/alibabacloud/dataworks-public/model/GetInstanceResult.h
include/alibabacloud/dataworks-public/model/GetInstanceConsumeTimeRankRequest.h
@@ -241,6 +245,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/GetMetaTableThemeLevelResult.h
include/alibabacloud/dataworks-public/model/GetMigrationProcessRequest.h
include/alibabacloud/dataworks-public/model/GetMigrationProcessResult.h
include/alibabacloud/dataworks-public/model/GetMigrationSummaryRequest.h
include/alibabacloud/dataworks-public/model/GetMigrationSummaryResult.h
include/alibabacloud/dataworks-public/model/GetNodeRequest.h
include/alibabacloud/dataworks-public/model/GetNodeResult.h
include/alibabacloud/dataworks-public/model/GetNodeChildrenRequest.h
@@ -301,6 +307,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/ListDIProjectConfigResult.h
include/alibabacloud/dataworks-public/model/ListDISyncTasksRequest.h
include/alibabacloud/dataworks-public/model/ListDISyncTasksResult.h
include/alibabacloud/dataworks-public/model/ListDagsRequest.h
include/alibabacloud/dataworks-public/model/ListDagsResult.h
include/alibabacloud/dataworks-public/model/ListDataServiceApiAuthoritiesRequest.h
include/alibabacloud/dataworks-public/model/ListDataServiceApiAuthoritiesResult.h
include/alibabacloud/dataworks-public/model/ListDataServiceApisRequest.h
@@ -317,6 +325,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/ListDataServicePublishedApisResult.h
include/alibabacloud/dataworks-public/model/ListDataSourcesRequest.h
include/alibabacloud/dataworks-public/model/ListDataSourcesResult.h
include/alibabacloud/dataworks-public/model/ListDeploymentsRequest.h
include/alibabacloud/dataworks-public/model/ListDeploymentsResult.h
include/alibabacloud/dataworks-public/model/ListFileTypeRequest.h
include/alibabacloud/dataworks-public/model/ListFileTypeResult.h
include/alibabacloud/dataworks-public/model/ListFileVersionsRequest.h
@@ -447,6 +457,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/UpdateFileResult.h
include/alibabacloud/dataworks-public/model/UpdateFolderRequest.h
include/alibabacloud/dataworks-public/model/UpdateFolderResult.h
include/alibabacloud/dataworks-public/model/UpdateIDEEventResultRequest.h
include/alibabacloud/dataworks-public/model/UpdateIDEEventResultResult.h
include/alibabacloud/dataworks-public/model/UpdateMetaCategoryRequest.h
include/alibabacloud/dataworks-public/model/UpdateMetaCategoryResult.h
include/alibabacloud/dataworks-public/model/UpdateMetaTableRequest.h
@@ -518,6 +530,8 @@ set(dataworks-public_src
src/model/CreateDataServiceGroupResult.cc
src/model/CreateDataSourceRequest.cc
src/model/CreateDataSourceResult.cc
src/model/CreateExportMigrationRequest.cc
src/model/CreateExportMigrationResult.cc
src/model/CreateFileRequest.cc
src/model/CreateFileResult.cc
src/model/CreateFolderRequest.cc
@@ -652,6 +666,8 @@ set(dataworks-public_src
src/model/GetFileVersionResult.cc
src/model/GetFolderRequest.cc
src/model/GetFolderResult.cc
src/model/GetIDEEventDetailRequest.cc
src/model/GetIDEEventDetailResult.cc
src/model/GetInstanceRequest.cc
src/model/GetInstanceResult.cc
src/model/GetInstanceConsumeTimeRankRequest.cc
@@ -698,6 +714,8 @@ set(dataworks-public_src
src/model/GetMetaTableThemeLevelResult.cc
src/model/GetMigrationProcessRequest.cc
src/model/GetMigrationProcessResult.cc
src/model/GetMigrationSummaryRequest.cc
src/model/GetMigrationSummaryResult.cc
src/model/GetNodeRequest.cc
src/model/GetNodeResult.cc
src/model/GetNodeChildrenRequest.cc
@@ -758,6 +776,8 @@ set(dataworks-public_src
src/model/ListDIProjectConfigResult.cc
src/model/ListDISyncTasksRequest.cc
src/model/ListDISyncTasksResult.cc
src/model/ListDagsRequest.cc
src/model/ListDagsResult.cc
src/model/ListDataServiceApiAuthoritiesRequest.cc
src/model/ListDataServiceApiAuthoritiesResult.cc
src/model/ListDataServiceApisRequest.cc
@@ -774,6 +794,8 @@ set(dataworks-public_src
src/model/ListDataServicePublishedApisResult.cc
src/model/ListDataSourcesRequest.cc
src/model/ListDataSourcesResult.cc
src/model/ListDeploymentsRequest.cc
src/model/ListDeploymentsResult.cc
src/model/ListFileTypeRequest.cc
src/model/ListFileTypeResult.cc
src/model/ListFileVersionsRequest.cc
@@ -904,6 +926,8 @@ set(dataworks-public_src
src/model/UpdateFileResult.cc
src/model/UpdateFolderRequest.cc
src/model/UpdateFolderResult.cc
src/model/UpdateIDEEventResultRequest.cc
src/model/UpdateIDEEventResultResult.cc
src/model/UpdateMetaCategoryRequest.cc
src/model/UpdateMetaCategoryResult.cc
src/model/UpdateMetaTableRequest.cc

View File

@@ -62,6 +62,8 @@
#include "model/CreateDataServiceGroupResult.h"
#include "model/CreateDataSourceRequest.h"
#include "model/CreateDataSourceResult.h"
#include "model/CreateExportMigrationRequest.h"
#include "model/CreateExportMigrationResult.h"
#include "model/CreateFileRequest.h"
#include "model/CreateFileResult.h"
#include "model/CreateFolderRequest.h"
@@ -196,6 +198,8 @@
#include "model/GetFileVersionResult.h"
#include "model/GetFolderRequest.h"
#include "model/GetFolderResult.h"
#include "model/GetIDEEventDetailRequest.h"
#include "model/GetIDEEventDetailResult.h"
#include "model/GetInstanceRequest.h"
#include "model/GetInstanceResult.h"
#include "model/GetInstanceConsumeTimeRankRequest.h"
@@ -242,6 +246,8 @@
#include "model/GetMetaTableThemeLevelResult.h"
#include "model/GetMigrationProcessRequest.h"
#include "model/GetMigrationProcessResult.h"
#include "model/GetMigrationSummaryRequest.h"
#include "model/GetMigrationSummaryResult.h"
#include "model/GetNodeRequest.h"
#include "model/GetNodeResult.h"
#include "model/GetNodeChildrenRequest.h"
@@ -302,6 +308,8 @@
#include "model/ListDIProjectConfigResult.h"
#include "model/ListDISyncTasksRequest.h"
#include "model/ListDISyncTasksResult.h"
#include "model/ListDagsRequest.h"
#include "model/ListDagsResult.h"
#include "model/ListDataServiceApiAuthoritiesRequest.h"
#include "model/ListDataServiceApiAuthoritiesResult.h"
#include "model/ListDataServiceApisRequest.h"
@@ -318,6 +326,8 @@
#include "model/ListDataServicePublishedApisResult.h"
#include "model/ListDataSourcesRequest.h"
#include "model/ListDataSourcesResult.h"
#include "model/ListDeploymentsRequest.h"
#include "model/ListDeploymentsResult.h"
#include "model/ListFileTypeRequest.h"
#include "model/ListFileTypeResult.h"
#include "model/ListFileVersionsRequest.h"
@@ -448,6 +458,8 @@
#include "model/UpdateFileResult.h"
#include "model/UpdateFolderRequest.h"
#include "model/UpdateFolderResult.h"
#include "model/UpdateIDEEventResultRequest.h"
#include "model/UpdateIDEEventResultResult.h"
#include "model/UpdateMetaCategoryRequest.h"
#include "model/UpdateMetaCategoryResult.h"
#include "model/UpdateMetaTableRequest.h"
@@ -545,6 +557,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateDataSourceResult> CreateDataSourceOutcome;
typedef std::future<CreateDataSourceOutcome> CreateDataSourceOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateDataSourceRequest&, const CreateDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataSourceAsyncHandler;
typedef Outcome<Error, Model::CreateExportMigrationResult> CreateExportMigrationOutcome;
typedef std::future<CreateExportMigrationOutcome> CreateExportMigrationOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateExportMigrationRequest&, const CreateExportMigrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateExportMigrationAsyncHandler;
typedef Outcome<Error, Model::CreateFileResult> CreateFileOutcome;
typedef std::future<CreateFileOutcome> CreateFileOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::CreateFileRequest&, const CreateFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileAsyncHandler;
@@ -746,6 +761,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetFolderResult> GetFolderOutcome;
typedef std::future<GetFolderOutcome> GetFolderOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetFolderRequest&, const GetFolderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFolderAsyncHandler;
typedef Outcome<Error, Model::GetIDEEventDetailResult> GetIDEEventDetailOutcome;
typedef std::future<GetIDEEventDetailOutcome> GetIDEEventDetailOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetIDEEventDetailRequest&, const GetIDEEventDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetIDEEventDetailAsyncHandler;
typedef Outcome<Error, Model::GetInstanceResult> GetInstanceOutcome;
typedef std::future<GetInstanceOutcome> GetInstanceOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetInstanceRequest&, const GetInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceAsyncHandler;
@@ -815,6 +833,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetMigrationProcessResult> GetMigrationProcessOutcome;
typedef std::future<GetMigrationProcessOutcome> GetMigrationProcessOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetMigrationProcessRequest&, const GetMigrationProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationProcessAsyncHandler;
typedef Outcome<Error, Model::GetMigrationSummaryResult> GetMigrationSummaryOutcome;
typedef std::future<GetMigrationSummaryOutcome> GetMigrationSummaryOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetMigrationSummaryRequest&, const GetMigrationSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationSummaryAsyncHandler;
typedef Outcome<Error, Model::GetNodeResult> GetNodeOutcome;
typedef std::future<GetNodeOutcome> GetNodeOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::GetNodeRequest&, const GetNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNodeAsyncHandler;
@@ -905,6 +926,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListDISyncTasksResult> ListDISyncTasksOutcome;
typedef std::future<ListDISyncTasksOutcome> ListDISyncTasksOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListDISyncTasksRequest&, const ListDISyncTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDISyncTasksAsyncHandler;
typedef Outcome<Error, Model::ListDagsResult> ListDagsOutcome;
typedef std::future<ListDagsOutcome> ListDagsOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListDagsRequest&, const ListDagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDagsAsyncHandler;
typedef Outcome<Error, Model::ListDataServiceApiAuthoritiesResult> ListDataServiceApiAuthoritiesOutcome;
typedef std::future<ListDataServiceApiAuthoritiesOutcome> ListDataServiceApiAuthoritiesOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListDataServiceApiAuthoritiesRequest&, const ListDataServiceApiAuthoritiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataServiceApiAuthoritiesAsyncHandler;
@@ -929,6 +953,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListDataSourcesResult> ListDataSourcesOutcome;
typedef std::future<ListDataSourcesOutcome> ListDataSourcesOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListDataSourcesRequest&, const ListDataSourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataSourcesAsyncHandler;
typedef Outcome<Error, Model::ListDeploymentsResult> ListDeploymentsOutcome;
typedef std::future<ListDeploymentsOutcome> ListDeploymentsOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListDeploymentsRequest&, const ListDeploymentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeploymentsAsyncHandler;
typedef Outcome<Error, Model::ListFileTypeResult> ListFileTypeOutcome;
typedef std::future<ListFileTypeOutcome> ListFileTypeOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListFileTypeRequest&, const ListFileTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFileTypeAsyncHandler;
@@ -1124,6 +1151,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateFolderResult> UpdateFolderOutcome;
typedef std::future<UpdateFolderOutcome> UpdateFolderOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateFolderRequest&, const UpdateFolderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFolderAsyncHandler;
typedef Outcome<Error, Model::UpdateIDEEventResultResult> UpdateIDEEventResultOutcome;
typedef std::future<UpdateIDEEventResultOutcome> UpdateIDEEventResultOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateIDEEventResultRequest&, const UpdateIDEEventResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateIDEEventResultAsyncHandler;
typedef Outcome<Error, Model::UpdateMetaCategoryResult> UpdateMetaCategoryOutcome;
typedef std::future<UpdateMetaCategoryOutcome> UpdateMetaCategoryOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateMetaCategoryRequest&, const UpdateMetaCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMetaCategoryAsyncHandler;
@@ -1231,6 +1261,9 @@ namespace AlibabaCloud
CreateDataSourceOutcome createDataSource(const Model::CreateDataSourceRequest &request)const;
void createDataSourceAsync(const Model::CreateDataSourceRequest& request, const CreateDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDataSourceOutcomeCallable createDataSourceCallable(const Model::CreateDataSourceRequest& request) const;
CreateExportMigrationOutcome createExportMigration(const Model::CreateExportMigrationRequest &request)const;
void createExportMigrationAsync(const Model::CreateExportMigrationRequest& request, const CreateExportMigrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateExportMigrationOutcomeCallable createExportMigrationCallable(const Model::CreateExportMigrationRequest& request) const;
CreateFileOutcome createFile(const Model::CreateFileRequest &request)const;
void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const;
@@ -1432,6 +1465,9 @@ namespace AlibabaCloud
GetFolderOutcome getFolder(const Model::GetFolderRequest &request)const;
void getFolderAsync(const Model::GetFolderRequest& request, const GetFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFolderOutcomeCallable getFolderCallable(const Model::GetFolderRequest& request) const;
GetIDEEventDetailOutcome getIDEEventDetail(const Model::GetIDEEventDetailRequest &request)const;
void getIDEEventDetailAsync(const Model::GetIDEEventDetailRequest& request, const GetIDEEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetIDEEventDetailOutcomeCallable getIDEEventDetailCallable(const Model::GetIDEEventDetailRequest& request) const;
GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const;
void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const;
@@ -1501,6 +1537,9 @@ namespace AlibabaCloud
GetMigrationProcessOutcome getMigrationProcess(const Model::GetMigrationProcessRequest &request)const;
void getMigrationProcessAsync(const Model::GetMigrationProcessRequest& request, const GetMigrationProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMigrationProcessOutcomeCallable getMigrationProcessCallable(const Model::GetMigrationProcessRequest& request) const;
GetMigrationSummaryOutcome getMigrationSummary(const Model::GetMigrationSummaryRequest &request)const;
void getMigrationSummaryAsync(const Model::GetMigrationSummaryRequest& request, const GetMigrationSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMigrationSummaryOutcomeCallable getMigrationSummaryCallable(const Model::GetMigrationSummaryRequest& request) const;
GetNodeOutcome getNode(const Model::GetNodeRequest &request)const;
void getNodeAsync(const Model::GetNodeRequest& request, const GetNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNodeOutcomeCallable getNodeCallable(const Model::GetNodeRequest& request) const;
@@ -1591,6 +1630,9 @@ namespace AlibabaCloud
ListDISyncTasksOutcome listDISyncTasks(const Model::ListDISyncTasksRequest &request)const;
void listDISyncTasksAsync(const Model::ListDISyncTasksRequest& request, const ListDISyncTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDISyncTasksOutcomeCallable listDISyncTasksCallable(const Model::ListDISyncTasksRequest& request) const;
ListDagsOutcome listDags(const Model::ListDagsRequest &request)const;
void listDagsAsync(const Model::ListDagsRequest& request, const ListDagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDagsOutcomeCallable listDagsCallable(const Model::ListDagsRequest& request) const;
ListDataServiceApiAuthoritiesOutcome listDataServiceApiAuthorities(const Model::ListDataServiceApiAuthoritiesRequest &request)const;
void listDataServiceApiAuthoritiesAsync(const Model::ListDataServiceApiAuthoritiesRequest& request, const ListDataServiceApiAuthoritiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDataServiceApiAuthoritiesOutcomeCallable listDataServiceApiAuthoritiesCallable(const Model::ListDataServiceApiAuthoritiesRequest& request) const;
@@ -1615,6 +1657,9 @@ namespace AlibabaCloud
ListDataSourcesOutcome listDataSources(const Model::ListDataSourcesRequest &request)const;
void listDataSourcesAsync(const Model::ListDataSourcesRequest& request, const ListDataSourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDataSourcesOutcomeCallable listDataSourcesCallable(const Model::ListDataSourcesRequest& request) const;
ListDeploymentsOutcome listDeployments(const Model::ListDeploymentsRequest &request)const;
void listDeploymentsAsync(const Model::ListDeploymentsRequest& request, const ListDeploymentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDeploymentsOutcomeCallable listDeploymentsCallable(const Model::ListDeploymentsRequest& request) const;
ListFileTypeOutcome listFileType(const Model::ListFileTypeRequest &request)const;
void listFileTypeAsync(const Model::ListFileTypeRequest& request, const ListFileTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFileTypeOutcomeCallable listFileTypeCallable(const Model::ListFileTypeRequest& request) const;
@@ -1810,6 +1855,9 @@ namespace AlibabaCloud
UpdateFolderOutcome updateFolder(const Model::UpdateFolderRequest &request)const;
void updateFolderAsync(const Model::UpdateFolderRequest& request, const UpdateFolderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFolderOutcomeCallable updateFolderCallable(const Model::UpdateFolderRequest& request) const;
UpdateIDEEventResultOutcome updateIDEEventResult(const Model::UpdateIDEEventResultRequest &request)const;
void updateIDEEventResultAsync(const Model::UpdateIDEEventResultRequest& request, const UpdateIDEEventResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateIDEEventResultOutcomeCallable updateIDEEventResultCallable(const Model::UpdateIDEEventResultRequest& request) const;
UpdateMetaCategoryOutcome updateMetaCategory(const Model::UpdateMetaCategoryRequest &request)const;
void updateMetaCategoryAsync(const Model::UpdateMetaCategoryRequest& request, const UpdateMetaCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMetaCategoryOutcomeCallable updateMetaCategoryCallable(const Model::UpdateMetaCategoryRequest& request) const;

View 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.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateExportMigrationRequest : public RpcServiceRequest
{
public:
CreateExportMigrationRequest();
~CreateExportMigrationRequest();
std::string getExportObjectStatus()const;
void setExportObjectStatus(const std::string& exportObjectStatus);
std::string getExportMode()const;
void setExportMode(const std::string& exportMode);
long getIncrementalSince()const;
void setIncrementalSince(long incrementalSince);
std::string getName()const;
void setName(const std::string& name);
std::string getDescription()const;
void setDescription(const std::string& description);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string exportObjectStatus_;
std::string exportMode_;
long incrementalSince_;
std::string name_;
std::string description_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateExportMigrationResult : public ServiceResult
{
public:
CreateExportMigrationResult();
explicit CreateExportMigrationResult(const std::string &payload);
~CreateExportMigrationResult();
long getData()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long data_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEEXPORTMIGRATIONRESULT_H_

View File

@@ -35,17 +35,18 @@ namespace AlibabaCloud
struct Data
{
std::string status;
long gmtdate;
long modifyTime;
std::string type;
long finishTime;
long createTime;
long projectId;
long startTime;
std::string createUser;
long dagId;
std::string name;
long bizdate;
std::string name;
long gmtdate;
std::string type;
long opSeq;
long finishTime;
};

View 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_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetIDEEventDetailRequest : public RpcServiceRequest
{
public:
GetIDEEventDetailRequest();
~GetIDEEventDetailRequest();
std::string getMessageId()const;
void setMessageId(const std::string& messageId);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string messageId_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILREQUEST_H_

View File

@@ -0,0 +1,145 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetIDEEventDetailResult : public ServiceResult
{
public:
struct EventDetail
{
struct FileExecutionCommand
{
std::string dataSourceName;
long fileType;
std::string content;
long fileId;
};
struct DeletedFile
{
long parentFileId;
std::string owner;
long fileType;
std::string dataSourceName;
std::string content;
long currentVersion;
std::string fileName;
std::string useType;
long nodeId;
long fileId;
std::string folderId;
long businessId;
};
struct CommittedFile
{
struct FilePropertyContent
{
long parentFileId;
std::string owner;
std::string dataSourceName;
long currentVersion;
std::string folderId;
long businessId;
};
struct NodeConfiguration
{
struct Input
{
std::string input;
std::string parseType;
};
struct Output
{
std::string output;
std::string refTableName;
};
std::string cycleType;
std::vector<Input> inputList;
std::string dependentNodeIdList;
long resourceGroupId;
long autoRerunIntervalMillis;
std::string dependentType;
long autoRerunTimes;
std::string rerunMode;
std::string schedulerType;
std::string paraValue;
std::string cronExpress;
std::vector<Output> outputList;
};
std::string committor;
std::string comment;
long fileType;
std::string changeType;
std::string content;
FilePropertyContent filePropertyContent;
std::string fileName;
std::string useType;
long nodeId;
long fileId;
NodeConfiguration nodeConfiguration;
};
struct TableModel
{
struct Column
{
std::string columnName;
std::string comment;
std::string columnType;
bool isPartitionColumn;
};
long lifeCycle;
std::string tableName;
std::string comment;
std::string dataSourceName;
std::vector<Column> columns;
std::string env;
std::string location;
};
CommittedFile committedFile;
DeletedFile deletedFile;
FileExecutionCommand fileExecutionCommand;
TableModel tableModel;
};
GetIDEEventDetailResult();
explicit GetIDEEventDetailResult(const std::string &payload);
~GetIDEEventDetailResult();
EventDetail getEventDetail()const;
protected:
void parse(const std::string &payload);
private:
EventDetail eventDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETIDEEVENTDETAILRESULT_H_

View File

@@ -40,11 +40,11 @@ namespace AlibabaCloud
std::string nodeName;
std::string paramValues;
long dagId;
long bizdate;
long beginRunningTime;
long bizdate;
long finishTime;
std::string dqcDescription;
std::string taskType;
std::string dqcDescription;
long businessId;
std::string status;
int taskRerunTime;
@@ -53,6 +53,7 @@ namespace AlibabaCloud
int dqcType;
long createTime;
std::string connection;
std::string createUser;
long relatedFlowId;
long cycTime;
long beginWaitTimeTime;

View File

@@ -37,14 +37,20 @@ namespace AlibabaCloud
std::string getProjectEnv()const;
void setProjectEnv(const std::string& projectEnv);
std::string getDagType()const;
void setDagType(const std::string& dagType);
std::string getBizDate()const;
void setBizDate(const std::string& bizDate);
std::string getSchedulerType()const;
void setSchedulerType(const std::string& schedulerType);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string projectEnv_;
std::string dagType_;
std::string bizDate_;
std::string schedulerType_;
long projectId_;
};

View File

@@ -35,11 +35,11 @@ namespace AlibabaCloud
struct StatusCount
{
int totalCount;
int runningCount;
int failureCount;
int runningCount;
int waitResCount;
int notRunCount;
int successCount;
int notRunCount;
int waitTimeCount;
};

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::string nodeName;
long createTime;
std::string paramValues;
std::string createUser;
long cycTime;
long beginWaitTimeTime;
long dagId;

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
bool isPartitionColumn;
int position;
bool isForeignKey;
long relationCount;
std::string caption;
bool isPrimaryKey;
};

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
std::string tableName;
std::string tableGuid;
long createTimestamp;
};
std::vector<DataEntityListItem> dataEntityList;
bool hasNext;

View 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_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetMigrationSummaryRequest : public RpcServiceRequest
{
public:
GetMigrationSummaryRequest();
~GetMigrationSummaryRequest();
long getMigrationId()const;
void setMigrationId(long migrationId);
long getProjectId()const;
void setProjectId(long projectId);
private:
long migrationId_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetMigrationSummaryResult : public ServiceResult
{
public:
struct Data
{
std::string status;
long gmtCreate;
long gmtModified;
long projectId;
std::string createUser;
long migrationId;
std::string opUser;
std::string name;
std::string downloadUrl;
};
GetMigrationSummaryResult();
explicit GetMigrationSummaryResult(const std::string &payload);
~GetMigrationSummaryResult();
Data getData()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETMIGRATIONSUMMARYRESULT_H_

View File

@@ -41,8 +41,8 @@ namespace AlibabaCloud
std::string ownerId;
std::string nodeName;
int priority;
long nodeId;
long projectId;
long nodeId;
std::string schedulerType;
std::string programType;
std::string cronExpress;

View File

@@ -41,8 +41,8 @@ namespace AlibabaCloud
std::string ownerId;
std::string nodeName;
int priority;
long nodeId;
long projectId;
long nodeId;
std::string schedulerType;
std::string programType;
std::string cronExpress;

View File

@@ -50,13 +50,13 @@ namespace AlibabaCloud
bool fixCheck;
int blockType;
std::string onDutyAccountName;
std::string templateName;
int predictType;
long id;
std::string templateName;
std::string methodName;
long id;
std::string property;
int templateId;
std::string ruleName;
int templateId;
};

View 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_DATAWORKS_PUBLIC_MODEL_LISTDAGSREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDAGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDagsRequest : public RpcServiceRequest
{
public:
ListDagsRequest();
~ListDagsRequest();
std::string getProjectEnv()const;
void setProjectEnv(const std::string& projectEnv);
long getOpSeq()const;
void setOpSeq(long opSeq);
private:
std::string projectEnv_;
long opSeq_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDAGSREQUEST_H_

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDAGSRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDAGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDagsResult : public ServiceResult
{
public:
struct Data
{
struct Dag
{
std::string status;
long modifyTime;
long createTime;
long projectId;
long startTime;
std::string createUser;
long dagId;
long bizdate;
std::string name;
long gmtdate;
std::string type;
long opSeq;
long finishTime;
};
std::vector<Dag> dags;
};
ListDagsResult();
explicit ListDagsResult(const std::string &payload);
~ListDagsResult();
int getHttpStatusCode()const;
Data getData()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
Data data_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDAGSRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDeploymentsRequest : public RpcServiceRequest
{
public:
ListDeploymentsRequest();
~ListDeploymentsRequest();
std::string getCreator()const;
void setCreator(const std::string& creator);
long getEndCreateTime()const;
void setEndCreateTime(long endCreateTime);
std::string getProjectIdentifier()const;
void setProjectIdentifier(const std::string& projectIdentifier);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getExecutor()const;
void setExecutor(const std::string& executor);
int getPageSize()const;
void setPageSize(int pageSize);
long getEndExecuteTime()const;
void setEndExecuteTime(long endExecuteTime);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
long getProjectId()const;
void setProjectId(long projectId);
int getStatus()const;
void setStatus(int status);
private:
std::string creator_;
long endCreateTime_;
std::string projectIdentifier_;
int pageNumber_;
std::string executor_;
int pageSize_;
long endExecuteTime_;
std::string keyword_;
long projectId_;
int status_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListDeploymentsResult : public ServiceResult
{
public:
struct Data
{
struct Deployment
{
int status;
std::string executor;
long executeTime;
long createTime;
std::string creator;
long id;
std::string errorMessage;
std::string name;
};
long totalCount;
long pageSize;
long pageNumber;
std::vector<Deployment> deployments;
};
ListDeploymentsResult();
explicit ListDeploymentsResult(const std::string &payload);
~ListDeploymentsResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTDEPLOYMENTSRESULT_H_

View File

@@ -42,11 +42,11 @@ namespace AlibabaCloud
std::string nodeName;
std::string paramValues;
long dagId;
long bizdate;
long beginRunningTime;
long bizdate;
long finishTime;
std::string dqcDescription;
std::string taskType;
std::string dqcDescription;
long businessId;
std::string status;
int taskRerunTime;
@@ -55,6 +55,7 @@ namespace AlibabaCloud
int dqcType;
long createTime;
std::string connection;
std::string createUser;
long relatedFlowId;
long cycTime;
long beginWaitTimeTime;

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::string nodeName;
long createTime;
std::string paramValues;
std::string createUser;
long cycTime;
long beginWaitTimeTime;
long dagId;

View File

@@ -40,44 +40,44 @@ namespace AlibabaCloud
{
int singleCheckResult;
float value;
std::string bizDate;
std::string discreteProperty;
std::string bizDate;
float threshold;
};
struct SampleValueItem
{
float value;
std::string bizDate;
std::string discreteProperty;
std::string bizDate;
};
std::string op;
std::vector<RuleChecksItem::SampleValueItem> sampleValue;
std::string taskId;
long endTime;
bool discreteCheck;
std::string checkerName;
float expectValue;
bool discreteCheck;
long endTime;
std::string projectName;
float expectValue;
std::vector<RuleChecksItem::ReferenceValueItem> referenceValue;
int ruleId;
float warningThreshold;
std::string whereCondition;
int ruleId;
long beginTime;
std::string whereCondition;
int checkResultStatus;
std::string matchExpression;
float upperValue;
bool isPrediction;
int checkResult;
std::string templateName;
std::string timeCost;
bool fixedCheck;
std::string timeCost;
std::string methodName;
std::string resultString;
std::string property;
std::string dateType;
long bizDate;
int templateId;
std::string ruleName;
int templateId;
std::string comment;
float criticalThreshold;
std::string externalId;
@@ -88,8 +88,8 @@ namespace AlibabaCloud
int entityId;
std::string tableName;
int blockType;
int id;
std::string actualExpression;
int id;
float lowerValue;
};
long totalCount;

View File

@@ -40,44 +40,44 @@ namespace AlibabaCloud
{
int singleCheckResult;
float value;
std::string bizDate;
std::string discreteProperty;
std::string bizDate;
float threshold;
};
struct SampleValueItem
{
float value;
std::string bizDate;
std::string discreteProperty;
std::string bizDate;
};
std::string op;
std::vector<RuleChecksItem::SampleValueItem> sampleValue;
std::string taskId;
long endTime;
bool discreteCheck;
std::string checkerName;
float expectValue;
bool discreteCheck;
long endTime;
std::string projectName;
float expectValue;
std::vector<RuleChecksItem::ReferenceValueItem> referenceValue;
int ruleId;
float warningThreshold;
std::string whereCondition;
int ruleId;
long beginTime;
std::string whereCondition;
int checkResultStatus;
std::string matchExpression;
float upperValue;
bool isPrediction;
int checkResult;
std::string templateName;
std::string timeCost;
bool fixedCheck;
std::string timeCost;
std::string methodName;
std::string resultString;
std::string property;
std::string dateType;
long bizDate;
int templateId;
std::string ruleName;
int templateId;
std::string comment;
float criticalThreshold;
std::string externalId;
@@ -88,8 +88,8 @@ namespace AlibabaCloud
int entityId;
std::string tableName;
int blockType;
int id;
std::string actualExpression;
int id;
float lowerValue;
};
long totalCount;

View File

@@ -49,6 +49,7 @@ namespace AlibabaCloud
std::string methodName;
std::string property;
int templateId;
std::string ruleName;
std::string comment;
std::string criticalThreshold;
std::string trend;

Some files were not shown because too many files have changed in this diff Show More