Class: TencentCloud::Apigateway::V20180808::ModifyUpstreamResultInfo

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

Overview

后端通道详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(upstreamid = nil, upstreamname = nil, upstreamdescription = nil, scheme = nil, algorithm = nil, uniqvpcid = nil, retries = nil, nodes = nil, createdtime = nil, healthchecker = nil, upstreamtype = nil, k8sservices = nil, upstreamhost = nil) ⇒ ModifyUpstreamResultInfo



7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
# File 'lib/v20180808/models.rb', line 7997

def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, algorithm=nil, uniqvpcid=nil, retries=nil, nodes=nil, createdtime=nil, healthchecker=nil, upstreamtype=nil, k8sservices=nil, upstreamhost=nil)
  @UpstreamId = upstreamid
  @UpstreamName = upstreamname
  @UpstreamDescription = upstreamdescription
  @Scheme = scheme
  @Algorithm = algorithm
  @UniqVpcId = uniqvpcid
  @Retries = retries
  @Nodes = nodes
  @CreatedTime = createdtime
  @HealthChecker = healthchecker
  @UpstreamType = upstreamtype
  @K8sServices = k8sservices
  @UpstreamHost = upstreamhost
end

Instance Attribute Details

#AlgorithmObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def Algorithm
  @Algorithm
end

#CreatedTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def CreatedTime
  @CreatedTime
end

#HealthCheckerObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def HealthChecker
  @HealthChecker
end

#K8sServicesObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def K8sServices
  @K8sServices
end

#NodesObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def Nodes
  @Nodes
end

#RetriesObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def Retries
  @Retries
end

#SchemeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def Scheme
  @Scheme
end

#UniqVpcIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UniqVpcId
  @UniqVpcId
end

#UpstreamDescriptionObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UpstreamDescription
  @UpstreamDescription
end

#UpstreamHostObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UpstreamHost
  @UpstreamHost
end

#UpstreamIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UpstreamId
  @UpstreamId
end

#UpstreamNameObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UpstreamName
  @UpstreamName
end

#UpstreamTypeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。



7995
7996
7997
# File 'lib/v20180808/models.rb', line 7995

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
# File 'lib/v20180808/models.rb', line 8013

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