Class: TencentCloud::Ame::V20190916::Package

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

Overview

曲库包信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orderid = nil, name = nil, authorizedarea = nil, authorizedlimit = nil, termofvalidity = nil, commercial = nil, packageprice = nil, effecttime = nil, expiretime = nil, usedcount = nil, useranges = nil) ⇒ Package

Returns a new instance of Package.



2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
# File 'lib/v20190916/models.rb', line 2385

def initialize(orderid=nil, name=nil, authorizedarea=nil, authorizedlimit=nil, termofvalidity=nil, commercial=nil, packageprice=nil, effecttime=nil, expiretime=nil, usedcount=nil, useranges=nil)
  @OrderId = orderid
  @Name = name
  @AuthorizedArea = authorizedarea
  @AuthorizedLimit = authorizedlimit
  @TermOfValidity = termofvalidity
  @Commercial = commercial
  @PackagePrice = packageprice
  @EffectTime = effecttime
  @ExpireTime = expiretime
  @UsedCount = usedcount
  @UseRanges = useranges
end

Instance Attribute Details

#AuthorizedAreaObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def AuthorizedArea
  @AuthorizedArea
end

#AuthorizedLimitObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def AuthorizedLimit
  @AuthorizedLimit
end

#CommercialObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def Commercial
  @Commercial
end

#EffectTimeObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def EffectTime
  @EffectTime
end

#ExpireTimeObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def ExpireTime
  @ExpireTime
end

#NameObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def Name
  @Name
end

#OrderIdObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def OrderId
  @OrderId
end

#PackagePriceObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def PackagePrice
  @PackagePrice
end

#TermOfValidityObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def TermOfValidity
  @TermOfValidity
end

#UsedCountObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def UsedCount
  @UsedCount
end

#UseRangesObject

Parameters:

  • OrderId:

    订单id

  • Name:

    曲库包名称

  • AuthorizedArea:

    授权地区-global: 全球 CN: 中国

  • AuthorizedLimit:

    授权次数

  • TermOfValidity:

    套餐有效期,单位:天

  • Commercial:

    0:不可商业化;1:可商业化

  • PackagePrice:

    套餐价格,单位:元

  • EffectTime:

    生效开始时间,格式yyyy-MM-dd HH:mm:ss

  • ExpireTime:

    生效结束时间,格式yyyy-MM-dd HH:mm:ss

  • UsedCount:

    剩余授权次数

  • UseRanges:

    曲库包用途信息



2383
2384
2385
# File 'lib/v20190916/models.rb', line 2383

def UseRanges
  @UseRanges
end

Instance Method Details

#deserialize(params) ⇒ Object



2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
# File 'lib/v20190916/models.rb', line 2399

def deserialize(params)
  @OrderId = params['OrderId']
  @Name = params['Name']
  @AuthorizedArea = params['AuthorizedArea']
  @AuthorizedLimit = params['AuthorizedLimit']
  @TermOfValidity = params['TermOfValidity']
  @Commercial = params['Commercial']
  @PackagePrice = params['PackagePrice']
  @EffectTime = params['EffectTime']
  @ExpireTime = params['ExpireTime']
  @UsedCount = params['UsedCount']
  unless params['UseRanges'].nil?
    @UseRanges = []
    params['UseRanges'].each do |i|
      userange_tmp = UseRange.new
      userange_tmp.deserialize(i)
      @UseRanges << userange_tmp
    end
  end
end