Class: TencentCloud::Trp::V20210515::CorpQuota

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

Overview

渠道商的子企业额度使用情况

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(corpid = nil, corpname = nil, quota = nil, usagequota = nil) ⇒ CorpQuota

Returns a new instance of CorpQuota.



505
506
507
508
509
510
# File 'lib/v20210515/models.rb', line 505

def initialize(corpid=nil, corpname=nil, quota=nil, usagequota=nil)
  @CorpId = corpid
  @CorpName = corpname
  @Quota = quota
  @UsageQuota = usagequota
end

Instance Attribute Details

#CorpIdObject

Parameters:

  • CorpId:

    企业ID

  • CorpName:

    企业名称

  • Quota:

    额度

  • UsageQuota:

    额度使用量



503
504
505
# File 'lib/v20210515/models.rb', line 503

def CorpId
  @CorpId
end

#CorpNameObject

Parameters:

  • CorpId:

    企业ID

  • CorpName:

    企业名称

  • Quota:

    额度

  • UsageQuota:

    额度使用量



503
504
505
# File 'lib/v20210515/models.rb', line 503

def CorpName
  @CorpName
end

#QuotaObject

Parameters:

  • CorpId:

    企业ID

  • CorpName:

    企业名称

  • Quota:

    额度

  • UsageQuota:

    额度使用量



503
504
505
# File 'lib/v20210515/models.rb', line 503

def Quota
  @Quota
end

#UsageQuotaObject

Parameters:

  • CorpId:

    企业ID

  • CorpName:

    企业名称

  • Quota:

    额度

  • UsageQuota:

    额度使用量



503
504
505
# File 'lib/v20210515/models.rb', line 503

def UsageQuota
  @UsageQuota
end

Instance Method Details

#deserialize(params) ⇒ Object



512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/v20210515/models.rb', line 512

def deserialize(params)
  @CorpId = params['CorpId']
  @CorpName = params['CorpName']
  unless params['Quota'].nil?
    @Quota = Quota.new
    @Quota.deserialize(params['Quota'])
  end
  unless params['UsageQuota'].nil?
    @UsageQuota = UsageQuota.new
    @UsageQuota.deserialize(params['UsageQuota'])
  end
end