Class: TencentCloud::Cwp::V20180228::BaselineCategory

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(categoryid = nil, categoryname = nil, parentcategoryid = nil, itemcount = nil) ⇒ BaselineCategory

Returns a new instance of BaselineCategory.



2836
2837
2838
2839
2840
2841
# File 'lib/v20180228/models.rb', line 2836

def initialize(categoryid=nil, categoryname=nil, parentcategoryid=nil, itemcount=nil)
  @CategoryId = categoryid
  @CategoryName = categoryname
  @ParentCategoryId = parentcategoryid
  @ItemCount = itemcount
end

Instance Attribute Details

#CategoryIdObject

Parameters:

  • CategoryId:

    分类Id

  • CategoryName:

    分类名称

  • ParentCategoryId:

    父分类ID,如果为0则没有父分类

  • ItemCount:

    子分类下检测项总数



2834
2835
2836
# File 'lib/v20180228/models.rb', line 2834

def CategoryId
  @CategoryId
end

#CategoryNameObject

Parameters:

  • CategoryId:

    分类Id

  • CategoryName:

    分类名称

  • ParentCategoryId:

    父分类ID,如果为0则没有父分类

  • ItemCount:

    子分类下检测项总数



2834
2835
2836
# File 'lib/v20180228/models.rb', line 2834

def CategoryName
  @CategoryName
end

#ItemCountObject

Parameters:

  • CategoryId:

    分类Id

  • CategoryName:

    分类名称

  • ParentCategoryId:

    父分类ID,如果为0则没有父分类

  • ItemCount:

    子分类下检测项总数



2834
2835
2836
# File 'lib/v20180228/models.rb', line 2834

def ItemCount
  @ItemCount
end

#ParentCategoryIdObject

Parameters:

  • CategoryId:

    分类Id

  • CategoryName:

    分类名称

  • ParentCategoryId:

    父分类ID,如果为0则没有父分类

  • ItemCount:

    子分类下检测项总数



2834
2835
2836
# File 'lib/v20180228/models.rb', line 2834

def ParentCategoryId
  @ParentCategoryId
end

Instance Method Details

#deserialize(params) ⇒ Object



2843
2844
2845
2846
2847
2848
# File 'lib/v20180228/models.rb', line 2843

def deserialize(params)
  @CategoryId = params['CategoryId']
  @CategoryName = params['CategoryName']
  @ParentCategoryId = params['ParentCategoryId']
  @ItemCount = params['ItemCount']
end