Class: TencentCloud::Bmlb::V20180625::L7ListenerInfoLocation

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

Overview

查询绑定了某主机的七层监听器时返回的转发路径。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url = nil, locationid = nil, sessionexpire = nil, healthswitch = nil, httpcheckpath = nil, httpcheckdomain = nil, intervaltime = nil, healthnum = nil, unhealthnum = nil, httpcodes = nil, balancemode = nil, status = nil, addtimestamp = nil, backendset = nil) ⇒ L7ListenerInfoLocation



2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
# File 'lib/v20180625/models.rb', line 2919

def initialize(url=nil, locationid=nil, sessionexpire=nil, healthswitch=nil, httpcheckpath=nil, httpcheckdomain=nil, intervaltime=nil, healthnum=nil, unhealthnum=nil, httpcodes=nil, balancemode=nil, status=nil, addtimestamp=nil, backendset=nil)
  @Url = url
  @LocationId = locationid
  @SessionExpire = sessionexpire
  @HealthSwitch = healthswitch
  @HttpCheckPath = httpcheckpath
  @HttpCheckDomain = httpcheckdomain
  @IntervalTime = intervaltime
  @HealthNum = healthnum
  @UnhealthNum = unhealthnum
  @HttpCodes = httpcodes
  @BalanceMode = balancemode
  @Status = status
  @AddTimestamp = addtimestamp
  @BackendSet = backendset
end

Instance Attribute Details

#AddTimestampObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def AddTimestamp
  @AddTimestamp
end

#BackendSetObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def BackendSet
  @BackendSet
end

#BalanceModeObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def BalanceMode
  @BalanceMode
end

#HealthNumObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def HealthNum
  @HealthNum
end

#HealthSwitchObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def HealthSwitch
  @HealthSwitch
end

#HttpCheckDomainObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def HttpCheckDomain
  @HttpCheckDomain
end

#HttpCheckPathObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def HttpCheckPath
  @HttpCheckPath
end

#HttpCodesObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def HttpCodes
  @HttpCodes
end

#IntervalTimeObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def IntervalTime
  @IntervalTime
end

#LocationIdObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def LocationId
  @LocationId
end

#SessionExpireObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def SessionExpire
  @SessionExpire
end

#StatusObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def Status
  @Status
end

#UnhealthNumObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def UnhealthNum
  @UnhealthNum
end

#UrlObject



2917
2918
2919
# File 'lib/v20180625/models.rb', line 2917

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
# File 'lib/v20180625/models.rb', line 2936

def deserialize(params)
  @Url = params['Url']
  @LocationId = params['LocationId']
  @SessionExpire = params['SessionExpire']
  @HealthSwitch = params['HealthSwitch']
  @HttpCheckPath = params['HttpCheckPath']
  @HttpCheckDomain = params['HttpCheckDomain']
  @IntervalTime = params['IntervalTime']
  @HealthNum = params['HealthNum']
  @UnhealthNum = params['UnhealthNum']
  @HttpCodes = params['HttpCodes']
  @BalanceMode = params['BalanceMode']
  @Status = params['Status']
  @AddTimestamp = params['AddTimestamp']
  unless params['BackendSet'].nil?
    @BackendSet = []
    params['BackendSet'].each do |i|
      l7listenerinfobackend_tmp = L7ListenerInfoBackend.new
      l7listenerinfobackend_tmp.deserialize(i)
      @BackendSet << l7listenerinfobackend_tmp
    end
  end
end