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.
6975 6976 6977 6978 6979 6980 6981 6982 6983 |
# File 'lib/v20180317/models.rb', line 6975 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
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def Domain @Domain end |
#ListenerId ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def ListenerId @ListenerId end |
#LoadBalancerId ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def LoadBalancerId @LoadBalancerId end |
#LocationId ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def LocationId @LocationId end |
#NewPort ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def NewPort @NewPort end |
#Targets ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def Targets @Targets end |
#Url ⇒ Object
6973 6974 6975 |
# File 'lib/v20180317/models.rb', line 6973 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 |
# File 'lib/v20180317/models.rb', line 6985 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 |