Class: TencentCloud::Clb::V20180317::ModifyTargetPortRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ModifyTargetPortRequest
- Defined in:
- lib/v20180317/models.rb
Overview
ModifyTargetPort请求参数结构体
Instance Attribute Summary collapse
- #Domain ⇒ Object
- #ListenerId ⇒ Object
- #LoadBalancerId ⇒ Object
- #LocationId ⇒ Object
- #NewPort ⇒ Object
- #Targets ⇒ Object
- #Url ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, listenerid = nil, targets = nil, newport = nil, locationid = nil, domain = nil, url = nil) ⇒ ModifyTargetPortRequest
constructor
A new instance of ModifyTargetPortRequest.
Constructor Details
#initialize(loadbalancerid = nil, listenerid = nil, targets = nil, newport = nil, locationid = nil, domain = nil, url = nil) ⇒ ModifyTargetPortRequest
Returns a new instance of ModifyTargetPortRequest.
7111 7112 7113 7114 7115 7116 7117 7118 7119 |
# File 'lib/v20180317/models.rb', line 7111 def initialize(loadbalancerid=nil, listenerid=nil, targets=nil, newport=nil, locationid=nil, domain=nil, url=nil) @LoadBalancerId = loadbalancerid @ListenerId = listenerid @Targets = targets @NewPort = newport @LocationId = locationid @Domain = domain @Url = url end |
Instance Attribute Details
#Domain ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def Domain @Domain end |
#ListenerId ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def ListenerId @ListenerId end |
#LoadBalancerId ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def LoadBalancerId @LoadBalancerId end |
#LocationId ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def LocationId @LocationId end |
#NewPort ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def NewPort @NewPort end |
#Targets ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def Targets @Targets end |
#Url ⇒ Object
7109 7110 7111 |
# File 'lib/v20180317/models.rb', line 7109 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 |
# File 'lib/v20180317/models.rb', line 7121 def deserialize(params) @LoadBalancerId = params['LoadBalancerId'] @ListenerId = params['ListenerId'] unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| target_tmp = Target.new target_tmp.deserialize(i) @Targets << target_tmp end end @NewPort = params['NewPort'] @LocationId = params['LocationId'] @Domain = params['Domain'] @Url = params['Url'] end |