Class: TencentCloud::Cwp::V20180228::BaselineItemsCategory

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

Overview

基线检测项分类树状结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parentcategoryid = nil, parentcategoryname = nil, categorycount = nil, categorylists = nil) ⇒ BaselineItemsCategory

Returns a new instance of BaselineItemsCategory.



3490
3491
3492
3493
3494
3495
# File 'lib/v20180228/models.rb', line 3490

def initialize(parentcategoryid=nil, parentcategoryname=nil, categorycount=nil, categorylists=nil)
  @ParentCategoryId = parentcategoryid
  @ParentCategoryName = parentcategoryname
  @CategoryCount = categorycount
  @CategoryLists = categorylists
end

Instance Attribute Details

#CategoryCountObject

Parameters:

  • ParentCategoryId:

    基线检测项父分类id

  • ParentCategoryName:

    基线检测项父分类名称

  • CategoryCount:

    基线检测项子分类数目

  • CategoryLists:

    基线检测项子分类列表



3488
3489
3490
# File 'lib/v20180228/models.rb', line 3488

def CategoryCount
  @CategoryCount
end

#CategoryListsObject

Parameters:

  • ParentCategoryId:

    基线检测项父分类id

  • ParentCategoryName:

    基线检测项父分类名称

  • CategoryCount:

    基线检测项子分类数目

  • CategoryLists:

    基线检测项子分类列表



3488
3489
3490
# File 'lib/v20180228/models.rb', line 3488

def CategoryLists
  @CategoryLists
end

#ParentCategoryIdObject

Parameters:

  • ParentCategoryId:

    基线检测项父分类id

  • ParentCategoryName:

    基线检测项父分类名称

  • CategoryCount:

    基线检测项子分类数目

  • CategoryLists:

    基线检测项子分类列表



3488
3489
3490
# File 'lib/v20180228/models.rb', line 3488

def ParentCategoryId
  @ParentCategoryId
end

#ParentCategoryNameObject

Parameters:

  • ParentCategoryId:

    基线检测项父分类id

  • ParentCategoryName:

    基线检测项父分类名称

  • CategoryCount:

    基线检测项子分类数目

  • CategoryLists:

    基线检测项子分类列表



3488
3489
3490
# File 'lib/v20180228/models.rb', line 3488

def ParentCategoryName
  @ParentCategoryName
end

Instance Method Details

#deserialize(params) ⇒ Object



3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
# File 'lib/v20180228/models.rb', line 3497

def deserialize(params)
  @ParentCategoryId = params['ParentCategoryId']
  @ParentCategoryName = params['ParentCategoryName']
  @CategoryCount = params['CategoryCount']
  unless params['CategoryLists'].nil?
    @CategoryLists = []
    params['CategoryLists'].each do |i|
      baselinecategory_tmp = BaselineCategory.new
      baselinecategory_tmp.deserialize(i)
      @CategoryLists << baselinecategory_tmp
    end
  end
end