Class: TencentCloud::Cwp::V20180228::DescribeBaselinePolicyListRequest

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

Overview

DescribeBaselinePolicyList请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filters = nil, limit = nil, offset = nil, order = nil, by = nil) ⇒ DescribeBaselinePolicyListRequest

Returns a new instance of DescribeBaselinePolicyListRequest.



12839
12840
12841
12842
12843
12844
12845
# File 'lib/v20180228/models.rb', line 12839

def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
  @Filters = filters
  @Limit = limit
  @Offset = offset
  @Order = order
  @By = by
end

Instance Attribute Details

#ByObject

Parameters:

  • Filters: (li)

    PolicyName - String - 是否必填:否 - 策略名称</li>

  • Limit:

    限制条数,默认10,最大100

  • Offset:

    偏移量,默认0

  • Order:

    排序方式: [ASC:升序|DESC:降序]

  • By:

    可选排序列: [RuleCount|ItemCount|HostCount]



12837
12838
12839
# File 'lib/v20180228/models.rb', line 12837

def By
  @By
end

#FiltersObject

Parameters:

  • Filters: (li)

    PolicyName - String - 是否必填:否 - 策略名称</li>

  • Limit:

    限制条数,默认10,最大100

  • Offset:

    偏移量,默认0

  • Order:

    排序方式: [ASC:升序|DESC:降序]

  • By:

    可选排序列: [RuleCount|ItemCount|HostCount]



12837
12838
12839
# File 'lib/v20180228/models.rb', line 12837

def Filters
  @Filters
end

#LimitObject

Parameters:

  • Filters: (li)

    PolicyName - String - 是否必填:否 - 策略名称</li>

  • Limit:

    限制条数,默认10,最大100

  • Offset:

    偏移量,默认0

  • Order:

    排序方式: [ASC:升序|DESC:降序]

  • By:

    可选排序列: [RuleCount|ItemCount|HostCount]



12837
12838
12839
# File 'lib/v20180228/models.rb', line 12837

def Limit
  @Limit
end

#OffsetObject

Parameters:

  • Filters: (li)

    PolicyName - String - 是否必填:否 - 策略名称</li>

  • Limit:

    限制条数,默认10,最大100

  • Offset:

    偏移量,默认0

  • Order:

    排序方式: [ASC:升序|DESC:降序]

  • By:

    可选排序列: [RuleCount|ItemCount|HostCount]



12837
12838
12839
# File 'lib/v20180228/models.rb', line 12837

def Offset
  @Offset
end

#OrderObject

Parameters:

  • Filters: (li)

    PolicyName - String - 是否必填:否 - 策略名称</li>

  • Limit:

    限制条数,默认10,最大100

  • Offset:

    偏移量,默认0

  • Order:

    排序方式: [ASC:升序|DESC:降序]

  • By:

    可选排序列: [RuleCount|ItemCount|HostCount]



12837
12838
12839
# File 'lib/v20180228/models.rb', line 12837

def Order
  @Order
end

Instance Method Details

#deserialize(params) ⇒ Object



12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
# File 'lib/v20180228/models.rb', line 12847

def deserialize(params)
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
  @Limit = params['Limit']
  @Offset = params['Offset']
  @Order = params['Order']
  @By = params['By']
end