Class: TencentCloud::Billing::V20180709::DetailSet

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

Overview

由域名和使用明细组成的数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, detailpoints = nil, instanceid = nil) ⇒ DetailSet

Returns a new instance of DetailSet.



9863
9864
9865
9866
9867
# File 'lib/v20180709/models.rb', line 9863

def initialize(domain=nil, detailpoints=nil, instanceid=nil)
  @Domain = domain
  @DetailPoints = detailpoints
  @InstanceID = instanceid
end

Instance Attribute Details

#DetailPointsObject

Parameters:

  • Domain:

    域名

  • DetailPoints:

    使用数据明细

  • InstanceID:

    实例ID



9861
9862
9863
# File 'lib/v20180709/models.rb', line 9861

def DetailPoints
  @DetailPoints
end

#DomainObject

Parameters:

  • Domain:

    域名

  • DetailPoints:

    使用数据明细

  • InstanceID:

    实例ID



9861
9862
9863
# File 'lib/v20180709/models.rb', line 9861

def Domain
  @Domain
end

#InstanceIDObject

Parameters:

  • Domain:

    域名

  • DetailPoints:

    使用数据明细

  • InstanceID:

    实例ID



9861
9862
9863
# File 'lib/v20180709/models.rb', line 9861

def InstanceID
  @InstanceID
end

Instance Method Details

#deserialize(params) ⇒ Object



9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
# File 'lib/v20180709/models.rb', line 9869

def deserialize(params)
  @Domain = params['Domain']
  unless params['DetailPoints'].nil?
    @DetailPoints = []
    params['DetailPoints'].each do |i|
      detailpoint_tmp = DetailPoint.new
      detailpoint_tmp.deserialize(i)
      @DetailPoints << detailpoint_tmp
    end
  end
  @InstanceID = params['InstanceID']
end