Class: TencentCloud::Dts::V20211206::CreateSubscribeRequest

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

Overview

CreateSubscribe请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#AutoRenewObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def AutoRenew
  @AutoRenew
end

#CountObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def Count
  @Count
end

#DurationObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def Duration
  @Duration
end

#InstanceClassObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def InstanceClass
  @InstanceClass
end

#NameObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def Name
  @Name
end

#PayTypeObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def PayType
  @PayType
end

#ProductObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



1261
1262
1263
# File 'lib/v20211206/models.rb', line 1261

def Product
  @Product
end

#TagsObject

Parameters:

  • Product:

    订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)

  • PayType:

    付费方式,枚举值:0-包年包月,1-按量计费

  • Duration:

    购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1

  • AutoRenew:

    是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。

  • Count:

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

  • Tags:

    实例资源标签

  • Name:

    任务名,自定义

  • InstanceClass:

    订阅实例规格,当前仅支持small、medium、large



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