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.
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'lib/v20211206/models.rb', line 1263 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
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def AutoRenew @AutoRenew end |
#Count ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def Count @Count end |
#Duration ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def Duration @Duration end |
#InstanceClass ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def InstanceClass @InstanceClass end |
#Name ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def Name @Name end |
#PayType ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def PayType @PayType end |
#Product ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def Product @Product end |
#Tags ⇒ Object
1261 1262 1263 |
# File 'lib/v20211206/models.rb', line 1261 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/v20211206/models.rb', line 1274 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 |