Class: TencentCloud::Ssa::V20180608::AggregationObj

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

Overview

聚合类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, bucket = nil) ⇒ AggregationObj

Returns a new instance of AggregationObj.



29
30
31
32
# File 'lib/v20180608/models.rb', line 29

def initialize(type=nil, bucket=nil)
  @Type = type
  @Bucket = bucket
end

Instance Attribute Details

#BucketObject

Parameters:

  • Type:

    类型

  • Bucket:

    数组



27
28
29
# File 'lib/v20180608/models.rb', line 27

def Bucket
  @Bucket
end

#TypeObject

Parameters:

  • Type:

    类型

  • Bucket:

    数组



27
28
29
# File 'lib/v20180608/models.rb', line 27

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/v20180608/models.rb', line 34

def deserialize(params)
  @Type = params['Type']
  unless params['Bucket'].nil?
    @Bucket = []
    params['Bucket'].each do |i|
      bucket_tmp = Bucket.new
      bucket_tmp.deserialize(i)
      @Bucket << bucket_tmp
    end
  end
end