Support SLB DescribeLoadBalancerListeners.
This commit is contained in:
@@ -96,6 +96,8 @@
|
||||
#include "model/DescribeLoadBalancerHTTPListenerAttributeResult.h"
|
||||
#include "model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h"
|
||||
#include "model/DescribeLoadBalancerHTTPSListenerAttributeResult.h"
|
||||
#include "model/DescribeLoadBalancerListenersRequest.h"
|
||||
#include "model/DescribeLoadBalancerListenersResult.h"
|
||||
#include "model/DescribeLoadBalancerTCPListenerAttributeRequest.h"
|
||||
#include "model/DescribeLoadBalancerTCPListenerAttributeResult.h"
|
||||
#include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h"
|
||||
@@ -310,6 +312,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeLoadBalancerHTTPSListenerAttributeResult> DescribeLoadBalancerHTTPSListenerAttributeOutcome;
|
||||
typedef std::future<DescribeLoadBalancerHTTPSListenerAttributeOutcome> DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const SlbClient*, const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest&, const DescribeLoadBalancerHTTPSListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLoadBalancerListenersResult> DescribeLoadBalancerListenersOutcome;
|
||||
typedef std::future<DescribeLoadBalancerListenersOutcome> DescribeLoadBalancerListenersOutcomeCallable;
|
||||
typedef std::function<void(const SlbClient*, const Model::DescribeLoadBalancerListenersRequest&, const DescribeLoadBalancerListenersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoadBalancerListenersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLoadBalancerTCPListenerAttributeResult> DescribeLoadBalancerTCPListenerAttributeOutcome;
|
||||
typedef std::future<DescribeLoadBalancerTCPListenerAttributeOutcome> DescribeLoadBalancerTCPListenerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const SlbClient*, const Model::DescribeLoadBalancerTCPListenerAttributeRequest&, const DescribeLoadBalancerTCPListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoadBalancerTCPListenerAttributeAsyncHandler;
|
||||
@@ -567,6 +572,9 @@ namespace AlibabaCloud
|
||||
DescribeLoadBalancerHTTPSListenerAttributeOutcome describeLoadBalancerHTTPSListenerAttribute(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest &request)const;
|
||||
void describeLoadBalancerHTTPSListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable describeLoadBalancerHTTPSListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request) const;
|
||||
DescribeLoadBalancerListenersOutcome describeLoadBalancerListeners(const Model::DescribeLoadBalancerListenersRequest &request)const;
|
||||
void describeLoadBalancerListenersAsync(const Model::DescribeLoadBalancerListenersRequest& request, const DescribeLoadBalancerListenersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoadBalancerListenersOutcomeCallable describeLoadBalancerListenersCallable(const Model::DescribeLoadBalancerListenersRequest& request) const;
|
||||
DescribeLoadBalancerTCPListenerAttributeOutcome describeLoadBalancerTCPListenerAttribute(const Model::DescribeLoadBalancerTCPListenerAttributeRequest &request)const;
|
||||
void describeLoadBalancerTCPListenerAttributeAsync(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request, const DescribeLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoadBalancerTCPListenerAttributeOutcomeCallable describeLoadBalancerTCPListenerAttributeCallable(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request) const;
|
||||
|
||||
@@ -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_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_
|
||||
#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/slb/SlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Slb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerListenersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLoadBalancerListenersRequest();
|
||||
~DescribeLoadBalancerListenersRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
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);
|
||||
std::string getListenerProtocol()const;
|
||||
void setListenerProtocol(const std::string& listenerProtocol);
|
||||
std::vector<std::string> getLoadBalancerId()const;
|
||||
void setLoadBalancerId(const std::vector<std::string>& loadBalancerId);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string listenerProtocol_;
|
||||
std::vector<std::string> loadBalancerId_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_
|
||||
@@ -0,0 +1,223 @@
|
||||
/*
|
||||
* 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_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_
|
||||
#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/slb/SlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Slb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerListenersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Listener
|
||||
{
|
||||
struct HTTPListenerConfig
|
||||
{
|
||||
int cookieTimeout;
|
||||
int unhealthyThreshold;
|
||||
std::string healthCheckURI;
|
||||
std::string healthCheck;
|
||||
int idleTimeout;
|
||||
std::string xForwardedFor_SLBID;
|
||||
int healthCheckConnectPort;
|
||||
std::string xForwardedFor_SLBPORT;
|
||||
std::string healthCheckMethod;
|
||||
std::string gzip;
|
||||
std::string stickySessionType;
|
||||
std::string xForwardedFor_SLBIP;
|
||||
std::string healthCheckHttpCode;
|
||||
int forwardCode;
|
||||
std::string cookie;
|
||||
int requestTimeout;
|
||||
int healthCheckInterval;
|
||||
std::string healthCheckHttpVersion;
|
||||
int healthCheckTimeout;
|
||||
std::string listenerForward;
|
||||
std::string stickySession;
|
||||
int forwardPort;
|
||||
int healthyThreshold;
|
||||
std::string xForwardedFor;
|
||||
std::string xForwardedFor_ClientSrcPort;
|
||||
std::string healthCheckDomain;
|
||||
std::string xForwardedFor_proto;
|
||||
std::string healthCheckType;
|
||||
};
|
||||
struct HTTPSListenerConfig
|
||||
{
|
||||
int cookieTimeout;
|
||||
int unhealthyThreshold;
|
||||
std::string healthCheckURI;
|
||||
std::string healthCheck;
|
||||
int idleTimeout;
|
||||
std::string xForwardedFor_SLBID;
|
||||
int healthCheckConnectPort;
|
||||
std::string xForwardedFor_SLBPORT;
|
||||
std::string healthCheckMethod;
|
||||
std::string gzip;
|
||||
std::string serverCertificateId;
|
||||
std::string stickySessionType;
|
||||
std::string xForwardedFor_SLBIP;
|
||||
std::string healthCheckHttpCode;
|
||||
std::string xForwardedFor_ClientCertSubjectDNAlias;
|
||||
std::string cookie;
|
||||
int requestTimeout;
|
||||
std::string xForwardedFor_ClientCertClientVerifyAlias;
|
||||
int healthCheckInterval;
|
||||
std::string tLSCipherPolicy;
|
||||
std::string cACertificateId;
|
||||
std::string xForwardedFor_ClientCertSubjectDN;
|
||||
std::string healthCheckHttpVersion;
|
||||
std::string xForwardedFor_ClientCertFingerprintAlias;
|
||||
std::string xForwardedFor_ClientCertIssuerDNAlias;
|
||||
int healthCheckTimeout;
|
||||
std::string xForwardedFor_ClientCertIssuerDN;
|
||||
std::string stickySession;
|
||||
int healthyThreshold;
|
||||
std::string xForwardedFor;
|
||||
std::string xForwardedFor_ClientSrcPort;
|
||||
std::string healthCheckDomain;
|
||||
std::string xForwardedFor_proto;
|
||||
std::string enableHttp2;
|
||||
std::string xForwardedFor_ClientCertClientVerify;
|
||||
std::string xForwardedFor_ClientCertFingerprint;
|
||||
std::string healthCheckType;
|
||||
};
|
||||
struct TCPListenerConfig
|
||||
{
|
||||
struct PortRange
|
||||
{
|
||||
int endPort;
|
||||
int startPort;
|
||||
};
|
||||
int healthCheckInterval;
|
||||
int unhealthyThreshold;
|
||||
std::string healthCheckURI;
|
||||
std::vector<PortRange> portRanges;
|
||||
std::string healthCheck;
|
||||
int healthCheckConnectTimeout;
|
||||
std::string connectionDrain;
|
||||
std::string healthCheckSwitch;
|
||||
int connectionDrainTimeout;
|
||||
int persistenceTimeout;
|
||||
int healthCheckConnectPort;
|
||||
std::string healthCheckMethod;
|
||||
int healthyThreshold;
|
||||
std::string healthCheckDomain;
|
||||
std::string masterSlaveServerGroupId;
|
||||
std::string healthCheckHttpCode;
|
||||
std::string healthCheckType;
|
||||
int establishedTimeout;
|
||||
};
|
||||
struct TCPSListenerConfig
|
||||
{
|
||||
std::string cookie;
|
||||
int cookieTimeout;
|
||||
int healthCheckInterval;
|
||||
std::string tLSCipherPolicy;
|
||||
std::string cACertificateId;
|
||||
int unhealthyThreshold;
|
||||
std::string healthCheckURI;
|
||||
std::string healthCheck;
|
||||
int idleTimeout;
|
||||
int healthCheckTimeout;
|
||||
std::string stickySession;
|
||||
int healthCheckConnectPort;
|
||||
std::string healthCheckMethod;
|
||||
int healthyThreshold;
|
||||
std::string healthCheckDomain;
|
||||
std::string serverCertificateId;
|
||||
std::string stickySessionType;
|
||||
std::string healthCheckHttpCode;
|
||||
std::string healthCheckType;
|
||||
};
|
||||
struct UDPListenerConfig
|
||||
{
|
||||
struct PortRange2
|
||||
{
|
||||
int endPort;
|
||||
int startPort;
|
||||
};
|
||||
int healthCheckInterval;
|
||||
int unhealthyThreshold;
|
||||
std::string healthCheckURI;
|
||||
std::string healthCheck;
|
||||
int healthCheckConnectTimeout;
|
||||
std::string connectionDrain;
|
||||
std::vector<PortRange2> portRanges1;
|
||||
std::string healthCheckSwitch;
|
||||
int connectionDrainTimeout;
|
||||
int healthCheckConnectPort;
|
||||
std::string healthCheckReq;
|
||||
std::string healthCheckMethod;
|
||||
std::string healthCheckExp;
|
||||
int healthyThreshold;
|
||||
std::string healthCheckDomain;
|
||||
std::string masterSlaveServerGroupId;
|
||||
std::string healthCheckHttpCode;
|
||||
std::string healthCheckType;
|
||||
};
|
||||
std::string status;
|
||||
int listenerPort;
|
||||
std::string vServerGroupId;
|
||||
std::string description;
|
||||
HTTPSListenerConfig hTTPSListenerConfig;
|
||||
std::string scheduler;
|
||||
HTTPListenerConfig hTTPListenerConfig;
|
||||
std::string aclId;
|
||||
UDPListenerConfig uDPListenerConfig;
|
||||
std::string loadBalancerId;
|
||||
int backendServerPort;
|
||||
std::string listenerProtocol;
|
||||
std::string aclStatus;
|
||||
TCPListenerConfig tCPListenerConfig;
|
||||
int bandwidth;
|
||||
TCPSListenerConfig tCPSListenerConfig;
|
||||
std::string aclType;
|
||||
std::vector<std::string> aclIds;
|
||||
};
|
||||
|
||||
|
||||
DescribeLoadBalancerListenersResult();
|
||||
explicit DescribeLoadBalancerListenersResult(const std::string &payload);
|
||||
~DescribeLoadBalancerListenersResult();
|
||||
std::vector<Listener> getListeners()const;
|
||||
int getTotalCount()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Listener> listeners_;
|
||||
int totalCount_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_
|
||||
Reference in New Issue
Block a user