Class: TencentCloud::Cam::V20190116::ListEntitiesForPolicyRequest

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

Overview

ListEntitiesForPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, page = nil, rp = nil, entityfilter = nil) ⇒ ListEntitiesForPolicyRequest

Returns a new instance of ListEntitiesForPolicyRequest.



3347
3348
3349
3350
3351
3352
# File 'lib/v20190116/models.rb', line 3347

def initialize(policyid=nil, page=nil, rp=nil, entityfilter=nil)
  @PolicyId = policyid
  @Page = page
  @Rp = rp
  @EntityFilter = entityfilter
end

Instance Attribute Details

#EntityFilterObject

Parameters:

  • PolicyId:

    策略 id

  • Page:

    页码,默认值是 1,从 1 开始

  • Rp:

    每页大小,默认值是 20

  • EntityFilter:

    可取值 ‘All’、‘User’、‘Group’ 和 ‘Role’,‘All’ 表示获取所有实体类型,‘User’ 表示只获取子账号,‘Group’ 表示只获取用户组,‘Role’ 表示只获取角色,默认取 ‘All’



3345
3346
3347
# File 'lib/v20190116/models.rb', line 3345

def EntityFilter
  @EntityFilter
end

#PageObject

Parameters:

  • PolicyId:

    策略 id

  • Page:

    页码,默认值是 1,从 1 开始

  • Rp:

    每页大小,默认值是 20

  • EntityFilter:

    可取值 ‘All’、‘User’、‘Group’ 和 ‘Role’,‘All’ 表示获取所有实体类型,‘User’ 表示只获取子账号,‘Group’ 表示只获取用户组,‘Role’ 表示只获取角色,默认取 ‘All’



3345
3346
3347
# File 'lib/v20190116/models.rb', line 3345

def Page
  @Page
end

#PolicyIdObject

Parameters:

  • PolicyId:

    策略 id

  • Page:

    页码,默认值是 1,从 1 开始

  • Rp:

    每页大小,默认值是 20

  • EntityFilter:

    可取值 ‘All’、‘User’、‘Group’ 和 ‘Role’,‘All’ 表示获取所有实体类型,‘User’ 表示只获取子账号,‘Group’ 表示只获取用户组,‘Role’ 表示只获取角色,默认取 ‘All’



3345
3346
3347
# File 'lib/v20190116/models.rb', line 3345

def PolicyId
  @PolicyId
end

#RpObject

Parameters:

  • PolicyId:

    策略 id

  • Page:

    页码,默认值是 1,从 1 开始

  • Rp:

    每页大小,默认值是 20

  • EntityFilter:

    可取值 ‘All’、‘User’、‘Group’ 和 ‘Role’,‘All’ 表示获取所有实体类型,‘User’ 表示只获取子账号,‘Group’ 表示只获取用户组,‘Role’ 表示只获取角色,默认取 ‘All’



3345
3346
3347
# File 'lib/v20190116/models.rb', line 3345

def Rp
  @Rp
end

Instance Method Details

#deserialize(params) ⇒ Object



3354
3355
3356
3357
3358
3359
# File 'lib/v20190116/models.rb', line 3354

def deserialize(params)
  @PolicyId = params['PolicyId']
  @Page = params['Page']
  @Rp = params['Rp']
  @EntityFilter = params['EntityFilter']
end