Class: TencentCloud::Dts::V20180330::CreateSubscribeRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180330/models.rb

Overview

CreateSubscribe请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags=nil, name=nil)
  @Product = product
  @PayType = paytype
  @Duration = duration
  @Count = count
  @AutoRenew = autorenew
  @Tags = tags
  @Name = name
end

Instance Attribute Details

#AutoRenewObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def AutoRenew
  @AutoRenew
end

#CountObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def Count
  @Count
end

#DurationObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def Duration
  @Duration
end

#NameObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def Name
  @Name
end

#PayTypeObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def PayType
  @PayType
end

#ProductObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



295
296
297
# File 'lib/v20180330/models.rb', line 295

def Product
  @Product
end

#TagsObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持的有 mysql

  • PayType:

    实例付费类型,1小时计费,0包年包月

  • Duration:

    购买时长。PayType为0时必填。单位为月,最大支持120

  • Count:

    购买数量,默认为1,最大为10

  • AutoRenew:

    是否自动续费,0表示不自动续费,1表示自动续费,默认为0。小时计费实例设置该标识无效。

  • Tags:

    实例资源标签

  • Name:

    用户自定义实例名



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