tencentcloud-sdk-apigateway 1.0.266 → 1.0.267
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/v20180808/client.rb +120 -0
- data/lib/v20180808/models.rb +715 -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: b6a6511d1c13aea2f878fa450160414ecd927991
|
4
|
+
data.tar.gz: 800a5451bdca6cdc7757051ca33e482753da6a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b5a782d5147f33d75db202a480c9cda251cf8e14cf48876a4bc63ce0b19584e6ddf4d80656204a291520e3299d42b8b11e2278b5c19077ddd89b6c06f9a296
|
7
|
+
data.tar.gz: 923585f740251af517b99b5086fea6df09ff6e7d442d5df09a5eb229ccf8c2ebfde12caf7ee9f33d07a67868411f7f0d5e42f0634765d95ca4166e260e127e88
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.267
|
data/lib/v20180808/client.rb
CHANGED
@@ -370,6 +370,30 @@ module TencentCloud
|
|
370
370
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
371
371
|
end
|
372
372
|
|
373
|
+
# 用于创建创建VPC通道
|
374
|
+
|
375
|
+
# @param request: Request instance for CreateUpstream.
|
376
|
+
# @type request: :class:`Tencentcloud::apigateway::V20180808::CreateUpstreamRequest`
|
377
|
+
# @rtype: :class:`Tencentcloud::apigateway::V20180808::CreateUpstreamResponse`
|
378
|
+
def CreateUpstream(request)
|
379
|
+
body = send_request('CreateUpstream', request.serialize)
|
380
|
+
response = JSON.parse(body)
|
381
|
+
if response['Response'].key?('Error') == false
|
382
|
+
model = CreateUpstreamResponse.new
|
383
|
+
model.deserialize(response['Response'])
|
384
|
+
model
|
385
|
+
else
|
386
|
+
code = response['Response']['Error']['Code']
|
387
|
+
message = response['Response']['Error']['Message']
|
388
|
+
reqid = response['Response']['RequestId']
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
390
|
+
end
|
391
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
392
|
+
raise e
|
393
|
+
rescue StandardError => e
|
394
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
395
|
+
end
|
396
|
+
|
373
397
|
# 本接口(CreateUsagePlan)用于创建使用计划。
|
374
398
|
# 用户在使用 API 网关时,需要创建使用计划并将其绑定到服务的环境中使用。
|
375
399
|
|
@@ -588,6 +612,30 @@ module TencentCloud
|
|
588
612
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
589
613
|
end
|
590
614
|
|
615
|
+
# 删除VPC通道,需要注意有api绑定时,不允许删除
|
616
|
+
|
617
|
+
# @param request: Request instance for DeleteUpstream.
|
618
|
+
# @type request: :class:`Tencentcloud::apigateway::V20180808::DeleteUpstreamRequest`
|
619
|
+
# @rtype: :class:`Tencentcloud::apigateway::V20180808::DeleteUpstreamResponse`
|
620
|
+
def DeleteUpstream(request)
|
621
|
+
body = send_request('DeleteUpstream', request.serialize)
|
622
|
+
response = JSON.parse(body)
|
623
|
+
if response['Response'].key?('Error') == false
|
624
|
+
model = DeleteUpstreamResponse.new
|
625
|
+
model.deserialize(response['Response'])
|
626
|
+
model
|
627
|
+
else
|
628
|
+
code = response['Response']['Error']['Code']
|
629
|
+
message = response['Response']['Error']['Message']
|
630
|
+
reqid = response['Response']['RequestId']
|
631
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
632
|
+
end
|
633
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
634
|
+
raise e
|
635
|
+
rescue StandardError => e
|
636
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
637
|
+
end
|
638
|
+
|
591
639
|
# 本接口(DeleteUsagePlan)用于删除使用计划。
|
592
640
|
|
593
641
|
# @param request: Request instance for DeleteUsagePlan.
|
@@ -1438,6 +1486,54 @@ module TencentCloud
|
|
1438
1486
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1439
1487
|
end
|
1440
1488
|
|
1489
|
+
# 查询VPC通道绑定的api列表
|
1490
|
+
|
1491
|
+
# @param request: Request instance for DescribeUpstreamBindApis.
|
1492
|
+
# @type request: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamBindApisRequest`
|
1493
|
+
# @rtype: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamBindApisResponse`
|
1494
|
+
def DescribeUpstreamBindApis(request)
|
1495
|
+
body = send_request('DescribeUpstreamBindApis', request.serialize)
|
1496
|
+
response = JSON.parse(body)
|
1497
|
+
if response['Response'].key?('Error') == false
|
1498
|
+
model = DescribeUpstreamBindApisResponse.new
|
1499
|
+
model.deserialize(response['Response'])
|
1500
|
+
model
|
1501
|
+
else
|
1502
|
+
code = response['Response']['Error']['Code']
|
1503
|
+
message = response['Response']['Error']['Message']
|
1504
|
+
reqid = response['Response']['RequestId']
|
1505
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1506
|
+
end
|
1507
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1508
|
+
raise e
|
1509
|
+
rescue StandardError => e
|
1510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
# 查询VPC通道列表详情
|
1514
|
+
|
1515
|
+
# @param request: Request instance for DescribeUpstreams.
|
1516
|
+
# @type request: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamsRequest`
|
1517
|
+
# @rtype: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamsResponse`
|
1518
|
+
def DescribeUpstreams(request)
|
1519
|
+
body = send_request('DescribeUpstreams', request.serialize)
|
1520
|
+
response = JSON.parse(body)
|
1521
|
+
if response['Response'].key?('Error') == false
|
1522
|
+
model = DescribeUpstreamsResponse.new
|
1523
|
+
model.deserialize(response['Response'])
|
1524
|
+
model
|
1525
|
+
else
|
1526
|
+
code = response['Response']['Error']['Code']
|
1527
|
+
message = response['Response']['Error']['Message']
|
1528
|
+
reqid = response['Response']['RequestId']
|
1529
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1530
|
+
end
|
1531
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1532
|
+
raise e
|
1533
|
+
rescue StandardError => e
|
1534
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1535
|
+
end
|
1536
|
+
|
1441
1537
|
# 本接口(DescribeUsagePlan)用于查询一个使用计划的详细信息,包括名称、QPS、创建时间绑定的环境等。
|
1442
1538
|
|
1443
1539
|
# @param request: Request instance for DescribeUsagePlan.
|
@@ -1896,6 +1992,30 @@ module TencentCloud
|
|
1896
1992
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1897
1993
|
end
|
1898
1994
|
|
1995
|
+
# 修改VPC通道
|
1996
|
+
|
1997
|
+
# @param request: Request instance for ModifyUpstream.
|
1998
|
+
# @type request: :class:`Tencentcloud::apigateway::V20180808::ModifyUpstreamRequest`
|
1999
|
+
# @rtype: :class:`Tencentcloud::apigateway::V20180808::ModifyUpstreamResponse`
|
2000
|
+
def ModifyUpstream(request)
|
2001
|
+
body = send_request('ModifyUpstream', request.serialize)
|
2002
|
+
response = JSON.parse(body)
|
2003
|
+
if response['Response'].key?('Error') == false
|
2004
|
+
model = ModifyUpstreamResponse.new
|
2005
|
+
model.deserialize(response['Response'])
|
2006
|
+
model
|
2007
|
+
else
|
2008
|
+
code = response['Response']['Error']['Code']
|
2009
|
+
message = response['Response']['Error']['Message']
|
2010
|
+
reqid = response['Response']['RequestId']
|
2011
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2012
|
+
end
|
2013
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2014
|
+
raise e
|
2015
|
+
rescue StandardError => e
|
2016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2017
|
+
end
|
2018
|
+
|
1899
2019
|
# 本接口(ModifyUsagePlan)用于修改使用计划的名称,描述及 QPS。
|
1900
2020
|
|
1901
2021
|
# @param request: Request instance for ModifyUsagePlan.
|
data/lib/v20180808/models.rb
CHANGED
@@ -1284,6 +1284,40 @@ module TencentCloud
|
|
1284
1284
|
end
|
1285
1285
|
end
|
1286
1286
|
|
1287
|
+
# vpc通道绑定的api信息
|
1288
|
+
class BindApiInfo < TencentCloud::Common::AbstractModel
|
1289
|
+
# @param ApiId: api唯一id
|
1290
|
+
# @type ApiId: String
|
1291
|
+
# @param ServiceId: Service唯一id
|
1292
|
+
# @type ServiceId: String
|
1293
|
+
# @param ApiName: api名字
|
1294
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1295
|
+
# @type ApiName: String
|
1296
|
+
# @param ServiceName: 服务名字
|
1297
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1298
|
+
# @type ServiceName: String
|
1299
|
+
# @param BindTime: 绑定时间
|
1300
|
+
# @type BindTime: String
|
1301
|
+
|
1302
|
+
attr_accessor :ApiId, :ServiceId, :ApiName, :ServiceName, :BindTime
|
1303
|
+
|
1304
|
+
def initialize(apiid=nil, serviceid=nil, apiname=nil, servicename=nil, bindtime=nil)
|
1305
|
+
@ApiId = apiid
|
1306
|
+
@ServiceId = serviceid
|
1307
|
+
@ApiName = apiname
|
1308
|
+
@ServiceName = servicename
|
1309
|
+
@BindTime = bindtime
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
def deserialize(params)
|
1313
|
+
@ApiId = params['ApiId']
|
1314
|
+
@ServiceId = params['ServiceId']
|
1315
|
+
@ApiName = params['ApiName']
|
1316
|
+
@ServiceName = params['ServiceName']
|
1317
|
+
@BindTime = params['BindTime']
|
1318
|
+
end
|
1319
|
+
end
|
1320
|
+
|
1287
1321
|
# BindEnvironment请求参数结构体
|
1288
1322
|
class BindEnvironmentRequest < TencentCloud::Common::AbstractModel
|
1289
1323
|
# @param UsagePlanIds: 待绑定的使用计划唯一 ID 列表。
|
@@ -2293,6 +2327,89 @@ module TencentCloud
|
|
2293
2327
|
end
|
2294
2328
|
end
|
2295
2329
|
|
2330
|
+
# CreateUpstream请求参数结构体
|
2331
|
+
class CreateUpstreamRequest < TencentCloud::Common::AbstractModel
|
2332
|
+
# @param Scheme: 后端协议,HTTP, HTTPS其中之一
|
2333
|
+
# @type Scheme: String
|
2334
|
+
# @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
|
2335
|
+
# @type Algorithm: String
|
2336
|
+
# @param UniqVpcId: VPC唯一ID
|
2337
|
+
# @type UniqVpcId: String
|
2338
|
+
# @param UpstreamName: VPC通道名字
|
2339
|
+
# @type UpstreamName: String
|
2340
|
+
# @param UpstreamDescription: VPC通道描述
|
2341
|
+
# @type UpstreamDescription: String
|
2342
|
+
# @param Retries: 请求重试次数,默认3次
|
2343
|
+
# @type Retries: Integer
|
2344
|
+
# @param UpstreamHost: 请求到后端的,host头
|
2345
|
+
# @type UpstreamHost: String
|
2346
|
+
# @param Nodes: 后端节点
|
2347
|
+
# @type Nodes: Array
|
2348
|
+
# @param K8sService: k8s服务的配置
|
2349
|
+
# @type K8sService: Array
|
2350
|
+
|
2351
|
+
attr_accessor :Scheme, :Algorithm, :UniqVpcId, :UpstreamName, :UpstreamDescription, :Retries, :UpstreamHost, :Nodes, :K8sService
|
2352
|
+
|
2353
|
+
def initialize(scheme=nil, algorithm=nil, uniqvpcid=nil, upstreamname=nil, upstreamdescription=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
|
2354
|
+
@Scheme = scheme
|
2355
|
+
@Algorithm = algorithm
|
2356
|
+
@UniqVpcId = uniqvpcid
|
2357
|
+
@UpstreamName = upstreamname
|
2358
|
+
@UpstreamDescription = upstreamdescription
|
2359
|
+
@Retries = retries
|
2360
|
+
@UpstreamHost = upstreamhost
|
2361
|
+
@Nodes = nodes
|
2362
|
+
@K8sService = k8sservice
|
2363
|
+
end
|
2364
|
+
|
2365
|
+
def deserialize(params)
|
2366
|
+
@Scheme = params['Scheme']
|
2367
|
+
@Algorithm = params['Algorithm']
|
2368
|
+
@UniqVpcId = params['UniqVpcId']
|
2369
|
+
@UpstreamName = params['UpstreamName']
|
2370
|
+
@UpstreamDescription = params['UpstreamDescription']
|
2371
|
+
@Retries = params['Retries']
|
2372
|
+
@UpstreamHost = params['UpstreamHost']
|
2373
|
+
unless params['Nodes'].nil?
|
2374
|
+
@Nodes = []
|
2375
|
+
params['Nodes'].each do |i|
|
2376
|
+
upstreamnode_tmp = UpstreamNode.new
|
2377
|
+
upstreamnode_tmp.deserialize(i)
|
2378
|
+
@Nodes << upstreamnode_tmp
|
2379
|
+
end
|
2380
|
+
end
|
2381
|
+
unless params['K8sService'].nil?
|
2382
|
+
@K8sService = []
|
2383
|
+
params['K8sService'].each do |i|
|
2384
|
+
k8sservice_tmp = K8sService.new
|
2385
|
+
k8sservice_tmp.deserialize(i)
|
2386
|
+
@K8sService << k8sservice_tmp
|
2387
|
+
end
|
2388
|
+
end
|
2389
|
+
end
|
2390
|
+
end
|
2391
|
+
|
2392
|
+
# CreateUpstream返回参数结构体
|
2393
|
+
class CreateUpstreamResponse < TencentCloud::Common::AbstractModel
|
2394
|
+
# @param UpstreamId: 创建返回的唯一id
|
2395
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2396
|
+
# @type UpstreamId: String
|
2397
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2398
|
+
# @type RequestId: String
|
2399
|
+
|
2400
|
+
attr_accessor :UpstreamId, :RequestId
|
2401
|
+
|
2402
|
+
def initialize(upstreamid=nil, requestid=nil)
|
2403
|
+
@UpstreamId = upstreamid
|
2404
|
+
@RequestId = requestid
|
2405
|
+
end
|
2406
|
+
|
2407
|
+
def deserialize(params)
|
2408
|
+
@UpstreamId = params['UpstreamId']
|
2409
|
+
@RequestId = params['RequestId']
|
2410
|
+
end
|
2411
|
+
end
|
2412
|
+
|
2296
2413
|
# CreateUsagePlan请求参数结构体
|
2297
2414
|
class CreateUsagePlanRequest < TencentCloud::Common::AbstractModel
|
2298
2415
|
# @param UsagePlanName: 用户自定义的使用计划名称。
|
@@ -2658,6 +2775,43 @@ module TencentCloud
|
|
2658
2775
|
end
|
2659
2776
|
end
|
2660
2777
|
|
2778
|
+
# DeleteUpstream请求参数结构体
|
2779
|
+
class DeleteUpstreamRequest < TencentCloud::Common::AbstractModel
|
2780
|
+
# @param UpstreamId: 待删除的VPC通道唯一ID
|
2781
|
+
# @type UpstreamId: String
|
2782
|
+
|
2783
|
+
attr_accessor :UpstreamId
|
2784
|
+
|
2785
|
+
def initialize(upstreamid=nil)
|
2786
|
+
@UpstreamId = upstreamid
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
def deserialize(params)
|
2790
|
+
@UpstreamId = params['UpstreamId']
|
2791
|
+
end
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
# DeleteUpstream返回参数结构体
|
2795
|
+
class DeleteUpstreamResponse < TencentCloud::Common::AbstractModel
|
2796
|
+
# @param UpstreamId: 成功删除的vpc通道id
|
2797
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2798
|
+
# @type UpstreamId: String
|
2799
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2800
|
+
# @type RequestId: String
|
2801
|
+
|
2802
|
+
attr_accessor :UpstreamId, :RequestId
|
2803
|
+
|
2804
|
+
def initialize(upstreamid=nil, requestid=nil)
|
2805
|
+
@UpstreamId = upstreamid
|
2806
|
+
@RequestId = requestid
|
2807
|
+
end
|
2808
|
+
|
2809
|
+
def deserialize(params)
|
2810
|
+
@UpstreamId = params['UpstreamId']
|
2811
|
+
@RequestId = params['RequestId']
|
2812
|
+
end
|
2813
|
+
end
|
2814
|
+
|
2661
2815
|
# DeleteUsagePlan请求参数结构体
|
2662
2816
|
class DeleteUsagePlanRequest < TencentCloud::Common::AbstractModel
|
2663
2817
|
# @param UsagePlanId: 待删除的使用计划唯一 ID。
|
@@ -4827,6 +4981,172 @@ module TencentCloud
|
|
4827
4981
|
end
|
4828
4982
|
end
|
4829
4983
|
|
4984
|
+
# 查询vpc通道绑定api列表
|
4985
|
+
class DescribeUpstreamBindApis < TencentCloud::Common::AbstractModel
|
4986
|
+
# @param TotalCount: 总数
|
4987
|
+
# @type TotalCount: Integer
|
4988
|
+
# @param BindApiSet: 绑定的api信息
|
4989
|
+
# @type BindApiSet: Array
|
4990
|
+
|
4991
|
+
attr_accessor :TotalCount, :BindApiSet
|
4992
|
+
|
4993
|
+
def initialize(totalcount=nil, bindapiset=nil)
|
4994
|
+
@TotalCount = totalcount
|
4995
|
+
@BindApiSet = bindapiset
|
4996
|
+
end
|
4997
|
+
|
4998
|
+
def deserialize(params)
|
4999
|
+
@TotalCount = params['TotalCount']
|
5000
|
+
unless params['BindApiSet'].nil?
|
5001
|
+
@BindApiSet = []
|
5002
|
+
params['BindApiSet'].each do |i|
|
5003
|
+
bindapiinfo_tmp = BindApiInfo.new
|
5004
|
+
bindapiinfo_tmp.deserialize(i)
|
5005
|
+
@BindApiSet << bindapiinfo_tmp
|
5006
|
+
end
|
5007
|
+
end
|
5008
|
+
end
|
5009
|
+
end
|
5010
|
+
|
5011
|
+
# DescribeUpstreamBindApis请求参数结构体
|
5012
|
+
class DescribeUpstreamBindApisRequest < TencentCloud::Common::AbstractModel
|
5013
|
+
# @param Limit: 分页
|
5014
|
+
# @type Limit: Integer
|
5015
|
+
# @param Offset: 分页
|
5016
|
+
# @type Offset: Integer
|
5017
|
+
# @param UpstreamId: vpc通道Id
|
5018
|
+
# @type UpstreamId: String
|
5019
|
+
# @param Filters: ServiceId和ApiId过滤查询
|
5020
|
+
# @type Filters: Array
|
5021
|
+
|
5022
|
+
attr_accessor :Limit, :Offset, :UpstreamId, :Filters
|
5023
|
+
|
5024
|
+
def initialize(limit=nil, offset=nil, upstreamid=nil, filters=nil)
|
5025
|
+
@Limit = limit
|
5026
|
+
@Offset = offset
|
5027
|
+
@UpstreamId = upstreamid
|
5028
|
+
@Filters = filters
|
5029
|
+
end
|
5030
|
+
|
5031
|
+
def deserialize(params)
|
5032
|
+
@Limit = params['Limit']
|
5033
|
+
@Offset = params['Offset']
|
5034
|
+
@UpstreamId = params['UpstreamId']
|
5035
|
+
unless params['Filters'].nil?
|
5036
|
+
@Filters = []
|
5037
|
+
params['Filters'].each do |i|
|
5038
|
+
filter_tmp = Filter.new
|
5039
|
+
filter_tmp.deserialize(i)
|
5040
|
+
@Filters << filter_tmp
|
5041
|
+
end
|
5042
|
+
end
|
5043
|
+
end
|
5044
|
+
end
|
5045
|
+
|
5046
|
+
# DescribeUpstreamBindApis返回参数结构体
|
5047
|
+
class DescribeUpstreamBindApisResponse < TencentCloud::Common::AbstractModel
|
5048
|
+
# @param Result: 查询结果
|
5049
|
+
# @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.DescribeUpstreamBindApis`
|
5050
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5051
|
+
# @type RequestId: String
|
5052
|
+
|
5053
|
+
attr_accessor :Result, :RequestId
|
5054
|
+
|
5055
|
+
def initialize(result=nil, requestid=nil)
|
5056
|
+
@Result = result
|
5057
|
+
@RequestId = requestid
|
5058
|
+
end
|
5059
|
+
|
5060
|
+
def deserialize(params)
|
5061
|
+
unless params['Result'].nil?
|
5062
|
+
@Result = DescribeUpstreamBindApis.new
|
5063
|
+
@Result.deserialize(params['Result'])
|
5064
|
+
end
|
5065
|
+
@RequestId = params['RequestId']
|
5066
|
+
end
|
5067
|
+
end
|
5068
|
+
|
5069
|
+
# 查询vpc通道返回信息
|
5070
|
+
class DescribeUpstreamInfo < TencentCloud::Common::AbstractModel
|
5071
|
+
# @param TotalCount: 查询总数
|
5072
|
+
# @type TotalCount: Integer
|
5073
|
+
# @param UpstreamSet: 查询列表
|
5074
|
+
# @type UpstreamSet: Array
|
5075
|
+
|
5076
|
+
attr_accessor :TotalCount, :UpstreamSet
|
5077
|
+
|
5078
|
+
def initialize(totalcount=nil, upstreamset=nil)
|
5079
|
+
@TotalCount = totalcount
|
5080
|
+
@UpstreamSet = upstreamset
|
5081
|
+
end
|
5082
|
+
|
5083
|
+
def deserialize(params)
|
5084
|
+
@TotalCount = params['TotalCount']
|
5085
|
+
unless params['UpstreamSet'].nil?
|
5086
|
+
@UpstreamSet = []
|
5087
|
+
params['UpstreamSet'].each do |i|
|
5088
|
+
upstreaminfo_tmp = UpstreamInfo.new
|
5089
|
+
upstreaminfo_tmp.deserialize(i)
|
5090
|
+
@UpstreamSet << upstreaminfo_tmp
|
5091
|
+
end
|
5092
|
+
end
|
5093
|
+
end
|
5094
|
+
end
|
5095
|
+
|
5096
|
+
# DescribeUpstreams请求参数结构体
|
5097
|
+
class DescribeUpstreamsRequest < TencentCloud::Common::AbstractModel
|
5098
|
+
# @param Limit: 分页
|
5099
|
+
# @type Limit: Integer
|
5100
|
+
# @param Offset: 分页
|
5101
|
+
# @type Offset: Integer
|
5102
|
+
# @param Filters: 过滤条件
|
5103
|
+
# @type Filters: Array
|
5104
|
+
|
5105
|
+
attr_accessor :Limit, :Offset, :Filters
|
5106
|
+
|
5107
|
+
def initialize(limit=nil, offset=nil, filters=nil)
|
5108
|
+
@Limit = limit
|
5109
|
+
@Offset = offset
|
5110
|
+
@Filters = filters
|
5111
|
+
end
|
5112
|
+
|
5113
|
+
def deserialize(params)
|
5114
|
+
@Limit = params['Limit']
|
5115
|
+
@Offset = params['Offset']
|
5116
|
+
unless params['Filters'].nil?
|
5117
|
+
@Filters = []
|
5118
|
+
params['Filters'].each do |i|
|
5119
|
+
filter_tmp = Filter.new
|
5120
|
+
filter_tmp.deserialize(i)
|
5121
|
+
@Filters << filter_tmp
|
5122
|
+
end
|
5123
|
+
end
|
5124
|
+
end
|
5125
|
+
end
|
5126
|
+
|
5127
|
+
# DescribeUpstreams返回参数结构体
|
5128
|
+
class DescribeUpstreamsResponse < TencentCloud::Common::AbstractModel
|
5129
|
+
# @param Result: 查询结果
|
5130
|
+
# @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.DescribeUpstreamInfo`
|
5131
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5132
|
+
# @type RequestId: String
|
5133
|
+
|
5134
|
+
attr_accessor :Result, :RequestId
|
5135
|
+
|
5136
|
+
def initialize(result=nil, requestid=nil)
|
5137
|
+
@Result = result
|
5138
|
+
@RequestId = requestid
|
5139
|
+
end
|
5140
|
+
|
5141
|
+
def deserialize(params)
|
5142
|
+
unless params['Result'].nil?
|
5143
|
+
@Result = DescribeUpstreamInfo.new
|
5144
|
+
@Result.deserialize(params['Result'])
|
5145
|
+
end
|
5146
|
+
@RequestId = params['RequestId']
|
5147
|
+
end
|
5148
|
+
end
|
5149
|
+
|
4830
5150
|
# DescribeUsagePlanEnvironments请求参数结构体
|
4831
5151
|
class DescribeUsagePlanEnvironmentsRequest < TencentCloud::Common::AbstractModel
|
4832
5152
|
# @param UsagePlanId: 待查询的使用计划唯一 ID。
|
@@ -5762,6 +6082,73 @@ module TencentCloud
|
|
5762
6082
|
end
|
5763
6083
|
end
|
5764
6084
|
|
6085
|
+
# k8s Label
|
6086
|
+
class K8sLabel < TencentCloud::Common::AbstractModel
|
6087
|
+
# @param Key: Label的Key
|
6088
|
+
# @type Key: String
|
6089
|
+
# @param Value: Label的Value
|
6090
|
+
# @type Value: String
|
6091
|
+
|
6092
|
+
attr_accessor :Key, :Value
|
6093
|
+
|
6094
|
+
def initialize(key=nil, value=nil)
|
6095
|
+
@Key = key
|
6096
|
+
@Value = value
|
6097
|
+
end
|
6098
|
+
|
6099
|
+
def deserialize(params)
|
6100
|
+
@Key = params['Key']
|
6101
|
+
@Value = params['Value']
|
6102
|
+
end
|
6103
|
+
end
|
6104
|
+
|
6105
|
+
# k8s 服务的配置
|
6106
|
+
class K8sService < TencentCloud::Common::AbstractModel
|
6107
|
+
# @param Weight: 权重
|
6108
|
+
# @type Weight: Integer
|
6109
|
+
# @param ClusterId: k8s集群ID
|
6110
|
+
# @type ClusterId: String
|
6111
|
+
# @param Namespace: 容器命名空间
|
6112
|
+
# @type Namespace: String
|
6113
|
+
# @param ServiceName: 容器服务的名字
|
6114
|
+
# @type ServiceName: String
|
6115
|
+
# @param Port: 服务的端口
|
6116
|
+
# @type Port: Integer
|
6117
|
+
# @param ExtraLabels: 额外选择的Pod的Label
|
6118
|
+
# @type ExtraLabels: Array
|
6119
|
+
# @param Name: 自定义的服务名字,可选
|
6120
|
+
# @type Name: String
|
6121
|
+
|
6122
|
+
attr_accessor :Weight, :ClusterId, :Namespace, :ServiceName, :Port, :ExtraLabels, :Name
|
6123
|
+
|
6124
|
+
def initialize(weight=nil, clusterid=nil, namespace=nil, servicename=nil, port=nil, extralabels=nil, name=nil)
|
6125
|
+
@Weight = weight
|
6126
|
+
@ClusterId = clusterid
|
6127
|
+
@Namespace = namespace
|
6128
|
+
@ServiceName = servicename
|
6129
|
+
@Port = port
|
6130
|
+
@ExtraLabels = extralabels
|
6131
|
+
@Name = name
|
6132
|
+
end
|
6133
|
+
|
6134
|
+
def deserialize(params)
|
6135
|
+
@Weight = params['Weight']
|
6136
|
+
@ClusterId = params['ClusterId']
|
6137
|
+
@Namespace = params['Namespace']
|
6138
|
+
@ServiceName = params['ServiceName']
|
6139
|
+
@Port = params['Port']
|
6140
|
+
unless params['ExtraLabels'].nil?
|
6141
|
+
@ExtraLabels = []
|
6142
|
+
params['ExtraLabels'].each do |i|
|
6143
|
+
k8slabel_tmp = K8sLabel.new
|
6144
|
+
k8slabel_tmp.deserialize(i)
|
6145
|
+
@ExtraLabels << k8slabel_tmp
|
6146
|
+
end
|
6147
|
+
end
|
6148
|
+
@Name = params['Name']
|
6149
|
+
end
|
6150
|
+
end
|
6151
|
+
|
5765
6152
|
# 检索条件入参
|
5766
6153
|
class LogQuery < TencentCloud::Common::AbstractModel
|
5767
6154
|
# @param Name: 检索字段
|
@@ -6653,6 +7040,96 @@ module TencentCloud
|
|
6653
7040
|
end
|
6654
7041
|
end
|
6655
7042
|
|
7043
|
+
# ModifyUpstream请求参数结构体
|
7044
|
+
class ModifyUpstreamRequest < TencentCloud::Common::AbstractModel
|
7045
|
+
# @param UpstreamId: VPC通道唯一ID
|
7046
|
+
# @type UpstreamId: String
|
7047
|
+
# @param UpstreamName: VPC通道名字
|
7048
|
+
# @type UpstreamName: String
|
7049
|
+
# @param UpstreamDescription: VPC通道描述
|
7050
|
+
# @type UpstreamDescription: String
|
7051
|
+
# @param Scheme: 后端协议,HTTP, HTTPS其中之一
|
7052
|
+
# @type Scheme: String
|
7053
|
+
# @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
|
7054
|
+
# @type Algorithm: String
|
7055
|
+
# @param UniqVpcId: VPC唯一ID
|
7056
|
+
# @type UniqVpcId: String
|
7057
|
+
# @param Retries: 请求重试次数,默认3次
|
7058
|
+
# @type Retries: Integer
|
7059
|
+
# @param UpstreamHost: 请求到后端的,host头
|
7060
|
+
# @type UpstreamHost: String
|
7061
|
+
# @param Nodes: 后端节点列表
|
7062
|
+
# @type Nodes: Array
|
7063
|
+
# @param K8sService: k8s服务配置
|
7064
|
+
# @type K8sService: Array
|
7065
|
+
|
7066
|
+
attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :Algorithm, :UniqVpcId, :Retries, :UpstreamHost, :Nodes, :K8sService
|
7067
|
+
|
7068
|
+
def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, algorithm=nil, uniqvpcid=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
|
7069
|
+
@UpstreamId = upstreamid
|
7070
|
+
@UpstreamName = upstreamname
|
7071
|
+
@UpstreamDescription = upstreamdescription
|
7072
|
+
@Scheme = scheme
|
7073
|
+
@Algorithm = algorithm
|
7074
|
+
@UniqVpcId = uniqvpcid
|
7075
|
+
@Retries = retries
|
7076
|
+
@UpstreamHost = upstreamhost
|
7077
|
+
@Nodes = nodes
|
7078
|
+
@K8sService = k8sservice
|
7079
|
+
end
|
7080
|
+
|
7081
|
+
def deserialize(params)
|
7082
|
+
@UpstreamId = params['UpstreamId']
|
7083
|
+
@UpstreamName = params['UpstreamName']
|
7084
|
+
@UpstreamDescription = params['UpstreamDescription']
|
7085
|
+
@Scheme = params['Scheme']
|
7086
|
+
@Algorithm = params['Algorithm']
|
7087
|
+
@UniqVpcId = params['UniqVpcId']
|
7088
|
+
@Retries = params['Retries']
|
7089
|
+
@UpstreamHost = params['UpstreamHost']
|
7090
|
+
unless params['Nodes'].nil?
|
7091
|
+
@Nodes = []
|
7092
|
+
params['Nodes'].each do |i|
|
7093
|
+
upstreamnode_tmp = UpstreamNode.new
|
7094
|
+
upstreamnode_tmp.deserialize(i)
|
7095
|
+
@Nodes << upstreamnode_tmp
|
7096
|
+
end
|
7097
|
+
end
|
7098
|
+
unless params['K8sService'].nil?
|
7099
|
+
@K8sService = []
|
7100
|
+
params['K8sService'].each do |i|
|
7101
|
+
k8sservice_tmp = K8sService.new
|
7102
|
+
k8sservice_tmp.deserialize(i)
|
7103
|
+
@K8sService << k8sservice_tmp
|
7104
|
+
end
|
7105
|
+
end
|
7106
|
+
end
|
7107
|
+
end
|
7108
|
+
|
7109
|
+
# ModifyUpstream返回参数结构体
|
7110
|
+
class ModifyUpstreamResponse < TencentCloud::Common::AbstractModel
|
7111
|
+
# @param Result: 返回修改后的vpc通道信息
|
7112
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7113
|
+
# @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamInfo`
|
7114
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7115
|
+
# @type RequestId: String
|
7116
|
+
|
7117
|
+
attr_accessor :Result, :RequestId
|
7118
|
+
|
7119
|
+
def initialize(result=nil, requestid=nil)
|
7120
|
+
@Result = result
|
7121
|
+
@RequestId = requestid
|
7122
|
+
end
|
7123
|
+
|
7124
|
+
def deserialize(params)
|
7125
|
+
unless params['Result'].nil?
|
7126
|
+
@Result = UpstreamInfo.new
|
7127
|
+
@Result.deserialize(params['Result'])
|
7128
|
+
end
|
7129
|
+
@RequestId = params['RequestId']
|
7130
|
+
end
|
7131
|
+
end
|
7132
|
+
|
6656
7133
|
# ModifyUsagePlan请求参数结构体
|
6657
7134
|
class ModifyUsagePlanRequest < TencentCloud::Common::AbstractModel
|
6658
7135
|
# @param UsagePlanId: 使用计划唯一 ID。
|
@@ -8131,6 +8608,244 @@ module TencentCloud
|
|
8131
8608
|
end
|
8132
8609
|
end
|
8133
8610
|
|
8611
|
+
# VPC通道健康检查参数配置
|
8612
|
+
class UpstreamHealthChecker < TencentCloud::Common::AbstractModel
|
8613
|
+
# @param EnableActiveCheck: 标识是否开启主动健康检查。
|
8614
|
+
# @type EnableActiveCheck: Boolean
|
8615
|
+
# @param EnablePassiveCheck: 标识是否开启被动健康检查。
|
8616
|
+
# @type EnablePassiveCheck: Boolean
|
8617
|
+
# @param HealthyHttpStatus: 健康检查时,判断为成功请求的 HTTP 状态码。
|
8618
|
+
# @type HealthyHttpStatus: String
|
8619
|
+
# @param UnhealthyHttpStatus: 健康检查时,判断为失败请求的 HTTP 状态码。
|
8620
|
+
# @type UnhealthyHttpStatus: String
|
8621
|
+
# @param TcpFailureThreshold: TCP连续错误阈值。0 表示禁用 TCP 检查。取值范围:[0, 254]。
|
8622
|
+
# @type TcpFailureThreshold: Integer
|
8623
|
+
# @param TimeoutThreshold: 连续超时阈值。0 表示禁用超时检查。取值范围:[0, 254]。
|
8624
|
+
# @type TimeoutThreshold: Integer
|
8625
|
+
# @param HttpFailureThreshold: HTTP连续错误阈值。0 表示禁用HTTP检查。取值范围:[0, 254]。
|
8626
|
+
# @type HttpFailureThreshold: Integer
|
8627
|
+
# @param ActiveCheckHttpPath: 主动健康检查时探测请求的路径。默认为"/"。
|
8628
|
+
# @type ActiveCheckHttpPath: String
|
8629
|
+
# @param ActiveCheckTimeout: 主动健康检查的探测请求超时,单位秒。默认为5秒。
|
8630
|
+
# @type ActiveCheckTimeout: Integer
|
8631
|
+
# @param ActiveCheckInterval: 主动健康检查的时间间隔,默认5秒。
|
8632
|
+
# @type ActiveCheckInterval: Integer
|
8633
|
+
# @param ActiveRequestHeader: 主动健康检查时探测请求的的请求头。
|
8634
|
+
# @type ActiveRequestHeader: Array
|
8635
|
+
# @param UnhealthyTimeout: 异常节点的状态自动恢复时间,单位秒。当只开启被动检查的话,必须设置为 > 0 的值,否则被动异常节点将无法恢复。默认30秒。
|
8636
|
+
# @type UnhealthyTimeout: Integer
|
8637
|
+
|
8638
|
+
attr_accessor :EnableActiveCheck, :EnablePassiveCheck, :HealthyHttpStatus, :UnhealthyHttpStatus, :TcpFailureThreshold, :TimeoutThreshold, :HttpFailureThreshold, :ActiveCheckHttpPath, :ActiveCheckTimeout, :ActiveCheckInterval, :ActiveRequestHeader, :UnhealthyTimeout
|
8639
|
+
|
8640
|
+
def initialize(enableactivecheck=nil, enablepassivecheck=nil, healthyhttpstatus=nil, unhealthyhttpstatus=nil, tcpfailurethreshold=nil, timeoutthreshold=nil, httpfailurethreshold=nil, activecheckhttppath=nil, activechecktimeout=nil, activecheckinterval=nil, activerequestheader=nil, unhealthytimeout=nil)
|
8641
|
+
@EnableActiveCheck = enableactivecheck
|
8642
|
+
@EnablePassiveCheck = enablepassivecheck
|
8643
|
+
@HealthyHttpStatus = healthyhttpstatus
|
8644
|
+
@UnhealthyHttpStatus = unhealthyhttpstatus
|
8645
|
+
@TcpFailureThreshold = tcpfailurethreshold
|
8646
|
+
@TimeoutThreshold = timeoutthreshold
|
8647
|
+
@HttpFailureThreshold = httpfailurethreshold
|
8648
|
+
@ActiveCheckHttpPath = activecheckhttppath
|
8649
|
+
@ActiveCheckTimeout = activechecktimeout
|
8650
|
+
@ActiveCheckInterval = activecheckinterval
|
8651
|
+
@ActiveRequestHeader = activerequestheader
|
8652
|
+
@UnhealthyTimeout = unhealthytimeout
|
8653
|
+
end
|
8654
|
+
|
8655
|
+
def deserialize(params)
|
8656
|
+
@EnableActiveCheck = params['EnableActiveCheck']
|
8657
|
+
@EnablePassiveCheck = params['EnablePassiveCheck']
|
8658
|
+
@HealthyHttpStatus = params['HealthyHttpStatus']
|
8659
|
+
@UnhealthyHttpStatus = params['UnhealthyHttpStatus']
|
8660
|
+
@TcpFailureThreshold = params['TcpFailureThreshold']
|
8661
|
+
@TimeoutThreshold = params['TimeoutThreshold']
|
8662
|
+
@HttpFailureThreshold = params['HttpFailureThreshold']
|
8663
|
+
@ActiveCheckHttpPath = params['ActiveCheckHttpPath']
|
8664
|
+
@ActiveCheckTimeout = params['ActiveCheckTimeout']
|
8665
|
+
@ActiveCheckInterval = params['ActiveCheckInterval']
|
8666
|
+
unless params['ActiveRequestHeader'].nil?
|
8667
|
+
@ActiveRequestHeader = []
|
8668
|
+
params['ActiveRequestHeader'].each do |i|
|
8669
|
+
upstreamhealthcheckerreqheaders_tmp = UpstreamHealthCheckerReqHeaders.new
|
8670
|
+
upstreamhealthcheckerreqheaders_tmp.deserialize(i)
|
8671
|
+
@ActiveRequestHeader << upstreamhealthcheckerreqheaders_tmp
|
8672
|
+
end
|
8673
|
+
end
|
8674
|
+
@UnhealthyTimeout = params['UnhealthyTimeout']
|
8675
|
+
end
|
8676
|
+
end
|
8677
|
+
|
8678
|
+
# VPC通道主动健康检查的请求头配置
|
8679
|
+
class UpstreamHealthCheckerReqHeaders < TencentCloud::Common::AbstractModel
|
8680
|
+
|
8681
|
+
|
8682
|
+
def initialize()
|
8683
|
+
end
|
8684
|
+
|
8685
|
+
def deserialize(params)
|
8686
|
+
end
|
8687
|
+
end
|
8688
|
+
|
8689
|
+
# VPC通道信息集合
|
8690
|
+
class UpstreamInfo < TencentCloud::Common::AbstractModel
|
8691
|
+
# @param UpstreamId: VPC通道唯一ID
|
8692
|
+
# @type UpstreamId: String
|
8693
|
+
# @param UpstreamName: VPC通道名字
|
8694
|
+
# @type UpstreamName: String
|
8695
|
+
# @param UpstreamDescription: VPC通道描述
|
8696
|
+
# @type UpstreamDescription: String
|
8697
|
+
# @param Scheme: 写意
|
8698
|
+
# @type Scheme: String
|
8699
|
+
# @param Algorithm: 负载均衡算法
|
8700
|
+
# @type Algorithm: String
|
8701
|
+
# @param UniqVpcId: vpc唯一ID
|
8702
|
+
# @type UniqVpcId: String
|
8703
|
+
# @param Retries: 请求重拾次数
|
8704
|
+
# @type Retries: Integer
|
8705
|
+
# @param Nodes: 后端节点
|
8706
|
+
# @type Nodes: Array
|
8707
|
+
# @param CreatedTime: 创建时间
|
8708
|
+
# @type CreatedTime: String
|
8709
|
+
# @param Tags: 标签
|
8710
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8711
|
+
# @type Tags: Array
|
8712
|
+
# @param HealthChecker: 健康检查配置
|
8713
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8714
|
+
# @type HealthChecker: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamHealthChecker`
|
8715
|
+
# @param UpstreamType: Upstream的类型
|
8716
|
+
# @type UpstreamType: String
|
8717
|
+
# @param K8sServices: k8s服务配置
|
8718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8719
|
+
# @type K8sServices: Array
|
8720
|
+
# @param UpstreamHost: vpc通道的Host
|
8721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8722
|
+
# @type UpstreamHost: String
|
8723
|
+
|
8724
|
+
attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :Algorithm, :UniqVpcId, :Retries, :Nodes, :CreatedTime, :Tags, :HealthChecker, :UpstreamType, :K8sServices, :UpstreamHost
|
8725
|
+
|
8726
|
+
def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, algorithm=nil, uniqvpcid=nil, retries=nil, nodes=nil, createdtime=nil, tags=nil, healthchecker=nil, upstreamtype=nil, k8sservices=nil, upstreamhost=nil)
|
8727
|
+
@UpstreamId = upstreamid
|
8728
|
+
@UpstreamName = upstreamname
|
8729
|
+
@UpstreamDescription = upstreamdescription
|
8730
|
+
@Scheme = scheme
|
8731
|
+
@Algorithm = algorithm
|
8732
|
+
@UniqVpcId = uniqvpcid
|
8733
|
+
@Retries = retries
|
8734
|
+
@Nodes = nodes
|
8735
|
+
@CreatedTime = createdtime
|
8736
|
+
@Tags = tags
|
8737
|
+
@HealthChecker = healthchecker
|
8738
|
+
@UpstreamType = upstreamtype
|
8739
|
+
@K8sServices = k8sservices
|
8740
|
+
@UpstreamHost = upstreamhost
|
8741
|
+
end
|
8742
|
+
|
8743
|
+
def deserialize(params)
|
8744
|
+
@UpstreamId = params['UpstreamId']
|
8745
|
+
@UpstreamName = params['UpstreamName']
|
8746
|
+
@UpstreamDescription = params['UpstreamDescription']
|
8747
|
+
@Scheme = params['Scheme']
|
8748
|
+
@Algorithm = params['Algorithm']
|
8749
|
+
@UniqVpcId = params['UniqVpcId']
|
8750
|
+
@Retries = params['Retries']
|
8751
|
+
unless params['Nodes'].nil?
|
8752
|
+
@Nodes = []
|
8753
|
+
params['Nodes'].each do |i|
|
8754
|
+
upstreamnode_tmp = UpstreamNode.new
|
8755
|
+
upstreamnode_tmp.deserialize(i)
|
8756
|
+
@Nodes << upstreamnode_tmp
|
8757
|
+
end
|
8758
|
+
end
|
8759
|
+
@CreatedTime = params['CreatedTime']
|
8760
|
+
unless params['Tags'].nil?
|
8761
|
+
@Tags = []
|
8762
|
+
params['Tags'].each do |i|
|
8763
|
+
tag_tmp = Tag.new
|
8764
|
+
tag_tmp.deserialize(i)
|
8765
|
+
@Tags << tag_tmp
|
8766
|
+
end
|
8767
|
+
end
|
8768
|
+
unless params['HealthChecker'].nil?
|
8769
|
+
@HealthChecker = UpstreamHealthChecker.new
|
8770
|
+
@HealthChecker.deserialize(params['HealthChecker'])
|
8771
|
+
end
|
8772
|
+
@UpstreamType = params['UpstreamType']
|
8773
|
+
unless params['K8sServices'].nil?
|
8774
|
+
@K8sServices = []
|
8775
|
+
params['K8sServices'].each do |i|
|
8776
|
+
k8sservice_tmp = K8sService.new
|
8777
|
+
k8sservice_tmp.deserialize(i)
|
8778
|
+
@K8sServices << k8sservice_tmp
|
8779
|
+
end
|
8780
|
+
end
|
8781
|
+
@UpstreamHost = params['UpstreamHost']
|
8782
|
+
end
|
8783
|
+
end
|
8784
|
+
|
8785
|
+
# VPC通道后端节点元数据
|
8786
|
+
class UpstreamNode < TencentCloud::Common::AbstractModel
|
8787
|
+
# @param Host: IP(domain)
|
8788
|
+
# @type Host: String
|
8789
|
+
# @param Port: 端口[0, 65535]
|
8790
|
+
# @type Port: Integer
|
8791
|
+
# @param Weight: 权重[0, 100], 0为禁用
|
8792
|
+
# @type Weight: Integer
|
8793
|
+
# @param VmInstanceId: vm实例id
|
8794
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8795
|
+
# @type VmInstanceId: String
|
8796
|
+
# @param Tags: 染色标签
|
8797
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8798
|
+
# @type Tags: Array
|
8799
|
+
# @param Healthy: 节点健康状态,创建、编辑时不需要传该参数。OFF:关闭,HEALTHY:健康,UNHEALTHY:异常,NO_DATA:数据未上报
|
8800
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8801
|
+
# @type Healthy: String
|
8802
|
+
# @param ServiceName: k8s服务名字
|
8803
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8804
|
+
# @type ServiceName: String
|
8805
|
+
# @param NameSpace: k8s命名空间
|
8806
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8807
|
+
# @type NameSpace: String
|
8808
|
+
# @param ClusterId: TKE集群的ID
|
8809
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8810
|
+
# @type ClusterId: String
|
8811
|
+
# @param Source: Node的来源
|
8812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8813
|
+
# @type Source: String
|
8814
|
+
# @param UniqueServiceName: API网关内部记录唯一的服务名字
|
8815
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8816
|
+
# @type UniqueServiceName: String
|
8817
|
+
|
8818
|
+
attr_accessor :Host, :Port, :Weight, :VmInstanceId, :Tags, :Healthy, :ServiceName, :NameSpace, :ClusterId, :Source, :UniqueServiceName
|
8819
|
+
|
8820
|
+
def initialize(host=nil, port=nil, weight=nil, vminstanceid=nil, tags=nil, healthy=nil, servicename=nil, namespace=nil, clusterid=nil, source=nil, uniqueservicename=nil)
|
8821
|
+
@Host = host
|
8822
|
+
@Port = port
|
8823
|
+
@Weight = weight
|
8824
|
+
@VmInstanceId = vminstanceid
|
8825
|
+
@Tags = tags
|
8826
|
+
@Healthy = healthy
|
8827
|
+
@ServiceName = servicename
|
8828
|
+
@NameSpace = namespace
|
8829
|
+
@ClusterId = clusterid
|
8830
|
+
@Source = source
|
8831
|
+
@UniqueServiceName = uniqueservicename
|
8832
|
+
end
|
8833
|
+
|
8834
|
+
def deserialize(params)
|
8835
|
+
@Host = params['Host']
|
8836
|
+
@Port = params['Port']
|
8837
|
+
@Weight = params['Weight']
|
8838
|
+
@VmInstanceId = params['VmInstanceId']
|
8839
|
+
@Tags = params['Tags']
|
8840
|
+
@Healthy = params['Healthy']
|
8841
|
+
@ServiceName = params['ServiceName']
|
8842
|
+
@NameSpace = params['NameSpace']
|
8843
|
+
@ClusterId = params['ClusterId']
|
8844
|
+
@Source = params['Source']
|
8845
|
+
@UniqueServiceName = params['UniqueServiceName']
|
8846
|
+
end
|
8847
|
+
end
|
8848
|
+
|
8134
8849
|
# usagePlan详情
|
8135
8850
|
class UsagePlan < TencentCloud::Common::AbstractModel
|
8136
8851
|
# @param Environment: 环境名称。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-apigateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.267
|
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-
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|