Class: OvirtSDK4::User
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::User
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) department
Returns the value of the
department
attribute. -
- (Object) department=(value)
Sets the value of the
department
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Domain) domain
Returns the value of the
domain
attribute. -
- (Object) domain=(value)
Sets the value of the
domain
attribute. -
- (String) domain_entry_id
Returns the value of the
domain_entry_id
attribute. -
- (Object) domain_entry_id=(value)
Sets the value of the
domain_entry_id
attribute. -
- (String) email
Returns the value of the
email
attribute. -
- (Object) email=(value)
Sets the value of the
email
attribute. -
- (Array<Group>) groups
Returns the value of the
groups
attribute. -
- (Object) groups=(list)
Sets the value of the
groups
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (User) initialize(opts = {})
constructor
Creates a new instance of the User class.
-
- (String) last_name
Returns the value of the
last_name
attribute. -
- (Object) last_name=(value)
Sets the value of the
last_name
attribute. -
- (Boolean) logged_in
Returns the value of the
logged_in
attribute. -
- (Object) logged_in=(value)
Sets the value of the
logged_in
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) namespace
Returns the value of the
namespace
attribute. -
- (Object) namespace=(value)
Sets the value of the
namespace
attribute. -
- (String) password
Returns the value of the
password
attribute. -
- (Object) password=(value)
Sets the value of the
password
attribute. -
- (Array<Permission>) permissions
Returns the value of the
permissions
attribute. -
- (Object) permissions=(list)
Sets the value of the
permissions
attribute. -
- (String) principal
Returns the value of the
principal
attribute. -
- (Object) principal=(value)
Sets the value of the
principal
attribute. -
- (Array<Role>) roles
Returns the value of the
roles
attribute. -
- (Object) roles=(list)
Sets the value of the
roles
attribute. -
- (Array<SshPublicKey>) ssh_public_keys
Returns the value of the
ssh_public_keys
attribute. -
- (Object) ssh_public_keys=(list)
Sets the value of the
ssh_public_keys
attribute. -
- (Array<Tag>) tags
Returns the value of the
tags
attribute. -
- (Object) tags=(list)
Sets the value of the
tags
attribute. -
- (String) user_name
Returns the value of the
user_name
attribute. -
- (Object) user_name=(value)
Sets the value of the
user_name
attribute.
Methods included from Type
Constructor Details
- (User) initialize(opts = {})
Creates a new instance of the OvirtSDK4::User class.
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. = opts[:permissions] self.principal = opts[:principal] self.roles = opts[:roles] self.ssh_public_keys = opts[:ssh_public_keys] self. = opts[:tags] self.user_name = opts[:user_name] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
17572 17573 17574 |
# File 'lib/ovirtsdk4/types.rb', line 17572 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions
attribute.
17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 |
# File 'lib/ovirtsdk4/types.rb', line 17580 def (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.
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.
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.
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.
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.
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.
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.
17665 17666 17667 |
# File 'lib/ovirtsdk4/types.rb', line 17665 def return @tags end |
- (Object) tags=(list)
Sets the value of the tags
attribute.
17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 |
# File 'lib/ovirtsdk4/types.rb', line 17673 def (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.
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.
17699 17700 17701 |
# File 'lib/ovirtsdk4/types.rb', line 17699 def user_name=(value) @user_name = value end |