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.



5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
# File 'lib/v20180228/models.rb', line 5616

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:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def AutoProtectOpenConfig
  @AutoProtectOpenConfig
end

#AutoRenewFlagObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def AutoRenewFlag
  @AutoRenewFlag
end

#LicenseNumObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def LicenseNum
  @LicenseNum
end

#LicenseTypeObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def LicenseType
  @LicenseType
end

#ModifyConfigObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def ModifyConfig
  @ModifyConfig
end

#ProjectIdObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def ProjectId
  @ProjectId
end

#RegionIdObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def RegionId
  @RegionId
end

#TagsObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def Tags
  @Tags
end

#TimeSpanObject

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

Parameters:

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

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

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

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

  • 项目ID .

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

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

  • 该字段作废

  • 变配参数



5614
5615
5616
# File 'lib/v20180228/models.rb', line 5614

def TimeSpan
  @TimeSpan
end

Instance Method Details

#deserialize(params) ⇒ Object



5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
# File 'lib/v20180228/models.rb', line 5628

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