Class: TencentCloud::Apigateway::V20180808::ModifyUpstreamRequest

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

Overview

ModifyUpstream请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
# File 'lib/v20180808/models.rb', line 7891

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

Instance Attribute Details

#AlgorithmObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def Algorithm
  @Algorithm
end

#HealthCheckerObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def HealthChecker
  @HealthChecker
end

#K8sServiceObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def K8sService
  @K8sService
end

#NodesObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def Nodes
  @Nodes
end

#RetriesObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def Retries
  @Retries
end

#SchemeObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def Scheme
  @Scheme
end

#UniqVpcIdObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UniqVpcId
  @UniqVpcId
end

#UpstreamDescriptionObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UpstreamDescription
  @UpstreamDescription
end

#UpstreamHostObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UpstreamHost
  @UpstreamHost
end

#UpstreamIdObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UpstreamId
  @UpstreamId
end

#UpstreamNameObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UpstreamName
  @UpstreamName
end

#UpstreamTypeObject



7889
7890
7891
# File 'lib/v20180808/models.rb', line 7889

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
# File 'lib/v20180808/models.rb', line 7906

def deserialize(params)
  @UpstreamId = params['UpstreamId']
  @UpstreamName = params['UpstreamName']
  @UpstreamDescription = params['UpstreamDescription']
  @Scheme = params['Scheme']
  @UpstreamType = params['UpstreamType']
  @Algorithm = params['Algorithm']
  @UniqVpcId = params['UniqVpcId']
  @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['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