tencentcloud-sdk-apigateway 1.0.299 → 1.0.302

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: 06cd201a5fbe81a6e971f451e56f413471e71dfd
4
- data.tar.gz: d009c366e9f359fac622a7d0b44358a15c2a54d0
3
+ metadata.gz: 860cf598aa4305a5aa28c0a0c5a301d48e8a2b72
4
+ data.tar.gz: b15def4884e77a8b6e9ee345513315cd119a19c9
5
5
  SHA512:
6
- metadata.gz: d29e4e4ea929bd0a123bab5d227809f1441c74ade7443c05dd15b2c459897ea77f1485f0dc3395990dad9414f3a2058bcfbe61bdc456a25ce26bcb817e0e17b2
7
- data.tar.gz: 28725a1b4c5995f9e50a7894a039ec0c082037605298880fd5c0e10a15ddb8e52db2d4ac1389cb363b5082bf03b75ba2e86e22957edd01c0764f63f72fe9e36a
6
+ metadata.gz: f034771af8590af0d9b3f9b1a5d60c7722d0f4e611647d9c153ae7d69c3584e99af40b2df70f0619453cb1e91451b6b11f11edbc4af83f723ff2f151473cc1d3
7
+ data.tar.gz: 34799b224b3b1939060c70c24d69c81bc5ff46d66e7b34eb0720e4879542973811fc8520fe1e6239725e8a1cadcd5e004aec445974edb6fa8309a8fce55bef00
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.299
1
+ 1.0.302
@@ -370,7 +370,7 @@ module TencentCloud
370
370
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
371
371
  end
372
372
 
373
- # 用于创建创建VPC通道
373
+ # 用于创建创建后端通道
374
374
 
375
375
  # @param request: Request instance for CreateUpstream.
376
376
  # @type request: :class:`Tencentcloud::apigateway::V20180808::CreateUpstreamRequest`
@@ -612,7 +612,7 @@ module TencentCloud
612
612
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
613
613
  end
614
614
 
615
- # 删除VPC通道,需要注意有api绑定时,不允许删除
615
+ # 删除后端通道,需要注意有API绑定时,不允许删除
616
616
 
617
617
  # @param request: Request instance for DeleteUpstream.
618
618
  # @type request: :class:`Tencentcloud::apigateway::V20180808::DeleteUpstreamRequest`
@@ -1486,7 +1486,7 @@ module TencentCloud
1486
1486
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1487
1487
  end
1488
1488
 
1489
- # 查询VPC通道绑定的api列表
1489
+ # 查询后端通道所绑定的API列表
1490
1490
 
1491
1491
  # @param request: Request instance for DescribeUpstreamBindApis.
1492
1492
  # @type request: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamBindApisRequest`
@@ -1510,7 +1510,7 @@ module TencentCloud
1510
1510
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1511
1511
  end
1512
1512
 
1513
- # 查询VPC通道列表详情
1513
+ # 查询后端通道列表详情
1514
1514
 
1515
1515
  # @param request: Request instance for DescribeUpstreams.
1516
1516
  # @type request: :class:`Tencentcloud::apigateway::V20180808::DescribeUpstreamsRequest`
@@ -1992,7 +1992,7 @@ module TencentCloud
1992
1992
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1993
1993
  end
1994
1994
 
1995
- # 修改VPC通道
1995
+ # 修改后端通道
1996
1996
 
1997
1997
  # @param request: Request instance for ModifyUpstream.
1998
1998
  # @type request: :class:`Tencentcloud::apigateway::V20180808::ModifyUpstreamRequest`
@@ -1895,10 +1895,12 @@ module TencentCloud
1895
1895
  # @type TokenTimeout: Integer
1896
1896
  # @param EIAMAppId: EIAM应用ID。
1897
1897
  # @type EIAMAppId: String
1898
+ # @param Owner: 资源的Owner
1899
+ # @type Owner: String
1898
1900
 
1899
- attr_accessor :ServiceId, :ServiceType, :ServiceTimeout, :Protocol, :RequestConfig, :ApiName, :ApiDesc, :ApiType, :AuthType, :EnableCORS, :ConstantParameters, :RequestParameters, :ApiBusinessType, :ServiceMockReturnMessage, :MicroServices, :ServiceTsfLoadBalanceConf, :ServiceTsfHealthCheckConf, :TargetServices, :TargetServicesLoadBalanceConf, :TargetServicesHealthCheckConf, :ServiceScfFunctionName, :ServiceWebsocketRegisterFunctionName, :ServiceWebsocketCleanupFunctionName, :ServiceWebsocketTransportFunctionName, :ServiceScfFunctionNamespace, :ServiceScfFunctionQualifier, :ServiceWebsocketRegisterFunctionNamespace, :ServiceWebsocketRegisterFunctionQualifier, :ServiceWebsocketTransportFunctionNamespace, :ServiceWebsocketTransportFunctionQualifier, :ServiceWebsocketCleanupFunctionNamespace, :ServiceWebsocketCleanupFunctionQualifier, :ServiceScfIsIntegratedResponse, :IsDebugAfterCharge, :IsDeleteResponseErrorCodes, :ResponseType, :ResponseSuccessExample, :ResponseFailExample, :ServiceConfig, :AuthRelationApiId, :ServiceParameters, :OauthConfig, :ResponseErrorCodes, :TargetNamespaceId, :UserType, :IsBase64Encoded, :EventBusId, :ServiceScfFunctionType, :EIAMAppType, :EIAMAuthType, :TokenTimeout, :EIAMAppId
1901
+ attr_accessor :ServiceId, :ServiceType, :ServiceTimeout, :Protocol, :RequestConfig, :ApiName, :ApiDesc, :ApiType, :AuthType, :EnableCORS, :ConstantParameters, :RequestParameters, :ApiBusinessType, :ServiceMockReturnMessage, :MicroServices, :ServiceTsfLoadBalanceConf, :ServiceTsfHealthCheckConf, :TargetServices, :TargetServicesLoadBalanceConf, :TargetServicesHealthCheckConf, :ServiceScfFunctionName, :ServiceWebsocketRegisterFunctionName, :ServiceWebsocketCleanupFunctionName, :ServiceWebsocketTransportFunctionName, :ServiceScfFunctionNamespace, :ServiceScfFunctionQualifier, :ServiceWebsocketRegisterFunctionNamespace, :ServiceWebsocketRegisterFunctionQualifier, :ServiceWebsocketTransportFunctionNamespace, :ServiceWebsocketTransportFunctionQualifier, :ServiceWebsocketCleanupFunctionNamespace, :ServiceWebsocketCleanupFunctionQualifier, :ServiceScfIsIntegratedResponse, :IsDebugAfterCharge, :IsDeleteResponseErrorCodes, :ResponseType, :ResponseSuccessExample, :ResponseFailExample, :ServiceConfig, :AuthRelationApiId, :ServiceParameters, :OauthConfig, :ResponseErrorCodes, :TargetNamespaceId, :UserType, :IsBase64Encoded, :EventBusId, :ServiceScfFunctionType, :EIAMAppType, :EIAMAuthType, :TokenTimeout, :EIAMAppId, :Owner
1900
1902
 
1901
- def initialize(serviceid=nil, servicetype=nil, servicetimeout=nil, protocol=nil, requestconfig=nil, apiname=nil, apidesc=nil, apitype=nil, authtype=nil, enablecors=nil, constantparameters=nil, requestparameters=nil, apibusinesstype=nil, servicemockreturnmessage=nil, microservices=nil, servicetsfloadbalanceconf=nil, servicetsfhealthcheckconf=nil, targetservices=nil, targetservicesloadbalanceconf=nil, targetserviceshealthcheckconf=nil, servicescffunctionname=nil, servicewebsocketregisterfunctionname=nil, servicewebsocketcleanupfunctionname=nil, servicewebsockettransportfunctionname=nil, servicescffunctionnamespace=nil, servicescffunctionqualifier=nil, servicewebsocketregisterfunctionnamespace=nil, servicewebsocketregisterfunctionqualifier=nil, servicewebsockettransportfunctionnamespace=nil, servicewebsockettransportfunctionqualifier=nil, servicewebsocketcleanupfunctionnamespace=nil, servicewebsocketcleanupfunctionqualifier=nil, servicescfisintegratedresponse=nil, isdebugaftercharge=nil, isdeleteresponseerrorcodes=nil, responsetype=nil, responsesuccessexample=nil, responsefailexample=nil, serviceconfig=nil, authrelationapiid=nil, serviceparameters=nil, oauthconfig=nil, responseerrorcodes=nil, targetnamespaceid=nil, usertype=nil, isbase64encoded=nil, eventbusid=nil, servicescffunctiontype=nil, eiamapptype=nil, eiamauthtype=nil, tokentimeout=nil, eiamappid=nil)
1903
+ def initialize(serviceid=nil, servicetype=nil, servicetimeout=nil, protocol=nil, requestconfig=nil, apiname=nil, apidesc=nil, apitype=nil, authtype=nil, enablecors=nil, constantparameters=nil, requestparameters=nil, apibusinesstype=nil, servicemockreturnmessage=nil, microservices=nil, servicetsfloadbalanceconf=nil, servicetsfhealthcheckconf=nil, targetservices=nil, targetservicesloadbalanceconf=nil, targetserviceshealthcheckconf=nil, servicescffunctionname=nil, servicewebsocketregisterfunctionname=nil, servicewebsocketcleanupfunctionname=nil, servicewebsockettransportfunctionname=nil, servicescffunctionnamespace=nil, servicescffunctionqualifier=nil, servicewebsocketregisterfunctionnamespace=nil, servicewebsocketregisterfunctionqualifier=nil, servicewebsockettransportfunctionnamespace=nil, servicewebsockettransportfunctionqualifier=nil, servicewebsocketcleanupfunctionnamespace=nil, servicewebsocketcleanupfunctionqualifier=nil, servicescfisintegratedresponse=nil, isdebugaftercharge=nil, isdeleteresponseerrorcodes=nil, responsetype=nil, responsesuccessexample=nil, responsefailexample=nil, serviceconfig=nil, authrelationapiid=nil, serviceparameters=nil, oauthconfig=nil, responseerrorcodes=nil, targetnamespaceid=nil, usertype=nil, isbase64encoded=nil, eventbusid=nil, servicescffunctiontype=nil, eiamapptype=nil, eiamauthtype=nil, tokentimeout=nil, eiamappid=nil, owner=nil)
1902
1904
  @ServiceId = serviceid
1903
1905
  @ServiceType = servicetype
1904
1906
  @ServiceTimeout = servicetimeout
@@ -1951,6 +1953,7 @@ module TencentCloud
1951
1953
  @EIAMAuthType = eiamauthtype
1952
1954
  @TokenTimeout = tokentimeout
1953
1955
  @EIAMAppId = eiamappid
1956
+ @Owner = owner
1954
1957
  end
1955
1958
 
1956
1959
  def deserialize(params)
@@ -2066,6 +2069,7 @@ module TencentCloud
2066
2069
  @EIAMAuthType = params['EIAMAuthType']
2067
2070
  @TokenTimeout = params['TokenTimeout']
2068
2071
  @EIAMAppId = params['EIAMAppId']
2072
+ @Owner = params['Owner']
2069
2073
  end
2070
2074
  end
2071
2075
 
@@ -2196,20 +2200,23 @@ module TencentCloud
2196
2200
  class CreatePluginRequest < TencentCloud::Common::AbstractModel
2197
2201
  # @param PluginName: 用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。
2198
2202
  # @type PluginName: String
2199
- # @param PluginType: 插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter。
2203
+ # @param PluginType: 插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache
2200
2204
  # @type PluginType: String
2201
2205
  # @param PluginData: 插件定义语句,支持json。
2202
2206
  # @type PluginData: String
2203
2207
  # @param Description: 插件描述,限定200字以内。
2204
2208
  # @type Description: String
2209
+ # @param Tags: 标签
2210
+ # @type Tags: Array
2205
2211
 
2206
- attr_accessor :PluginName, :PluginType, :PluginData, :Description
2212
+ attr_accessor :PluginName, :PluginType, :PluginData, :Description, :Tags
2207
2213
 
2208
- def initialize(pluginname=nil, plugintype=nil, plugindata=nil, description=nil)
2214
+ def initialize(pluginname=nil, plugintype=nil, plugindata=nil, description=nil, tags=nil)
2209
2215
  @PluginName = pluginname
2210
2216
  @PluginType = plugintype
2211
2217
  @PluginData = plugindata
2212
2218
  @Description = description
2219
+ @Tags = tags
2213
2220
  end
2214
2221
 
2215
2222
  def deserialize(params)
@@ -2217,6 +2224,14 @@ module TencentCloud
2217
2224
  @PluginType = params['PluginType']
2218
2225
  @PluginData = params['PluginData']
2219
2226
  @Description = params['Description']
2227
+ unless params['Tags'].nil?
2228
+ @Tags = []
2229
+ params['Tags'].each do |i|
2230
+ tag_tmp = Tag.new
2231
+ tag_tmp.deserialize(i)
2232
+ @Tags << tag_tmp
2233
+ end
2234
+ end
2220
2235
  end
2221
2236
  end
2222
2237
 
@@ -2357,36 +2372,45 @@ module TencentCloud
2357
2372
 
2358
2373
  # CreateUpstream请求参数结构体
2359
2374
  class CreateUpstreamRequest < TencentCloud::Common::AbstractModel
2360
- # @param Scheme: 后端协议,HTTP, HTTPS其中之一
2375
+ # @param Scheme: 后端协议,取值范围:HTTP, HTTPS
2361
2376
  # @type Scheme: String
2362
- # @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
2377
+ # @param Algorithm: 负载均衡算法,取值范围:ROUND-ROBIN
2363
2378
  # @type Algorithm: String
2364
2379
  # @param UniqVpcId: VPC唯一ID
2365
2380
  # @type UniqVpcId: String
2366
- # @param UpstreamName: VPC通道名字
2381
+ # @param UpstreamName: 后端通道名字
2367
2382
  # @type UpstreamName: String
2368
- # @param UpstreamDescription: VPC通道描述
2383
+ # @param UpstreamDescription: 后端通道描述
2369
2384
  # @type UpstreamDescription: String
2385
+ # @param UpstreamType: 后端访问类型,取值范围:IP_PORT, K8S
2386
+ # @type UpstreamType: String
2370
2387
  # @param Retries: 请求重试次数,默认3次
2371
2388
  # @type Retries: Integer
2372
- # @param UpstreamHost: 请求到后端的,host头
2389
+ # @param UpstreamHost: 网关转发到后端的Host请求头
2373
2390
  # @type UpstreamHost: String
2374
2391
  # @param Nodes: 后端节点
2375
2392
  # @type Nodes: Array
2376
- # @param K8sService: k8s服务的配置
2393
+ # @param Tags: 标签
2394
+ # @type Tags: Array
2395
+ # @param HealthChecker: 健康检查配置,目前只支持VPC通道
2396
+ # @type HealthChecker: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamHealthChecker`
2397
+ # @param K8sService: K8S容器服务的配置
2377
2398
  # @type K8sService: Array
2378
2399
 
2379
- attr_accessor :Scheme, :Algorithm, :UniqVpcId, :UpstreamName, :UpstreamDescription, :Retries, :UpstreamHost, :Nodes, :K8sService
2400
+ attr_accessor :Scheme, :Algorithm, :UniqVpcId, :UpstreamName, :UpstreamDescription, :UpstreamType, :Retries, :UpstreamHost, :Nodes, :Tags, :HealthChecker, :K8sService
2380
2401
 
2381
- def initialize(scheme=nil, algorithm=nil, uniqvpcid=nil, upstreamname=nil, upstreamdescription=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
2402
+ def initialize(scheme=nil, algorithm=nil, uniqvpcid=nil, upstreamname=nil, upstreamdescription=nil, upstreamtype=nil, retries=nil, upstreamhost=nil, nodes=nil, tags=nil, healthchecker=nil, k8sservice=nil)
2382
2403
  @Scheme = scheme
2383
2404
  @Algorithm = algorithm
2384
2405
  @UniqVpcId = uniqvpcid
2385
2406
  @UpstreamName = upstreamname
2386
2407
  @UpstreamDescription = upstreamdescription
2408
+ @UpstreamType = upstreamtype
2387
2409
  @Retries = retries
2388
2410
  @UpstreamHost = upstreamhost
2389
2411
  @Nodes = nodes
2412
+ @Tags = tags
2413
+ @HealthChecker = healthchecker
2390
2414
  @K8sService = k8sservice
2391
2415
  end
2392
2416
 
@@ -2396,6 +2420,7 @@ module TencentCloud
2396
2420
  @UniqVpcId = params['UniqVpcId']
2397
2421
  @UpstreamName = params['UpstreamName']
2398
2422
  @UpstreamDescription = params['UpstreamDescription']
2423
+ @UpstreamType = params['UpstreamType']
2399
2424
  @Retries = params['Retries']
2400
2425
  @UpstreamHost = params['UpstreamHost']
2401
2426
  unless params['Nodes'].nil?
@@ -2406,6 +2431,18 @@ module TencentCloud
2406
2431
  @Nodes << upstreamnode_tmp
2407
2432
  end
2408
2433
  end
2434
+ unless params['Tags'].nil?
2435
+ @Tags = []
2436
+ params['Tags'].each do |i|
2437
+ tag_tmp = Tag.new
2438
+ tag_tmp.deserialize(i)
2439
+ @Tags << tag_tmp
2440
+ end
2441
+ end
2442
+ unless params['HealthChecker'].nil?
2443
+ @HealthChecker = UpstreamHealthChecker.new
2444
+ @HealthChecker.deserialize(params['HealthChecker'])
2445
+ end
2409
2446
  unless params['K8sService'].nil?
2410
2447
  @K8sService = []
2411
2448
  params['K8sService'].each do |i|
@@ -2419,7 +2456,7 @@ module TencentCloud
2419
2456
 
2420
2457
  # CreateUpstream返回参数结构体
2421
2458
  class CreateUpstreamResponse < TencentCloud::Common::AbstractModel
2422
- # @param UpstreamId: 创建返回的唯一id
2459
+ # @param UpstreamId: 创建返回的唯一ID
2423
2460
  # 注意:此字段可能返回 null,表示取不到有效值。
2424
2461
  # @type UpstreamId: String
2425
2462
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2805,7 +2842,7 @@ module TencentCloud
2805
2842
 
2806
2843
  # DeleteUpstream请求参数结构体
2807
2844
  class DeleteUpstreamRequest < TencentCloud::Common::AbstractModel
2808
- # @param UpstreamId: 待删除的VPC通道唯一ID
2845
+ # @param UpstreamId: 待删除的后端通道ID
2809
2846
  # @type UpstreamId: String
2810
2847
 
2811
2848
  attr_accessor :UpstreamId
@@ -2821,7 +2858,7 @@ module TencentCloud
2821
2858
 
2822
2859
  # DeleteUpstream返回参数结构体
2823
2860
  class DeleteUpstreamResponse < TencentCloud::Common::AbstractModel
2824
- # @param UpstreamId: 成功删除的vpc通道id
2861
+ # @param UpstreamId: 成功删除的后端通道ID
2825
2862
  # 注意:此字段可能返回 null,表示取不到有效值。
2826
2863
  # @type UpstreamId: String
2827
2864
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -4726,7 +4763,7 @@ module TencentCloud
4726
4763
  # @param DeploymentType: 服务部署的集群类型
4727
4764
  # 注意:此字段可能返回 null,表示取不到有效值。
4728
4765
  # @type DeploymentType: String
4729
- # @param SpecialUse: 特殊用途
4766
+ # @param SpecialUse: 特殊用途, NULL和DEFAULT表示无特殊用途,其他用途如HTTP_DNS等
4730
4767
  # 注意:此字段可能返回 null,表示取不到有效值。
4731
4768
  # @type SpecialUse: String
4732
4769
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5009,11 +5046,11 @@ module TencentCloud
5009
5046
  end
5010
5047
  end
5011
5048
 
5012
- # 查询vpc通道绑定api列表
5049
+ # 查询后端通道绑定API列表
5013
5050
  class DescribeUpstreamBindApis < TencentCloud::Common::AbstractModel
5014
5051
  # @param TotalCount: 总数
5015
5052
  # @type TotalCount: Integer
5016
- # @param BindApiSet: 绑定的api信息
5053
+ # @param BindApiSet: 绑定的API信息
5017
5054
  # @type BindApiSet: Array
5018
5055
 
5019
5056
  attr_accessor :TotalCount, :BindApiSet
@@ -5038,11 +5075,11 @@ module TencentCloud
5038
5075
 
5039
5076
  # DescribeUpstreamBindApis请求参数结构体
5040
5077
  class DescribeUpstreamBindApisRequest < TencentCloud::Common::AbstractModel
5041
- # @param Limit: 分页
5078
+ # @param Limit: 分页大小
5042
5079
  # @type Limit: Integer
5043
- # @param Offset: 分页
5080
+ # @param Offset: 分页起始位置
5044
5081
  # @type Offset: Integer
5045
- # @param UpstreamId: vpc通道Id
5082
+ # @param UpstreamId: 后端通道ID
5046
5083
  # @type UpstreamId: String
5047
5084
  # @param Filters: ServiceId和ApiId过滤查询
5048
5085
  # @type Filters: Array
@@ -5094,7 +5131,7 @@ module TencentCloud
5094
5131
  end
5095
5132
  end
5096
5133
 
5097
- # 查询vpc通道返回信息
5134
+ # 查询后端通道返回信息
5098
5135
  class DescribeUpstreamInfo < TencentCloud::Common::AbstractModel
5099
5136
  # @param TotalCount: 查询总数
5100
5137
  # @type TotalCount: Integer
@@ -5123,11 +5160,11 @@ module TencentCloud
5123
5160
 
5124
5161
  # DescribeUpstreams请求参数结构体
5125
5162
  class DescribeUpstreamsRequest < TencentCloud::Common::AbstractModel
5126
- # @param Limit: 分页
5163
+ # @param Limit: 分页大小
5127
5164
  # @type Limit: Integer
5128
- # @param Offset: 分页
5165
+ # @param Offset: 分页起始位置
5129
5166
  # @type Offset: Integer
5130
- # @param Filters: 过滤条件
5167
+ # @param Filters: 过滤条件,支持后端通道ID(UpstreamId)、后端通道名字(UpstreamName)过滤查询
5131
5168
  # @type Filters: Array
5132
5169
 
5133
5170
  attr_accessor :Limit, :Offset, :Filters
@@ -7070,39 +7107,45 @@ module TencentCloud
7070
7107
 
7071
7108
  # ModifyUpstream请求参数结构体
7072
7109
  class ModifyUpstreamRequest < TencentCloud::Common::AbstractModel
7073
- # @param UpstreamId: VPC通道唯一ID
7110
+ # @param UpstreamId: 后端通道唯一ID
7074
7111
  # @type UpstreamId: String
7075
- # @param UpstreamName: VPC通道名字
7112
+ # @param UpstreamName: 后端通道名字
7076
7113
  # @type UpstreamName: String
7077
- # @param UpstreamDescription: VPC通道描述
7114
+ # @param UpstreamDescription: 后端通道描述
7078
7115
  # @type UpstreamDescription: String
7079
- # @param Scheme: 后端协议,HTTP, HTTPS其中之一
7116
+ # @param Scheme: 后端协议,取值范围:HTTP, HTTPS
7080
7117
  # @type Scheme: String
7081
- # @param Algorithm: 负载均衡算法目前支持ROUND_ROBIN
7118
+ # @param UpstreamType: 后端访问类型,取值范围:IP_PORT, K8S
7119
+ # @type UpstreamType: String
7120
+ # @param Algorithm: 负载均衡算法,取值范围:ROUND_ROBIN
7082
7121
  # @type Algorithm: String
7083
7122
  # @param UniqVpcId: VPC唯一ID
7084
7123
  # @type UniqVpcId: String
7085
7124
  # @param Retries: 请求重试次数,默认3次
7086
7125
  # @type Retries: Integer
7087
- # @param UpstreamHost: 请求到后端的,host头
7126
+ # @param UpstreamHost: 网关转发到后端的 Host 请求头
7088
7127
  # @type UpstreamHost: String
7089
7128
  # @param Nodes: 后端节点列表
7090
7129
  # @type Nodes: Array
7091
- # @param K8sService: k8s服务配置
7130
+ # @param HealthChecker: 健康检查配置,目前只支持VPC通道
7131
+ # @type HealthChecker: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamHealthChecker`
7132
+ # @param K8sService: 容器服务配置
7092
7133
  # @type K8sService: Array
7093
7134
 
7094
- attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :Algorithm, :UniqVpcId, :Retries, :UpstreamHost, :Nodes, :K8sService
7135
+ attr_accessor :UpstreamId, :UpstreamName, :UpstreamDescription, :Scheme, :UpstreamType, :Algorithm, :UniqVpcId, :Retries, :UpstreamHost, :Nodes, :HealthChecker, :K8sService
7095
7136
 
7096
- def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, algorithm=nil, uniqvpcid=nil, retries=nil, upstreamhost=nil, nodes=nil, k8sservice=nil)
7137
+ def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, upstreamtype=nil, algorithm=nil, uniqvpcid=nil, retries=nil, upstreamhost=nil, nodes=nil, healthchecker=nil, k8sservice=nil)
7097
7138
  @UpstreamId = upstreamid
7098
7139
  @UpstreamName = upstreamname
7099
7140
  @UpstreamDescription = upstreamdescription
7100
7141
  @Scheme = scheme
7142
+ @UpstreamType = upstreamtype
7101
7143
  @Algorithm = algorithm
7102
7144
  @UniqVpcId = uniqvpcid
7103
7145
  @Retries = retries
7104
7146
  @UpstreamHost = upstreamhost
7105
7147
  @Nodes = nodes
7148
+ @HealthChecker = healthchecker
7106
7149
  @K8sService = k8sservice
7107
7150
  end
7108
7151
 
@@ -7111,6 +7154,7 @@ module TencentCloud
7111
7154
  @UpstreamName = params['UpstreamName']
7112
7155
  @UpstreamDescription = params['UpstreamDescription']
7113
7156
  @Scheme = params['Scheme']
7157
+ @UpstreamType = params['UpstreamType']
7114
7158
  @Algorithm = params['Algorithm']
7115
7159
  @UniqVpcId = params['UniqVpcId']
7116
7160
  @Retries = params['Retries']
@@ -7123,6 +7167,10 @@ module TencentCloud
7123
7167
  @Nodes << upstreamnode_tmp
7124
7168
  end
7125
7169
  end
7170
+ unless params['HealthChecker'].nil?
7171
+ @HealthChecker = UpstreamHealthChecker.new
7172
+ @HealthChecker.deserialize(params['HealthChecker'])
7173
+ end
7126
7174
  unless params['K8sService'].nil?
7127
7175
  @K8sService = []
7128
7176
  params['K8sService'].each do |i|
@@ -7136,7 +7184,7 @@ module TencentCloud
7136
7184
 
7137
7185
  # ModifyUpstream返回参数结构体
7138
7186
  class ModifyUpstreamResponse < TencentCloud::Common::AbstractModel
7139
- # @param Result: 返回修改后的vpc通道信息
7187
+ # @param Result: 返回修改后的后端通道信息
7140
7188
  # 注意:此字段可能返回 null,表示取不到有效值。
7141
7189
  # @type Result: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamInfo`
7142
7190
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -7796,18 +7844,22 @@ module TencentCloud
7796
7844
  # @type Path: String
7797
7845
  # @param Method: API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。
7798
7846
  # @type Method: String
7847
+ # @param UpstreamId: 当绑定vpc通道才需要
7848
+ # 注意:此字段可能返回 null,表示取不到有效值。
7849
+ # @type UpstreamId: String
7799
7850
  # @param CosConfig: API后端COS配置。如果 ServiceType 是 COS,则此参数必传。
7800
7851
  # 注意:此字段可能返回 null,表示取不到有效值。
7801
7852
  # @type CosConfig: :class:`Tencentcloud::Apigateway.v20180808.models.CosConfig`
7802
7853
 
7803
- attr_accessor :Product, :UniqVpcId, :Url, :Path, :Method, :CosConfig
7854
+ attr_accessor :Product, :UniqVpcId, :Url, :Path, :Method, :UpstreamId, :CosConfig
7804
7855
 
7805
- def initialize(product=nil, uniqvpcid=nil, url=nil, path=nil, method=nil, cosconfig=nil)
7856
+ def initialize(product=nil, uniqvpcid=nil, url=nil, path=nil, method=nil, upstreamid=nil, cosconfig=nil)
7806
7857
  @Product = product
7807
7858
  @UniqVpcId = uniqvpcid
7808
7859
  @Url = url
7809
7860
  @Path = path
7810
7861
  @Method = method
7862
+ @UpstreamId = upstreamid
7811
7863
  @CosConfig = cosconfig
7812
7864
  end
7813
7865
 
@@ -7817,6 +7869,7 @@ module TencentCloud
7817
7869
  @Url = params['Url']
7818
7870
  @Path = params['Path']
7819
7871
  @Method = params['Method']
7872
+ @UpstreamId = params['UpstreamId']
7820
7873
  unless params['CosConfig'].nil?
7821
7874
  @CosConfig = CosConfig.new
7822
7875
  @CosConfig.deserialize(params['CosConfig'])
@@ -8636,7 +8689,7 @@ module TencentCloud
8636
8689
  end
8637
8690
  end
8638
8691
 
8639
- # VPC通道健康检查参数配置
8692
+ # 后端通道健康检查参数配置
8640
8693
  class UpstreamHealthChecker < TencentCloud::Common::AbstractModel
8641
8694
  # @param EnableActiveCheck: 标识是否开启主动健康检查。
8642
8695
  # @type EnableActiveCheck: Boolean
@@ -8703,7 +8756,7 @@ module TencentCloud
8703
8756
  end
8704
8757
  end
8705
8758
 
8706
- # VPC通道主动健康检查的请求头配置
8759
+ # 后端通道主动健康检查的请求头配置
8707
8760
  class UpstreamHealthCheckerReqHeaders < TencentCloud::Common::AbstractModel
8708
8761
 
8709
8762
 
@@ -8714,21 +8767,21 @@ module TencentCloud
8714
8767
  end
8715
8768
  end
8716
8769
 
8717
- # VPC通道信息集合
8770
+ # 后端通道详细信息
8718
8771
  class UpstreamInfo < TencentCloud::Common::AbstractModel
8719
- # @param UpstreamId: VPC通道唯一ID
8772
+ # @param UpstreamId: 后端通道唯一ID
8720
8773
  # @type UpstreamId: String
8721
- # @param UpstreamName: VPC通道名字
8774
+ # @param UpstreamName: 后端通道名字
8722
8775
  # @type UpstreamName: String
8723
- # @param UpstreamDescription: VPC通道描述
8776
+ # @param UpstreamDescription: 后端通道描述
8724
8777
  # @type UpstreamDescription: String
8725
- # @param Scheme: 写意
8778
+ # @param Scheme: 后端协议,取值范围:HTTP, HTTPS
8726
8779
  # @type Scheme: String
8727
- # @param Algorithm: 负载均衡算法
8780
+ # @param Algorithm: 负载均衡算法,取值范围:ROUND_ROBIN
8728
8781
  # @type Algorithm: String
8729
- # @param UniqVpcId: vpc唯一ID
8782
+ # @param UniqVpcId: VPC唯一ID
8730
8783
  # @type UniqVpcId: String
8731
- # @param Retries: 请求重拾次数
8784
+ # @param Retries: 请求重试次数
8732
8785
  # @type Retries: Integer
8733
8786
  # @param Nodes: 后端节点
8734
8787
  # @type Nodes: Array
@@ -8740,12 +8793,12 @@ module TencentCloud
8740
8793
  # @param HealthChecker: 健康检查配置
8741
8794
  # 注意:此字段可能返回 null,表示取不到有效值。
8742
8795
  # @type HealthChecker: :class:`Tencentcloud::Apigateway.v20180808.models.UpstreamHealthChecker`
8743
- # @param UpstreamType: Upstream的类型
8796
+ # @param UpstreamType: 后端的类型,取值范围:IP_PORT, K8S
8744
8797
  # @type UpstreamType: String
8745
- # @param K8sServices: k8s服务配置
8798
+ # @param K8sServices: K8S容器服务配置
8746
8799
  # 注意:此字段可能返回 null,表示取不到有效值。
8747
8800
  # @type K8sServices: Array
8748
- # @param UpstreamHost: vpc通道的Host
8801
+ # @param UpstreamHost: 网关转发给后端的Host请求头
8749
8802
  # 注意:此字段可能返回 null,表示取不到有效值。
8750
8803
  # @type UpstreamHost: String
8751
8804
 
@@ -8810,33 +8863,33 @@ module TencentCloud
8810
8863
  end
8811
8864
  end
8812
8865
 
8813
- # VPC通道后端节点元数据
8866
+ # 后端通道后端节点元数据
8814
8867
  class UpstreamNode < TencentCloud::Common::AbstractModel
8815
- # @param Host: IP(domain)
8868
+ # @param Host: IP或域名
8816
8869
  # @type Host: String
8817
8870
  # @param Port: 端口[0, 65535]
8818
8871
  # @type Port: Integer
8819
8872
  # @param Weight: 权重[0, 100], 0为禁用
8820
8873
  # @type Weight: Integer
8821
- # @param VmInstanceId: vm实例id
8874
+ # @param VmInstanceId: CVM实例ID
8822
8875
  # 注意:此字段可能返回 null,表示取不到有效值。
8823
8876
  # @type VmInstanceId: String
8824
8877
  # @param Tags: 染色标签
8825
8878
  # 注意:此字段可能返回 null,表示取不到有效值。
8826
8879
  # @type Tags: Array
8827
- # @param Healthy: 节点健康状态,创建、编辑时不需要传该参数。OFF:关闭,HEALTHY:健康,UNHEALTHY:异常,NO_DATA:数据未上报
8880
+ # @param Healthy: 节点健康状态,创建、编辑时不需要传该参数。OFF:关闭,HEALTHY:健康,UNHEALTHY:异常,NO_DATA:数据未上报。目前只支持VPC通道。
8828
8881
  # 注意:此字段可能返回 null,表示取不到有效值。
8829
8882
  # @type Healthy: String
8830
- # @param ServiceName: k8s服务名字
8883
+ # @param ServiceName: K8S容器服务名字
8831
8884
  # 注意:此字段可能返回 null,表示取不到有效值。
8832
8885
  # @type ServiceName: String
8833
- # @param NameSpace: k8s命名空间
8886
+ # @param NameSpace: K8S命名空间
8834
8887
  # 注意:此字段可能返回 null,表示取不到有效值。
8835
8888
  # @type NameSpace: String
8836
8889
  # @param ClusterId: TKE集群的ID
8837
8890
  # 注意:此字段可能返回 null,表示取不到有效值。
8838
8891
  # @type ClusterId: String
8839
- # @param Source: Node的来源
8892
+ # @param Source: Node的来源,取值范围:K8S
8840
8893
  # 注意:此字段可能返回 null,表示取不到有效值。
8841
8894
  # @type Source: String
8842
8895
  # @param UniqueServiceName: API网关内部记录唯一的服务名字
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.299
4
+ version: 1.0.302
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-04-18 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common