tencentcloud-sdk-clb 1.0.211 → 1.0.212
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180317/client.rb +24 -0
- data/lib/v20180317/models.rb +123 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c06989f825b2a110a148dcc55a386b1b35ab315
|
4
|
+
data.tar.gz: 9baa0716e34a201676b5907824816e2f8cd4b568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e60de0b287988c7728272f641d1ec11ea84d16661f1c93f9dd656d6b92f8dd972371eec0e1736520eb18d604a31ac2de8a7055754741c78b1442e5574b94a46
|
7
|
+
data.tar.gz: bc6b3812d33122fce60aad84a3c60459080e62e62584e57e051cf386a8ea70ea4832a3756fc2229b660ddbe9a82eb5c9a1b726d763a75c13ec2311498b385f5e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.212
|
data/lib/v20180317/client.rb
CHANGED
@@ -151,6 +151,30 @@ module TencentCloud
|
|
151
151
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
152
152
|
end
|
153
153
|
|
154
|
+
# 克隆负载均衡实例,根据指定的负载均衡实例,复制出相同规则和绑定关系的负载均衡实例。
|
155
|
+
|
156
|
+
# @param request: Request instance for CloneLoadBalancer.
|
157
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::CloneLoadBalancerRequest`
|
158
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::CloneLoadBalancerResponse`
|
159
|
+
def CloneLoadBalancer(request)
|
160
|
+
body = send_request('CloneLoadBalancer', request.serialize)
|
161
|
+
response = JSON.parse(body)
|
162
|
+
if response['Response'].key?('Error') == false
|
163
|
+
model = CloneLoadBalancerResponse.new
|
164
|
+
model.deserialize(response['Response'])
|
165
|
+
model
|
166
|
+
else
|
167
|
+
code = response['Response']['Error']['Code']
|
168
|
+
message = response['Response']['Error']['Message']
|
169
|
+
reqid = response['Response']['RequestId']
|
170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
171
|
+
end
|
172
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
173
|
+
raise e
|
174
|
+
rescue StandardError => e
|
175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
176
|
+
end
|
177
|
+
|
154
178
|
# 创建CLB专有日志集,此日志集用于存储CLB的日志。
|
155
179
|
|
156
180
|
# @param request: Request instance for CreateClsLogSet.
|
data/lib/v20180317/models.rb
CHANGED
@@ -782,6 +782,129 @@ module TencentCloud
|
|
782
782
|
end
|
783
783
|
end
|
784
784
|
|
785
|
+
# CloneLoadBalancer请求参数结构体
|
786
|
+
class CloneLoadBalancerRequest < TencentCloud::Common::AbstractModel
|
787
|
+
# @param LoadBalancerId: 负载均衡ID。
|
788
|
+
# @type LoadBalancerId: String
|
789
|
+
# @param LoadBalancerName: 克隆出负载均衡实例的名称,规则:1-60 个英文、汉字、数字、连接线“-”或下划线“_”。
|
790
|
+
# 注意:如果名称与系统中已有负载均衡实例的名称相同,则系统将会自动生成此次创建的负载均衡实例的名称。
|
791
|
+
# @type LoadBalancerName: String
|
792
|
+
# @param ProjectId: 负载均衡实例所属的项目 ID,可以通过 DescribeProject 接口获取。不传此参数则视为默认项目。
|
793
|
+
# @type ProjectId: Integer
|
794
|
+
# @param MasterZoneId: 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID,例如 100001 或 ap-guangzhou-1
|
795
|
+
# 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区,平台将为您自动选择最佳备可用区。可通过 DescribeMasterZones 接口查询一个地域的主可用区的列表。
|
796
|
+
# @type MasterZoneId: String
|
797
|
+
# @param SlaveZoneId: 仅适用于公网负载均衡。设置跨可用区容灾时的备可用区ID,例如 100001 或 ap-guangzhou-1
|
798
|
+
# 注:备可用区是主可用区故障后,需要承载流量的可用区。可通过 DescribeMasterZones 接口查询一个地域的主/备可用区的列表。
|
799
|
+
# @type SlaveZoneId: String
|
800
|
+
# @param ZoneId: 仅适用于公网负载均衡。可用区ID,指定可用区以创建负载均衡实例。如:ap-guangzhou-1。
|
801
|
+
# @type ZoneId: String
|
802
|
+
# @param InternetAccessible: 仅适用于公网负载均衡。负载均衡的网络计费模式。
|
803
|
+
# @type InternetAccessible: :class:`Tencentcloud::Clb.v20180317.models.InternetAccessible`
|
804
|
+
# @param VipIsp: 仅适用于公网负载均衡。CMCC | CTCC | CUCC,分别对应 移动 | 电信 | 联通,如果不指定本参数,则默认使用BGP。可通过 DescribeSingleIsp 接口查询一个地域所支持的Isp。如果指定运营商,则网络计费式只能使用按带宽包计费(BANDWIDTH_PACKAGE)。
|
805
|
+
# @type VipIsp: String
|
806
|
+
# @param Vip: 指定Vip申请负载均衡。
|
807
|
+
# @type Vip: String
|
808
|
+
# @param Tags: 购买负载均衡同时,给负载均衡打上标签。
|
809
|
+
# @type Tags: Array
|
810
|
+
# @param ExclusiveCluster: 独占集群信息。
|
811
|
+
# @type ExclusiveCluster: :class:`Tencentcloud::Clb.v20180317.models.ExclusiveCluster`
|
812
|
+
# @param BandwidthPackageId: 带宽包ID,指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE)。
|
813
|
+
# @type BandwidthPackageId: String
|
814
|
+
# @param SnatPro: 是否支持绑定跨地域/跨Vpc绑定IP的功能。
|
815
|
+
# @type SnatPro: Boolean
|
816
|
+
# @param SnatIps: 开启绑定跨地域/跨Vpc绑定IP的功能后,创建SnatIp。
|
817
|
+
# @type SnatIps: Array
|
818
|
+
# @param ClusterIds: 公网独占集群ID或者CDCId。
|
819
|
+
# @type ClusterIds: Array
|
820
|
+
# @param ClusterTag: Stgw独占集群的标签。
|
821
|
+
# @type ClusterTag: String
|
822
|
+
# @param Zones: 仅适用于私有网络内网负载均衡。内网就近接入时,选择可用区下发。
|
823
|
+
# @type Zones: Array
|
824
|
+
# @param EipAddressId: EIP 的唯一 ID,形如:eip-11112222,仅适用于内网负载均衡绑定EIP。
|
825
|
+
# @type EipAddressId: String
|
826
|
+
|
827
|
+
attr_accessor :LoadBalancerId, :LoadBalancerName, :ProjectId, :MasterZoneId, :SlaveZoneId, :ZoneId, :InternetAccessible, :VipIsp, :Vip, :Tags, :ExclusiveCluster, :BandwidthPackageId, :SnatPro, :SnatIps, :ClusterIds, :ClusterTag, :Zones, :EipAddressId
|
828
|
+
|
829
|
+
def initialize(loadbalancerid=nil, loadbalancername=nil, projectid=nil, masterzoneid=nil, slavezoneid=nil, zoneid=nil, internetaccessible=nil, vipisp=nil, vip=nil, tags=nil, exclusivecluster=nil, bandwidthpackageid=nil, snatpro=nil, snatips=nil, clusterids=nil, clustertag=nil, zones=nil, eipaddressid=nil)
|
830
|
+
@LoadBalancerId = loadbalancerid
|
831
|
+
@LoadBalancerName = loadbalancername
|
832
|
+
@ProjectId = projectid
|
833
|
+
@MasterZoneId = masterzoneid
|
834
|
+
@SlaveZoneId = slavezoneid
|
835
|
+
@ZoneId = zoneid
|
836
|
+
@InternetAccessible = internetaccessible
|
837
|
+
@VipIsp = vipisp
|
838
|
+
@Vip = vip
|
839
|
+
@Tags = tags
|
840
|
+
@ExclusiveCluster = exclusivecluster
|
841
|
+
@BandwidthPackageId = bandwidthpackageid
|
842
|
+
@SnatPro = snatpro
|
843
|
+
@SnatIps = snatips
|
844
|
+
@ClusterIds = clusterids
|
845
|
+
@ClusterTag = clustertag
|
846
|
+
@Zones = zones
|
847
|
+
@EipAddressId = eipaddressid
|
848
|
+
end
|
849
|
+
|
850
|
+
def deserialize(params)
|
851
|
+
@LoadBalancerId = params['LoadBalancerId']
|
852
|
+
@LoadBalancerName = params['LoadBalancerName']
|
853
|
+
@ProjectId = params['ProjectId']
|
854
|
+
@MasterZoneId = params['MasterZoneId']
|
855
|
+
@SlaveZoneId = params['SlaveZoneId']
|
856
|
+
@ZoneId = params['ZoneId']
|
857
|
+
unless params['InternetAccessible'].nil?
|
858
|
+
@InternetAccessible = InternetAccessible.new
|
859
|
+
@InternetAccessible.deserialize(params['InternetAccessible'])
|
860
|
+
end
|
861
|
+
@VipIsp = params['VipIsp']
|
862
|
+
@Vip = params['Vip']
|
863
|
+
unless params['Tags'].nil?
|
864
|
+
@Tags = []
|
865
|
+
params['Tags'].each do |i|
|
866
|
+
taginfo_tmp = TagInfo.new
|
867
|
+
taginfo_tmp.deserialize(i)
|
868
|
+
@Tags << taginfo_tmp
|
869
|
+
end
|
870
|
+
end
|
871
|
+
unless params['ExclusiveCluster'].nil?
|
872
|
+
@ExclusiveCluster = ExclusiveCluster.new
|
873
|
+
@ExclusiveCluster.deserialize(params['ExclusiveCluster'])
|
874
|
+
end
|
875
|
+
@BandwidthPackageId = params['BandwidthPackageId']
|
876
|
+
@SnatPro = params['SnatPro']
|
877
|
+
unless params['SnatIps'].nil?
|
878
|
+
@SnatIps = []
|
879
|
+
params['SnatIps'].each do |i|
|
880
|
+
snatip_tmp = SnatIp.new
|
881
|
+
snatip_tmp.deserialize(i)
|
882
|
+
@SnatIps << snatip_tmp
|
883
|
+
end
|
884
|
+
end
|
885
|
+
@ClusterIds = params['ClusterIds']
|
886
|
+
@ClusterTag = params['ClusterTag']
|
887
|
+
@Zones = params['Zones']
|
888
|
+
@EipAddressId = params['EipAddressId']
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
892
|
+
# CloneLoadBalancer返回参数结构体
|
893
|
+
class CloneLoadBalancerResponse < TencentCloud::Common::AbstractModel
|
894
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
895
|
+
# @type RequestId: String
|
896
|
+
|
897
|
+
attr_accessor :RequestId
|
898
|
+
|
899
|
+
def initialize(requestid=nil)
|
900
|
+
@RequestId = requestid
|
901
|
+
end
|
902
|
+
|
903
|
+
def deserialize(params)
|
904
|
+
@RequestId = params['RequestId']
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
785
908
|
# 集群的详细信息,如集群ID,名称,类型,可用区,标签等
|
786
909
|
class Cluster < TencentCloud::Common::AbstractModel
|
787
910
|
# @param ClusterId: 集群唯一ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-clb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.212
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|