Class: TencentCloud::Cam::V20190116::AttachRolePolicyRequest

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

Overview

AttachRolePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, attachroleid = nil, attachrolename = nil, policyname = nil) ⇒ AttachRolePolicyRequest

Returns a new instance of AttachRolePolicyRequest.



359
360
361
362
363
364
# File 'lib/v20190116/models.rb', line 359

def initialize(policyid=nil, attachroleid=nil, attachrolename=nil, policyname=nil)
  @PolicyId = policyid
  @AttachRoleId = attachroleid
  @AttachRoleName = attachrolename
  @PolicyName = policyname
end

Instance Attribute Details

#AttachRoleIdObject

Parameters:

  • PolicyId:

    策略ID,入参PolicyId与PolicyName二选一

  • AttachRoleId:

    角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • AttachRoleName:

    角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • PolicyName:

    策略名,入参PolicyId与PolicyName二选一



357
358
359
# File 'lib/v20190116/models.rb', line 357

def AttachRoleId
  @AttachRoleId
end

#AttachRoleNameObject

Parameters:

  • PolicyId:

    策略ID,入参PolicyId与PolicyName二选一

  • AttachRoleId:

    角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • AttachRoleName:

    角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • PolicyName:

    策略名,入参PolicyId与PolicyName二选一



357
358
359
# File 'lib/v20190116/models.rb', line 357

def AttachRoleName
  @AttachRoleName
end

#PolicyIdObject

Parameters:

  • PolicyId:

    策略ID,入参PolicyId与PolicyName二选一

  • AttachRoleId:

    角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • AttachRoleName:

    角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • PolicyName:

    策略名,入参PolicyId与PolicyName二选一



357
358
359
# File 'lib/v20190116/models.rb', line 357

def PolicyId
  @PolicyId
end

#PolicyNameObject

Parameters:

  • PolicyId:

    策略ID,入参PolicyId与PolicyName二选一

  • AttachRoleId:

    角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • AttachRoleName:

    角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一

  • PolicyName:

    策略名,入参PolicyId与PolicyName二选一



357
358
359
# File 'lib/v20190116/models.rb', line 357

def PolicyName
  @PolicyName
end

Instance Method Details

#deserialize(params) ⇒ Object



366
367
368
369
370
371
# File 'lib/v20190116/models.rb', line 366

def deserialize(params)
  @PolicyId = params['PolicyId']
  @AttachRoleId = params['AttachRoleId']
  @AttachRoleName = params['AttachRoleName']
  @PolicyName = params['PolicyName']
end