Class: TencentCloud::Ssl::V20191205::ClbInstanceDetail

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

Overview

clb实例详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, loadbalancername = nil, listeners = nil, forward = nil) ⇒ ClbInstanceDetail

Returns a new instance of ClbInstanceDetail.



1231
1232
1233
1234
1235
1236
# File 'lib/v20191205/models.rb', line 1231

def initialize(loadbalancerid=nil, loadbalancername=nil, listeners=nil, forward=nil)
  @LoadBalancerId = loadbalancerid
  @LoadBalancerName = loadbalancername
  @Listeners = listeners
  @Forward = forward
end

Instance Attribute Details

#ForwardObject

Parameters:

  • LoadBalancerId:

    CLB实例ID

  • LoadBalancerName:

    CLB实例名称

  • Listeners:

    CLB监听器列表

  • Forward:

    负载均衡类型,0 传统型负载均衡; 1 应用型负载均衡



1229
1230
1231
# File 'lib/v20191205/models.rb', line 1229

def Forward
  @Forward
end

#ListenersObject

Parameters:

  • LoadBalancerId:

    CLB实例ID

  • LoadBalancerName:

    CLB实例名称

  • Listeners:

    CLB监听器列表

  • Forward:

    负载均衡类型,0 传统型负载均衡; 1 应用型负载均衡



1229
1230
1231
# File 'lib/v20191205/models.rb', line 1229

def Listeners
  @Listeners
end

#LoadBalancerIdObject

Parameters:

  • LoadBalancerId:

    CLB实例ID

  • LoadBalancerName:

    CLB实例名称

  • Listeners:

    CLB监听器列表

  • Forward:

    负载均衡类型,0 传统型负载均衡; 1 应用型负载均衡



1229
1230
1231
# File 'lib/v20191205/models.rb', line 1229

def LoadBalancerId
  @LoadBalancerId
end

#LoadBalancerNameObject

Parameters:

  • LoadBalancerId:

    CLB实例ID

  • LoadBalancerName:

    CLB实例名称

  • Listeners:

    CLB监听器列表

  • Forward:

    负载均衡类型,0 传统型负载均衡; 1 应用型负载均衡



1229
1230
1231
# File 'lib/v20191205/models.rb', line 1229

def LoadBalancerName
  @LoadBalancerName
end

Instance Method Details

#deserialize(params) ⇒ Object



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
# File 'lib/v20191205/models.rb', line 1238

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @LoadBalancerName = params['LoadBalancerName']
  unless params['Listeners'].nil?
    @Listeners = []
    params['Listeners'].each do |i|
      clblistener_tmp = ClbListener.new
      clblistener_tmp.deserialize(i)
      @Listeners << clblistener_tmp
    end
  end
  @Forward = params['Forward']
end