Class: TencentCloud::Cam::V20190116::GetRoleRequest

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

Overview

GetRole请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(roleid = nil, rolename = nil) ⇒ GetRoleRequest

Returns a new instance of GetRoleRequest.



2533
2534
2535
2536
# File 'lib/v20190116/models.rb', line 2533

def initialize(roleid=nil, rolename=nil)
  @RoleId = roleid
  @RoleName = rolename
end

Instance Attribute Details

#RoleIdObject

Parameters:

  • RoleId:

    角色 ID,用于指定角色,入参 RoleId 与 RoleName 二选一

  • RoleName:

    角色名,用于指定角色,入参 RoleId 与 RoleName 二选一



2531
2532
2533
# File 'lib/v20190116/models.rb', line 2531

def RoleId
  @RoleId
end

#RoleNameObject

Parameters:

  • RoleId:

    角色 ID,用于指定角色,入参 RoleId 与 RoleName 二选一

  • RoleName:

    角色名,用于指定角色,入参 RoleId 与 RoleName 二选一



2531
2532
2533
# File 'lib/v20190116/models.rb', line 2531

def RoleName
  @RoleName
end

Instance Method Details

#deserialize(params) ⇒ Object



2538
2539
2540
2541
# File 'lib/v20190116/models.rb', line 2538

def deserialize(params)
  @RoleId = params['RoleId']
  @RoleName = params['RoleName']
end