Class: TencentCloud::Cam::V20190116::ListPoliciesRequest

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

Overview

ListPolicies请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rp = nil, page = nil, scope = nil, keyword = nil) ⇒ ListPoliciesRequest

Returns a new instance of ListPoliciesRequest.



3686
3687
3688
3689
3690
3691
# File 'lib/v20190116/models.rb', line 3686

def initialize(rp=nil, page=nil, scope=nil, keyword=nil)
  @Rp = rp
  @Page = page
  @Scope = scope
  @Keyword = keyword
end

Instance Attribute Details

#KeywordObject

Parameters:

  • Rp:

    每页数量,默认值是 20,必须大于 0 且小于或等于 200

  • Page:

    页码,默认值是 1,从 1开始,不能大于 200

  • Scope:

    可取值 ‘All’、‘QCS’ 和 ‘Local’,‘All’ 获取所有策略,‘QCS’ 只获取预设策略,‘Local’ 只获取自定义策略,默认取 ‘All’

  • Keyword:

    按策略名匹配



3684
3685
3686
# File 'lib/v20190116/models.rb', line 3684

def Keyword
  @Keyword
end

#PageObject

Parameters:

  • Rp:

    每页数量,默认值是 20,必须大于 0 且小于或等于 200

  • Page:

    页码,默认值是 1,从 1开始,不能大于 200

  • Scope:

    可取值 ‘All’、‘QCS’ 和 ‘Local’,‘All’ 获取所有策略,‘QCS’ 只获取预设策略,‘Local’ 只获取自定义策略,默认取 ‘All’

  • Keyword:

    按策略名匹配



3684
3685
3686
# File 'lib/v20190116/models.rb', line 3684

def Page
  @Page
end

#RpObject

Parameters:

  • Rp:

    每页数量,默认值是 20,必须大于 0 且小于或等于 200

  • Page:

    页码,默认值是 1,从 1开始,不能大于 200

  • Scope:

    可取值 ‘All’、‘QCS’ 和 ‘Local’,‘All’ 获取所有策略,‘QCS’ 只获取预设策略,‘Local’ 只获取自定义策略,默认取 ‘All’

  • Keyword:

    按策略名匹配



3684
3685
3686
# File 'lib/v20190116/models.rb', line 3684

def Rp
  @Rp
end

#ScopeObject

Parameters:

  • Rp:

    每页数量,默认值是 20,必须大于 0 且小于或等于 200

  • Page:

    页码,默认值是 1,从 1开始,不能大于 200

  • Scope:

    可取值 ‘All’、‘QCS’ 和 ‘Local’,‘All’ 获取所有策略,‘QCS’ 只获取预设策略,‘Local’ 只获取自定义策略,默认取 ‘All’

  • Keyword:

    按策略名匹配



3684
3685
3686
# File 'lib/v20190116/models.rb', line 3684

def Scope
  @Scope
end

Instance Method Details

#deserialize(params) ⇒ Object



3693
3694
3695
3696
3697
3698
# File 'lib/v20190116/models.rb', line 3693

def deserialize(params)
  @Rp = params['Rp']
  @Page = params['Page']
  @Scope = params['Scope']
  @Keyword = params['Keyword']
end