Class: TencentCloud::Cam::V20190116::DeleteUserRequest

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

Overview

DeleteUser请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, force = nil) ⇒ DeleteUserRequest

Returns a new instance of DeleteUserRequest.



1590
1591
1592
1593
# File 'lib/v20190116/models.rb', line 1590

def initialize(name=nil, force=nil)
  @Name = name
  @Force = force
end

Instance Attribute Details

#ForceObject

Parameters:

  • Name:

    子用户用户名

  • Force:

    是否强制删除该子用户,默认入参为0。0:若该用户存在未删除API密钥,则不删除用户;1:若该用户存在未删除API密钥,则先删除密钥后删除用户。删除密钥需要您拥有cam:DeleteApiKey权限,您将可以删除该用户下启用或禁用状态的所有密钥,无权限则删除密钥和用户失败



1588
1589
1590
# File 'lib/v20190116/models.rb', line 1588

def Force
  @Force
end

#NameObject

Parameters:

  • Name:

    子用户用户名

  • Force:

    是否强制删除该子用户,默认入参为0。0:若该用户存在未删除API密钥,则不删除用户;1:若该用户存在未删除API密钥,则先删除密钥后删除用户。删除密钥需要您拥有cam:DeleteApiKey权限,您将可以删除该用户下启用或禁用状态的所有密钥,无权限则删除密钥和用户失败



1588
1589
1590
# File 'lib/v20190116/models.rb', line 1588

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



1595
1596
1597
1598
# File 'lib/v20190116/models.rb', line 1595

def deserialize(params)
  @Name = params['Name']
  @Force = params['Force']
end