class OvirtSDK4::User

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {User} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [String] :comment The value of attribute `comment`.

@option opts [String] :department The value of attribute `department`.

@option opts [String] :description The value of attribute `description`.

@option opts [Domain, Hash] :domain The value of attribute `domain`.

@option opts [String] :domain_entry_id The value of attribute `domain_entry_id`.

@option opts [String] :email The value of attribute `email`.

@option opts [Array<Group>, Array<Hash>] :groups The values of attribute `groups`.

@option opts [String] :id The value of attribute `id`.

@option opts [String] :last_name The value of attribute `last_name`.

@option opts [Boolean] :logged_in The value of attribute `logged_in`.

@option opts [String] :name The value of attribute `name`.

@option opts [String] :namespace The value of attribute `namespace`.

@option opts [String] :password The value of attribute `password`.

@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.

@option opts [String] :principal The value of attribute `principal`.

@option opts [Array<Role>, Array<Hash>] :roles The values of attribute `roles`.

@option opts [Array<SshPublicKey>, Array<Hash>] :ssh_public_keys The values of attribute `ssh_public_keys`.

@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.

@option opts [String] :user_name The value of attribute `user_name`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 18118
def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.department = opts[:department]
  self.description = opts[:description]
  self.domain = opts[:domain]
  self.domain_entry_id = opts[:domain_entry_id]
  self.email = opts[:email]
  self.groups = opts[:groups]
  self.id = opts[:id]
  self.last_name = opts[:last_name]
  self.logged_in = opts[:logged_in]
  self.name = opts[:name]
  self.namespace = opts[:namespace]
  self.password = opts[:password]
  self.permissions = opts[:permissions]
  self.principal = opts[:principal]
  self.roles = opts[:roles]
  self.ssh_public_keys = opts[:ssh_public_keys]
  self.tags = opts[:tags]
  self.user_name = opts[:user_name]
end

Public Instance Methods

comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17693
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17702
def comment=(value)
  @comment = value
end
department() click to toggle source

Returns the value of the `department` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17711
def department
  return @department
end
department=(value) click to toggle source

Sets the value of the `department` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17720
def department=(value)
  @department = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17729
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17738
def description=(value)
  @description = value
end
domain() click to toggle source

Returns the value of the `domain` attribute.

@return [Domain]

# File lib/ovirtsdk4/types.rb, line 17747
def domain
  return @domain
end
domain=(value) click to toggle source

Sets the value of the `domain` attribute.

@param value [Domain, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Domain} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.

# File lib/ovirtsdk4/types.rb, line 17760
def domain=(value)
  if value.is_a?(Hash)
    value = Domain.new(value)
  end
  @domain = value
end
domain_entry_id() click to toggle source

Returns the value of the `domain_entry_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17772
def domain_entry_id
  return @domain_entry_id
end
domain_entry_id=(value) click to toggle source

Sets the value of the `domain_entry_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17781
def domain_entry_id=(value)
  @domain_entry_id = value
end
email() click to toggle source

Returns the value of the `email` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17790
def email
  return @email
end
email=(value) click to toggle source

Sets the value of the `email` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17799
def email=(value)
  @email = value
end
groups() click to toggle source

Returns the value of the `groups` attribute.

@return [Array<Group>]

# File lib/ovirtsdk4/types.rb, line 17808
def groups
  return @groups
end
groups=(list) click to toggle source

Sets the value of the `groups` attribute.

@param list [Array<Group>]

# File lib/ovirtsdk4/types.rb, line 17816
def groups=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Group.new(value)
      end
    end
  end
  @groups = list
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17833
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17842
def id=(value)
  @id = value
end
last_name() click to toggle source

Returns the value of the `last_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17851
def last_name
  return @last_name
end
last_name=(value) click to toggle source

Sets the value of the `last_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17860
def last_name=(value)
  @last_name = value
end
logged_in() click to toggle source

Returns the value of the `logged_in` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 17869
def logged_in
  return @logged_in
end
logged_in=(value) click to toggle source

Sets the value of the `logged_in` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 17878
def logged_in=(value)
  @logged_in = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17887
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17896
def name=(value)
  @name = value
end
namespace() click to toggle source

Returns the value of the `namespace` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17905
def namespace
  return @namespace
end
namespace=(value) click to toggle source

Sets the value of the `namespace` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17914
def namespace=(value)
  @namespace = value
end
password() click to toggle source

Returns the value of the `password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17923
def password
  return @password
end
password=(value) click to toggle source

Sets the value of the `password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17932
def password=(value)
  @password = value
end
permissions() click to toggle source

Returns the value of the `permissions` attribute.

@return [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 17941
def permissions
  return @permissions
end
permissions=(list) click to toggle source

Sets the value of the `permissions` attribute.

@param list [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 17949
def permissions=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Permission.new(value)
      end
    end
  end
  @permissions = list
end
principal() click to toggle source

Returns the value of the `principal` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17966
def principal
  return @principal
end
principal=(value) click to toggle source

Sets the value of the `principal` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17975
def principal=(value)
  @principal = value
end
roles() click to toggle source

Returns the value of the `roles` attribute.

@return [Array<Role>]

# File lib/ovirtsdk4/types.rb, line 17984
def roles
  return @roles
end
roles=(list) click to toggle source

Sets the value of the `roles` attribute.

@param list [Array<Role>]

# File lib/ovirtsdk4/types.rb, line 17992
def roles=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Role.new(value)
      end
    end
  end
  @roles = list
end
ssh_public_keys() click to toggle source

Returns the value of the `ssh_public_keys` attribute.

@return [Array<SshPublicKey>]

# File lib/ovirtsdk4/types.rb, line 18009
def ssh_public_keys
  return @ssh_public_keys
end
ssh_public_keys=(list) click to toggle source

Sets the value of the `ssh_public_keys` attribute.

@param list [Array<SshPublicKey>]

# File lib/ovirtsdk4/types.rb, line 18017
def ssh_public_keys=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = SshPublicKey.new(value)
      end
    end
  end
  @ssh_public_keys = list
end
tags() click to toggle source

Returns the value of the `tags` attribute.

@return [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 18034
def tags
  return @tags
end
tags=(list) click to toggle source

Sets the value of the `tags` attribute.

@param list [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 18042
def tags=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Tag.new(value)
      end
    end
  end
  @tags = list
end
user_name() click to toggle source

Returns the value of the `user_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 18059
def user_name
  return @user_name
end
user_name=(value) click to toggle source

Sets the value of the `user_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 18068
def user_name=(value)
  @user_name = value
end