Class: TencentCloud::Apigateway::V20180808::CreateUpstreamRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180808/models.rb

Overview

CreateUpstream请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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) ⇒ CreateUpstreamRequest

Returns a new instance of CreateUpstreamRequest.



2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
# File 'lib/v20180808/models.rb', line 2687

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)
  @Scheme = scheme
  @Algorithm = algorithm
  @UniqVpcId = uniqvpcid
  @UpstreamName = upstreamname
  @UpstreamDescription = upstreamdescription
  @UpstreamType = upstreamtype
  @Retries = retries
  @UpstreamHost = upstreamhost
  @Nodes = nodes
  @Tags = tags
  @HealthChecker = healthchecker
  @K8sService = k8sservice
end

Instance Attribute Details

#AlgorithmObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def Algorithm
  @Algorithm
end

#HealthCheckerObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def HealthChecker
  @HealthChecker
end

#K8sServiceObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def K8sService
  @K8sService
end

#NodesObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def Nodes
  @Nodes
end

#RetriesObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def Retries
  @Retries
end

#SchemeObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def Scheme
  @Scheme
end

#TagsObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def Tags
  @Tags
end

#UniqVpcIdObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def UniqVpcId
  @UniqVpcId
end

#UpstreamDescriptionObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def UpstreamDescription
  @UpstreamDescription
end

#UpstreamHostObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def UpstreamHost
  @UpstreamHost
end

#UpstreamNameObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def UpstreamName
  @UpstreamName
end

#UpstreamTypeObject

Parameters:

  • Scheme:

    后端协议,取值范围:HTTP, HTTPS,gRPC,gRPCs

  • Algorithm:

    负载均衡算法,取值范围:ROUND-ROBIN

  • UniqVpcId:

    VPC唯一ID

  • UpstreamName:

    后端通道名字

  • UpstreamDescription:

    后端通道描述

  • UpstreamType:

    后端访问类型,取值范围:IP_PORT, K8S

  • Retries:

    请求重试次数,默认3次

  • UpstreamHost:

    网关转发到后端的Host请求头

  • Nodes:

    后端节点

  • Tags:

    标签

  • HealthChecker:

    健康检查配置,目前只支持VPC通道

  • K8sService:

    K8S容器服务的配置



2685
2686
2687
# File 'lib/v20180808/models.rb', line 2685

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
# File 'lib/v20180808/models.rb', line 2702

def deserialize(params)
  @Scheme = params['Scheme']
  @Algorithm = params['Algorithm']
  @UniqVpcId = params['UniqVpcId']
  @UpstreamName = params['UpstreamName']
  @UpstreamDescription = params['UpstreamDescription']
  @UpstreamType = params['UpstreamType']
  @Retries = params['Retries']
  @UpstreamHost = params['UpstreamHost']
  unless params['Nodes'].nil?
    @Nodes = []
    params['Nodes'].each do |i|
      upstreamnode_tmp = UpstreamNode.new
      upstreamnode_tmp.deserialize(i)
      @Nodes << upstreamnode_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  unless params['HealthChecker'].nil?
    @HealthChecker = UpstreamHealthChecker.new
    @HealthChecker.deserialize(params['HealthChecker'])
  end
  unless params['K8sService'].nil?
    @K8sService = []
    params['K8sService'].each do |i|
      k8sservice_tmp = K8sService.new
      k8sservice_tmp.deserialize(i)
      @K8sService << k8sservice_tmp
    end
  end
end