tencentcloud-sdk-clb 1.0.261 → 1.0.262
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 +129 -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: 2d78c2017b6ec36358fbd0621de11c4c1da1515b
|
4
|
+
data.tar.gz: 562b25a8ec696bdafea45b5a8983d60ef03b478b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3678328dcb9998cc419a9a0d9452edfd92860ae7eddf9767ef706746e55ba46dba3f28e6359445e85ca6cefabbd9aec7e6856f7b61cb96b9e45755180b0c8e60
|
7
|
+
data.tar.gz: 02a8aa6c334cd085bbd6b2139f55811ca2511cffe3a89db6460198315214c4afd4246a7c37c2ee9f40f4061d36a01abbec4bfe6852804c30861b71bc3ed41ee2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.262
|
data/lib/v20180317/client.rb
CHANGED
@@ -1091,6 +1091,30 @@ module TencentCloud
|
|
1091
1091
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1092
1092
|
end
|
1093
1093
|
|
1094
|
+
# 查询用户在当前地域支持可用区列表和资源列表。
|
1095
|
+
|
1096
|
+
# @param request: Request instance for DescribeResources.
|
1097
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::DescribeResourcesRequest`
|
1098
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::DescribeResourcesResponse`
|
1099
|
+
def DescribeResources(request)
|
1100
|
+
body = send_request('DescribeResources', request.serialize)
|
1101
|
+
response = JSON.parse(body)
|
1102
|
+
if response['Response'].key?('Error') == false
|
1103
|
+
model = DescribeResourcesResponse.new
|
1104
|
+
model.deserialize(response['Response'])
|
1105
|
+
model
|
1106
|
+
else
|
1107
|
+
code = response['Response']['Error']['Code']
|
1108
|
+
message = response['Response']['Error']['Message']
|
1109
|
+
reqid = response['Response']['RequestId']
|
1110
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1111
|
+
end
|
1112
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1113
|
+
raise e
|
1114
|
+
rescue StandardError => e
|
1115
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1116
|
+
end
|
1117
|
+
|
1094
1118
|
# DescribeRewrite 接口可根据负载均衡实例ID,查询一个负载均衡实例下转发规则的重定向关系。如果不指定监听器ID或转发规则ID,则返回该负载均衡实例下的所有重定向关系。
|
1095
1119
|
|
1096
1120
|
# @param request: Request instance for DescribeRewrite.
|
data/lib/v20180317/models.rb
CHANGED
@@ -3273,6 +3273,70 @@ module TencentCloud
|
|
3273
3273
|
end
|
3274
3274
|
end
|
3275
3275
|
|
3276
|
+
# DescribeResources请求参数结构体
|
3277
|
+
class DescribeResourcesRequest < TencentCloud::Common::AbstractModel
|
3278
|
+
# @param Limit: 返回可用区资源列表数目,默认20,最大值100。
|
3279
|
+
# @type Limit: Integer
|
3280
|
+
# @param Offset: 返回可用区资源列表起始偏移量,默认0。
|
3281
|
+
# @type Offset: Integer
|
3282
|
+
# @param Filters: 查询可用区资源列表条件,详细的过滤条件如下:
|
3283
|
+
# <li> zone - String - 是否必填:否 - (过滤条件)按照 可用区 过滤,如:"ap-guangzhou-1"(广州一区)。</li>
|
3284
|
+
# <li> isp -- String - 是否必填:否 - (过滤条件)按照 Isp 类型过滤,如:"BGP","CMCC","CUCC","CTCC"。</li>
|
3285
|
+
# @type Filters: Array
|
3286
|
+
|
3287
|
+
attr_accessor :Limit, :Offset, :Filters
|
3288
|
+
|
3289
|
+
def initialize(limit=nil, offset=nil, filters=nil)
|
3290
|
+
@Limit = limit
|
3291
|
+
@Offset = offset
|
3292
|
+
@Filters = filters
|
3293
|
+
end
|
3294
|
+
|
3295
|
+
def deserialize(params)
|
3296
|
+
@Limit = params['Limit']
|
3297
|
+
@Offset = params['Offset']
|
3298
|
+
unless params['Filters'].nil?
|
3299
|
+
@Filters = []
|
3300
|
+
params['Filters'].each do |i|
|
3301
|
+
filter_tmp = Filter.new
|
3302
|
+
filter_tmp.deserialize(i)
|
3303
|
+
@Filters << filter_tmp
|
3304
|
+
end
|
3305
|
+
end
|
3306
|
+
end
|
3307
|
+
end
|
3308
|
+
|
3309
|
+
# DescribeResources返回参数结构体
|
3310
|
+
class DescribeResourcesResponse < TencentCloud::Common::AbstractModel
|
3311
|
+
# @param ZoneResourceSet: 可用区支持的资源列表。
|
3312
|
+
# @type ZoneResourceSet: Array
|
3313
|
+
# @param TotalCount: 可用区资源列表数目。
|
3314
|
+
# @type TotalCount: Integer
|
3315
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3316
|
+
# @type RequestId: String
|
3317
|
+
|
3318
|
+
attr_accessor :ZoneResourceSet, :TotalCount, :RequestId
|
3319
|
+
|
3320
|
+
def initialize(zoneresourceset=nil, totalcount=nil, requestid=nil)
|
3321
|
+
@ZoneResourceSet = zoneresourceset
|
3322
|
+
@TotalCount = totalcount
|
3323
|
+
@RequestId = requestid
|
3324
|
+
end
|
3325
|
+
|
3326
|
+
def deserialize(params)
|
3327
|
+
unless params['ZoneResourceSet'].nil?
|
3328
|
+
@ZoneResourceSet = []
|
3329
|
+
params['ZoneResourceSet'].each do |i|
|
3330
|
+
zoneresource_tmp = ZoneResource.new
|
3331
|
+
zoneresource_tmp.deserialize(i)
|
3332
|
+
@ZoneResourceSet << zoneresource_tmp
|
3333
|
+
end
|
3334
|
+
end
|
3335
|
+
@TotalCount = params['TotalCount']
|
3336
|
+
@RequestId = params['RequestId']
|
3337
|
+
end
|
3338
|
+
end
|
3339
|
+
|
3276
3340
|
# DescribeRewrite请求参数结构体
|
3277
3341
|
class DescribeRewriteRequest < TencentCloud::Common::AbstractModel
|
3278
3342
|
# @param LoadBalancerId: 负载均衡实例ID。
|
@@ -5848,6 +5912,26 @@ module TencentCloud
|
|
5848
5912
|
end
|
5849
5913
|
end
|
5850
5914
|
|
5915
|
+
# 资源详细信息
|
5916
|
+
class Resource < TencentCloud::Common::AbstractModel
|
5917
|
+
# @param Type: 运营商内具体资源信息,如"CMCC", "CUCC", "CTCC", "BGP", "INTERNAL"。
|
5918
|
+
# @type Type: Array
|
5919
|
+
# @param Isp: 运营商信息,如"CMCC", "CUCC", "CTCC", "BGP", "INTERNAL"。
|
5920
|
+
# @type Isp: String
|
5921
|
+
|
5922
|
+
attr_accessor :Type, :Isp
|
5923
|
+
|
5924
|
+
def initialize(type=nil, isp=nil)
|
5925
|
+
@Type = type
|
5926
|
+
@Isp = isp
|
5927
|
+
end
|
5928
|
+
|
5929
|
+
def deserialize(params)
|
5930
|
+
@Type = params['Type']
|
5931
|
+
@Isp = params['Isp']
|
5932
|
+
end
|
5933
|
+
end
|
5934
|
+
|
5851
5935
|
# 转发规则之间的重定向关系
|
5852
5936
|
class RewriteLocationMap < TencentCloud::Common::AbstractModel
|
5853
5937
|
# @param SourceLocationId: 源转发规则ID
|
@@ -6804,6 +6888,51 @@ module TencentCloud
|
|
6804
6888
|
end
|
6805
6889
|
end
|
6806
6890
|
|
6891
|
+
# 可用区资源列表
|
6892
|
+
class ZoneResource < TencentCloud::Common::AbstractModel
|
6893
|
+
# @param MasterZone: 主可用区,如"ap-guangzhou-1"。
|
6894
|
+
# @type MasterZone: String
|
6895
|
+
# @param ResourceSet: 资源列表。
|
6896
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6897
|
+
# @type ResourceSet: Array
|
6898
|
+
# @param SlaveZone: 备可用区,如"ap-guangzhou-2",单可用区时,备可用区为null。
|
6899
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6900
|
+
# @type SlaveZone: String
|
6901
|
+
# @param IPVersion: IP版本,如IPv4,IPv6,IPv6_Nat。
|
6902
|
+
# @type IPVersion: String
|
6903
|
+
# @param ZoneRegion: 可用区所属地域,如:ap-guangzhou
|
6904
|
+
# @type ZoneRegion: String
|
6905
|
+
# @param LocalZone: 可用区是否是LocalZone可用区,如:false
|
6906
|
+
# @type LocalZone: Boolean
|
6907
|
+
|
6908
|
+
attr_accessor :MasterZone, :ResourceSet, :SlaveZone, :IPVersion, :ZoneRegion, :LocalZone
|
6909
|
+
|
6910
|
+
def initialize(masterzone=nil, resourceset=nil, slavezone=nil, ipversion=nil, zoneregion=nil, localzone=nil)
|
6911
|
+
@MasterZone = masterzone
|
6912
|
+
@ResourceSet = resourceset
|
6913
|
+
@SlaveZone = slavezone
|
6914
|
+
@IPVersion = ipversion
|
6915
|
+
@ZoneRegion = zoneregion
|
6916
|
+
@LocalZone = localzone
|
6917
|
+
end
|
6918
|
+
|
6919
|
+
def deserialize(params)
|
6920
|
+
@MasterZone = params['MasterZone']
|
6921
|
+
unless params['ResourceSet'].nil?
|
6922
|
+
@ResourceSet = []
|
6923
|
+
params['ResourceSet'].each do |i|
|
6924
|
+
resource_tmp = Resource.new
|
6925
|
+
resource_tmp.deserialize(i)
|
6926
|
+
@ResourceSet << resource_tmp
|
6927
|
+
end
|
6928
|
+
end
|
6929
|
+
@SlaveZone = params['SlaveZone']
|
6930
|
+
@IPVersion = params['IPVersion']
|
6931
|
+
@ZoneRegion = params['ZoneRegion']
|
6932
|
+
@LocalZone = params['LocalZone']
|
6933
|
+
end
|
6934
|
+
end
|
6935
|
+
|
6807
6936
|
end
|
6808
6937
|
end
|
6809
6938
|
end
|
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.262
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|