tencentcloud-sdk-gwlb 3.0.1143 → 3.0.1193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240906/client.rb +24 -0
- data/lib/v20240906/models.rb +84 -23
- 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: 358d79efec478cd0bccdd860ca879b850da05b6b
|
|
4
|
+
data.tar.gz: 600c59cdeddc7a661c5002ece80e4766c19848b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cd10fd196295cbc8df547b7a04f107a48645bb2b6bda0cc65473a6b5f28d711f7484722c6d9120e29860a073940f1b8b635507202420c02c6f9797c4fd5d572
|
|
7
|
+
data.tar.gz: ed6d3c2a0bc62570287b18e5a5a54f56c8b481e545a1aa28b332a0bfba3a7d5186d5468458d6990e86f6110cc19f1cf69466beeb00766e1b35487b99ed19600f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1193
|
data/lib/v20240906/client.rb
CHANGED
|
@@ -201,6 +201,30 @@ module TencentCloud
|
|
|
201
201
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
+
# 查询用户在当前地域支持可用区列表
|
|
205
|
+
|
|
206
|
+
# @param request: Request instance for DescribeGatewayLoadBalancersResources.
|
|
207
|
+
# @type request: :class:`Tencentcloud::gwlb::V20240906::DescribeGatewayLoadBalancersResourcesRequest`
|
|
208
|
+
# @rtype: :class:`Tencentcloud::gwlb::V20240906::DescribeGatewayLoadBalancersResourcesResponse`
|
|
209
|
+
def DescribeGatewayLoadBalancersResources(request)
|
|
210
|
+
body = send_request('DescribeGatewayLoadBalancersResources', request.serialize)
|
|
211
|
+
response = JSON.parse(body)
|
|
212
|
+
if response['Response'].key?('Error') == false
|
|
213
|
+
model = DescribeGatewayLoadBalancersResourcesResponse.new
|
|
214
|
+
model.deserialize(response['Response'])
|
|
215
|
+
model
|
|
216
|
+
else
|
|
217
|
+
code = response['Response']['Error']['Code']
|
|
218
|
+
message = response['Response']['Error']['Message']
|
|
219
|
+
reqid = response['Response']['RequestId']
|
|
220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
221
|
+
end
|
|
222
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
223
|
+
raise e
|
|
224
|
+
rescue StandardError => e
|
|
225
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
226
|
+
end
|
|
227
|
+
|
|
204
228
|
# 查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
|
|
205
229
|
|
|
206
230
|
# @param request: Request instance for DescribeTargetGroupInstanceStatus.
|
data/lib/v20240906/models.rb
CHANGED
|
@@ -146,43 +146,37 @@ module TencentCloud
|
|
|
146
146
|
|
|
147
147
|
# CreateTargetGroup请求参数结构体
|
|
148
148
|
class CreateTargetGroupRequest < TencentCloud::Common::AbstractModel
|
|
149
|
-
# @param TargetGroupName:
|
|
149
|
+
# @param TargetGroupName: <p>目标组名称,限定60个字符。</p>
|
|
150
150
|
# @type TargetGroupName: String
|
|
151
|
-
# @param VpcId:
|
|
151
|
+
# @param VpcId: <p>网关负载均衡后端目标组所属的网络 ID,如vpc-12345678,可以通过 <a href="https://cloud.tencent.com/document/product/215/15778">DescribeVpcs</a> 接口获取。 不填此参数则默认为DefaultVPC。</p>
|
|
152
152
|
# @type VpcId: String
|
|
153
|
-
# @param Port:
|
|
153
|
+
# @param Port: <p>目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。仅支持6081。</p>
|
|
154
154
|
# @type Port: Integer
|
|
155
|
-
# @param TargetGroupInstances:
|
|
155
|
+
# @param TargetGroupInstances: <p>目标组绑定的后端服务器</p>
|
|
156
156
|
# @type TargetGroupInstances: Array
|
|
157
|
-
# @param Protocol:
|
|
158
|
-
# - TENCENT_GENEVE :GENEVE 标准协议
|
|
159
|
-
# - AWS_GENEVE:GENEVE 兼容协议
|
|
157
|
+
# @param Protocol: <p>网关负载均衡目标组协议。- TENCENT_GENEVE :GENEVE 标准协议- AWS_GENEVE:GENEVE 兼容协议</p>
|
|
160
158
|
# @type Protocol: String
|
|
161
|
-
# @param HealthCheck:
|
|
159
|
+
# @param HealthCheck: <p>健康检查设置。</p>
|
|
162
160
|
# @type HealthCheck: :class:`Tencentcloud::Gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
163
|
-
# @param ScheduleAlgorithm:
|
|
164
|
-
# - IP_HASH_3_ELASTIC:弹性哈希
|
|
161
|
+
# @param ScheduleAlgorithm: <p>均衡算法。</p><ul><li>IP_HASH_2_CONSISTENT:二元组一致性哈希</li><li>IP_HASH_3_CONSISTENT:三元组一致性哈希</li><li>IP_HASH_5_CONSISTENT:五元组一致性哈希</li></ul>
|
|
165
162
|
# @type ScheduleAlgorithm: String
|
|
166
|
-
# @param AllDeadToAlive:
|
|
163
|
+
# @param AllDeadToAlive: <p>是否支持全死全活。默认支持。</p>
|
|
167
164
|
# @type AllDeadToAlive: Boolean
|
|
168
|
-
# @param Tags:
|
|
165
|
+
# @param Tags: <p>标签。</p>
|
|
169
166
|
# @type Tags: Array
|
|
170
|
-
# @param ForwardingMode:
|
|
171
|
-
|
|
172
|
-
# - STATELESS:无状态
|
|
173
|
-
# - STATEFUL: 有状态
|
|
167
|
+
# @param ForwardingMode: <p>流量分发方式</p><ul><li>STATELESS:无状态</li><li>STATEFUL: 有状态</li></ul>
|
|
174
168
|
# @type ForwardingMode: String
|
|
175
|
-
# @param TcpIdleConnectTimeout: TCP协议连接空闲超时时间,可配置60s-6000s,默认350s
|
|
169
|
+
# @param TcpIdleConnectTimeout: <p>TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。</p>
|
|
176
170
|
# @type TcpIdleConnectTimeout: Integer
|
|
177
|
-
# @param OthersIdleConnectTimeout:
|
|
171
|
+
# @param OthersIdleConnectTimeout: <p>其他协议连接空闲超时时间,可配置5s-180s,默认120s</p>
|
|
178
172
|
# @type OthersIdleConnectTimeout: Integer
|
|
179
|
-
# @param RescheduleUnbindRs:
|
|
173
|
+
# @param RescheduleUnbindRs: <p>重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。</p>
|
|
180
174
|
# @type RescheduleUnbindRs: Boolean
|
|
181
|
-
# @param RescheduleUnbindRsStartTime:
|
|
175
|
+
# @param RescheduleUnbindRsStartTime: <p>解绑RS后开启重调度的时间,可配置0s-3600s,默认0s</p>
|
|
182
176
|
# @type RescheduleUnbindRsStartTime: Integer
|
|
183
|
-
# @param RescheduleUnhealthy:
|
|
177
|
+
# @param RescheduleUnhealthy: <p>重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。</p>
|
|
184
178
|
# @type RescheduleUnhealthy: Boolean
|
|
185
|
-
# @param RescheduleUnhealthyStartTime:
|
|
179
|
+
# @param RescheduleUnhealthyStartTime: <p>后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s</p>
|
|
186
180
|
# @type RescheduleUnhealthyStartTime: Integer
|
|
187
181
|
|
|
188
182
|
attr_accessor :TargetGroupName, :VpcId, :Port, :TargetGroupInstances, :Protocol, :HealthCheck, :ScheduleAlgorithm, :AllDeadToAlive, :Tags, :ForwardingMode, :TcpIdleConnectTimeout, :OthersIdleConnectTimeout, :RescheduleUnbindRs, :RescheduleUnbindRsStartTime, :RescheduleUnhealthy, :RescheduleUnhealthyStartTime
|
|
@@ -245,7 +239,7 @@ module TencentCloud
|
|
|
245
239
|
|
|
246
240
|
# CreateTargetGroup返回参数结构体
|
|
247
241
|
class CreateTargetGroupResponse < TencentCloud::Common::AbstractModel
|
|
248
|
-
# @param TargetGroupId:
|
|
242
|
+
# @param TargetGroupId: <p>创建目标组后生成的id</p>
|
|
249
243
|
# @type TargetGroupId: String
|
|
250
244
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
251
245
|
# @type RequestId: String
|
|
@@ -413,6 +407,57 @@ module TencentCloud
|
|
|
413
407
|
end
|
|
414
408
|
end
|
|
415
409
|
|
|
410
|
+
# DescribeGatewayLoadBalancersResources请求参数结构体
|
|
411
|
+
class DescribeGatewayLoadBalancersResourcesRequest < TencentCloud::Common::AbstractModel
|
|
412
|
+
# @param Limit: 返回可用区资源列表数目,默认20,最大值100。
|
|
413
|
+
# @type Limit: Integer
|
|
414
|
+
# @param Offset: 返回可用区资源列表起始偏移量,默认0。
|
|
415
|
+
# @type Offset: Integer
|
|
416
|
+
|
|
417
|
+
attr_accessor :Limit, :Offset
|
|
418
|
+
|
|
419
|
+
def initialize(limit=nil, offset=nil)
|
|
420
|
+
@Limit = limit
|
|
421
|
+
@Offset = offset
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
def deserialize(params)
|
|
425
|
+
@Limit = params['Limit']
|
|
426
|
+
@Offset = params['Offset']
|
|
427
|
+
end
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# DescribeGatewayLoadBalancersResources返回参数结构体
|
|
431
|
+
class DescribeGatewayLoadBalancersResourcesResponse < TencentCloud::Common::AbstractModel
|
|
432
|
+
# @param ZoneResourceSet: 可用区支持的资源列表。
|
|
433
|
+
# @type ZoneResourceSet: Array
|
|
434
|
+
# @param TotalCount: 可用区资源列表数目。
|
|
435
|
+
# @type TotalCount: Integer
|
|
436
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
437
|
+
# @type RequestId: String
|
|
438
|
+
|
|
439
|
+
attr_accessor :ZoneResourceSet, :TotalCount, :RequestId
|
|
440
|
+
|
|
441
|
+
def initialize(zoneresourceset=nil, totalcount=nil, requestid=nil)
|
|
442
|
+
@ZoneResourceSet = zoneresourceset
|
|
443
|
+
@TotalCount = totalcount
|
|
444
|
+
@RequestId = requestid
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
def deserialize(params)
|
|
448
|
+
unless params['ZoneResourceSet'].nil?
|
|
449
|
+
@ZoneResourceSet = []
|
|
450
|
+
params['ZoneResourceSet'].each do |i|
|
|
451
|
+
zoneresource_tmp = ZoneResource.new
|
|
452
|
+
zoneresource_tmp.deserialize(i)
|
|
453
|
+
@ZoneResourceSet << zoneresource_tmp
|
|
454
|
+
end
|
|
455
|
+
end
|
|
456
|
+
@TotalCount = params['TotalCount']
|
|
457
|
+
@RequestId = params['RequestId']
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
416
461
|
# DescribeGatewayLoadBalancers返回参数结构体
|
|
417
462
|
class DescribeGatewayLoadBalancersResponse < TencentCloud::Common::AbstractModel
|
|
418
463
|
# @param TotalCount: 满足过滤条件的负载均衡实例总数。此数值与入参中的Limit无关。
|
|
@@ -1493,6 +1538,22 @@ module TencentCloud
|
|
|
1493
1538
|
end
|
|
1494
1539
|
end
|
|
1495
1540
|
|
|
1541
|
+
# 可用区资源列表
|
|
1542
|
+
class ZoneResource < TencentCloud::Common::AbstractModel
|
|
1543
|
+
# @param MasterZone: 主可用区
|
|
1544
|
+
# @type MasterZone: String
|
|
1545
|
+
|
|
1546
|
+
attr_accessor :MasterZone
|
|
1547
|
+
|
|
1548
|
+
def initialize(masterzone=nil)
|
|
1549
|
+
@MasterZone = masterzone
|
|
1550
|
+
end
|
|
1551
|
+
|
|
1552
|
+
def deserialize(params)
|
|
1553
|
+
@MasterZone = params['MasterZone']
|
|
1554
|
+
end
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1496
1557
|
end
|
|
1497
1558
|
end
|
|
1498
1559
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-gwlb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1193
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|