Compare commits

..

16 Commits

Author SHA1 Message Date
sdk-team
689a48e2ef Supported AndroidMessageOppoCategory, AndroidMessageOppoNotifyLevel for Push and MassPush. 2024-11-13 03:46:58 +00:00
sdk-team
c32d539146 Generated 2015-12-01 for Dds. 2024-11-05 11:37:35 +00:00
sdk-team
348726cb09 Support Ipv4LocalAddresses and Ipv6LocalAddresses. 2024-11-04 07:48:42 +00:00
sdk-team
5edf5643a2 DescribeInstanceTypes add CpuOptions. 2024-10-31 12:18:01 +00:00
sdk-team
5cdab50afe Update to support new apis. 2024-10-30 09:39:06 +00:00
sdk-team
cb3e058f3f Update to support new apis. 2024-10-30 09:14:35 +00:00
sdk-team
e2c46d1143 Generated 2023-01-20 for csas. 2024-10-30 08:34:07 +00:00
sdk-team
3b852794f3 Support describe and modify NVMe on instance. 2024-10-30 02:27:39 +00:00
sdk-team
16d6566bf7 Support Fileset for BmCPFS. 2024-10-28 06:32:17 +00:00
sdk-team
2758ad51c0 Generated 2017-11-10 for Ens. 2024-10-25 02:57:00 +00:00
sdk-team
51939b77c4 Publish sdk. 2024-10-24 09:37:26 +00:00
sdk-team
3f0e3c3e9a Update Endpoint. 2024-10-23 09:57:47 +00:00
sdk-team
c13c576175 ListUsers,ListUserBasicInfos api新增支持status字段 2024-10-23 09:18:06 +00:00
sdk-team
ef4cdc8756 Add openapi StartEaiJupyter. 2024-10-22 03:02:13 +00:00
sdk-team
61a4b220eb Gwlb Open API released. 2024-10-18 03:12:25 +00:00
sdk-team
183190fd14 基于转移码的转出接口 2024-10-17 11:52:52 +00:00
798 changed files with 36233 additions and 1471 deletions

View File

@@ -1 +1 @@
1.36.2000
1.36.2016

View File

@@ -33,6 +33,8 @@ set(alb_public_header_model
include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h
include/alibabacloud/alb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h
include/alibabacloud/alb/model/CancelShiftLoadBalancerZonesRequest.h
include/alibabacloud/alb/model/CancelShiftLoadBalancerZonesResult.h
include/alibabacloud/alb/model/CreateAScriptsRequest.h
include/alibabacloud/alb/model/CreateAScriptsResult.h
include/alibabacloud/alb/model/CreateAclRequest.h
@@ -135,6 +137,10 @@ set(alb_public_header_model
include/alibabacloud/alb/model/ListTagResourcesResult.h
include/alibabacloud/alb/model/ListTagValuesRequest.h
include/alibabacloud/alb/model/ListTagValuesResult.h
include/alibabacloud/alb/model/LoadBalancerJoinSecurityGroupRequest.h
include/alibabacloud/alb/model/LoadBalancerJoinSecurityGroupResult.h
include/alibabacloud/alb/model/LoadBalancerLeaveSecurityGroupRequest.h
include/alibabacloud/alb/model/LoadBalancerLeaveSecurityGroupResult.h
include/alibabacloud/alb/model/MoveResourceGroupRequest.h
include/alibabacloud/alb/model/MoveResourceGroupResult.h
include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.h
@@ -145,6 +151,8 @@ set(alb_public_header_model
include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.h
include/alibabacloud/alb/model/StartListenerRequest.h
include/alibabacloud/alb/model/StartListenerResult.h
include/alibabacloud/alb/model/StartShiftLoadBalancerZonesRequest.h
include/alibabacloud/alb/model/StartShiftLoadBalancerZonesResult.h
include/alibabacloud/alb/model/StopListenerRequest.h
include/alibabacloud/alb/model/StopListenerResult.h
include/alibabacloud/alb/model/TagResourcesRequest.h
@@ -194,6 +202,8 @@ set(alb_src
src/model/AssociateAdditionalCertificatesWithListenerResult.cc
src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc
src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc
src/model/CancelShiftLoadBalancerZonesRequest.cc
src/model/CancelShiftLoadBalancerZonesResult.cc
src/model/CreateAScriptsRequest.cc
src/model/CreateAScriptsResult.cc
src/model/CreateAclRequest.cc
@@ -296,6 +306,10 @@ set(alb_src
src/model/ListTagResourcesResult.cc
src/model/ListTagValuesRequest.cc
src/model/ListTagValuesResult.cc
src/model/LoadBalancerJoinSecurityGroupRequest.cc
src/model/LoadBalancerJoinSecurityGroupResult.cc
src/model/LoadBalancerLeaveSecurityGroupRequest.cc
src/model/LoadBalancerLeaveSecurityGroupResult.cc
src/model/MoveResourceGroupRequest.cc
src/model/MoveResourceGroupResult.cc
src/model/RemoveEntriesFromAclRequest.cc
@@ -306,6 +320,8 @@ set(alb_src
src/model/ReplaceServersInServerGroupResult.cc
src/model/StartListenerRequest.cc
src/model/StartListenerResult.cc
src/model/StartShiftLoadBalancerZonesRequest.cc
src/model/StartShiftLoadBalancerZonesResult.cc
src/model/StopListenerRequest.cc
src/model/StopListenerResult.cc
src/model/TagResourcesRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/AssociateAdditionalCertificatesWithListenerResult.h"
#include "model/AttachCommonBandwidthPackageToLoadBalancerRequest.h"
#include "model/AttachCommonBandwidthPackageToLoadBalancerResult.h"
#include "model/CancelShiftLoadBalancerZonesRequest.h"
#include "model/CancelShiftLoadBalancerZonesResult.h"
#include "model/CreateAScriptsRequest.h"
#include "model/CreateAScriptsResult.h"
#include "model/CreateAclRequest.h"
@@ -136,6 +138,10 @@
#include "model/ListTagResourcesResult.h"
#include "model/ListTagValuesRequest.h"
#include "model/ListTagValuesResult.h"
#include "model/LoadBalancerJoinSecurityGroupRequest.h"
#include "model/LoadBalancerJoinSecurityGroupResult.h"
#include "model/LoadBalancerLeaveSecurityGroupRequest.h"
#include "model/LoadBalancerLeaveSecurityGroupResult.h"
#include "model/MoveResourceGroupRequest.h"
#include "model/MoveResourceGroupResult.h"
#include "model/RemoveEntriesFromAclRequest.h"
@@ -146,6 +152,8 @@
#include "model/ReplaceServersInServerGroupResult.h"
#include "model/StartListenerRequest.h"
#include "model/StartListenerResult.h"
#include "model/StartShiftLoadBalancerZonesRequest.h"
#include "model/StartShiftLoadBalancerZonesResult.h"
#include "model/StopListenerRequest.h"
#include "model/StopListenerResult.h"
#include "model/TagResourcesRequest.h"
@@ -207,6 +215,9 @@ namespace AlibabaCloud
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::CancelShiftLoadBalancerZonesResult> CancelShiftLoadBalancerZonesOutcome;
typedef std::future<CancelShiftLoadBalancerZonesOutcome> CancelShiftLoadBalancerZonesOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::CancelShiftLoadBalancerZonesRequest&, const CancelShiftLoadBalancerZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelShiftLoadBalancerZonesAsyncHandler;
typedef Outcome<Error, Model::CreateAScriptsResult> CreateAScriptsOutcome;
typedef std::future<CreateAScriptsOutcome> CreateAScriptsOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::CreateAScriptsRequest&, const CreateAScriptsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAScriptsAsyncHandler;
@@ -360,6 +371,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListTagValuesResult> ListTagValuesOutcome;
typedef std::future<ListTagValuesOutcome> ListTagValuesOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::ListTagValuesRequest&, const ListTagValuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagValuesAsyncHandler;
typedef Outcome<Error, Model::LoadBalancerJoinSecurityGroupResult> LoadBalancerJoinSecurityGroupOutcome;
typedef std::future<LoadBalancerJoinSecurityGroupOutcome> LoadBalancerJoinSecurityGroupOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::LoadBalancerJoinSecurityGroupRequest&, const LoadBalancerJoinSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LoadBalancerJoinSecurityGroupAsyncHandler;
typedef Outcome<Error, Model::LoadBalancerLeaveSecurityGroupResult> LoadBalancerLeaveSecurityGroupOutcome;
typedef std::future<LoadBalancerLeaveSecurityGroupOutcome> LoadBalancerLeaveSecurityGroupOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::LoadBalancerLeaveSecurityGroupRequest&, const LoadBalancerLeaveSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LoadBalancerLeaveSecurityGroupAsyncHandler;
typedef Outcome<Error, Model::MoveResourceGroupResult> MoveResourceGroupOutcome;
typedef std::future<MoveResourceGroupOutcome> MoveResourceGroupOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::MoveResourceGroupRequest&, const MoveResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveResourceGroupAsyncHandler;
@@ -375,6 +392,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StartListenerResult> StartListenerOutcome;
typedef std::future<StartListenerOutcome> StartListenerOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::StartListenerRequest&, const StartListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartListenerAsyncHandler;
typedef Outcome<Error, Model::StartShiftLoadBalancerZonesResult> StartShiftLoadBalancerZonesOutcome;
typedef std::future<StartShiftLoadBalancerZonesOutcome> StartShiftLoadBalancerZonesOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::StartShiftLoadBalancerZonesRequest&, const StartShiftLoadBalancerZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartShiftLoadBalancerZonesAsyncHandler;
typedef Outcome<Error, Model::StopListenerResult> StopListenerOutcome;
typedef std::future<StopListenerOutcome> StopListenerOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::StopListenerRequest&, const StopListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopListenerAsyncHandler;
@@ -449,6 +469,9 @@ namespace AlibabaCloud
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;
CancelShiftLoadBalancerZonesOutcome cancelShiftLoadBalancerZones(const Model::CancelShiftLoadBalancerZonesRequest &request)const;
void cancelShiftLoadBalancerZonesAsync(const Model::CancelShiftLoadBalancerZonesRequest& request, const CancelShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CancelShiftLoadBalancerZonesOutcomeCallable cancelShiftLoadBalancerZonesCallable(const Model::CancelShiftLoadBalancerZonesRequest& request) const;
CreateAScriptsOutcome createAScripts(const Model::CreateAScriptsRequest &request)const;
void createAScriptsAsync(const Model::CreateAScriptsRequest& request, const CreateAScriptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAScriptsOutcomeCallable createAScriptsCallable(const Model::CreateAScriptsRequest& request) const;
@@ -602,6 +625,12 @@ namespace AlibabaCloud
ListTagValuesOutcome listTagValues(const Model::ListTagValuesRequest &request)const;
void listTagValuesAsync(const Model::ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagValuesOutcomeCallable listTagValuesCallable(const Model::ListTagValuesRequest& request) const;
LoadBalancerJoinSecurityGroupOutcome loadBalancerJoinSecurityGroup(const Model::LoadBalancerJoinSecurityGroupRequest &request)const;
void loadBalancerJoinSecurityGroupAsync(const Model::LoadBalancerJoinSecurityGroupRequest& request, const LoadBalancerJoinSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LoadBalancerJoinSecurityGroupOutcomeCallable loadBalancerJoinSecurityGroupCallable(const Model::LoadBalancerJoinSecurityGroupRequest& request) const;
LoadBalancerLeaveSecurityGroupOutcome loadBalancerLeaveSecurityGroup(const Model::LoadBalancerLeaveSecurityGroupRequest &request)const;
void loadBalancerLeaveSecurityGroupAsync(const Model::LoadBalancerLeaveSecurityGroupRequest& request, const LoadBalancerLeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LoadBalancerLeaveSecurityGroupOutcomeCallable loadBalancerLeaveSecurityGroupCallable(const Model::LoadBalancerLeaveSecurityGroupRequest& request) const;
MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const;
void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const;
@@ -617,6 +646,9 @@ namespace AlibabaCloud
StartListenerOutcome startListener(const Model::StartListenerRequest &request)const;
void startListenerAsync(const Model::StartListenerRequest& request, const StartListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartListenerOutcomeCallable startListenerCallable(const Model::StartListenerRequest& request) const;
StartShiftLoadBalancerZonesOutcome startShiftLoadBalancerZones(const Model::StartShiftLoadBalancerZonesRequest &request)const;
void startShiftLoadBalancerZonesAsync(const Model::StartShiftLoadBalancerZonesRequest& request, const StartShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartShiftLoadBalancerZonesOutcomeCallable startShiftLoadBalancerZonesCallable(const Model::StartShiftLoadBalancerZonesRequest& request) const;
StopListenerOutcome stopListener(const Model::StopListenerRequest &request)const;
void stopListenerAsync(const Model::StopListenerRequest& request, const StopListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopListenerOutcomeCallable stopListenerCallable(const Model::StopListenerRequest& request) const;

View File

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

View File

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

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT CreateAclRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
CreateAclRequest();
~CreateAclRequest();
std::string getAclName() const;
@@ -38,6 +42,8 @@ public:
void setAddressIpVersion(const std::string &addressIpVersion);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getDryRun() const;
void setDryRun(bool dryRun);
@@ -46,6 +52,7 @@ private:
std::string clientToken_;
std::string addressIpVersion_;
std::string resourceGroupId_;
std::vector<Tag> tag_;
bool dryRun_;
};
} // namespace Model

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT CreateHealthCheckTemplateRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
CreateHealthCheckTemplateRequest();
~CreateHealthCheckTemplateRequest();
int getHealthCheckTimeout() const;
@@ -44,6 +48,8 @@ public:
void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled);
std::string getHealthCheckPath() const;
void setHealthCheckPath(const std::string &healthCheckPath);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getHealthCheckCodes() const;
void setHealthCheckCodes(const std::vector<std::string> &healthCheckCodes);
bool getDryRun() const;
@@ -71,6 +77,7 @@ private:
int healthyThreshold_;
bool healthCheckTcpFastCloseEnabled_;
std::string healthCheckPath_;
std::vector<Tag> tag_;
std::vector<std::string> healthCheckCodes_;
bool dryRun_;
std::string healthCheckMethod_;

View File

@@ -32,6 +32,10 @@ public:
bool quicUpgradeEnabled;
std::string quicListenerId;
};
struct Tag {
std::string value;
std::string key;
};
struct DefaultActions {
struct ForwardGroupConfig {
struct ServerGroupTuplesItem {
@@ -76,6 +80,8 @@ public:
void setQuicConfig(const QuicConfig &quicConfig);
bool getHttp2Enabled() const;
void setHttp2Enabled(bool http2Enabled);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<DefaultActions> getDefaultActions() const;
void setDefaultActions(const std::vector<DefaultActions> &defaultActions);
int getListenerPort() const;
@@ -108,6 +114,7 @@ private:
bool gzipEnabled_;
QuicConfig quicConfig_;
bool http2Enabled_;
std::vector<Tag> tag_;
std::vector<DefaultActions> defaultActions_;
int listenerPort_;
bool dryRun_;

View File

@@ -38,11 +38,16 @@ public:
int internetBandwidth;
std::string payType;
};
struct Tag {
std::string value;
std::string key;
};
struct ZoneMappings {
std::string vSwitchId;
std::string eipType;
std::string zoneId;
std::string allocationId;
std::string intranetAddress;
};
CreateLoadBalancerRequest();
~CreateLoadBalancerRequest();
@@ -64,6 +69,8 @@ public:
void setLoadBalancerName(const std::string &loadBalancerName);
std::string getAddressType() const;
void setAddressType(const std::string &addressType);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getAddressAllocatedMode() const;
void setAddressAllocatedMode(const std::string &addressAllocatedMode);
bool getDryRun() const;
@@ -83,6 +90,7 @@ private:
std::string resourceGroupId_;
std::string loadBalancerName_;
std::string addressType_;
std::vector<Tag> tag_;
std::string addressAllocatedMode_;
bool dryRun_;
std::vector<ZoneMappings> zoneMappings_;

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT CreateRuleRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
struct RuleActions {
struct FixedResponseConfig {
std::string httpCode;
@@ -174,6 +178,8 @@ public:
void setRuleName(const std::string &ruleName);
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getDirection() const;
void setDirection(const std::string &direction);
std::vector<RuleActions> getRuleActions() const;
@@ -189,6 +195,7 @@ private:
std::string clientToken_;
std::string ruleName_;
std::string listenerId_;
std::vector<Tag> tag_;
std::string direction_;
std::vector<RuleActions> ruleActions_;
std::vector<RuleConditions> ruleConditions_;

View File

@@ -90,6 +90,12 @@ public:
RuleConditionsItem ruleConditionsItem;
std::vector<RuleConditionsItem> ruleConditions;
std::string ruleName;
struct TagItem {
std::string value;
std::string key;
};
TagItem tagItem;
std::vector<TagItem> tag;
int priority;
struct RuleActionsItem {
struct FixedResponseConfig {

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT CreateSecurityPolicyRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
CreateSecurityPolicyRequest();
~CreateSecurityPolicyRequest();
std::string getClientToken() const;
@@ -36,6 +40,8 @@ public:
void setResourceGroupId(const std::string &resourceGroupId);
std::vector<std::string> getCiphers() const;
void setCiphers(const std::vector<std::string> &ciphers);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getTLSVersions() const;
void setTLSVersions(const std::vector<std::string> &tLSVersions);
std::string getSecurityPolicyName() const;
@@ -47,6 +53,7 @@ private:
std::string clientToken_;
std::string resourceGroupId_;
std::vector<std::string> ciphers_;
std::vector<Tag> tag_;
std::vector<std::string> tLSVersions_;
std::string securityPolicyName_;
bool dryRun_;

View File

@@ -46,12 +46,24 @@ public:
std::string healthCheckHttpVersion;
int healthCheckConnectPort;
};
struct SlowStartConfig {
int slowStartDuration;
bool slowStartEnabled;
};
struct Tag {
std::string value;
std::string key;
};
struct StickySessionConfig {
bool stickySessionEnabled;
std::string cookie;
int cookieTimeout;
std::string stickySessionType;
};
struct ConnectionDrainConfig {
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
struct UchConfig {
std::string type;
std::string value;
@@ -64,6 +76,8 @@ public:
void setClientToken(const std::string &clientToken);
HealthCheckConfig getHealthCheckConfig() const;
void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig);
SlowStartConfig getSlowStartConfig() const;
void setSlowStartConfig(const SlowStartConfig &slowStartConfig);
std::string getScheduler() const;
void setScheduler(const std::string &scheduler);
std::string getResourceGroupId() const;
@@ -74,12 +88,16 @@ public:
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
std::string getServiceName() const;
void setServiceName(const std::string &serviceName);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
StickySessionConfig getStickySessionConfig() const;
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
bool getDryRun() const;
void setDryRun(bool dryRun);
bool getIpv6Enabled() const;
void setIpv6Enabled(bool ipv6Enabled);
ConnectionDrainConfig getConnectionDrainConfig() const;
void setConnectionDrainConfig(const ConnectionDrainConfig &connectionDrainConfig);
std::string getServerGroupType() const;
void setServerGroupType(const std::string &serverGroupType);
std::string getVpcId() const;
@@ -91,14 +109,17 @@ private:
std::string serverGroupName_;
std::string clientToken_;
HealthCheckConfig healthCheckConfig_;
SlowStartConfig slowStartConfig_;
std::string scheduler_;
std::string resourceGroupId_;
std::string protocol_;
bool upstreamKeepaliveEnabled_;
std::string serviceName_;
std::vector<Tag> tag_;
StickySessionConfig stickySessionConfig_;
bool dryRun_;
bool ipv6Enabled_;
ConnectionDrainConfig connectionDrainConfig_;
std::string serverGroupType_;
std::string vpcId_;
UchConfig uchConfig_;

View File

@@ -37,10 +37,12 @@ namespace AlibabaCloud
EnableLoadBalancerAccessLogResult();
explicit EnableLoadBalancerAccessLogResult(const std::string &payload);
~EnableLoadBalancerAccessLogResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string jobId_;
};
}

View File

@@ -32,6 +32,11 @@ namespace AlibabaCloud
class ALIBABACLOUD_ALB_EXPORT GetHealthCheckTemplateAttributeResult : public ServiceResult
{
public:
struct Tag
{
std::string value;
std::string key;
};
GetHealthCheckTemplateAttributeResult();
@@ -54,6 +59,7 @@ namespace AlibabaCloud
int getHealthyThreshold()const;
std::string getServiceManagedMode()const;
std::string getHealthCheckProtocol()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
@@ -75,6 +81,7 @@ namespace AlibabaCloud
int healthyThreshold_;
std::string serviceManagedMode_;
std::string healthCheckProtocol_;
std::vector<Tag> tags_;
};
}

View File

@@ -99,6 +99,19 @@ namespace AlibabaCloud
std::string type;
ForwardGroupConfig forwardGroupConfig;
};
struct Tag
{
std::string value;
std::string key;
};
struct AssociatedResource
{
std::string status;
std::string associatedResourceId;
std::string associatedMode;
std::string associatedResourceType;
std::string policyId;
};
GetListenerAttributeResult();
@@ -109,6 +122,7 @@ namespace AlibabaCloud
int getListenerPort()const;
int getRequestTimeout()const;
bool getHttp2Enabled()const;
std::vector<AssociatedResource> getAssociatedResources()const;
std::vector<DefaultAction> getDefaultActions()const;
std::vector<Certificate> getCertificates()const;
int getIdleTimeout()const;
@@ -122,6 +136,7 @@ namespace AlibabaCloud
AclConfig getAclConfig()const;
std::string getServiceManagedMode()const;
XForwardedForConfig getXForwardedForConfig()const;
std::vector<Tag> getTags()const;
LogConfig getLogConfig()const;
std::vector<Certificate1> getCaCertificates()const;
std::string getListenerId()const;
@@ -134,6 +149,7 @@ namespace AlibabaCloud
int listenerPort_;
int requestTimeout_;
bool http2Enabled_;
std::vector<AssociatedResource> associatedResources_;
std::vector<DefaultAction> defaultActions_;
std::vector<Certificate> certificates_;
int idleTimeout_;
@@ -147,6 +163,7 @@ namespace AlibabaCloud
AclConfig aclConfig_;
std::string serviceManagedMode_;
XForwardedForConfig xForwardedForConfig_;
std::vector<Tag> tags_;
LogConfig logConfig_;
std::vector<Certificate1> caCertificates_;
std::string listenerId_;

View File

@@ -67,9 +67,11 @@ namespace AlibabaCloud
{
struct LoadBalancerAddress
{
std::vector<std::string> ipv6LocalAddresses;
std::string intranetAddress;
std::string intranetAddressHcStatus;
std::string address;
std::vector<std::string> ipv4LocalAddresses;
std::string allocationId;
std::string ipv6AddressHcStatus;
std::string eipType;
@@ -82,6 +84,14 @@ namespace AlibabaCloud
std::string eipType;
std::vector<ZoneMapping::LoadBalancerAddress> loadBalancerAddresses;
};
struct AssociatedResource
{
std::string status;
std::string associatedResourceId;
std::string associatedMode;
std::string associatedResourceType;
std::string policyId;
};
GetLoadBalancerAttributeResult();
@@ -105,6 +115,7 @@ namespace AlibabaCloud
bool getBackToOriginRouteEnabled()const;
std::string getLoadBalancerEdition()const;
LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
std::vector<AssociatedResource> getAssociatedResources()const;
std::string getCreateTime()const;
ModificationProtectionConfig getModificationProtectionConfig()const;
std::vector<std::string> getSecurityGroupIds()const;
@@ -140,6 +151,7 @@ namespace AlibabaCloud
bool backToOriginRouteEnabled_;
std::string loadBalancerEdition_;
LoadBalancerBillingConfig loadBalancerBillingConfig_;
std::vector<AssociatedResource> associatedResources_;
std::string createTime_;
ModificationProtectionConfig modificationProtectionConfig_;
std::vector<std::string> securityGroupIds_;

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT ListAclsRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListAclsRequest();
~ListAclsRequest();
std::vector<std::string> getAclIds() const;
@@ -38,6 +42,8 @@ public:
void setResourceGroupId(const std::string &resourceGroupId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getAclNames() const;
void setAclNames(const std::vector<std::string> &aclNames);
int getMaxResults() const;
@@ -48,6 +54,7 @@ private:
std::string addressIPVersion_;
std::string resourceGroupId_;
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> aclNames_;
int maxResults_;
};

View File

@@ -34,6 +34,11 @@ namespace AlibabaCloud
public:
struct Acl
{
struct Tag
{
std::string value;
std::string key;
};
bool serviceManagedEnabled;
bool configManagedEnabled;
std::string aclStatus;
@@ -42,6 +47,7 @@ namespace AlibabaCloud
std::string addressIPVersion;
std::string serviceManagedMode;
std::string createTime;
std::vector<Acl::Tag> tags;
std::string aclName;
};

View File

@@ -28,10 +28,16 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT ListHealthCheckTemplatesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListHealthCheckTemplatesRequest();
~ListHealthCheckTemplatesRequest();
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getHealthCheckTemplateNames() const;
void setHealthCheckTemplateNames(const std::vector<std::string> &healthCheckTemplateNames);
int getMaxResults() const;
@@ -41,6 +47,7 @@ public:
private:
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> healthCheckTemplateNames_;
int maxResults_;
std::vector<std::string> healthCheckTemplateIds_;

View File

@@ -34,6 +34,11 @@ namespace AlibabaCloud
public:
struct HealthCheckTemplate
{
struct Tag
{
std::string value;
std::string key;
};
std::string healthCheckTemplateId;
bool serviceManagedEnabled;
int healthCheckInterval;
@@ -51,6 +56,7 @@ namespace AlibabaCloud
int healthyThreshold;
std::string serviceManagedMode;
std::string healthCheckProtocol;
std::vector<HealthCheckTemplate::Tag> tags;
};

View File

@@ -34,6 +34,8 @@ public:
void setCertificateType(const std::string &certificateType);
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
std::vector<std::string> getCertificateIds() const;
void setCertificateIds(const std::vector<std::string> &certificateIds);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
int getMaxResults() const;
@@ -42,6 +44,7 @@ public:
private:
std::string certificateType_;
std::string listenerId_;
std::vector<std::string> certificateIds_;
std::string nextToken_;
int maxResults_;
};

View File

@@ -28,12 +28,18 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT ListListenersRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListListenersRequest();
~ListListenersRequest();
std::vector<std::string> getLoadBalancerIds() const;
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getAccessLogRecordCustomizedHeadersEnabled() const;
void setAccessLogRecordCustomizedHeadersEnabled(bool accessLogRecordCustomizedHeadersEnabled);
std::string getListenerProtocol() const;
@@ -42,16 +48,20 @@ public:
void setListenerIds(const std::vector<std::string> &listenerIds);
int getMaxResults() const;
void setMaxResults(int maxResults);
bool getIsAssociatedAcl() const;
void setIsAssociatedAcl(bool isAssociatedAcl);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::vector<std::string> loadBalancerIds_;
std::string nextToken_;
std::vector<Tag> tag_;
bool accessLogRecordCustomizedHeadersEnabled_;
std::string listenerProtocol_;
std::vector<std::string> listenerIds_;
int maxResults_;
bool isAssociatedAcl_;
std::string status_;
};
} // namespace Model

View File

@@ -81,10 +81,24 @@ namespace AlibabaCloud
std::string type;
ForwardGroupConfig forwardGroupConfig;
};
struct Tag
{
std::string value;
std::string key;
};
struct AssociatedResource
{
std::string status;
std::string associatedResourceId;
std::string associatedMode;
std::string associatedResourceType;
std::string policyId;
};
int listenerPort;
bool serviceManagedEnabled;
int requestTimeout;
bool http2Enabled;
std::vector<Listener::AssociatedResource> associatedResources;
std::vector<Listener::DefaultAction> defaultActions;
int idleTimeout;
std::string loadBalancerId;
@@ -96,6 +110,7 @@ namespace AlibabaCloud
std::string listenerDescription;
std::string serviceManagedMode;
XForwardedForConfig xForwardedForConfig;
std::vector<Listener::Tag> tags;
LogConfig logConfig;
std::string listenerId;
};

View File

@@ -48,6 +48,8 @@ public:
void setNextToken(const std::string &nextToken);
std::string getLoadBalancerBussinessStatus() const;
void setLoadBalancerBussinessStatus(const std::string &loadBalancerBussinessStatus);
std::string getDNSName() const;
void setDNSName(const std::string &dNSName);
std::string getAddressType() const;
void setAddressType(const std::string &addressType);
std::vector<std::string> getVpcIds() const;
@@ -77,6 +79,7 @@ private:
std::string resourceGroupId_;
std::string nextToken_;
std::string loadBalancerBussinessStatus_;
std::string dNSName_;
std::string addressType_;
std::vector<std::string> vpcIds_;
std::vector<Tag> tag_;

View File

@@ -65,29 +65,38 @@ namespace AlibabaCloud
std::string value;
std::string key;
};
struct AssociatedResource
{
std::string status;
std::string associatedResourceId;
std::string associatedMode;
std::string associatedResourceType;
std::string policyId;
};
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;
std::string serviceManagedMode;
std::string bandwidthPackageId;
std::vector<LoadBalancer::Tag> tags;
std::string loadBalancerEdition;
LoadBalancerBillingConfig loadBalancerBillingConfig;
std::vector<LoadBalancer::AssociatedResource> associatedResources;
std::string createTime;
ModificationProtectionConfig modificationProtectionConfig;
std::string loadBalancerName;
AccessLogConfig accessLogConfig;
bool configManagedEnabled;
std::string loadBalancerBussinessStatus;
std::string vpcId;
std::string addressAllocatedMode;
std::string addressType;
std::string loadBalancerStatus;
std::vector<LoadBalancer::Tag> tags;
std::vector<LoadBalancer::LoadBalancerOperationLock> loadBalancerOperationLocks;
};

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT ListRulesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListRulesRequest();
~ListRulesRequest();
std::vector<std::string> getLoadBalancerIds() const;
@@ -36,6 +40,8 @@ public:
void setListenerId(const std::string &listenerId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getDirection() const;
void setDirection(const std::string &direction);
std::vector<std::string> getRuleIds() const;
@@ -49,6 +55,7 @@ private:
std::vector<std::string> loadBalancerIds_;
std::string listenerId_;
std::string nextToken_;
std::vector<Tag> tag_;
std::string direction_;
std::vector<std::string> ruleIds_;
std::vector<std::string> listenerIds_;

View File

@@ -184,6 +184,11 @@ namespace AlibabaCloud
HeaderConfig headerConfig;
SourceIpConfig sourceIpConfig;
};
struct Tag
{
std::string value;
std::string key;
};
std::vector<Rule::Action> ruleActions;
bool serviceManagedEnabled;
int priority;
@@ -193,6 +198,7 @@ namespace AlibabaCloud
std::string loadBalancerId;
std::string ruleStatus;
std::string direction;
std::vector<Rule::Tag> tags;
std::string ruleName;
std::string listenerId;
};

View File

@@ -28,6 +28,10 @@ namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT ListSecurityPoliciesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListSecurityPoliciesRequest();
~ListSecurityPoliciesRequest();
std::vector<std::string> getSecurityPolicyNames() const;
@@ -36,6 +40,8 @@ public:
void setResourceGroupId(const std::string &resourceGroupId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getSecurityPolicyIds() const;
void setSecurityPolicyIds(const std::vector<std::string> &securityPolicyIds);
int getMaxResults() const;
@@ -45,6 +51,7 @@ private:
std::vector<std::string> securityPolicyNames_;
std::string resourceGroupId_;
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> securityPolicyIds_;
int maxResults_;
};

View File

@@ -34,6 +34,11 @@ namespace AlibabaCloud
public:
struct SecurityPolicy
{
struct Tag
{
std::string value;
std::string key;
};
bool serviceManagedEnabled;
std::vector<std::string> ciphers;
std::string securityPolicyId;
@@ -43,6 +48,7 @@ namespace AlibabaCloud
std::string createTime;
std::vector<std::string> tLSVersions;
std::string securityPolicyName;
std::vector<SecurityPolicy::Tag> tags;
};

View File

@@ -63,34 +63,46 @@ namespace AlibabaCloud
std::string type;
std::string value;
};
struct ConnectionDrainConfig
{
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
struct SlowStartConfig
{
bool slowStartEnabled;
int slowStartDuration;
};
struct Tag
{
std::string value;
std::string key;
};
bool serviceManagedEnabled;
std::vector<std::string> relatedLoadBalancerIds;
std::vector<std::string> relatedListenerIds;
std::string resourceGroupId;
UchConfig uchConfig;
std::string scheduler;
bool upstreamKeepaliveEnabled;
StickySessionConfig stickySessionConfig;
std::string createTime;
std::vector<std::string> relatedRuleIds;
std::string serverGroupId;
int serverCount;
std::string serverGroupType;
std::string serverGroupStatus;
bool ipv6Enabled;
bool configManagedEnabled;
std::string vpcId;
std::string serviceName;
SlowStartConfig slowStartConfig;
std::string serviceManagedMode;
HealthCheckConfig healthCheckConfig;
std::string protocol;
std::vector<ServerGroup::Tag> tags;
std::string serverGroupName;
ConnectionDrainConfig connectionDrainConfig;
std::vector<std::string> relatedLoadBalancerIds;
UchConfig uchConfig;
bool upstreamKeepaliveEnabled;
StickySessionConfig stickySessionConfig;
std::string createTime;
std::string serverGroupId;
std::string serverGroupType;
std::string serverGroupStatus;
bool configManagedEnabled;
std::string vpcId;
std::string serviceName;
HealthCheckConfig healthCheckConfig;
};

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_LOADBALANCERJOINSECURITYGROUPREQUEST_H_
#define ALIBABACLOUD_ALB_MODEL_LOADBALANCERJOINSECURITYGROUPREQUEST_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 LoadBalancerJoinSecurityGroupRequest : public RpcServiceRequest {
public:
LoadBalancerJoinSecurityGroupRequest();
~LoadBalancerJoinSecurityGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::vector<std::string> getSecurityGroupIds() const;
void setSecurityGroupIds(const std::vector<std::string> &securityGroupIds);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string clientToken_;
bool dryRun_;
std::vector<std::string> securityGroupIds_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Alb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALB_MODEL_LOADBALANCERJOINSECURITYGROUPREQUEST_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_LOADBALANCERJOINSECURITYGROUPRESULT_H_
#define ALIBABACLOUD_ALB_MODEL_LOADBALANCERJOINSECURITYGROUPRESULT_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 LoadBalancerJoinSecurityGroupResult : public ServiceResult
{
public:
LoadBalancerJoinSecurityGroupResult();
explicit LoadBalancerJoinSecurityGroupResult(const std::string &payload);
~LoadBalancerJoinSecurityGroupResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALB_MODEL_LOADBALANCERJOINSECURITYGROUPRESULT_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_LOADBALANCERLEAVESECURITYGROUPREQUEST_H_
#define ALIBABACLOUD_ALB_MODEL_LOADBALANCERLEAVESECURITYGROUPREQUEST_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 LoadBalancerLeaveSecurityGroupRequest : public RpcServiceRequest {
public:
LoadBalancerLeaveSecurityGroupRequest();
~LoadBalancerLeaveSecurityGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::vector<std::string> getSecurityGroupIds() const;
void setSecurityGroupIds(const std::vector<std::string> &securityGroupIds);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string clientToken_;
bool dryRun_;
std::vector<std::string> securityGroupIds_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Alb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALB_MODEL_LOADBALANCERLEAVESECURITYGROUPREQUEST_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_LOADBALANCERLEAVESECURITYGROUPRESULT_H_
#define ALIBABACLOUD_ALB_MODEL_LOADBALANCERLEAVESECURITYGROUPRESULT_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 LoadBalancerLeaveSecurityGroupResult : public ServiceResult
{
public:
LoadBalancerLeaveSecurityGroupResult();
explicit LoadBalancerLeaveSecurityGroupResult(const std::string &payload);
~LoadBalancerLeaveSecurityGroupResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALB_MODEL_LOADBALANCERLEAVESECURITYGROUPRESULT_H_

View File

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

View File

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

View File

@@ -33,6 +33,7 @@ public:
std::string eipType;
std::string zoneId;
std::string allocationId;
std::string intranetAddress;
};
UpdateLoadBalancerZonesRequest();
~UpdateLoadBalancerZonesRequest();

View File

@@ -46,12 +46,20 @@ public:
std::string healthCheckHttpVersion;
int healthCheckConnectPort;
};
struct SlowStartConfig {
int slowStartDuration;
bool slowStartEnabled;
};
struct StickySessionConfig {
bool stickySessionEnabled;
std::string cookie;
int cookieTimeout;
std::string stickySessionType;
};
struct ConnectionDrainConfig {
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
struct UchConfig {
std::string type;
std::string value;
@@ -64,6 +72,8 @@ public:
void setClientToken(const std::string &clientToken);
HealthCheckConfig getHealthCheckConfig() const;
void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig);
SlowStartConfig getSlowStartConfig() const;
void setSlowStartConfig(const SlowStartConfig &slowStartConfig);
std::string getScheduler() const;
void setScheduler(const std::string &scheduler);
std::string getServerGroupId() const;
@@ -76,6 +86,8 @@ public:
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
bool getDryRun() const;
void setDryRun(bool dryRun);
ConnectionDrainConfig getConnectionDrainConfig() const;
void setConnectionDrainConfig(const ConnectionDrainConfig &connectionDrainConfig);
UchConfig getUchConfig() const;
void setUchConfig(const UchConfig &uchConfig);
@@ -83,12 +95,14 @@ private:
std::string serverGroupName_;
std::string clientToken_;
HealthCheckConfig healthCheckConfig_;
SlowStartConfig slowStartConfig_;
std::string scheduler_;
std::string serverGroupId_;
bool upstreamKeepaliveEnabled_;
std::string serviceName_;
StickySessionConfig stickySessionConfig_;
bool dryRun_;
ConnectionDrainConfig connectionDrainConfig_;
UchConfig uchConfig_;
};
} // namespace Model

View File

@@ -267,6 +267,42 @@ AlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable AlbClient::
return task->get_future();
}
AlbClient::CancelShiftLoadBalancerZonesOutcome AlbClient::cancelShiftLoadBalancerZones(const CancelShiftLoadBalancerZonesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CancelShiftLoadBalancerZonesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CancelShiftLoadBalancerZonesOutcome(CancelShiftLoadBalancerZonesResult(outcome.result()));
else
return CancelShiftLoadBalancerZonesOutcome(outcome.error());
}
void AlbClient::cancelShiftLoadBalancerZonesAsync(const CancelShiftLoadBalancerZonesRequest& request, const CancelShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, cancelShiftLoadBalancerZones(request), context);
};
asyncExecute(new Runnable(fn));
}
AlbClient::CancelShiftLoadBalancerZonesOutcomeCallable AlbClient::cancelShiftLoadBalancerZonesCallable(const CancelShiftLoadBalancerZonesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CancelShiftLoadBalancerZonesOutcome()>>(
[this, request]()
{
return this->cancelShiftLoadBalancerZones(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlbClient::CreateAScriptsOutcome AlbClient::createAScripts(const CreateAScriptsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2103,6 +2139,78 @@ AlbClient::ListTagValuesOutcomeCallable AlbClient::listTagValuesCallable(const L
return task->get_future();
}
AlbClient::LoadBalancerJoinSecurityGroupOutcome AlbClient::loadBalancerJoinSecurityGroup(const LoadBalancerJoinSecurityGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LoadBalancerJoinSecurityGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LoadBalancerJoinSecurityGroupOutcome(LoadBalancerJoinSecurityGroupResult(outcome.result()));
else
return LoadBalancerJoinSecurityGroupOutcome(outcome.error());
}
void AlbClient::loadBalancerJoinSecurityGroupAsync(const LoadBalancerJoinSecurityGroupRequest& request, const LoadBalancerJoinSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, loadBalancerJoinSecurityGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
AlbClient::LoadBalancerJoinSecurityGroupOutcomeCallable AlbClient::loadBalancerJoinSecurityGroupCallable(const LoadBalancerJoinSecurityGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LoadBalancerJoinSecurityGroupOutcome()>>(
[this, request]()
{
return this->loadBalancerJoinSecurityGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlbClient::LoadBalancerLeaveSecurityGroupOutcome AlbClient::loadBalancerLeaveSecurityGroup(const LoadBalancerLeaveSecurityGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LoadBalancerLeaveSecurityGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LoadBalancerLeaveSecurityGroupOutcome(LoadBalancerLeaveSecurityGroupResult(outcome.result()));
else
return LoadBalancerLeaveSecurityGroupOutcome(outcome.error());
}
void AlbClient::loadBalancerLeaveSecurityGroupAsync(const LoadBalancerLeaveSecurityGroupRequest& request, const LoadBalancerLeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, loadBalancerLeaveSecurityGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
AlbClient::LoadBalancerLeaveSecurityGroupOutcomeCallable AlbClient::loadBalancerLeaveSecurityGroupCallable(const LoadBalancerLeaveSecurityGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LoadBalancerLeaveSecurityGroupOutcome()>>(
[this, request]()
{
return this->loadBalancerLeaveSecurityGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlbClient::MoveResourceGroupOutcome AlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2283,6 +2391,42 @@ AlbClient::StartListenerOutcomeCallable AlbClient::startListenerCallable(const S
return task->get_future();
}
AlbClient::StartShiftLoadBalancerZonesOutcome AlbClient::startShiftLoadBalancerZones(const StartShiftLoadBalancerZonesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartShiftLoadBalancerZonesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartShiftLoadBalancerZonesOutcome(StartShiftLoadBalancerZonesResult(outcome.result()));
else
return StartShiftLoadBalancerZonesOutcome(outcome.error());
}
void AlbClient::startShiftLoadBalancerZonesAsync(const StartShiftLoadBalancerZonesRequest& request, const StartShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startShiftLoadBalancerZones(request), context);
};
asyncExecute(new Runnable(fn));
}
AlbClient::StartShiftLoadBalancerZonesOutcomeCallable AlbClient::startShiftLoadBalancerZonesCallable(const StartShiftLoadBalancerZonesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartShiftLoadBalancerZonesOutcome()>>(
[this, request]()
{
return this->startShiftLoadBalancerZones(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlbClient::StopListenerOutcome AlbClient::stopListener(const StopListenerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alb/model/CancelShiftLoadBalancerZonesRequest.h>
using AlibabaCloud::Alb::Model::CancelShiftLoadBalancerZonesRequest;
CancelShiftLoadBalancerZonesRequest::CancelShiftLoadBalancerZonesRequest()
: RpcServiceRequest("alb", "2020-06-16", "CancelShiftLoadBalancerZones") {
setMethod(HttpRequest::Method::Post);
}
CancelShiftLoadBalancerZonesRequest::~CancelShiftLoadBalancerZonesRequest() {}
std::string CancelShiftLoadBalancerZonesRequest::getClientToken() const {
return clientToken_;
}
void CancelShiftLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
bool CancelShiftLoadBalancerZonesRequest::getDryRun() const {
return dryRun_;
}
void CancelShiftLoadBalancerZonesRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::vector<CancelShiftLoadBalancerZonesRequest::ZoneMappings> CancelShiftLoadBalancerZonesRequest::getZoneMappings() const {
return zoneMappings_;
}
void CancelShiftLoadBalancerZonesRequest::setZoneMappings(const std::vector<CancelShiftLoadBalancerZonesRequest::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);
}
}
std::string CancelShiftLoadBalancerZonesRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CancelShiftLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}

View File

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

View File

@@ -61,6 +61,18 @@ void CreateAclRequest::setResourceGroupId(const std::string &resourceGroupId) {
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::vector<CreateAclRequest::Tag> CreateAclRequest::getTag() const {
return tag_;
}
void CreateAclRequest::setTag(const std::vector<CreateAclRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
bool CreateAclRequest::getDryRun() const {
return dryRun_;
}

View File

@@ -88,6 +88,18 @@ void CreateHealthCheckTemplateRequest::setHealthCheckPath(const std::string &hea
setParameter(std::string("HealthCheckPath"), healthCheckPath);
}
std::vector<CreateHealthCheckTemplateRequest::Tag> CreateHealthCheckTemplateRequest::getTag() const {
return tag_;
}
void CreateHealthCheckTemplateRequest::setTag(const std::vector<CreateHealthCheckTemplateRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<CreateHealthCheckTemplateRequest::std::string> CreateHealthCheckTemplateRequest::getHealthCheckCodes() const {
return healthCheckCodes_;
}

View File

@@ -62,6 +62,18 @@ void CreateListenerRequest::setHttp2Enabled(bool http2Enabled) {
setParameter(std::string("Http2Enabled"), http2Enabled ? "true" : "false");
}
std::vector<CreateListenerRequest::Tag> CreateListenerRequest::getTag() const {
return tag_;
}
void CreateListenerRequest::setTag(const std::vector<CreateListenerRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<CreateListenerRequest::DefaultActions> CreateListenerRequest::getDefaultActions() const {
return defaultActions_;
}

View File

@@ -110,6 +110,18 @@ void CreateLoadBalancerRequest::setAddressType(const std::string &addressType) {
setParameter(std::string("AddressType"), addressType);
}
std::vector<CreateLoadBalancerRequest::Tag> CreateLoadBalancerRequest::getTag() const {
return tag_;
}
void CreateLoadBalancerRequest::setTag(const std::vector<CreateLoadBalancerRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::string CreateLoadBalancerRequest::getAddressAllocatedMode() const {
return addressAllocatedMode_;
}
@@ -139,6 +151,7 @@ void CreateLoadBalancerRequest::setZoneMappings(const std::vector<CreateLoadBala
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".EipType", zoneMappings[dep1].eipType);
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);
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".IntranetAddress", zoneMappings[dep1].intranetAddress);
}
}

View File

@@ -52,6 +52,18 @@ void CreateRuleRequest::setListenerId(const std::string &listenerId) {
setParameter(std::string("ListenerId"), listenerId);
}
std::vector<CreateRuleRequest::Tag> CreateRuleRequest::getTag() const {
return tag_;
}
void CreateRuleRequest::setTag(const std::vector<CreateRuleRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::string CreateRuleRequest::getDirection() const {
return direction_;
}

View File

@@ -76,6 +76,10 @@ void CreateRulesRequest::setRules(const std::vector<CreateRulesRequest::Rules> &
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key);
}
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName);
for(int dep2 = 0; dep2 != rules[dep1].tag.size(); dep2++) {
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Value", rules[dep1].tag[dep2].value);
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Key", rules[dep1].tag[dep2].key);
}
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority));
for(int dep2 = 0; dep2 != rules[dep1].ruleActions.size(); dep2++) {
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode);

View File

@@ -54,6 +54,18 @@ void CreateSecurityPolicyRequest::setCiphers(const std::vector<CreateSecurityPol
}
}
std::vector<CreateSecurityPolicyRequest::Tag> CreateSecurityPolicyRequest::getTag() const {
return tag_;
}
void CreateSecurityPolicyRequest::setTag(const std::vector<CreateSecurityPolicyRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<CreateSecurityPolicyRequest::std::string> CreateSecurityPolicyRequest::getTLSVersions() const {
return tLSVersions_;
}

View File

@@ -69,6 +69,16 @@ void CreateServerGroupRequest::setHealthCheckConfig(const CreateServerGroupReque
setParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort));
}
CreateServerGroupRequest::SlowStartConfig CreateServerGroupRequest::getSlowStartConfig() const {
return slowStartConfig_;
}
void CreateServerGroupRequest::setSlowStartConfig(const CreateServerGroupRequest::SlowStartConfig &slowStartConfig) {
slowStartConfig_ = slowStartConfig;
setParameter(std::string("SlowStartConfig") + ".SlowStartDuration", std::to_string(slowStartConfig.slowStartDuration));
setParameter(std::string("SlowStartConfig") + ".SlowStartEnabled", slowStartConfig.slowStartEnabled ? "true" : "false");
}
std::string CreateServerGroupRequest::getScheduler() const {
return scheduler_;
}
@@ -114,6 +124,18 @@ void CreateServerGroupRequest::setServiceName(const std::string &serviceName) {
setParameter(std::string("ServiceName"), serviceName);
}
std::vector<CreateServerGroupRequest::Tag> CreateServerGroupRequest::getTag() const {
return tag_;
}
void CreateServerGroupRequest::setTag(const std::vector<CreateServerGroupRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const {
return stickySessionConfig_;
}
@@ -144,6 +166,16 @@ void CreateServerGroupRequest::setIpv6Enabled(bool ipv6Enabled) {
setParameter(std::string("Ipv6Enabled"), ipv6Enabled ? "true" : "false");
}
CreateServerGroupRequest::ConnectionDrainConfig CreateServerGroupRequest::getConnectionDrainConfig() const {
return connectionDrainConfig_;
}
void CreateServerGroupRequest::setConnectionDrainConfig(const CreateServerGroupRequest::ConnectionDrainConfig &connectionDrainConfig) {
connectionDrainConfig_ = connectionDrainConfig;
setParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainEnabled", connectionDrainConfig.connectionDrainEnabled ? "true" : "false");
setParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainTimeout", std::to_string(connectionDrainConfig.connectionDrainTimeout));
}
std::string CreateServerGroupRequest::getServerGroupType() const {
return serverGroupType_;
}

View File

@@ -39,6 +39,13 @@ void EnableLoadBalancerAccessLogResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string EnableLoadBalancerAccessLogResult::getJobId()const
{
return jobId_;
}

View File

@@ -39,6 +39,16 @@ void GetHealthCheckTemplateAttributeResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagsNode = value["Tags"]["Tag"];
for (auto valueTagsTag : allTagsNode)
{
Tag tagsObject;
if(!valueTagsTag["Key"].isNull())
tagsObject.key = valueTagsTag["Key"].asString();
if(!valueTagsTag["Value"].isNull())
tagsObject.value = valueTagsTag["Value"].asString();
tags_.push_back(tagsObject);
}
auto allHealthCheckHttpCodes = value["HealthCheckHttpCodes"]["httpCode"];
for (const auto &item : allHealthCheckHttpCodes)
healthCheckHttpCodes_.push_back(item.asString());
@@ -163,3 +173,8 @@ std::string GetHealthCheckTemplateAttributeResult::getHealthCheckProtocol()const
return healthCheckProtocol_;
}
std::vector<GetHealthCheckTemplateAttributeResult::Tag> GetHealthCheckTemplateAttributeResult::getTags()const
{
return tags_;
}

View File

@@ -76,6 +76,32 @@ void GetListenerAttributeResult::parse(const std::string &payload)
}
defaultActions_.push_back(defaultActionsObject);
}
auto allTagsNode = value["Tags"]["Tag"];
for (auto valueTagsTag : allTagsNode)
{
Tag tagsObject;
if(!valueTagsTag["Key"].isNull())
tagsObject.key = valueTagsTag["Key"].asString();
if(!valueTagsTag["Value"].isNull())
tagsObject.value = valueTagsTag["Value"].asString();
tags_.push_back(tagsObject);
}
auto allAssociatedResourcesNode = value["AssociatedResources"]["AssociatedResource"];
for (auto valueAssociatedResourcesAssociatedResource : allAssociatedResourcesNode)
{
AssociatedResource associatedResourcesObject;
if(!valueAssociatedResourcesAssociatedResource["AssociatedResourceType"].isNull())
associatedResourcesObject.associatedResourceType = valueAssociatedResourcesAssociatedResource["AssociatedResourceType"].asString();
if(!valueAssociatedResourcesAssociatedResource["AssociatedResourceId"].isNull())
associatedResourcesObject.associatedResourceId = valueAssociatedResourcesAssociatedResource["AssociatedResourceId"].asString();
if(!valueAssociatedResourcesAssociatedResource["PolicyId"].isNull())
associatedResourcesObject.policyId = valueAssociatedResourcesAssociatedResource["PolicyId"].asString();
if(!valueAssociatedResourcesAssociatedResource["Status"].isNull())
associatedResourcesObject.status = valueAssociatedResourcesAssociatedResource["Status"].asString();
if(!valueAssociatedResourcesAssociatedResource["AssociatedMode"].isNull())
associatedResourcesObject.associatedMode = valueAssociatedResourcesAssociatedResource["AssociatedMode"].asString();
associatedResources_.push_back(associatedResourcesObject);
}
auto aclConfigNode = value["AclConfig"];
if(!aclConfigNode["AclType"].isNull())
aclConfig_.aclType = aclConfigNode["AclType"].asString();
@@ -191,6 +217,11 @@ bool GetListenerAttributeResult::getHttp2Enabled()const
return http2Enabled_;
}
std::vector<GetListenerAttributeResult::AssociatedResource> GetListenerAttributeResult::getAssociatedResources()const
{
return associatedResources_;
}
std::vector<GetListenerAttributeResult::DefaultAction> GetListenerAttributeResult::getDefaultActions()const
{
return defaultActions_;
@@ -256,6 +287,11 @@ GetListenerAttributeResult::XForwardedForConfig GetListenerAttributeResult::getX
return xForwardedForConfig_;
}
std::vector<GetListenerAttributeResult::Tag> GetListenerAttributeResult::getTags()const
{
return tags_;
}
std::vector<GetListenerAttributeResult::Certificate1> GetListenerAttributeResult::getCaCertificates()const
{
return caCertificates_;

View File

@@ -67,12 +67,12 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
zoneMappingsObject.vSwitchId = valueZoneMappingsZoneMapping["VSwitchId"].asString();
if(!valueZoneMappingsZoneMapping["ZoneId"].isNull())
zoneMappingsObject.zoneId = valueZoneMappingsZoneMapping["ZoneId"].asString();
if(!valueZoneMappingsZoneMapping["Status"].isNull())
zoneMappingsObject.status = valueZoneMappingsZoneMapping["Status"].asString();
if(!valueZoneMappingsZoneMapping["AllocationId"].isNull())
zoneMappingsObject.allocationId = valueZoneMappingsZoneMapping["AllocationId"].asString();
if(!valueZoneMappingsZoneMapping["EipType"].isNull())
zoneMappingsObject.eipType = valueZoneMappingsZoneMapping["EipType"].asString();
if(!valueZoneMappingsZoneMapping["Status"].isNull())
zoneMappingsObject.status = valueZoneMappingsZoneMapping["Status"].asString();
auto allLoadBalancerAddressesNode = valueZoneMappingsZoneMapping["LoadBalancerAddresses"]["LoadBalancerAddress"];
for (auto valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress : allLoadBalancerAddressesNode)
{
@@ -81,20 +81,42 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
loadBalancerAddressesObject.address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull())
loadBalancerAddressesObject.ipv6Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6AddressHcStatus"].isNull())
loadBalancerAddressesObject.ipv6AddressHcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6AddressHcStatus"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddress"].isNull())
loadBalancerAddressesObject.intranetAddress = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddress"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddressHcStatus"].isNull())
loadBalancerAddressesObject.intranetAddressHcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddressHcStatus"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].isNull())
loadBalancerAddressesObject.allocationId = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EipType"].isNull())
loadBalancerAddressesObject.eipType = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EipType"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddressHcStatus"].isNull())
loadBalancerAddressesObject.intranetAddressHcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddressHcStatus"].asString();
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6AddressHcStatus"].isNull())
loadBalancerAddressesObject.ipv6AddressHcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6AddressHcStatus"].asString();
auto allIpv4LocalAddresses = value["Ipv4LocalAddresses"]["Ipv4LocalAddress"];
for (auto value : allIpv4LocalAddresses)
loadBalancerAddressesObject.ipv4LocalAddresses.push_back(value.asString());
auto allIpv6LocalAddresses = value["Ipv6LocalAddresses"]["ipv6LocalAddress"];
for (auto value : allIpv6LocalAddresses)
loadBalancerAddressesObject.ipv6LocalAddresses.push_back(value.asString());
zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject);
}
zoneMappings_.push_back(zoneMappingsObject);
}
auto allAssociatedResourcesNode = value["AssociatedResources"]["AssociatedResource"];
for (auto valueAssociatedResourcesAssociatedResource : allAssociatedResourcesNode)
{
AssociatedResource associatedResourcesObject;
if(!valueAssociatedResourcesAssociatedResource["AssociatedResourceType"].isNull())
associatedResourcesObject.associatedResourceType = valueAssociatedResourcesAssociatedResource["AssociatedResourceType"].asString();
if(!valueAssociatedResourcesAssociatedResource["AssociatedResourceId"].isNull())
associatedResourcesObject.associatedResourceId = valueAssociatedResourcesAssociatedResource["AssociatedResourceId"].asString();
if(!valueAssociatedResourcesAssociatedResource["PolicyId"].isNull())
associatedResourcesObject.policyId = valueAssociatedResourcesAssociatedResource["PolicyId"].asString();
if(!valueAssociatedResourcesAssociatedResource["Status"].isNull())
associatedResourcesObject.status = valueAssociatedResourcesAssociatedResource["Status"].asString();
if(!valueAssociatedResourcesAssociatedResource["AssociatedMode"].isNull())
associatedResourcesObject.associatedMode = valueAssociatedResourcesAssociatedResource["AssociatedMode"].asString();
associatedResources_.push_back(associatedResourcesObject);
}
auto accessLogConfigNode = value["AccessLogConfig"];
if(!accessLogConfigNode["LogProject"].isNull())
accessLogConfig_.logProject = accessLogConfigNode["LogProject"].asString();
@@ -260,6 +282,11 @@ GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttribu
return loadBalancerBillingConfig_;
}
std::vector<GetLoadBalancerAttributeResult::AssociatedResource> GetLoadBalancerAttributeResult::getAssociatedResources()const
{
return associatedResources_;
}
std::string GetLoadBalancerAttributeResult::getCreateTime()const
{
return createTime_;

View File

@@ -63,6 +63,18 @@ void ListAclsRequest::setNextToken(const std::string &nextToken) {
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListAclsRequest::Tag> ListAclsRequest::getTag() const {
return tag_;
}
void ListAclsRequest::setTag(const std::vector<ListAclsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<ListAclsRequest::std::string> ListAclsRequest::getAclNames() const {
return aclNames_;
}

View File

@@ -61,6 +61,16 @@ void ListAclsResult::parse(const std::string &payload)
aclsObject.configManagedEnabled = valueAclsAcl["ConfigManagedEnabled"].asString() == "true";
if(!valueAclsAcl["CreateTime"].isNull())
aclsObject.createTime = valueAclsAcl["CreateTime"].asString();
auto allTagsNode = valueAclsAcl["Tags"]["Tag"];
for (auto valueAclsAclTagsTag : allTagsNode)
{
Acl::Tag tagsObject;
if(!valueAclsAclTagsTag["Key"].isNull())
tagsObject.key = valueAclsAclTagsTag["Key"].asString();
if(!valueAclsAclTagsTag["Value"].isNull())
tagsObject.value = valueAclsAclTagsTag["Value"].asString();
aclsObject.tags.push_back(tagsObject);
}
acls_.push_back(aclsObject);
}
if(!value["MaxResults"].isNull())

View File

@@ -34,6 +34,18 @@ void ListHealthCheckTemplatesRequest::setNextToken(const std::string &nextToken)
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListHealthCheckTemplatesRequest::Tag> ListHealthCheckTemplatesRequest::getTag() const {
return tag_;
}
void ListHealthCheckTemplatesRequest::setTag(const std::vector<ListHealthCheckTemplatesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<ListHealthCheckTemplatesRequest::std::string> ListHealthCheckTemplatesRequest::getHealthCheckTemplateNames() const {
return healthCheckTemplateNames_;
}

View File

@@ -73,6 +73,16 @@ void ListHealthCheckTemplatesResult::parse(const std::string &payload)
healthCheckTemplatesObject.serviceManagedEnabled = valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedEnabled"].asString() == "true";
if(!valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedMode"].isNull())
healthCheckTemplatesObject.serviceManagedMode = valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedMode"].asString();
auto allTagsNode = valueHealthCheckTemplatesHealthCheckTemplate["Tags"]["Tag"];
for (auto valueHealthCheckTemplatesHealthCheckTemplateTagsTag : allTagsNode)
{
HealthCheckTemplate::Tag tagsObject;
if(!valueHealthCheckTemplatesHealthCheckTemplateTagsTag["Key"].isNull())
tagsObject.key = valueHealthCheckTemplatesHealthCheckTemplateTagsTag["Key"].asString();
if(!valueHealthCheckTemplatesHealthCheckTemplateTagsTag["Value"].isNull())
tagsObject.value = valueHealthCheckTemplatesHealthCheckTemplateTagsTag["Value"].asString();
healthCheckTemplatesObject.tags.push_back(tagsObject);
}
auto allHealthCheckHttpCodes = value["HealthCheckHttpCodes"]["httpCode"];
for (auto value : allHealthCheckHttpCodes)
healthCheckTemplatesObject.healthCheckHttpCodes.push_back(value.asString());

View File

@@ -43,6 +43,17 @@ void ListListenerCertificatesRequest::setListenerId(const std::string &listenerI
setParameter(std::string("ListenerId"), listenerId);
}
std::vector<ListListenerCertificatesRequest::std::string> ListListenerCertificatesRequest::getCertificateIds() const {
return certificateIds_;
}
void ListListenerCertificatesRequest::setCertificateIds(const std::vector<ListListenerCertificatesRequest::std::string> &certificateIds) {
certificateIds_ = certificateIds;
for(int dep1 = 0; dep1 != certificateIds.size(); dep1++) {
setParameter(std::string("CertificateIds") + "." + std::to_string(dep1 + 1), certificateIds[dep1]);
}
}
std::string ListListenerCertificatesRequest::getNextToken() const {
return nextToken_;
}

View File

@@ -45,6 +45,18 @@ void ListListenersRequest::setNextToken(const std::string &nextToken) {
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListListenersRequest::Tag> ListListenersRequest::getTag() const {
return tag_;
}
void ListListenersRequest::setTag(const std::vector<ListListenersRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
bool ListListenersRequest::getAccessLogRecordCustomizedHeadersEnabled() const {
return accessLogRecordCustomizedHeadersEnabled_;
}
@@ -83,6 +95,15 @@ void ListListenersRequest::setMaxResults(int maxResults) {
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}
bool ListListenersRequest::getIsAssociatedAcl() const {
return isAssociatedAcl_;
}
void ListListenersRequest::setIsAssociatedAcl(bool isAssociatedAcl) {
isAssociatedAcl_ = isAssociatedAcl;
setParameter(std::string("IsAssociatedAcl"), isAssociatedAcl ? "true" : "false");
}
std::string ListListenersRequest::getStatus() const {
return status_;
}

View File

@@ -86,6 +86,32 @@ void ListListenersResult::parse(const std::string &payload)
}
listenersObject.defaultActions.push_back(defaultActionsObject);
}
auto allTagsNode = valueListenerslistener["Tags"]["Tag"];
for (auto valueListenerslistenerTagsTag : allTagsNode)
{
Listener::Tag tagsObject;
if(!valueListenerslistenerTagsTag["Key"].isNull())
tagsObject.key = valueListenerslistenerTagsTag["Key"].asString();
if(!valueListenerslistenerTagsTag["Value"].isNull())
tagsObject.value = valueListenerslistenerTagsTag["Value"].asString();
listenersObject.tags.push_back(tagsObject);
}
auto allAssociatedResourcesNode = valueListenerslistener["AssociatedResources"]["AssociatedResource"];
for (auto valueListenerslistenerAssociatedResourcesAssociatedResource : allAssociatedResourcesNode)
{
Listener::AssociatedResource associatedResourcesObject;
if(!valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedResourceType"].isNull())
associatedResourcesObject.associatedResourceType = valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedResourceType"].asString();
if(!valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedResourceId"].isNull())
associatedResourcesObject.associatedResourceId = valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedResourceId"].asString();
if(!valueListenerslistenerAssociatedResourcesAssociatedResource["PolicyId"].isNull())
associatedResourcesObject.policyId = valueListenerslistenerAssociatedResourcesAssociatedResource["PolicyId"].asString();
if(!valueListenerslistenerAssociatedResourcesAssociatedResource["Status"].isNull())
associatedResourcesObject.status = valueListenerslistenerAssociatedResourcesAssociatedResource["Status"].asString();
if(!valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedMode"].isNull())
associatedResourcesObject.associatedMode = valueListenerslistenerAssociatedResourcesAssociatedResource["AssociatedMode"].asString();
listenersObject.associatedResources.push_back(associatedResourcesObject);
}
auto logConfigNode = value["LogConfig"];
if(!logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].isNull())
listenersObject.logConfig.accessLogRecordCustomizedHeadersEnabled = logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].asString() == "true";

View File

@@ -94,6 +94,15 @@ void ListLoadBalancersRequest::setLoadBalancerBussinessStatus(const std::string
setParameter(std::string("LoadBalancerBussinessStatus"), loadBalancerBussinessStatus);
}
std::string ListLoadBalancersRequest::getDNSName() const {
return dNSName_;
}
void ListLoadBalancersRequest::setDNSName(const std::string &dNSName) {
dNSName_ = dNSName;
setParameter(std::string("DNSName"), dNSName);
}
std::string ListLoadBalancersRequest::getAddressType() const {
return addressType_;
}

View File

@@ -99,6 +99,22 @@ void ListLoadBalancersResult::parse(const std::string &payload)
tagsObject.value = valueLoadBalancersloadBalancerTagsTag["Value"].asString();
loadBalancersObject.tags.push_back(tagsObject);
}
auto allAssociatedResourcesNode = valueLoadBalancersloadBalancer["AssociatedResources"]["AssociatedResource"];
for (auto valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource : allAssociatedResourcesNode)
{
LoadBalancer::AssociatedResource associatedResourcesObject;
if(!valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedResourceType"].isNull())
associatedResourcesObject.associatedResourceType = valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedResourceType"].asString();
if(!valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedResourceId"].isNull())
associatedResourcesObject.associatedResourceId = valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedResourceId"].asString();
if(!valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["PolicyId"].isNull())
associatedResourcesObject.policyId = valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["PolicyId"].asString();
if(!valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["Status"].isNull())
associatedResourcesObject.status = valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["Status"].asString();
if(!valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedMode"].isNull())
associatedResourcesObject.associatedMode = valueLoadBalancersloadBalancerAssociatedResourcesAssociatedResource["AssociatedMode"].asString();
loadBalancersObject.associatedResources.push_back(associatedResourcesObject);
}
auto accessLogConfigNode = value["AccessLogConfig"];
if(!accessLogConfigNode["LogProject"].isNull())
loadBalancersObject.accessLogConfig.logProject = accessLogConfigNode["LogProject"].asString();

View File

@@ -54,6 +54,18 @@ void ListRulesRequest::setNextToken(const std::string &nextToken) {
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListRulesRequest::Tag> ListRulesRequest::getTag() const {
return tag_;
}
void ListRulesRequest::setTag(const std::vector<ListRulesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::string ListRulesRequest::getDirection() const {
return direction_;
}

View File

@@ -224,6 +224,16 @@ void ListRulesResult::parse(const std::string &payload)
ruleConditionsObject.responseHeaderConfig.values11.push_back(value.asString());
rulesObject.ruleConditions.push_back(ruleConditionsObject);
}
auto allTagsNode = valueRulesRule["Tags"]["Tag"];
for (auto valueRulesRuleTagsTag : allTagsNode)
{
Rule::Tag tagsObject;
if(!valueRulesRuleTagsTag["Key"].isNull())
tagsObject.key = valueRulesRuleTagsTag["Key"].asString();
if(!valueRulesRuleTagsTag["Value"].isNull())
tagsObject.value = valueRulesRuleTagsTag["Value"].asString();
rulesObject.tags.push_back(tagsObject);
}
rules_.push_back(rulesObject);
}
if(!value["MaxResults"].isNull())

View File

@@ -54,6 +54,18 @@ void ListSecurityPoliciesRequest::setNextToken(const std::string &nextToken) {
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListSecurityPoliciesRequest::Tag> ListSecurityPoliciesRequest::getTag() const {
return tag_;
}
void ListSecurityPoliciesRequest::setTag(const std::vector<ListSecurityPoliciesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<ListSecurityPoliciesRequest::std::string> ListSecurityPoliciesRequest::getSecurityPolicyIds() const {
return securityPolicyIds_;
}

View File

@@ -57,6 +57,16 @@ void ListSecurityPoliciesResult::parse(const std::string &payload)
securityPoliciesObject.serviceManagedMode = valueSecurityPoliciesSecurityPolicy["ServiceManagedMode"].asString();
if(!valueSecurityPoliciesSecurityPolicy["CreateTime"].isNull())
securityPoliciesObject.createTime = valueSecurityPoliciesSecurityPolicy["CreateTime"].asString();
auto allTagsNode = valueSecurityPoliciesSecurityPolicy["Tags"]["Tag"];
for (auto valueSecurityPoliciesSecurityPolicyTagsTag : allTagsNode)
{
SecurityPolicy::Tag tagsObject;
if(!valueSecurityPoliciesSecurityPolicyTagsTag["Key"].isNull())
tagsObject.key = valueSecurityPoliciesSecurityPolicyTagsTag["Key"].asString();
if(!valueSecurityPoliciesSecurityPolicyTagsTag["Value"].isNull())
tagsObject.value = valueSecurityPoliciesSecurityPolicyTagsTag["Value"].asString();
securityPoliciesObject.tags.push_back(tagsObject);
}
auto allCiphers = value["Ciphers"]["Cipher"];
for (auto value : allCiphers)
securityPoliciesObject.ciphers.push_back(value.asString());

View File

@@ -130,6 +130,16 @@ void ListServerGroupsResult::parse(const std::string &payload)
serverGroupsObject.uchConfig.type = uchConfigNode["Type"].asString();
if(!uchConfigNode["Value"].isNull())
serverGroupsObject.uchConfig.value = uchConfigNode["Value"].asString();
auto connectionDrainConfigNode = value["ConnectionDrainConfig"];
if(!connectionDrainConfigNode["ConnectionDrainEnabled"].isNull())
serverGroupsObject.connectionDrainConfig.connectionDrainEnabled = connectionDrainConfigNode["ConnectionDrainEnabled"].asString() == "true";
if(!connectionDrainConfigNode["ConnectionDrainTimeout"].isNull())
serverGroupsObject.connectionDrainConfig.connectionDrainTimeout = std::stoi(connectionDrainConfigNode["ConnectionDrainTimeout"].asString());
auto slowStartConfigNode = value["SlowStartConfig"];
if(!slowStartConfigNode["SlowStartEnabled"].isNull())
serverGroupsObject.slowStartConfig.slowStartEnabled = slowStartConfigNode["SlowStartEnabled"].asString() == "true";
if(!slowStartConfigNode["SlowStartDuration"].isNull())
serverGroupsObject.slowStartConfig.slowStartDuration = std::stoi(slowStartConfigNode["SlowStartDuration"].asString());
auto allRelatedLoadBalancerIds = value["RelatedLoadBalancerIds"]["RelatedLoadBalancerId"];
for (auto value : allRelatedLoadBalancerIds)
serverGroupsObject.relatedLoadBalancerIds.push_back(value.asString());

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.
*/
#include <alibabacloud/alb/model/LoadBalancerJoinSecurityGroupRequest.h>
using AlibabaCloud::Alb::Model::LoadBalancerJoinSecurityGroupRequest;
LoadBalancerJoinSecurityGroupRequest::LoadBalancerJoinSecurityGroupRequest()
: RpcServiceRequest("alb", "2020-06-16", "LoadBalancerJoinSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
LoadBalancerJoinSecurityGroupRequest::~LoadBalancerJoinSecurityGroupRequest() {}
std::string LoadBalancerJoinSecurityGroupRequest::getClientToken() const {
return clientToken_;
}
void LoadBalancerJoinSecurityGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
bool LoadBalancerJoinSecurityGroupRequest::getDryRun() const {
return dryRun_;
}
void LoadBalancerJoinSecurityGroupRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::vector<LoadBalancerJoinSecurityGroupRequest::std::string> LoadBalancerJoinSecurityGroupRequest::getSecurityGroupIds() const {
return securityGroupIds_;
}
void LoadBalancerJoinSecurityGroupRequest::setSecurityGroupIds(const std::vector<LoadBalancerJoinSecurityGroupRequest::std::string> &securityGroupIds) {
securityGroupIds_ = securityGroupIds;
for(int dep1 = 0; dep1 != securityGroupIds.size(); dep1++) {
setParameter(std::string("SecurityGroupIds") + "." + std::to_string(dep1 + 1), securityGroupIds[dep1]);
}
}
std::string LoadBalancerJoinSecurityGroupRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void LoadBalancerJoinSecurityGroupRequest::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/LoadBalancerJoinSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alb;
using namespace AlibabaCloud::Alb::Model;
LoadBalancerJoinSecurityGroupResult::LoadBalancerJoinSecurityGroupResult() :
ServiceResult()
{}
LoadBalancerJoinSecurityGroupResult::LoadBalancerJoinSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LoadBalancerJoinSecurityGroupResult::~LoadBalancerJoinSecurityGroupResult()
{}
void LoadBalancerJoinSecurityGroupResult::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 LoadBalancerJoinSecurityGroupResult::getJobId()const
{
return jobId_;
}

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.
*/
#include <alibabacloud/alb/model/LoadBalancerLeaveSecurityGroupRequest.h>
using AlibabaCloud::Alb::Model::LoadBalancerLeaveSecurityGroupRequest;
LoadBalancerLeaveSecurityGroupRequest::LoadBalancerLeaveSecurityGroupRequest()
: RpcServiceRequest("alb", "2020-06-16", "LoadBalancerLeaveSecurityGroup") {
setMethod(HttpRequest::Method::Post);
}
LoadBalancerLeaveSecurityGroupRequest::~LoadBalancerLeaveSecurityGroupRequest() {}
std::string LoadBalancerLeaveSecurityGroupRequest::getClientToken() const {
return clientToken_;
}
void LoadBalancerLeaveSecurityGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
bool LoadBalancerLeaveSecurityGroupRequest::getDryRun() const {
return dryRun_;
}
void LoadBalancerLeaveSecurityGroupRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::vector<LoadBalancerLeaveSecurityGroupRequest::std::string> LoadBalancerLeaveSecurityGroupRequest::getSecurityGroupIds() const {
return securityGroupIds_;
}
void LoadBalancerLeaveSecurityGroupRequest::setSecurityGroupIds(const std::vector<LoadBalancerLeaveSecurityGroupRequest::std::string> &securityGroupIds) {
securityGroupIds_ = securityGroupIds;
for(int dep1 = 0; dep1 != securityGroupIds.size(); dep1++) {
setParameter(std::string("SecurityGroupIds") + "." + std::to_string(dep1 + 1), securityGroupIds[dep1]);
}
}
std::string LoadBalancerLeaveSecurityGroupRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void LoadBalancerLeaveSecurityGroupRequest::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/LoadBalancerLeaveSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alb;
using namespace AlibabaCloud::Alb::Model;
LoadBalancerLeaveSecurityGroupResult::LoadBalancerLeaveSecurityGroupResult() :
ServiceResult()
{}
LoadBalancerLeaveSecurityGroupResult::LoadBalancerLeaveSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LoadBalancerLeaveSecurityGroupResult::~LoadBalancerLeaveSecurityGroupResult()
{}
void LoadBalancerLeaveSecurityGroupResult::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 LoadBalancerLeaveSecurityGroupResult::getJobId()const
{
return jobId_;
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alb/model/StartShiftLoadBalancerZonesRequest.h>
using AlibabaCloud::Alb::Model::StartShiftLoadBalancerZonesRequest;
StartShiftLoadBalancerZonesRequest::StartShiftLoadBalancerZonesRequest()
: RpcServiceRequest("alb", "2020-06-16", "StartShiftLoadBalancerZones") {
setMethod(HttpRequest::Method::Post);
}
StartShiftLoadBalancerZonesRequest::~StartShiftLoadBalancerZonesRequest() {}
std::string StartShiftLoadBalancerZonesRequest::getClientToken() const {
return clientToken_;
}
void StartShiftLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
bool StartShiftLoadBalancerZonesRequest::getDryRun() const {
return dryRun_;
}
void StartShiftLoadBalancerZonesRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::vector<StartShiftLoadBalancerZonesRequest::ZoneMappings> StartShiftLoadBalancerZonesRequest::getZoneMappings() const {
return zoneMappings_;
}
void StartShiftLoadBalancerZonesRequest::setZoneMappings(const std::vector<StartShiftLoadBalancerZonesRequest::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);
}
}
std::string StartShiftLoadBalancerZonesRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void StartShiftLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}

View File

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

View File

@@ -54,6 +54,7 @@ void UpdateLoadBalancerZonesRequest::setZoneMappings(const std::vector<UpdateLoa
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".EipType", zoneMappings[dep1].eipType);
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);
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".IntranetAddress", zoneMappings[dep1].intranetAddress);
}
}

View File

@@ -69,6 +69,16 @@ void UpdateServerGroupAttributeRequest::setHealthCheckConfig(const UpdateServerG
setParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort));
}
UpdateServerGroupAttributeRequest::SlowStartConfig UpdateServerGroupAttributeRequest::getSlowStartConfig() const {
return slowStartConfig_;
}
void UpdateServerGroupAttributeRequest::setSlowStartConfig(const UpdateServerGroupAttributeRequest::SlowStartConfig &slowStartConfig) {
slowStartConfig_ = slowStartConfig;
setParameter(std::string("SlowStartConfig") + ".SlowStartDuration", std::to_string(slowStartConfig.slowStartDuration));
setParameter(std::string("SlowStartConfig") + ".SlowStartEnabled", slowStartConfig.slowStartEnabled ? "true" : "false");
}
std::string UpdateServerGroupAttributeRequest::getScheduler() const {
return scheduler_;
}
@@ -126,6 +136,16 @@ void UpdateServerGroupAttributeRequest::setDryRun(bool dryRun) {
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
UpdateServerGroupAttributeRequest::ConnectionDrainConfig UpdateServerGroupAttributeRequest::getConnectionDrainConfig() const {
return connectionDrainConfig_;
}
void UpdateServerGroupAttributeRequest::setConnectionDrainConfig(const UpdateServerGroupAttributeRequest::ConnectionDrainConfig &connectionDrainConfig) {
connectionDrainConfig_ = connectionDrainConfig;
setParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainEnabled", connectionDrainConfig.connectionDrainEnabled ? "true" : "false");
setParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainTimeout", std::to_string(connectionDrainConfig.connectionDrainTimeout));
}
UpdateServerGroupAttributeRequest::UchConfig UpdateServerGroupAttributeRequest::getUchConfig() const {
return uchConfig_;
}

View File

@@ -42,8 +42,16 @@ public:
void setProtocol(const std::string &protocol);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getL7ProxyDomainCustom() const;
void setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom);
std::string getL7ProxyDomainPrivate() const;
void setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate);
std::string getBrowserAccessStatus() const;
void setBrowserAccessStatus(const std::string &browserAccessStatus);
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::string getL7ProxyDomainAutomaticPrefix() const;
void setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix);
std::vector<PortRanges> getPortRanges() const;
void setPortRanges(const std::vector<PortRanges> &portRanges);
std::string getName() const;
@@ -56,7 +64,11 @@ private:
std::string description_;
std::string protocol_;
std::string sourceIp_;
std::string l7ProxyDomainCustom_;
std::string l7ProxyDomainPrivate_;
std::string browserAccessStatus_;
std::vector<std::string> tagIds_;
std::string l7ProxyDomainAutomaticPrefix_;
std::vector<PortRanges> portRanges_;
std::string name_;
std::string status_;

View File

@@ -57,6 +57,11 @@ public:
BackgroundControl backgroundControl;
bool invisibleAntiTextCopy;
};
struct CsvControl {
std::string method;
long embedColumn;
long embedPrecision;
};
CreateWmEmbedTaskRequest();
~CreateWmEmbedTaskRequest();
bool getVideoIsLong() const;
@@ -77,6 +82,8 @@ public:
void setWatermarkInfoUint(long watermarkInfoUint);
std::string getWmInfoUint() const;
void setWmInfoUint(const std::string &wmInfoUint);
CsvControl getCsvControl() const;
void setCsvControl(const CsvControl &csvControl);
std::string getFilename() const;
void setFilename(const std::string &filename);
long getWmInfoSize() const;
@@ -98,6 +105,7 @@ private:
long imageEmbedJpegQuality_;
long watermarkInfoUint_;
std::string wmInfoUint_;
CsvControl csvControl_;
std::string filename_;
long wmInfoSize_;
std::string wmInfoBytesB64_;

View File

@@ -28,6 +28,11 @@ namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateWmExtractTaskRequest : public RpcServiceRequest {
public:
struct CsvControl {
std::string method;
long embedColumn;
long embedPrecision;
};
CreateWmExtractTaskRequest();
~CreateWmExtractTaskRequest();
bool getVideoIsLong() const;
@@ -44,6 +49,8 @@ public:
void setWmType(const std::string &wmType);
int getImageDetectLevel() const;
void setImageDetectLevel(int imageDetectLevel);
CsvControl getCsvControl() const;
void setCsvControl(const CsvControl &csvControl);
std::string getFilename() const;
void setFilename(const std::string &filename);
long getWmInfoSize() const;
@@ -59,6 +66,7 @@ private:
std::string sourceIp_;
std::string wmType_;
int imageDetectLevel_;
CsvControl csvControl_;
std::string filename_;
long wmInfoSize_;
std::string fileUrl_;

View File

@@ -40,16 +40,19 @@ namespace AlibabaCloud
int end;
};
std::string status;
std::vector<std::string> addresses;
std::string browserAccessStatus;
std::string description;
std::vector<std::string> tagIds;
std::vector<PortRange> portRanges;
std::string createTime;
std::vector<std::string> policyIds;
std::vector<std::string> connectorIds;
std::string name;
std::vector<std::string> addresses;
std::string l7ProxyDomainAutomatic;
std::string l7ProxyDomainCustom;
std::vector<std::string> policyIds;
std::string applicationId;
std::string protocol;
std::string name;
};

View File

@@ -46,6 +46,8 @@ public:
void setCurrentPage(int currentPage);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getAccessModes() const;
void setAccessModes(const std::string &accessModes);
std::string getName() const;
void setName(const std::string &name);
std::string getStatus() const;
@@ -60,6 +62,7 @@ private:
std::string connectorId_;
int currentPage_;
std::vector<std::string> applicationIds_;
std::string accessModes_;
std::string name_;
std::string status_;
};

View File

@@ -40,16 +40,19 @@ namespace AlibabaCloud
int end;
};
std::string status;
std::vector<std::string> addresses;
std::string browserAccessStatus;
std::string description;
std::vector<std::string> tagIds;
std::vector<Application::PortRange> portRanges;
std::string createTime;
std::vector<std::string> policyIds;
std::vector<std::string> connectorIds;
std::string name;
std::vector<std::string> addresses;
std::string l7ProxyDomainAutomatic;
std::string l7ProxyDomainCustom;
std::vector<std::string> policyIds;
std::string applicationId;
std::string protocol;
std::string name;
};

View File

@@ -44,8 +44,14 @@ public:
void setSourceIp(const std::string &sourceIp);
std::string getApplicationId() const;
void setApplicationId(const std::string &applicationId);
std::string getL7ProxyDomainCustom() const;
void setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom);
std::string getL7ProxyDomainPrivate() const;
void setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate);
std::vector<std::string> getTagIds() const;
void setTagIds(const std::vector<std::string> &tagIds);
std::string getL7ProxyDomainAutomaticPrefix() const;
void setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix);
std::vector<PortRanges> getPortRanges() const;
void setPortRanges(const std::vector<PortRanges> &portRanges);
std::string getModifyType() const;
@@ -59,7 +65,10 @@ private:
std::string protocol_;
std::string sourceIp_;
std::string applicationId_;
std::string l7ProxyDomainCustom_;
std::string l7ProxyDomainPrivate_;
std::vector<std::string> tagIds_;
std::string l7ProxyDomainAutomaticPrefix_;
std::vector<PortRanges> portRanges_;
std::string modifyType_;
std::string status_;

View File

@@ -63,6 +63,33 @@ void CreatePrivateAccessApplicationRequest::setSourceIp(const std::string &sourc
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainCustom() const {
return l7ProxyDomainCustom_;
}
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom) {
l7ProxyDomainCustom_ = l7ProxyDomainCustom;
setBodyParameter(std::string("L7ProxyDomainCustom"), l7ProxyDomainCustom);
}
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainPrivate() const {
return l7ProxyDomainPrivate_;
}
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate) {
l7ProxyDomainPrivate_ = l7ProxyDomainPrivate;
setBodyParameter(std::string("L7ProxyDomainPrivate"), l7ProxyDomainPrivate);
}
std::string CreatePrivateAccessApplicationRequest::getBrowserAccessStatus() const {
return browserAccessStatus_;
}
void CreatePrivateAccessApplicationRequest::setBrowserAccessStatus(const std::string &browserAccessStatus) {
browserAccessStatus_ = browserAccessStatus;
setBodyParameter(std::string("BrowserAccessStatus"), browserAccessStatus);
}
std::vector<CreatePrivateAccessApplicationRequest::std::string> CreatePrivateAccessApplicationRequest::getTagIds() const {
return tagIds_;
}
@@ -74,6 +101,15 @@ void CreatePrivateAccessApplicationRequest::setTagIds(const std::vector<CreatePr
}
}
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainAutomaticPrefix() const {
return l7ProxyDomainAutomaticPrefix_;
}
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix) {
l7ProxyDomainAutomaticPrefix_ = l7ProxyDomainAutomaticPrefix;
setBodyParameter(std::string("L7ProxyDomainAutomaticPrefix"), l7ProxyDomainAutomaticPrefix);
}
std::vector<CreatePrivateAccessApplicationRequest::PortRanges> CreatePrivateAccessApplicationRequest::getPortRanges() const {
return portRanges_;
}

View File

@@ -123,6 +123,17 @@ void CreateWmEmbedTaskRequest::setWmInfoUint(const std::string &wmInfoUint) {
setBodyParameter(std::string("WmInfoUint"), wmInfoUint);
}
CreateWmEmbedTaskRequest::CsvControl CreateWmEmbedTaskRequest::getCsvControl() const {
return csvControl_;
}
void CreateWmEmbedTaskRequest::setCsvControl(const CreateWmEmbedTaskRequest::CsvControl &csvControl) {
csvControl_ = csvControl;
setParameter(std::string("CsvControl") + ".Method", csvControl.method);
setParameter(std::string("CsvControl") + ".EmbedColumn", std::to_string(csvControl.embedColumn));
setParameter(std::string("CsvControl") + ".EmbedPrecision", std::to_string(csvControl.embedPrecision));
}
std::string CreateWmEmbedTaskRequest::getFilename() const {
return filename_;
}

View File

@@ -88,6 +88,17 @@ void CreateWmExtractTaskRequest::setImageDetectLevel(int imageDetectLevel) {
setBodyParameter(std::string("ImageDetectLevel"), std::to_string(imageDetectLevel));
}
CreateWmExtractTaskRequest::CsvControl CreateWmExtractTaskRequest::getCsvControl() const {
return csvControl_;
}
void CreateWmExtractTaskRequest::setCsvControl(const CreateWmExtractTaskRequest::CsvControl &csvControl) {
csvControl_ = csvControl;
setParameter(std::string("CsvControl") + ".Method", csvControl.method);
setParameter(std::string("CsvControl") + ".EmbedColumn", std::to_string(csvControl.embedColumn));
setParameter(std::string("CsvControl") + ".EmbedPrecision", std::to_string(csvControl.embedPrecision));
}
std::string CreateWmExtractTaskRequest::getFilename() const {
return filename_;
}

View File

@@ -52,6 +52,12 @@ void GetPrivateAccessApplicationResult::parse(const std::string &payload)
application_.status = applicationNode["Status"].asString();
if(!applicationNode["CreateTime"].isNull())
application_.createTime = applicationNode["CreateTime"].asString();
if(!applicationNode["BrowserAccessStatus"].isNull())
application_.browserAccessStatus = applicationNode["BrowserAccessStatus"].asString();
if(!applicationNode["L7ProxyDomainAutomatic"].isNull())
application_.l7ProxyDomainAutomatic = applicationNode["L7ProxyDomainAutomatic"].asString();
if(!applicationNode["L7ProxyDomainCustom"].isNull())
application_.l7ProxyDomainCustom = applicationNode["L7ProxyDomainCustom"].asString();
auto allPortRangesNode = applicationNode["PortRanges"]["portRange"];
for (auto applicationNodePortRangesportRange : allPortRangesNode)
{

View File

@@ -99,6 +99,15 @@ void ListPrivateAccessApplicationsRequest::setApplicationIds(const std::vector<L
}
}
std::string ListPrivateAccessApplicationsRequest::getAccessModes() const {
return accessModes_;
}
void ListPrivateAccessApplicationsRequest::setAccessModes(const std::string &accessModes) {
accessModes_ = accessModes;
setParameter(std::string("AccessModes"), accessModes);
}
std::string ListPrivateAccessApplicationsRequest::getName() const {
return name_;
}

View File

@@ -55,6 +55,12 @@ void ListPrivateAccessApplicationsResult::parse(const std::string &payload)
applicationsObject.status = valueApplicationsapplication["Status"].asString();
if(!valueApplicationsapplication["CreateTime"].isNull())
applicationsObject.createTime = valueApplicationsapplication["CreateTime"].asString();
if(!valueApplicationsapplication["BrowserAccessStatus"].isNull())
applicationsObject.browserAccessStatus = valueApplicationsapplication["BrowserAccessStatus"].asString();
if(!valueApplicationsapplication["L7ProxyDomainAutomatic"].isNull())
applicationsObject.l7ProxyDomainAutomatic = valueApplicationsapplication["L7ProxyDomainAutomatic"].asString();
if(!valueApplicationsapplication["L7ProxyDomainCustom"].isNull())
applicationsObject.l7ProxyDomainCustom = valueApplicationsapplication["L7ProxyDomainCustom"].asString();
auto allPortRangesNode = valueApplicationsapplication["PortRanges"]["portRange"];
for (auto valueApplicationsapplicationPortRangesportRange : allPortRangesNode)
{

View File

@@ -72,6 +72,24 @@ void UpdatePrivateAccessApplicationRequest::setApplicationId(const std::string &
setBodyParameter(std::string("ApplicationId"), applicationId);
}
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainCustom() const {
return l7ProxyDomainCustom_;
}
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom) {
l7ProxyDomainCustom_ = l7ProxyDomainCustom;
setBodyParameter(std::string("L7ProxyDomainCustom"), l7ProxyDomainCustom);
}
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainPrivate() const {
return l7ProxyDomainPrivate_;
}
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate) {
l7ProxyDomainPrivate_ = l7ProxyDomainPrivate;
setBodyParameter(std::string("L7ProxyDomainPrivate"), l7ProxyDomainPrivate);
}
std::vector<UpdatePrivateAccessApplicationRequest::std::string> UpdatePrivateAccessApplicationRequest::getTagIds() const {
return tagIds_;
}
@@ -83,6 +101,15 @@ void UpdatePrivateAccessApplicationRequest::setTagIds(const std::vector<UpdatePr
}
}
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainAutomaticPrefix() const {
return l7ProxyDomainAutomaticPrefix_;
}
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix) {
l7ProxyDomainAutomaticPrefix_ = l7ProxyDomainAutomaticPrefix;
setBodyParameter(std::string("L7ProxyDomainAutomaticPrefix"), l7ProxyDomainAutomaticPrefix);
}
std::vector<UpdatePrivateAccessApplicationRequest::PortRanges> UpdatePrivateAccessApplicationRequest::getPortRanges() const {
return portRanges_;
}

View File

@@ -135,6 +135,8 @@ set(dds_public_header_model
include/alibabacloud/dds/model/DescribeRenewalPriceResult.h
include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.h
include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.h
include/alibabacloud/dds/model/DescribeRestoreDBInstanceListRequest.h
include/alibabacloud/dds/model/DescribeRestoreDBInstanceListResult.h
include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.h
include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.h
include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.h
@@ -360,6 +362,8 @@ set(dds_src
src/model/DescribeRenewalPriceResult.cc
src/model/DescribeReplicaSetRoleRequest.cc
src/model/DescribeReplicaSetRoleResult.cc
src/model/DescribeRestoreDBInstanceListRequest.cc
src/model/DescribeRestoreDBInstanceListResult.cc
src/model/DescribeRoleZoneInfoRequest.cc
src/model/DescribeRoleZoneInfoResult.cc
src/model/DescribeRunningLogRecordsRequest.cc

View File

@@ -136,6 +136,8 @@
#include "model/DescribeRenewalPriceResult.h"
#include "model/DescribeReplicaSetRoleRequest.h"
#include "model/DescribeReplicaSetRoleResult.h"
#include "model/DescribeRestoreDBInstanceListRequest.h"
#include "model/DescribeRestoreDBInstanceListResult.h"
#include "model/DescribeRoleZoneInfoRequest.h"
#include "model/DescribeRoleZoneInfoResult.h"
#include "model/DescribeRunningLogRecordsRequest.h"
@@ -424,6 +426,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeReplicaSetRoleResult> DescribeReplicaSetRoleOutcome;
typedef std::future<DescribeReplicaSetRoleOutcome> DescribeReplicaSetRoleOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeReplicaSetRoleRequest&, const DescribeReplicaSetRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeReplicaSetRoleAsyncHandler;
typedef Outcome<Error, Model::DescribeRestoreDBInstanceListResult> DescribeRestoreDBInstanceListOutcome;
typedef std::future<DescribeRestoreDBInstanceListOutcome> DescribeRestoreDBInstanceListOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeRestoreDBInstanceListRequest&, const DescribeRestoreDBInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreDBInstanceListAsyncHandler;
typedef Outcome<Error, Model::DescribeRoleZoneInfoResult> DescribeRoleZoneInfoOutcome;
typedef std::future<DescribeRoleZoneInfoOutcome> DescribeRoleZoneInfoOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeRoleZoneInfoRequest&, const DescribeRoleZoneInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRoleZoneInfoAsyncHandler;
@@ -762,6 +767,9 @@ namespace AlibabaCloud
DescribeReplicaSetRoleOutcome describeReplicaSetRole(const Model::DescribeReplicaSetRoleRequest &request)const;
void describeReplicaSetRoleAsync(const Model::DescribeReplicaSetRoleRequest& request, const DescribeReplicaSetRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeReplicaSetRoleOutcomeCallable describeReplicaSetRoleCallable(const Model::DescribeReplicaSetRoleRequest& request) const;
DescribeRestoreDBInstanceListOutcome describeRestoreDBInstanceList(const Model::DescribeRestoreDBInstanceListRequest &request)const;
void describeRestoreDBInstanceListAsync(const Model::DescribeRestoreDBInstanceListRequest& request, const DescribeRestoreDBInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRestoreDBInstanceListOutcomeCallable describeRestoreDBInstanceListCallable(const Model::DescribeRestoreDBInstanceListRequest& request) const;
DescribeRoleZoneInfoOutcome describeRoleZoneInfo(const Model::DescribeRoleZoneInfoRequest &request)const;
void describeRoleZoneInfoAsync(const Model::DescribeRoleZoneInfoRequest& request, const DescribeRoleZoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRoleZoneInfoOutcomeCallable describeRoleZoneInfoCallable(const Model::DescribeRoleZoneInfoRequest& request) const;

View File

@@ -32,6 +32,8 @@ public:
~CheckRecoveryConditionRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getEngineVersion() const;
void setEngineVersion(const std::string &engineVersion);
std::string getSrcRegion() const;
void setSrcRegion(const std::string &srcRegion);
std::string getAccessKeyId() const;
@@ -61,6 +63,7 @@ public:
private:
long resourceOwnerId_;
std::string engineVersion_;
std::string srcRegion_;
std::string accessKeyId_;
std::string resourceGroupId_;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct Backup
{
std::string backupMethod;
std::string engineVersion;
std::string backupIntranetDownloadURL;
long backupSize;
std::string backupMode;

View File

@@ -64,6 +64,7 @@ namespace AlibabaCloud
std::string progress;
std::string attachLogStatus;
std::string clusterBackupStatus;
std::string engineVersion;
std::string clusterBackupSize;
std::vector<ClusterBackup::Backup> backups;
std::string clusterBackupEndTime;

View File

@@ -53,31 +53,33 @@ namespace AlibabaCloud
{
std::string connectSting;
std::string status;
std::string nodeClass;
std::string nodeDescription;
int maxConnections;
std::string vPCId;
std::string vSwitchId;
int port;
std::string nodeId;
std::string vpcCloudInstanceId;
std::string lockMode;
int maxIOPS;
std::string nodeClass;
std::string nodeDescription;
std::string currentKernelVersion;
std::string nodeId;
std::string vpcCloudInstanceId;
};
struct ShardAttribute
{
std::string status;
std::string nodeClass;
std::string nodeDescription;
int maxConnections;
int readonlyReplicas;
int port;
std::string nodeId;
int nodeStorage;
std::string lockMode;
std::string maxDiskMbps;
std::string connectString;
int maxIOPS;
std::string nodeClass;
std::string nodeDescription;
std::string currentKernelVersion;
std::string nodeId;
int nodeStorage;
std::string connectString;
};
struct ConfigserverAttribute
{
@@ -85,6 +87,7 @@ namespace AlibabaCloud
std::string nodeClass;
std::string nodeDescription;
int maxConnections;
std::string currentKernelVersion;
int port;
std::string nodeId;
int nodeStorage;

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string replicaSetRole;
std::string connectionDomain;
std::string connectionType;
std::string connectionPort;
std::string networkType;
std::string expiredTime;

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTREQUEST_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTREQUEST_H_
#include <alibabacloud/dds/DdsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dds {
namespace Model {
class ALIBABACLOUD_DDS_EXPORT DescribeRestoreDBInstanceListRequest : public RpcServiceRequest {
public:
DescribeRestoreDBInstanceListRequest();
~DescribeRestoreDBInstanceListRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getCreationTimeAfter() const;
void setCreationTimeAfter(const std::string &creationTimeAfter);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getDBInstanceId() const;
void setDBInstanceId(const std::string &dBInstanceId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string creationTimeAfter_;
int pageNumber_;
std::string accessKeyId_;
int pageSize_;
std::string dBInstanceId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Dds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTRESULT_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeRestoreDBInstanceListResult : public ServiceResult
{
public:
struct DBInstance
{
int isDeleted;
std::string engineVersion;
std::string dBInstanceStatus;
std::string zoneId;
std::string dBInstanceId;
std::string hiddenZoneId;
std::string creationTime;
std::string dBInstanceType;
std::string lockMode;
std::string regionId;
std::string dBInstanceDescription;
std::string secondaryZoneId;
};
DescribeRestoreDBInstanceListResult();
explicit DescribeRestoreDBInstanceListResult(const std::string &payload);
~DescribeRestoreDBInstanceListResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<DBInstance> getDBInstances()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<DBInstance> dBInstances_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERESTOREDBINSTANCELISTRESULT_H_

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
{
std::string role;
std::string networkAddress;
std::string connectionType;
std::string vPCId;
std::string networkType;
std::string nodeType;
@@ -54,6 +55,7 @@ namespace AlibabaCloud
std::string nodeId;
std::string iPAddress;
std::string vswitchId;
std::string txtRecord;
};

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