Class: TencentCloud::Dbbrain::V20210527::DescribeIndexRecommendInfoResponse

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

Overview

DescribeIndexRecommendInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collectionnum = nil, indexnum = nil, items = nil, level = nil, optimized = nil, optimizedcount = nil, requestid = nil) ⇒ DescribeIndexRecommendInfoResponse



2909
2910
2911
2912
2913
2914
2915
2916
2917
# File 'lib/v20210527/models.rb', line 2909

def initialize(collectionnum=nil, indexnum=nil, items=nil, level=nil, optimized=nil, optimizedcount=nil, requestid=nil)
  @CollectionNum = collectionnum
  @IndexNum = indexnum
  @Items = items
  @Level = level
  @Optimized = optimized
  @OptimizedCount = optimizedcount
  @RequestId = requestid
end

Instance Attribute Details

#CollectionNumObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def CollectionNum
  @CollectionNum
end

#IndexNumObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def IndexNum
  @IndexNum
end

#ItemsObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def Items
  @Items
end

#LevelObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def Level
  @Level
end

#OptimizedObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def Optimized
  @Optimized
end

#OptimizedCountObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def OptimizedCount
  @OptimizedCount
end

#RequestIdObject



2907
2908
2909
# File 'lib/v20210527/models.rb', line 2907

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
# File 'lib/v20210527/models.rb', line 2919

def deserialize(params)
  @CollectionNum = params['CollectionNum']
  @IndexNum = params['IndexNum']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      mongodbindex_tmp = MongoDBIndex.new
      mongodbindex_tmp.deserialize(i)
      @Items << mongodbindex_tmp
    end
  end
  @Level = params['Level']
  @Optimized = params['Optimized']
  @OptimizedCount = params['OptimizedCount']
  @RequestId = params['RequestId']
end