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.



3733
3734
3735
3736
3737
3738
# File 'lib/v20190116/models.rb', line 3733

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:

    按策略名匹配



3731
3732
3733
# File 'lib/v20190116/models.rb', line 3731

def Keyword
  @Keyword
end

#PageObject

Parameters:

  • Rp:

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

  • Page:

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

  • Scope:

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

  • Keyword:

    按策略名匹配



3731
3732
3733
# File 'lib/v20190116/models.rb', line 3731

def Page
  @Page
end

#RpObject

Parameters:

  • Rp:

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

  • Page:

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

  • Scope:

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

  • Keyword:

    按策略名匹配



3731
3732
3733
# File 'lib/v20190116/models.rb', line 3731

def Rp
  @Rp
end

#ScopeObject

Parameters:

  • Rp:

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

  • Page:

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

  • Scope:

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

  • Keyword:

    按策略名匹配



3731
3732
3733
# File 'lib/v20190116/models.rb', line 3731

def Scope
  @Scope
end

Instance Method Details

#deserialize(params) ⇒ Object



3740
3741
3742
3743
3744
3745
# File 'lib/v20190116/models.rb', line 3740

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