Class: TencentCloud::Cam::V20190116::DetachRolePolicyRequest

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

Overview

DetachRolePolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyid = nil, detachroleid = nil, detachrolename = nil, policyname = nil) ⇒ DetachRolePolicyRequest

Returns a new instance of DetachRolePolicyRequest.



2100
2101
2102
2103
2104
2105
# File 'lib/v20190116/models.rb', line 2100

def initialize(policyid=nil, detachroleid=nil, detachrolename=nil, policyname=nil)
  @PolicyId = policyid
  @DetachRoleId = detachroleid
  @DetachRoleName = detachrolename
  @PolicyName = policyname
end

Instance Attribute Details

#DetachRoleIdObject

Parameters:

  • PolicyId:

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

  • DetachRoleId:

    角色ID,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • DetachRoleName:

    角色名称,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • PolicyName:

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



2098
2099
2100
# File 'lib/v20190116/models.rb', line 2098

def DetachRoleId
  @DetachRoleId
end

#DetachRoleNameObject

Parameters:

  • PolicyId:

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

  • DetachRoleId:

    角色ID,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • DetachRoleName:

    角色名称,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • PolicyName:

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



2098
2099
2100
# File 'lib/v20190116/models.rb', line 2098

def DetachRoleName
  @DetachRoleName
end

#PolicyIdObject

Parameters:

  • PolicyId:

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

  • DetachRoleId:

    角色ID,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • DetachRoleName:

    角色名称,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • PolicyName:

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



2098
2099
2100
# File 'lib/v20190116/models.rb', line 2098

def PolicyId
  @PolicyId
end

#PolicyNameObject

Parameters:

  • PolicyId:

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

  • DetachRoleId:

    角色ID,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • DetachRoleName:

    角色名称,用于指定角色,入参 DetachRoleId 与 DetachRoleName 二选一

  • PolicyName:

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



2098
2099
2100
# File 'lib/v20190116/models.rb', line 2098

def PolicyName
  @PolicyName
end

Instance Method Details

#deserialize(params) ⇒ Object



2107
2108
2109
2110
2111
2112
# File 'lib/v20190116/models.rb', line 2107

def deserialize(params)
  @PolicyId = params['PolicyId']
  @DetachRoleId = params['DetachRoleId']
  @DetachRoleName = params['DetachRoleName']
  @PolicyName = params['PolicyName']
end