Class: TencentCloud::Dts::V20180330::CreateSubscribeRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20180330::CreateSubscribeRequest
- Defined in:
- lib/v20180330/models.rb
Overview
CreateSubscribe请求参数结构体
Instance Attribute Summary collapse
- #AutoRenew ⇒ Object
- #Count ⇒ Object
- #Duration ⇒ Object
- #Name ⇒ Object
- #PayType ⇒ Object
- #Product ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(product = nil, paytype = nil, duration = nil, count = nil, autorenew = nil, tags = nil, name = nil) ⇒ CreateSubscribeRequest
constructor
A new instance of CreateSubscribeRequest.
Constructor Details
#initialize(product = nil, paytype = nil, duration = nil, count = nil, autorenew = nil, tags = nil, name = nil) ⇒ CreateSubscribeRequest
Returns a new instance of CreateSubscribeRequest.
297 298 299 300 301 302 303 304 305 |
# File 'lib/v20180330/models.rb', line 297 def initialize(product=nil, paytype=nil, duration=nil, count=nil, autorenew=nil, =nil, name=nil) @Product = product @PayType = paytype @Duration = duration @Count = count @AutoRenew = autorenew @Tags = @Name = name end |
Instance Attribute Details
#AutoRenew ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def AutoRenew @AutoRenew end |
#Count ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def Count @Count end |
#Duration ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def Duration @Duration end |
#Name ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def Name @Name end |
#PayType ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def PayType @PayType end |
#Product ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def Product @Product end |
#Tags ⇒ Object
295 296 297 |
# File 'lib/v20180330/models.rb', line 295 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/v20180330/models.rb', line 307 def deserialize(params) @Product = params['Product'] @PayType = params['PayType'] @Duration = params['Duration'] @Count = params['Count'] @AutoRenew = params['AutoRenew'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagitem_tmp = TagItem.new tagitem_tmp.deserialize(i) @Tags << tagitem_tmp end end @Name = params['Name'] end |