Class: TencentCloud::Cwp::V20180228::DescribeBashPoliciesRequest

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

Overview

DescribeBashPolicies请求参数结构体

Instance Attribute Summary collapse

  • #Limit ⇒ Object
  • Name - String - 是否必填:否 - 规则名称
  • Rule - String - 是否必填:否 - 规则内容
  • Level - Int - 是否必填:否 - 威胁等级
  • White - Int - 是否必填:否 - 白名单类型
  • Category - Int - 是否必填:否 - 策略类型
  • BashAction - Int - 是否必填:否 - 操作动作
  • Enable - Int - 是否必填:否 - 生效状态
  • Id - Int - 是否必填:否 - 策略ID
  • PolicyId - Int - 是否必填:否 - 策略ID
  • RuleId - Int - 是否必填:否 - 策略ID
  • .
  • #Offset ⇒ Object
  • Name - String - 是否必填:否 - 规则名称
  • Rule - String - 是否必填:否 - 规则内容
  • Level - Int - 是否必填:否 - 威胁等级
  • White - Int - 是否必填:否 - 白名单类型
  • Category - Int - 是否必填:否 - 策略类型
  • BashAction - Int - 是否必填:否 - 操作动作
  • Enable - Int - 是否必填:否 - 生效状态
  • Id - Int - 是否必填:否 - 策略ID
  • PolicyId - Int - 是否必填:否 - 策略ID
  • RuleId - Int - 是否必填:否 - 策略ID
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(limit = nil, offset = nil, filters = nil) ⇒ DescribeBashPoliciesRequest

    Returns a new instance of DescribeBashPoliciesRequest.

    
    
    13689
    13690
    13691
    13692
    13693
    # File 'lib/v20180228/models.rb', line 13689
    
    def initialize(limit=nil, offset=nil, filters=nil)
      @Limit = limit
      @Offset = offset
      @Filters = filters
    end

    Instance Attribute Details

    #FiltersObject

  • Name - String - 是否必填:否 - 规则名称
  • Rule - String - 是否必填:否 - 规则内容
  • Level - Int - 是否必填:否 - 威胁等级
  • White - Int - 是否必填:否 - 白名单类型
  • Category - Int - 是否必填:否 - 策略类型
  • BashAction - Int - 是否必填:否 - 操作动作
  • Enable - Int - 是否必填:否 - 生效状态
  • Id - Int - 是否必填:否 - 策略ID
  • PolicyId - Int - 是否必填:否 - 策略ID
  • RuleId - Int - 是否必填:否 - 策略ID
  • Parameters:

    • Limit:

      返回数量,最大值为100。

    • Offset:

      偏移量,默认为0。

    • Filters:

      过滤条件。

    
    
    13687
    13688
    13689
    # File 'lib/v20180228/models.rb', line 13687
    
    def Filters
      @Filters
    end

    #LimitObject

  • Name - String - 是否必填:否 - 规则名称
  • Rule - String - 是否必填:否 - 规则内容
  • Level - Int - 是否必填:否 - 威胁等级
  • White - Int - 是否必填:否 - 白名单类型
  • Category - Int - 是否必填:否 - 策略类型
  • BashAction - Int - 是否必填:否 - 操作动作
  • Enable - Int - 是否必填:否 - 生效状态
  • Id - Int - 是否必填:否 - 策略ID
  • PolicyId - Int - 是否必填:否 - 策略ID
  • RuleId - Int - 是否必填:否 - 策略ID
  • Parameters:

    • Limit:

      返回数量,最大值为100。

    • Offset:

      偏移量,默认为0。

    • Filters:

      过滤条件。

    
    
    13687
    13688
    13689
    # File 'lib/v20180228/models.rb', line 13687
    
    def Limit
      @Limit
    end

    #OffsetObject

  • Name - String - 是否必填:否 - 规则名称
  • Rule - String - 是否必填:否 - 规则内容
  • Level - Int - 是否必填:否 - 威胁等级
  • White - Int - 是否必填:否 - 白名单类型
  • Category - Int - 是否必填:否 - 策略类型
  • BashAction - Int - 是否必填:否 - 操作动作
  • Enable - Int - 是否必填:否 - 生效状态
  • Id - Int - 是否必填:否 - 策略ID
  • PolicyId - Int - 是否必填:否 - 策略ID
  • RuleId - Int - 是否必填:否 - 策略ID
  • Parameters:

    • Limit:

      返回数量,最大值为100。

    • Offset:

      偏移量,默认为0。

    • Filters:

      过滤条件。

    
    
    13687
    13688
    13689
    # File 'lib/v20180228/models.rb', line 13687
    
    def Offset
      @Offset
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    13695
    13696
    13697
    13698
    13699
    13700
    13701
    13702
    13703
    13704
    13705
    13706
    # File 'lib/v20180228/models.rb', line 13695
    
    def deserialize(params)
      @Limit = params['Limit']
      @Offset = params['Offset']
      unless params['Filters'].nil?
        @Filters = []
        params['Filters'].each do |i|
          filter_tmp = Filter.new
          filter_tmp.deserialize(i)
          @Filters << filter_tmp
        end
      end
    end