Class: TencentCloud::Cwp::V20180228::CreateLicenseOrderRequest

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

Overview

CreateLicenseOrder请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags = nil, licensetype = nil, licensenum = nil, regionid = nil, projectid = nil, timespan = nil, autorenewflag = nil, autoprotectopenconfig = nil, modifyconfig = nil) ⇒ CreateLicenseOrderRequest

Returns a new instance of CreateLicenseOrderRequest.



5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
# File 'lib/v20180228/models.rb', line 5641

def initialize(tags=nil, licensetype=nil, licensenum=nil, regionid=nil, projectid=nil, timespan=nil, autorenewflag=nil, autoprotectopenconfig=nil, modifyconfig=nil)
  @Tags = tags
  @LicenseType = licensetype
  @LicenseNum = licensenum
  @RegionId = regionid
  @ProjectId = projectid
  @TimeSpan = timespan
  @AutoRenewFlag = autorenewflag
  @AutoProtectOpenConfig = autoprotectopenconfig
  @ModifyConfig = modifyconfig
end

Instance Attribute Details

#AutoProtectOpenConfigObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def AutoProtectOpenConfig
  @AutoProtectOpenConfig
end

#AutoRenewFlagObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def AutoRenewFlag
  @AutoRenewFlag
end

#LicenseNumObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def LicenseNum
  @LicenseNum
end

#LicenseTypeObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def LicenseType
  @LicenseType
end

#ModifyConfigObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def ModifyConfig
  @ModifyConfig
end

#ProjectIdObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def ProjectId
  @ProjectId
end

#RegionIdObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def RegionId
  @RegionId
end

#TagsObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def Tags
  @Tags
end

#TimeSpanObject

默认为0 默认为1 默认为1 默认为0 该参数仅包年包月生效该参数仅包年包月生效

Parameters:

  • Tags:

    标签数组, 空则表示不需要绑定标签

  • LicenseType:

    授权类型, 0 专业版-按量计费, 1专业版-包年包月 , 2 旗舰版-包年包月

  • LicenseNum:

    授权数量 , 需要购买的数量.

  • RegionId:

    购买订单地域,这里仅支持 1 广州,9 新加坡. 推荐选择广州. 新加坡地域为白名单用户购买.

  • ProjectId:

    项目ID .

  • TimeSpan:

    购买时间长度,默认1 , 可选值为1,2,3,4,5,6,7,8,9,10,11,12,24,36

  • AutoRenewFlag:

    是否自动续费, 默认不自动续费.

  • AutoProtectOpenConfig:

    该字段作废

  • ModifyConfig:

    变配参数



5639
5640
5641
# File 'lib/v20180228/models.rb', line 5639

def TimeSpan
  @TimeSpan
end

Instance Method Details

#deserialize(params) ⇒ Object



5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
# File 'lib/v20180228/models.rb', line 5653

def deserialize(params)
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tags_tmp = Tags.new
      tags_tmp.deserialize(i)
      @Tags << tags_tmp
    end
  end
  @LicenseType = params['LicenseType']
  @LicenseNum = params['LicenseNum']
  @RegionId = params['RegionId']
  @ProjectId = params['ProjectId']
  @TimeSpan = params['TimeSpan']
  @AutoRenewFlag = params['AutoRenewFlag']
  @AutoProtectOpenConfig = params['AutoProtectOpenConfig']
  unless params['ModifyConfig'].nil?
    @ModifyConfig = OrderModifyObject.new
    @ModifyConfig.deserialize(params['ModifyConfig'])
  end
end