tencentcloud-sdk-apigateway 1.0.266 → 1.0.269

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7243238b0ac6836c606347b737c455a4b468d1a0
4
- data.tar.gz: 12adbf1dbec96be9b890ad972d7faa0067bfae7e
3
+ metadata.gz: b4919324a3eb835f8f0118a581a2d6522d545c58
4
+ data.tar.gz: 9f4ec3abe050646dd2ed09d86babfead13cb7ed2
5
5
  SHA512:
6
- metadata.gz: 218aac5dcae1936b903e948515b68563fb1e235095d1848b35c5817e13306af3a113f36d6a106da8d23d8169e4be52dc864f2a866b38765fae88106f58349076
7
- data.tar.gz: ce565c4261fd8b600876c4e2bf3d3abc84bff3e3dce59610658350e1d38117f007ee78f7ce4114581844b9a33a591db5f88a6b0e58b3bac799964826288681bd
6
+ metadata.gz: 594852418e959a6bb3ca7f1405016dee2ef75bebe29a3263ff58aedec302a7ed8f70fd8c90ae91a41d2747e0158d5f488177512a608327a9d77aa387f6b64576
7
+ data.tar.gz: 7eb44abeb93fb0eeedfa9421a4b3c3e578a8053214ca47d2626dc9438c6bc88f13f054dcfda1ba3ce9f4ed48513c81d83e31852f36750283e713b2eb414e639a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.266
1
+ 1.0.269
@@ -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.
@@ -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 列表。
@@ -2207,10 +2241,12 @@ module TencentCloud
2207
2241
  # @type Tags: Array
2208
2242
  # @param InstanceId: 独享实例id
2209
2243
  # @type InstanceId: String
2244
+ # @param UniqVpcId: vpc属性
2245
+ # @type UniqVpcId: String
2210
2246
 
2211
- attr_accessor :ServiceName, :Protocol, :ServiceDesc, :ExclusiveSetName, :NetTypes, :IpVersion, :SetServerName, :AppIdType, :Tags, :InstanceId
2247
+ attr_accessor :ServiceName, :Protocol, :ServiceDesc, :ExclusiveSetName, :NetTypes, :IpVersion, :SetServerName, :AppIdType, :Tags, :InstanceId, :UniqVpcId
2212
2248
 
2213
- def initialize(servicename=nil, protocol=nil, servicedesc=nil, exclusivesetname=nil, nettypes=nil, ipversion=nil, setservername=nil, appidtype=nil, tags=nil, instanceid=nil)
2249
+ def initialize(servicename=nil, protocol=nil, servicedesc=nil, exclusivesetname=nil, nettypes=nil, ipversion=nil, setservername=nil, appidtype=nil, tags=nil, instanceid=nil, uniqvpcid=nil)
2214
2250
  @ServiceName = servicename
2215
2251
  @Protocol = protocol
2216
2252
  @ServiceDesc = servicedesc
@@ -2221,6 +2257,7 @@ module TencentCloud
2221
2257
  @AppIdType = appidtype
2222
2258
  @Tags = tags
2223
2259
  @InstanceId = instanceid
2260
+ @UniqVpcId = uniqvpcid
2224
2261
  end
2225
2262
 
2226
2263
  def deserialize(params)
@@ -2241,6 +2278,7 @@ module TencentCloud
2241
2278
  end
2242
2279
  end
2243
2280
  @InstanceId = params['InstanceId']
2281
+ @UniqVpcId = params['UniqVpcId']
2244
2282
  end
2245
2283
  end
2246
2284
 
@@ -2293,6 +2331,89 @@ module TencentCloud
2293
2331
  end
2294
2332
  end
2295
2333
 
2334
+ # CreateUpstream请求参数结构体
2335
+ class CreateUpstreamRequest < TencentCloud::Common::AbstractModel
2336
+ # @param Scheme: 后端协议,HTTP, HTTPS其中之一
2337
+ # @type Scheme: String
2338
+ # @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
2339
+ # @type Algorithm: String
2340
+ # @param UniqVpcId: VPC唯一ID
2341
+ # @type UniqVpcId: String
2342
+ # @param UpstreamName: VPC通道名字
2343
+ # @type UpstreamName: String
2344
+ # @param UpstreamDescription: VPC通道描述
2345
+ # @type UpstreamDescription: String
2346
+ # @param Retries: 请求重试次数,默认3次
2347
+ # @type Retries: Integer
2348
+ # @param UpstreamHost: 请求到后端的,host头
2349
+ # @type UpstreamHost: String
2350
+ # @param Nodes: 后端节点
2351
+ # @type Nodes: Array
2352
+ # @param K8sService: k8s服务的配置
2353
+ # @type K8sService: Array
2354
+
2355
+ attr_accessor :Scheme, :Algorithm, :UniqVpcId, :UpstreamName, :UpstreamDescription, :Retries, :UpstreamHost, :Nodes, :K8sService
2356
+
2357
+ def initialize(scheme=nil, algorithm=nil, uniqvpcid=nil, upstreamname=nil, upstreamdescription=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
2358
+ @Scheme = scheme
2359
+ @Algorithm = algorithm
2360
+ @UniqVpcId = uniqvpcid
2361
+ @UpstreamName = upstreamname
2362
+ @UpstreamDescription = upstreamdescription
2363
+ @Retries = retries
2364
+ @UpstreamHost = upstreamhost
2365
+ @Nodes = nodes
2366
+ @K8sService = k8sservice
2367
+ end
2368
+
2369
+ def deserialize(params)
2370
+ @Scheme = params['Scheme']
2371
+ @Algorithm = params['Algorithm']
2372
+ @UniqVpcId = params['UniqVpcId']
2373
+ @UpstreamName = params['UpstreamName']
2374
+ @UpstreamDescription = params['UpstreamDescription']
2375
+ @Retries = params['Retries']
2376
+ @UpstreamHost = params['UpstreamHost']
2377
+ unless params['Nodes'].nil?
2378
+ @Nodes = []
2379
+ params['Nodes'].each do |i|
2380
+ upstreamnode_tmp = UpstreamNode.new
2381
+ upstreamnode_tmp.deserialize(i)
2382
+ @Nodes << upstreamnode_tmp
2383
+ end
2384
+ end
2385
+ unless params['K8sService'].nil?
2386
+ @K8sService = []
2387
+ params['K8sService'].each do |i|
2388
+ k8sservice_tmp = K8sService.new
2389
+ k8sservice_tmp.deserialize(i)
2390
+ @K8sService << k8sservice_tmp
2391
+ end
2392
+ end
2393
+ end
2394
+ end
2395
+
2396
+ # CreateUpstream返回参数结构体
2397
+ class CreateUpstreamResponse < TencentCloud::Common::AbstractModel
2398
+ # @param UpstreamId: 创建返回的唯一id
2399
+ # 注意:此字段可能返回 null,表示取不到有效值。
2400
+ # @type UpstreamId: String
2401
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2402
+ # @type RequestId: String
2403
+
2404
+ attr_accessor :UpstreamId, :RequestId
2405
+
2406
+ def initialize(upstreamid=nil, requestid=nil)
2407
+ @UpstreamId = upstreamid
2408
+ @RequestId = requestid
2409
+ end
2410
+
2411
+ def deserialize(params)
2412
+ @UpstreamId = params['UpstreamId']
2413
+ @RequestId = params['RequestId']
2414
+ end
2415
+ end
2416
+
2296
2417
  # CreateUsagePlan请求参数结构体
2297
2418
  class CreateUsagePlanRequest < TencentCloud::Common::AbstractModel
2298
2419
  # @param UsagePlanName: 用户自定义的使用计划名称。
@@ -2658,6 +2779,43 @@ module TencentCloud
2658
2779
  end
2659
2780
  end
2660
2781
 
2782
+ # DeleteUpstream请求参数结构体
2783
+ class DeleteUpstreamRequest < TencentCloud::Common::AbstractModel
2784
+ # @param UpstreamId: 待删除的VPC通道唯一ID
2785
+ # @type UpstreamId: String
2786
+
2787
+ attr_accessor :UpstreamId
2788
+
2789
+ def initialize(upstreamid=nil)
2790
+ @UpstreamId = upstreamid
2791
+ end
2792
+
2793
+ def deserialize(params)
2794
+ @UpstreamId = params['UpstreamId']
2795
+ end
2796
+ end
2797
+
2798
+ # DeleteUpstream返回参数结构体
2799
+ class DeleteUpstreamResponse < TencentCloud::Common::AbstractModel
2800
+ # @param UpstreamId: 成功删除的vpc通道id
2801
+ # 注意:此字段可能返回 null,表示取不到有效值。
2802
+ # @type UpstreamId: String
2803
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2804
+ # @type RequestId: String
2805
+
2806
+ attr_accessor :UpstreamId, :RequestId
2807
+
2808
+ def initialize(upstreamid=nil, requestid=nil)
2809
+ @UpstreamId = upstreamid
2810
+ @RequestId = requestid
2811
+ end
2812
+
2813
+ def deserialize(params)
2814
+ @UpstreamId = params['UpstreamId']
2815
+ @RequestId = params['RequestId']
2816
+ end
2817
+ end
2818
+
2661
2819
  # DeleteUsagePlan请求参数结构体
2662
2820
  class DeleteUsagePlanRequest < TencentCloud::Common::AbstractModel
2663
2821
  # @param UsagePlanId: 待删除的使用计划唯一 ID。
@@ -4827,6 +4985,172 @@ module TencentCloud
4827
4985
  end
4828
4986
  end
4829
4987
 
4988
+ # 查询vpc通道绑定api列表
4989
+ class DescribeUpstreamBindApis < TencentCloud::Common::AbstractModel
4990
+ # @param TotalCount: 总数
4991
+ # @type TotalCount: Integer
4992
+ # @param BindApiSet: 绑定的api信息
4993
+ # @type BindApiSet: Array
4994
+
4995
+ attr_accessor :TotalCount, :BindApiSet
4996
+
4997
+ def initialize(totalcount=nil, bindapiset=nil)
4998
+ @TotalCount = totalcount
4999
+ @BindApiSet = bindapiset
5000
+ end
5001
+
5002
+ def deserialize(params)
5003
+ @TotalCount = params['TotalCount']
5004
+ unless params['BindApiSet'].nil?
5005
+ @BindApiSet = []
5006
+ params['BindApiSet'].each do |i|
5007
+ bindapiinfo_tmp = BindApiInfo.new
5008
+ bindapiinfo_tmp.deserialize(i)
5009
+ @BindApiSet << bindapiinfo_tmp
5010
+ end
5011
+ end
5012
+ end
5013
+ end
5014
+
5015
+ # DescribeUpstreamBindApis请求参数结构体
5016
+ class DescribeUpstreamBindApisRequest < TencentCloud::Common::AbstractModel
5017
+ # @param Limit: 分页
5018
+ # @type Limit: Integer
5019
+ # @param Offset: 分页
5020
+ # @type Offset: Integer
5021
+ # @param UpstreamId: vpc通道Id
5022
+ # @type UpstreamId: String
5023
+ # @param Filters: ServiceId和ApiId过滤查询
5024
+ # @type Filters: Array
5025
+
5026
+ attr_accessor :Limit, :Offset, :UpstreamId, :Filters
5027
+
5028
+ def initialize(limit=nil, offset=nil, upstreamid=nil, filters=nil)
5029
+ @Limit = limit
5030
+ @Offset = offset
5031
+ @UpstreamId = upstreamid
5032
+ @Filters = filters
5033
+ end
5034
+
5035
+ def deserialize(params)
5036
+ @Limit = params['Limit']
5037
+ @Offset = params['Offset']
5038
+ @UpstreamId = params['UpstreamId']
5039
+ unless params['Filters'].nil?
5040
+ @Filters = []
5041
+ params['Filters'].each do |i|
5042
+ filter_tmp = Filter.new
5043
+ filter_tmp.deserialize(i)
5044
+ @Filters << filter_tmp
5045
+ end
5046
+ end
5047
+ end
5048
+ end
5049
+
5050
+ # DescribeUpstreamBindApis返回参数结构体
5051
+ class DescribeUpstreamBindApisResponse < TencentCloud::Common::AbstractModel
5052
+ # @param Result: 查询结果
5053
+ # @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.DescribeUpstreamBindApis`
5054
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5055
+ # @type RequestId: String
5056
+
5057
+ attr_accessor :Result, :RequestId
5058
+
5059
+ def initialize(result=nil, requestid=nil)
5060
+ @Result = result
5061
+ @RequestId = requestid
5062
+ end
5063
+
5064
+ def deserialize(params)
5065
+ unless params['Result'].nil?
5066
+ @Result = DescribeUpstreamBindApis.new
5067
+ @Result.deserialize(params['Result'])
5068
+ end
5069
+ @RequestId = params['RequestId']
5070
+ end
5071
+ end
5072
+
5073
+ # 查询vpc通道返回信息
5074
+ class DescribeUpstreamInfo < TencentCloud::Common::AbstractModel
5075
+ # @param TotalCount: 查询总数
5076
+ # @type TotalCount: Integer
5077
+ # @param UpstreamSet: 查询列表
5078
+ # @type UpstreamSet: Array
5079
+
5080
+ attr_accessor :TotalCount, :UpstreamSet
5081
+
5082
+ def initialize(totalcount=nil, upstreamset=nil)
5083
+ @TotalCount = totalcount
5084
+ @UpstreamSet = upstreamset
5085
+ end
5086
+
5087
+ def deserialize(params)
5088
+ @TotalCount = params['TotalCount']
5089
+ unless params['UpstreamSet'].nil?
5090
+ @UpstreamSet = []
5091
+ params['UpstreamSet'].each do |i|
5092
+ upstreaminfo_tmp = UpstreamInfo.new
5093
+ upstreaminfo_tmp.deserialize(i)
5094
+ @UpstreamSet << upstreaminfo_tmp
5095
+ end
5096
+ end
5097
+ end
5098
+ end
5099
+
5100
+ # DescribeUpstreams请求参数结构体
5101
+ class DescribeUpstreamsRequest < TencentCloud::Common::AbstractModel
5102
+ # @param Limit: 分页
5103
+ # @type Limit: Integer
5104
+ # @param Offset: 分页
5105
+ # @type Offset: Integer
5106
+ # @param Filters: 过滤条件
5107
+ # @type Filters: Array
5108
+
5109
+ attr_accessor :Limit, :Offset, :Filters
5110
+
5111
+ def initialize(limit=nil, offset=nil, filters=nil)
5112
+ @Limit = limit
5113
+ @Offset = offset
5114
+ @Filters = filters
5115
+ end
5116
+
5117
+ def deserialize(params)
5118
+ @Limit = params['Limit']
5119
+ @Offset = params['Offset']
5120
+ unless params['Filters'].nil?
5121
+ @Filters = []
5122
+ params['Filters'].each do |i|
5123
+ filter_tmp = Filter.new
5124
+ filter_tmp.deserialize(i)
5125
+ @Filters << filter_tmp
5126
+ end
5127
+ end
5128
+ end
5129
+ end
5130
+
5131
+ # DescribeUpstreams返回参数结构体
5132
+ class DescribeUpstreamsResponse < TencentCloud::Common::AbstractModel
5133
+ # @param Result: 查询结果
5134
+ # @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.DescribeUpstreamInfo`
5135
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5136
+ # @type RequestId: String
5137
+
5138
+ attr_accessor :Result, :RequestId
5139
+
5140
+ def initialize(result=nil, requestid=nil)
5141
+ @Result = result
5142
+ @RequestId = requestid
5143
+ end
5144
+
5145
+ def deserialize(params)
5146
+ unless params['Result'].nil?
5147
+ @Result = DescribeUpstreamInfo.new
5148
+ @Result.deserialize(params['Result'])
5149
+ end
5150
+ @RequestId = params['RequestId']
5151
+ end
5152
+ end
5153
+
4830
5154
  # DescribeUsagePlanEnvironments请求参数结构体
4831
5155
  class DescribeUsagePlanEnvironmentsRequest < TencentCloud::Common::AbstractModel
4832
5156
  # @param UsagePlanId: 待查询的使用计划唯一 ID。
@@ -5762,6 +6086,73 @@ module TencentCloud
5762
6086
  end
5763
6087
  end
5764
6088
 
6089
+ # k8s Label
6090
+ class K8sLabel < TencentCloud::Common::AbstractModel
6091
+ # @param Key: Label的Key
6092
+ # @type Key: String
6093
+ # @param Value: Label的Value
6094
+ # @type Value: String
6095
+
6096
+ attr_accessor :Key, :Value
6097
+
6098
+ def initialize(key=nil, value=nil)
6099
+ @Key = key
6100
+ @Value = value
6101
+ end
6102
+
6103
+ def deserialize(params)
6104
+ @Key = params['Key']
6105
+ @Value = params['Value']
6106
+ end
6107
+ end
6108
+
6109
+ # k8s 服务的配置
6110
+ class K8sService < TencentCloud::Common::AbstractModel
6111
+ # @param Weight: 权重
6112
+ # @type Weight: Integer
6113
+ # @param ClusterId: k8s集群ID
6114
+ # @type ClusterId: String
6115
+ # @param Namespace: 容器命名空间
6116
+ # @type Namespace: String
6117
+ # @param ServiceName: 容器服务的名字
6118
+ # @type ServiceName: String
6119
+ # @param Port: 服务的端口
6120
+ # @type Port: Integer
6121
+ # @param ExtraLabels: 额外选择的Pod的Label
6122
+ # @type ExtraLabels: Array
6123
+ # @param Name: 自定义的服务名字,可选
6124
+ # @type Name: String
6125
+
6126
+ attr_accessor :Weight, :ClusterId, :Namespace, :ServiceName, :Port, :ExtraLabels, :Name
6127
+
6128
+ def initialize(weight=nil, clusterid=nil, namespace=nil, servicename=nil, port=nil, extralabels=nil, name=nil)
6129
+ @Weight = weight
6130
+ @ClusterId = clusterid
6131
+ @Namespace = namespace
6132
+ @ServiceName = servicename
6133
+ @Port = port
6134
+ @ExtraLabels = extralabels
6135
+ @Name = name
6136
+ end
6137
+
6138
+ def deserialize(params)
6139
+ @Weight = params['Weight']
6140
+ @ClusterId = params['ClusterId']
6141
+ @Namespace = params['Namespace']
6142
+ @ServiceName = params['ServiceName']
6143
+ @Port = params['Port']
6144
+ unless params['ExtraLabels'].nil?
6145
+ @ExtraLabels = []
6146
+ params['ExtraLabels'].each do |i|
6147
+ k8slabel_tmp = K8sLabel.new
6148
+ k8slabel_tmp.deserialize(i)
6149
+ @ExtraLabels << k8slabel_tmp
6150
+ end
6151
+ end
6152
+ @Name = params['Name']
6153
+ end
6154
+ end
6155
+
5765
6156
  # 检索条件入参
5766
6157
  class LogQuery < TencentCloud::Common::AbstractModel
5767
6158
  # @param Name: 检索字段
@@ -6653,6 +7044,96 @@ module TencentCloud
6653
7044
  end
6654
7045
  end
6655
7046
 
7047
+ # ModifyUpstream请求参数结构体
7048
+ class ModifyUpstreamRequest < TencentCloud::Common::AbstractModel
7049
+ # @param UpstreamId: VPC通道唯一ID
7050
+ # @type UpstreamId: String
7051
+ # @param UpstreamName: VPC通道名字
7052
+ # @type UpstreamName: String
7053
+ # @param UpstreamDescription: VPC通道描述
7054
+ # @type UpstreamDescription: String
7055
+ # @param Scheme: 后端协议,HTTP, HTTPS其中之一
7056
+ # @type Scheme: String
7057
+ # @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
7058
+ # @type Algorithm: String
7059
+ # @param UniqVpcId: VPC唯一ID
7060
+ # @type UniqVpcId: String
7061
+ # @param Retries: 请求重试次数,默认3次
7062
+ # @type Retries: Integer
7063
+ # @param UpstreamHost: 请求到后端的,host头
7064
+ # @type UpstreamHost: String
7065
+ # @param Nodes: 后端节点列表
7066
+ # @type Nodes: Array
7067
+ # @param K8sService: k8s服务配置
7068
+ # @type K8sService: Array
7069
+
7070
+ attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :Algorithm, :UniqVpcId, :Retries, :UpstreamHost, :Nodes, :K8sService
7071
+
7072
+ def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, algorithm=nil, uniqvpcid=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
7073
+ @UpstreamId = upstreamid
7074
+ @UpstreamName = upstreamname
7075
+ @UpstreamDescription = upstreamdescription
7076
+ @Scheme = scheme
7077
+ @Algorithm = algorithm
7078
+ @UniqVpcId = uniqvpcid
7079
+ @Retries = retries
7080
+ @UpstreamHost = upstreamhost
7081
+ @Nodes = nodes
7082
+ @K8sService = k8sservice
7083
+ end
7084
+
7085
+ def deserialize(params)
7086
+ @UpstreamId = params['UpstreamId']
7087
+ @UpstreamName = params['UpstreamName']
7088
+ @UpstreamDescription = params['UpstreamDescription']
7089
+ @Scheme = params['Scheme']
7090
+ @Algorithm = params['Algorithm']
7091
+ @UniqVpcId = params['UniqVpcId']
7092
+ @Retries = params['Retries']
7093
+ @UpstreamHost = params['UpstreamHost']
7094
+ unless params['Nodes'].nil?
7095
+ @Nodes = []
7096
+ params['Nodes'].each do |i|
7097
+ upstreamnode_tmp = UpstreamNode.new
7098
+ upstreamnode_tmp.deserialize(i)
7099
+ @Nodes << upstreamnode_tmp
7100
+ end
7101
+ end
7102
+ unless params['K8sService'].nil?
7103
+ @K8sService = []
7104
+ params['K8sService'].each do |i|
7105
+ k8sservice_tmp = K8sService.new
7106
+ k8sservice_tmp.deserialize(i)
7107
+ @K8sService << k8sservice_tmp
7108
+ end
7109
+ end
7110
+ end
7111
+ end
7112
+
7113
+ # ModifyUpstream返回参数结构体
7114
+ class ModifyUpstreamResponse < TencentCloud::Common::AbstractModel
7115
+ # @param Result: 返回修改后的vpc通道信息
7116
+ # 注意:此字段可能返回 null,表示取不到有效值。
7117
+ # @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamInfo`
7118
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7119
+ # @type RequestId: String
7120
+
7121
+ attr_accessor :Result, :RequestId
7122
+
7123
+ def initialize(result=nil, requestid=nil)
7124
+ @Result = result
7125
+ @RequestId = requestid
7126
+ end
7127
+
7128
+ def deserialize(params)
7129
+ unless params['Result'].nil?
7130
+ @Result = UpstreamInfo.new
7131
+ @Result.deserialize(params['Result'])
7132
+ end
7133
+ @RequestId = params['RequestId']
7134
+ end
7135
+ end
7136
+
6656
7137
  # ModifyUsagePlan请求参数结构体
6657
7138
  class ModifyUsagePlanRequest < TencentCloud::Common::AbstractModel
6658
7139
  # @param UsagePlanId: 使用计划唯一 ID。
@@ -8131,6 +8612,244 @@ module TencentCloud
8131
8612
  end
8132
8613
  end
8133
8614
 
8615
+ # VPC通道健康检查参数配置
8616
+ class UpstreamHealthChecker < TencentCloud::Common::AbstractModel
8617
+ # @param EnableActiveCheck: 标识是否开启主动健康检查。
8618
+ # @type EnableActiveCheck: Boolean
8619
+ # @param EnablePassiveCheck: 标识是否开启被动健康检查。
8620
+ # @type EnablePassiveCheck: Boolean
8621
+ # @param HealthyHttpStatus: 健康检查时,判断为成功请求的 HTTP 状态码。
8622
+ # @type HealthyHttpStatus: String
8623
+ # @param UnhealthyHttpStatus: 健康检查时,判断为失败请求的 HTTP 状态码。
8624
+ # @type UnhealthyHttpStatus: String
8625
+ # @param TcpFailureThreshold: TCP连续错误阈值。0 表示禁用 TCP 检查。取值范围:[0, 254]。
8626
+ # @type TcpFailureThreshold: Integer
8627
+ # @param TimeoutThreshold: 连续超时阈值。0 表示禁用超时检查。取值范围:[0, 254]。
8628
+ # @type TimeoutThreshold: Integer
8629
+ # @param HttpFailureThreshold: HTTP连续错误阈值。0 表示禁用HTTP检查。取值范围:[0, 254]。
8630
+ # @type HttpFailureThreshold: Integer
8631
+ # @param ActiveCheckHttpPath: 主动健康检查时探测请求的路径。默认为"/"。
8632
+ # @type ActiveCheckHttpPath: String
8633
+ # @param ActiveCheckTimeout: 主动健康检查的探测请求超时,单位秒。默认为5秒。
8634
+ # @type ActiveCheckTimeout: Integer
8635
+ # @param ActiveCheckInterval: 主动健康检查的时间间隔,默认5秒。
8636
+ # @type ActiveCheckInterval: Integer
8637
+ # @param ActiveRequestHeader: 主动健康检查时探测请求的的请求头。
8638
+ # @type ActiveRequestHeader: Array
8639
+ # @param UnhealthyTimeout: 异常节点的状态自动恢复时间,单位秒。当只开启被动检查的话,必须设置为 > 0 的值,否则被动异常节点将无法恢复。默认30秒。
8640
+ # @type UnhealthyTimeout: Integer
8641
+
8642
+ attr_accessor :EnableActiveCheck, :EnablePassiveCheck, :HealthyHttpStatus, :UnhealthyHttpStatus, :TcpFailureThreshold, :TimeoutThreshold, :HttpFailureThreshold, :ActiveCheckHttpPath, :ActiveCheckTimeout, :ActiveCheckInterval, :ActiveRequestHeader, :UnhealthyTimeout
8643
+
8644
+ 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)
8645
+ @EnableActiveCheck = enableactivecheck
8646
+ @EnablePassiveCheck = enablepassivecheck
8647
+ @HealthyHttpStatus = healthyhttpstatus
8648
+ @UnhealthyHttpStatus = unhealthyhttpstatus
8649
+ @TcpFailureThreshold = tcpfailurethreshold
8650
+ @TimeoutThreshold = timeoutthreshold
8651
+ @HttpFailureThreshold = httpfailurethreshold
8652
+ @ActiveCheckHttpPath = activecheckhttppath
8653
+ @ActiveCheckTimeout = activechecktimeout
8654
+ @ActiveCheckInterval = activecheckinterval
8655
+ @ActiveRequestHeader = activerequestheader
8656
+ @UnhealthyTimeout = unhealthytimeout
8657
+ end
8658
+
8659
+ def deserialize(params)
8660
+ @EnableActiveCheck = params['EnableActiveCheck']
8661
+ @EnablePassiveCheck = params['EnablePassiveCheck']
8662
+ @HealthyHttpStatus = params['HealthyHttpStatus']
8663
+ @UnhealthyHttpStatus = params['UnhealthyHttpStatus']
8664
+ @TcpFailureThreshold = params['TcpFailureThreshold']
8665
+ @TimeoutThreshold = params['TimeoutThreshold']
8666
+ @HttpFailureThreshold = params['HttpFailureThreshold']
8667
+ @ActiveCheckHttpPath = params['ActiveCheckHttpPath']
8668
+ @ActiveCheckTimeout = params['ActiveCheckTimeout']
8669
+ @ActiveCheckInterval = params['ActiveCheckInterval']
8670
+ unless params['ActiveRequestHeader'].nil?
8671
+ @ActiveRequestHeader = []
8672
+ params['ActiveRequestHeader'].each do |i|
8673
+ upstreamhealthcheckerreqheaders_tmp = UpstreamHealthCheckerReqHeaders.new
8674
+ upstreamhealthcheckerreqheaders_tmp.deserialize(i)
8675
+ @ActiveRequestHeader << upstreamhealthcheckerreqheaders_tmp
8676
+ end
8677
+ end
8678
+ @UnhealthyTimeout = params['UnhealthyTimeout']
8679
+ end
8680
+ end
8681
+
8682
+ # VPC通道主动健康检查的请求头配置
8683
+ class UpstreamHealthCheckerReqHeaders < TencentCloud::Common::AbstractModel
8684
+
8685
+
8686
+ def initialize()
8687
+ end
8688
+
8689
+ def deserialize(params)
8690
+ end
8691
+ end
8692
+
8693
+ # VPC通道信息集合
8694
+ class UpstreamInfo < TencentCloud::Common::AbstractModel
8695
+ # @param UpstreamId: VPC通道唯一ID
8696
+ # @type UpstreamId: String
8697
+ # @param UpstreamName: VPC通道名字
8698
+ # @type UpstreamName: String
8699
+ # @param UpstreamDescription: VPC通道描述
8700
+ # @type UpstreamDescription: String
8701
+ # @param Scheme: 写意
8702
+ # @type Scheme: String
8703
+ # @param Algorithm: 负载均衡算法
8704
+ # @type Algorithm: String
8705
+ # @param UniqVpcId: vpc唯一ID
8706
+ # @type UniqVpcId: String
8707
+ # @param Retries: 请求重拾次数
8708
+ # @type Retries: Integer
8709
+ # @param Nodes: 后端节点
8710
+ # @type Nodes: Array
8711
+ # @param CreatedTime: 创建时间
8712
+ # @type CreatedTime: String
8713
+ # @param Tags: 标签
8714
+ # 注意:此字段可能返回 null,表示取不到有效值。
8715
+ # @type Tags: Array
8716
+ # @param HealthChecker: 健康检查配置
8717
+ # 注意:此字段可能返回 null,表示取不到有效值。
8718
+ # @type HealthChecker: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamHealthChecker`
8719
+ # @param UpstreamType: Upstream的类型
8720
+ # @type UpstreamType: String
8721
+ # @param K8sServices: k8s服务配置
8722
+ # 注意:此字段可能返回 null,表示取不到有效值。
8723
+ # @type K8sServices: Array
8724
+ # @param UpstreamHost: vpc通道的Host
8725
+ # 注意:此字段可能返回 null,表示取不到有效值。
8726
+ # @type UpstreamHost: String
8727
+
8728
+ attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :Algorithm, :UniqVpcId, :Retries, :Nodes, :CreatedTime, :Tags, :HealthChecker, :UpstreamType, :K8sServices, :UpstreamHost
8729
+
8730
+ 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)
8731
+ @UpstreamId = upstreamid
8732
+ @UpstreamName = upstreamname
8733
+ @UpstreamDescription = upstreamdescription
8734
+ @Scheme = scheme
8735
+ @Algorithm = algorithm
8736
+ @UniqVpcId = uniqvpcid
8737
+ @Retries = retries
8738
+ @Nodes = nodes
8739
+ @CreatedTime = createdtime
8740
+ @Tags = tags
8741
+ @HealthChecker = healthchecker
8742
+ @UpstreamType = upstreamtype
8743
+ @K8sServices = k8sservices
8744
+ @UpstreamHost = upstreamhost
8745
+ end
8746
+
8747
+ def deserialize(params)
8748
+ @UpstreamId = params['UpstreamId']
8749
+ @UpstreamName = params['UpstreamName']
8750
+ @UpstreamDescription = params['UpstreamDescription']
8751
+ @Scheme = params['Scheme']
8752
+ @Algorithm = params['Algorithm']
8753
+ @UniqVpcId = params['UniqVpcId']
8754
+ @Retries = params['Retries']
8755
+ unless params['Nodes'].nil?
8756
+ @Nodes = []
8757
+ params['Nodes'].each do |i|
8758
+ upstreamnode_tmp = UpstreamNode.new
8759
+ upstreamnode_tmp.deserialize(i)
8760
+ @Nodes << upstreamnode_tmp
8761
+ end
8762
+ end
8763
+ @CreatedTime = params['CreatedTime']
8764
+ unless params['Tags'].nil?
8765
+ @Tags = []
8766
+ params['Tags'].each do |i|
8767
+ tag_tmp = Tag.new
8768
+ tag_tmp.deserialize(i)
8769
+ @Tags << tag_tmp
8770
+ end
8771
+ end
8772
+ unless params['HealthChecker'].nil?
8773
+ @HealthChecker = UpstreamHealthChecker.new
8774
+ @HealthChecker.deserialize(params['HealthChecker'])
8775
+ end
8776
+ @UpstreamType = params['UpstreamType']
8777
+ unless params['K8sServices'].nil?
8778
+ @K8sServices = []
8779
+ params['K8sServices'].each do |i|
8780
+ k8sservice_tmp = K8sService.new
8781
+ k8sservice_tmp.deserialize(i)
8782
+ @K8sServices << k8sservice_tmp
8783
+ end
8784
+ end
8785
+ @UpstreamHost = params['UpstreamHost']
8786
+ end
8787
+ end
8788
+
8789
+ # VPC通道后端节点元数据
8790
+ class UpstreamNode < TencentCloud::Common::AbstractModel
8791
+ # @param Host: IP(domain)
8792
+ # @type Host: String
8793
+ # @param Port: 端口[0, 65535]
8794
+ # @type Port: Integer
8795
+ # @param Weight: 权重[0, 100], 0为禁用
8796
+ # @type Weight: Integer
8797
+ # @param VmInstanceId: vm实例id
8798
+ # 注意:此字段可能返回 null,表示取不到有效值。
8799
+ # @type VmInstanceId: String
8800
+ # @param Tags: 染色标签
8801
+ # 注意:此字段可能返回 null,表示取不到有效值。
8802
+ # @type Tags: Array
8803
+ # @param Healthy: 节点健康状态,创建、编辑时不需要传该参数。OFF:关闭,HEALTHY:健康,UNHEALTHY:异常,NO_DATA:数据未上报
8804
+ # 注意:此字段可能返回 null,表示取不到有效值。
8805
+ # @type Healthy: String
8806
+ # @param ServiceName: k8s服务名字
8807
+ # 注意:此字段可能返回 null,表示取不到有效值。
8808
+ # @type ServiceName: String
8809
+ # @param NameSpace: k8s命名空间
8810
+ # 注意:此字段可能返回 null,表示取不到有效值。
8811
+ # @type NameSpace: String
8812
+ # @param ClusterId: TKE集群的ID
8813
+ # 注意:此字段可能返回 null,表示取不到有效值。
8814
+ # @type ClusterId: String
8815
+ # @param Source: Node的来源
8816
+ # 注意:此字段可能返回 null,表示取不到有效值。
8817
+ # @type Source: String
8818
+ # @param UniqueServiceName: API网关内部记录唯一的服务名字
8819
+ # 注意:此字段可能返回 null,表示取不到有效值。
8820
+ # @type UniqueServiceName: String
8821
+
8822
+ attr_accessor :Host, :Port, :Weight, :VmInstanceId, :Tags, :Healthy, :ServiceName, :NameSpace, :ClusterId, :Source, :UniqueServiceName
8823
+
8824
+ def initialize(host=nil, port=nil, weight=nil, vminstanceid=nil, tags=nil, healthy=nil, servicename=nil, namespace=nil, clusterid=nil, source=nil, uniqueservicename=nil)
8825
+ @Host = host
8826
+ @Port = port
8827
+ @Weight = weight
8828
+ @VmInstanceId = vminstanceid
8829
+ @Tags = tags
8830
+ @Healthy = healthy
8831
+ @ServiceName = servicename
8832
+ @NameSpace = namespace
8833
+ @ClusterId = clusterid
8834
+ @Source = source
8835
+ @UniqueServiceName = uniqueservicename
8836
+ end
8837
+
8838
+ def deserialize(params)
8839
+ @Host = params['Host']
8840
+ @Port = params['Port']
8841
+ @Weight = params['Weight']
8842
+ @VmInstanceId = params['VmInstanceId']
8843
+ @Tags = params['Tags']
8844
+ @Healthy = params['Healthy']
8845
+ @ServiceName = params['ServiceName']
8846
+ @NameSpace = params['NameSpace']
8847
+ @ClusterId = params['ClusterId']
8848
+ @Source = params['Source']
8849
+ @UniqueServiceName = params['UniqueServiceName']
8850
+ end
8851
+ end
8852
+
8134
8853
  # usagePlan详情
8135
8854
  class UsagePlan < TencentCloud::Common::AbstractModel
8136
8855
  # @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.266
4
+ version: 1.0.269
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-28 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common