Class: OvirtSDK4::User

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (User) initialize(opts = {})

Creates a new instance of the OvirtSDK4::User class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :department (String)

    The value of attribute department.

  • :description (String)

    The value of attribute description.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :domain_entry_id (String)

    The value of attribute domain_entry_id.

  • :email (String)

    The value of attribute email.

  • :groups (Array<Group>, Array<Hash>)

    The values of attribute groups.

  • :id (String)

    The value of attribute id.

  • :last_name (String)

    The value of attribute last_name.

  • :logged_in (Boolean)

    The value of attribute logged_in.

  • :name (String)

    The value of attribute name.

  • :namespace (String)

    The value of attribute namespace.

  • :password (String)

    The value of attribute password.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :principal (String)

    The value of attribute principal.

  • :roles (Array<Role>, Array<Hash>)

    The values of attribute roles.

  • :ssh_public_keys (Array<SshPublicKey>, Array<Hash>)

    The values of attribute ssh_public_keys.

  • :tags (Array<Tag>, Array<Hash>)

    The values of attribute tags.

  • :user_name (String)

    The value of attribute user_name.



17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
# File 'lib/ovirtsdk4/types.rb', line 17749

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


17324
17325
17326
# File 'lib/ovirtsdk4/types.rb', line 17324

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


17333
17334
17335
# File 'lib/ovirtsdk4/types.rb', line 17333

def comment=(value)
  @comment = value
end

- (String) department

Returns the value of the department attribute.

Returns:

  • (String)


17342
17343
17344
# File 'lib/ovirtsdk4/types.rb', line 17342

def department
  return @department
end

- (Object) department=(value)

Sets the value of the department attribute.

Parameters:

  • value (String)


17351
17352
17353
# File 'lib/ovirtsdk4/types.rb', line 17351

def department=(value)
  @department = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


17360
17361
17362
# File 'lib/ovirtsdk4/types.rb', line 17360

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


17369
17370
17371
# File 'lib/ovirtsdk4/types.rb', line 17369

def description=(value)
  @description = value
end

- (Domain) domain

Returns the value of the domain attribute.

Returns:



17378
17379
17380
# File 'lib/ovirtsdk4/types.rb', line 17378

def domain
  return @domain
end

- (Object) domain=(value)

Sets the value of the domain attribute.

The value parameter can be an instance of 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.

Parameters:



17391
17392
17393
17394
17395
17396
# File 'lib/ovirtsdk4/types.rb', line 17391

def domain=(value)
  if value.is_a?(Hash)
    value = Domain.new(value)
  end
  @domain = value
end

- (String) domain_entry_id

Returns the value of the domain_entry_id attribute.

Returns:

  • (String)


17403
17404
17405
# File 'lib/ovirtsdk4/types.rb', line 17403

def domain_entry_id
  return @domain_entry_id
end

- (Object) domain_entry_id=(value)

Sets the value of the domain_entry_id attribute.

Parameters:

  • value (String)


17412
17413
17414
# File 'lib/ovirtsdk4/types.rb', line 17412

def domain_entry_id=(value)
  @domain_entry_id = value
end

- (String) email

Returns the value of the email attribute.

Returns:

  • (String)


17421
17422
17423
# File 'lib/ovirtsdk4/types.rb', line 17421

def email
  return @email
end

- (Object) email=(value)

Sets the value of the email attribute.

Parameters:

  • value (String)


17430
17431
17432
# File 'lib/ovirtsdk4/types.rb', line 17430

def email=(value)
  @email = value
end

- (Array<Group>) groups

Returns the value of the groups attribute.

Returns:



17439
17440
17441
# File 'lib/ovirtsdk4/types.rb', line 17439

def groups
  return @groups
end

- (Object) groups=(list)

Sets the value of the groups attribute.

Parameters:



17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
# File 'lib/ovirtsdk4/types.rb', line 17447

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


17464
17465
17466
# File 'lib/ovirtsdk4/types.rb', line 17464

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


17473
17474
17475
# File 'lib/ovirtsdk4/types.rb', line 17473

def id=(value)
  @id = value
end

- (String) last_name

Returns the value of the last_name attribute.

Returns:

  • (String)


17482
17483
17484
# File 'lib/ovirtsdk4/types.rb', line 17482

def last_name
  return @last_name
end

- (Object) last_name=(value)

Sets the value of the last_name attribute.

Parameters:

  • value (String)


17491
17492
17493
# File 'lib/ovirtsdk4/types.rb', line 17491

def last_name=(value)
  @last_name = value
end

- (Boolean) logged_in

Returns the value of the logged_in attribute.

Returns:

  • (Boolean)


17500
17501
17502
# File 'lib/ovirtsdk4/types.rb', line 17500

def logged_in
  return @logged_in
end

- (Object) logged_in=(value)

Sets the value of the logged_in attribute.

Parameters:

  • value (Boolean)


17509
17510
17511
# File 'lib/ovirtsdk4/types.rb', line 17509

def logged_in=(value)
  @logged_in = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


17518
17519
17520
# File 'lib/ovirtsdk4/types.rb', line 17518

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


17527
17528
17529
# File 'lib/ovirtsdk4/types.rb', line 17527

def name=(value)
  @name = value
end

- (String) namespace

Returns the value of the namespace attribute.

Returns:

  • (String)


17536
17537
17538
# File 'lib/ovirtsdk4/types.rb', line 17536

def namespace
  return @namespace
end

- (Object) namespace=(value)

Sets the value of the namespace attribute.

Parameters:

  • value (String)


17545
17546
17547
# File 'lib/ovirtsdk4/types.rb', line 17545

def namespace=(value)
  @namespace = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


17554
17555
17556
# File 'lib/ovirtsdk4/types.rb', line 17554

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


17563
17564
17565
# File 'lib/ovirtsdk4/types.rb', line 17563

def password=(value)
  @password = value
end

- (Array<Permission>) permissions

Returns the value of the permissions attribute.

Returns:



17572
17573
17574
# File 'lib/ovirtsdk4/types.rb', line 17572

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
# File 'lib/ovirtsdk4/types.rb', line 17580

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

- (String) principal

Returns the value of the principal attribute.

Returns:

  • (String)


17597
17598
17599
# File 'lib/ovirtsdk4/types.rb', line 17597

def principal
  return @principal
end

- (Object) principal=(value)

Sets the value of the principal attribute.

Parameters:

  • value (String)


17606
17607
17608
# File 'lib/ovirtsdk4/types.rb', line 17606

def principal=(value)
  @principal = value
end

- (Array<Role>) roles

Returns the value of the roles attribute.

Returns:



17615
17616
17617
# File 'lib/ovirtsdk4/types.rb', line 17615

def roles
  return @roles
end

- (Object) roles=(list)

Sets the value of the roles attribute.

Parameters:

  • list (Array<Role>)


17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
# File 'lib/ovirtsdk4/types.rb', line 17623

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

- (Array<SshPublicKey>) ssh_public_keys

Returns the value of the ssh_public_keys attribute.

Returns:



17640
17641
17642
# File 'lib/ovirtsdk4/types.rb', line 17640

def ssh_public_keys
  return @ssh_public_keys
end

- (Object) ssh_public_keys=(list)

Sets the value of the ssh_public_keys attribute.

Parameters:



17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
# File 'lib/ovirtsdk4/types.rb', line 17648

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

- (Array<Tag>) tags

Returns the value of the tags attribute.

Returns:



17665
17666
17667
# File 'lib/ovirtsdk4/types.rb', line 17665

def tags
  return @tags
end

- (Object) tags=(list)

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
# File 'lib/ovirtsdk4/types.rb', line 17673

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

- (String) user_name

Returns the value of the user_name attribute.

Returns:

  • (String)


17690
17691
17692
# File 'lib/ovirtsdk4/types.rb', line 17690

def user_name
  return @user_name
end

- (Object) user_name=(value)

Sets the value of the user_name attribute.

Parameters:

  • value (String)


17699
17700
17701
# File 'lib/ovirtsdk4/types.rb', line 17699

def user_name=(value)
  @user_name = value
end