Class: TencentCloud::Trp::V20210515::CorpQuota
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CorpQuota
- Defined in:
- lib/v20210515/models.rb
Overview
渠道商的子企业额度使用情况
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(corpid = nil, corpname = nil, quota = nil, usagequota = nil) ⇒ CorpQuota
constructor
A new instance of CorpQuota.
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
#CorpId ⇒ Object
503 504 505 |
# File 'lib/v20210515/models.rb', line 503 def CorpId @CorpId end |
#CorpName ⇒ Object
503 504 505 |
# File 'lib/v20210515/models.rb', line 503 def CorpName @CorpName end |
#Quota ⇒ Object
503 504 505 |
# File 'lib/v20210515/models.rb', line 503 def Quota @Quota end |
#UsageQuota ⇒ Object
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 |