Class: TencentCloud::Clb::V20180317::ManualRewriteRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ManualRewriteRequest
- Defined in:
- lib/v20180317/models.rb
Overview
ManualRewrite请求参数结构体
Instance Attribute Summary collapse
- #LoadBalancerId ⇒ Object
- #RewriteInfos ⇒ Object
- #SourceListenerId ⇒ Object
- #TargetListenerId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, sourcelistenerid = nil, targetlistenerid = nil, rewriteinfos = nil) ⇒ ManualRewriteRequest
constructor
A new instance of ManualRewriteRequest.
Constructor Details
#initialize(loadbalancerid = nil, sourcelistenerid = nil, targetlistenerid = nil, rewriteinfos = nil) ⇒ ManualRewriteRequest
Returns a new instance of ManualRewriteRequest.
6002 6003 6004 6005 6006 6007 |
# File 'lib/v20180317/models.rb', line 6002 def initialize(loadbalancerid=nil, sourcelistenerid=nil, targetlistenerid=nil, rewriteinfos=nil) @LoadBalancerId = loadbalancerid @SourceListenerId = sourcelistenerid @TargetListenerId = targetlistenerid @RewriteInfos = rewriteinfos end |
Instance Attribute Details
#LoadBalancerId ⇒ Object
6000 6001 6002 |
# File 'lib/v20180317/models.rb', line 6000 def LoadBalancerId @LoadBalancerId end |
#RewriteInfos ⇒ Object
6000 6001 6002 |
# File 'lib/v20180317/models.rb', line 6000 def RewriteInfos @RewriteInfos end |
#SourceListenerId ⇒ Object
6000 6001 6002 |
# File 'lib/v20180317/models.rb', line 6000 def SourceListenerId @SourceListenerId end |
#TargetListenerId ⇒ Object
6000 6001 6002 |
# File 'lib/v20180317/models.rb', line 6000 def TargetListenerId @TargetListenerId end |
Instance Method Details
#deserialize(params) ⇒ Object
6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 |
# File 'lib/v20180317/models.rb', line 6009 def deserialize(params) @LoadBalancerId = params['LoadBalancerId'] @SourceListenerId = params['SourceListenerId'] @TargetListenerId = params['TargetListenerId'] unless params['RewriteInfos'].nil? @RewriteInfos = [] params['RewriteInfos'].each do |i| rewritelocationmap_tmp = RewriteLocationMap.new rewritelocationmap_tmp.deserialize(i) @RewriteInfos << rewritelocationmap_tmp end end end |