Class: TencentCloud::Cam::V20190116::UpdateAssumeRolePolicyRequest

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

Overview

UpdateAssumeRolePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policydocument = nil, roleid = nil, rolename = nil) ⇒ UpdateAssumeRolePolicyRequest

Returns a new instance of UpdateAssumeRolePolicyRequest.



4942
4943
4944
4945
4946
# File 'lib/v20190116/models.rb', line 4942

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

Instance Attribute Details

#PolicyDocumentObject

Parameters:

  • PolicyDocument:

    策略文档,示例:href=""cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"">version”:“2.0”,“statement”:[{“action”:“name/sts:AssumeRole”,“effect”:“allow”,“principal”:{“service”:}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo

  • RoleId:

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

  • RoleName:

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



4940
4941
4942
# File 'lib/v20190116/models.rb', line 4940

def PolicyDocument
  @PolicyDocument
end

#RoleIdObject

Parameters:

  • PolicyDocument:

    策略文档,示例:href=""cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"">version”:“2.0”,“statement”:[{“action”:“name/sts:AssumeRole”,“effect”:“allow”,“principal”:{“service”:}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo

  • RoleId:

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

  • RoleName:

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



4940
4941
4942
# File 'lib/v20190116/models.rb', line 4940

def RoleId
  @RoleId
end

#RoleNameObject

Parameters:

  • PolicyDocument:

    策略文档,示例:href=""cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"">version”:“2.0”,“statement”:[{“action”:“name/sts:AssumeRole”,“effect”:“allow”,“principal”:{“service”:}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo

  • RoleId:

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

  • RoleName:

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



4940
4941
4942
# File 'lib/v20190116/models.rb', line 4940

def RoleName
  @RoleName
end

Instance Method Details

#deserialize(params) ⇒ Object



4948
4949
4950
4951
4952
# File 'lib/v20190116/models.rb', line 4948

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