Class: TencentCloud::Dts::V20211206::CreateSubscribeRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::CreateSubscribeRequest
- Defined in:
- lib/v20211206/models.rb
Overview
CreateSubscribe请求参数结构体
Instance Attribute Summary collapse
- #AutoRenew ⇒ Object
- #Count ⇒ Object
- #Duration ⇒ Object
- #InstanceClass ⇒ Object
- #Name ⇒ Object
- #PayType ⇒ Object
- #Product ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(product = nil, paytype = nil, duration = nil, autorenew = nil, count = nil, tags = nil, name = nil, instanceclass = nil) ⇒ CreateSubscribeRequest
constructor
A new instance of CreateSubscribeRequest.
Constructor Details
#initialize(product = nil, paytype = nil, duration = nil, autorenew = nil, count = nil, tags = nil, name = nil, instanceclass = nil) ⇒ CreateSubscribeRequest
Returns a new instance of CreateSubscribeRequest.
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 |
# File 'lib/v20211206/models.rb', line 1285 def initialize(product=nil, paytype=nil, duration=nil, autorenew=nil, count=nil, =nil, name=nil, instanceclass=nil) @Product = product @PayType = paytype @Duration = duration @AutoRenew = autorenew @Count = count @Tags = @Name = name @InstanceClass = instanceclass end |
Instance Attribute Details
#AutoRenew ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def AutoRenew @AutoRenew end |
#Count ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def Count @Count end |
#Duration ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def Duration @Duration end |
#InstanceClass ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def InstanceClass @InstanceClass end |
#Name ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def Name @Name end |
#PayType ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def PayType @PayType end |
#Product ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def Product @Product end |
#Tags ⇒ Object
1283 1284 1285 |
# File 'lib/v20211206/models.rb', line 1283 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'lib/v20211206/models.rb', line 1296 def deserialize(params) @Product = params['Product'] @PayType = params['PayType'] @Duration = params['Duration'] @AutoRenew = params['AutoRenew'] @Count = params['Count'] 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'] @InstanceClass = params['InstanceClass'] end |