Class: OvirtSDK4::User
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::User
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#department ⇒ String
Returns the value of the
department
attribute. -
#department=(value) ⇒ Object
Sets the value of the
department
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#domain_entry_id ⇒ String
Returns the value of the
domain_entry_id
attribute. -
#domain_entry_id=(value) ⇒ Object
Sets the value of the
domain_entry_id
attribute. -
#email ⇒ String
Returns the value of the
email
attribute. -
#email=(value) ⇒ Object
Sets the value of the
email
attribute. -
#groups ⇒ Array<Group>
Returns the value of the
groups
attribute. -
#groups=(list) ⇒ Object
Sets the value of the
groups
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ User
constructor
Creates a new instance of the User class.
-
#last_name ⇒ String
Returns the value of the
last_name
attribute. -
#last_name=(value) ⇒ Object
Sets the value of the
last_name
attribute. -
#logged_in ⇒ Boolean
Returns the value of the
logged_in
attribute. -
#logged_in=(value) ⇒ Object
Sets the value of the
logged_in
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#namespace ⇒ String
Returns the value of the
namespace
attribute. -
#namespace=(value) ⇒ Object
Sets the value of the
namespace
attribute. -
#options ⇒ Array<UserOption>
Returns the value of the
options
attribute. -
#options=(list) ⇒ Object
Sets the value of the
options
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#principal ⇒ String
Returns the value of the
principal
attribute. -
#principal=(value) ⇒ Object
Sets the value of the
principal
attribute. -
#roles ⇒ Array<Role>
Returns the value of the
roles
attribute. -
#roles=(list) ⇒ Object
Sets the value of the
roles
attribute. -
#ssh_public_keys ⇒ Array<SshPublicKey>
Returns the value of the
ssh_public_keys
attribute. -
#ssh_public_keys=(list) ⇒ Object
Sets the value of the
ssh_public_keys
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#user_name ⇒ String
Returns the value of the
user_name
attribute. -
#user_name=(value) ⇒ Object
Sets the value of the
user_name
attribute. -
#user_options ⇒ Array<Property>
Returns the value of the
user_options
attribute. -
#user_options=(list) ⇒ Object
Sets the value of the
user_options
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ User
Creates a new instance of the OvirtSDK4::User class.
23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 |
# File 'lib/ovirtsdk4/types.rb', line 23913 def initialize(opts = {}) super(opts) self.department = opts[:department] self.domain = opts[:domain] self.domain_entry_id = opts[:domain_entry_id] self.email = opts[:email] self.groups = opts[:groups] self.last_name = opts[:last_name] self.logged_in = opts[:logged_in] self.namespace = opts[:namespace] self. = opts[:options] 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] self. = opts[:user_options] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 |
# File 'lib/ovirtsdk4/types.rb', line 23937 def ==(other) super && @department == other.department && @domain == other.domain && @domain_entry_id == other.domain_entry_id && @email == other.email && @groups == other.groups && @last_name == other.last_name && @logged_in == other.logged_in && @namespace == other.namespace && @options == other. && @password == other.password && @permissions == other. && @principal == other.principal && @roles == other.roles && @ssh_public_keys == other.ssh_public_keys && @tags == other. && @user_name == other.user_name && @user_options == other. end |
#comment ⇒ String
Returns the value of the comment
attribute.
23427 23428 23429 |
# File 'lib/ovirtsdk4/types.rb', line 23427 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23436 23437 23438 |
# File 'lib/ovirtsdk4/types.rb', line 23436 def comment=(value) @comment = value end |
#department ⇒ String
Returns the value of the department
attribute.
23445 23446 23447 |
# File 'lib/ovirtsdk4/types.rb', line 23445 def department @department end |
#department=(value) ⇒ Object
Sets the value of the department
attribute.
23454 23455 23456 |
# File 'lib/ovirtsdk4/types.rb', line 23454 def department=(value) @department = value end |
#description ⇒ String
Returns the value of the description
attribute.
23463 23464 23465 |
# File 'lib/ovirtsdk4/types.rb', line 23463 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23472 23473 23474 |
# File 'lib/ovirtsdk4/types.rb', line 23472 def description=(value) @description = value end |
#domain ⇒ Domain
Returns the value of the domain
attribute.
23481 23482 23483 |
# File 'lib/ovirtsdk4/types.rb', line 23481 def domain @domain end |
#domain=(value) ⇒ Object
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.
23494 23495 23496 23497 23498 23499 |
# File 'lib/ovirtsdk4/types.rb', line 23494 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#domain_entry_id ⇒ String
Returns the value of the domain_entry_id
attribute.
23506 23507 23508 |
# File 'lib/ovirtsdk4/types.rb', line 23506 def domain_entry_id @domain_entry_id end |
#domain_entry_id=(value) ⇒ Object
Sets the value of the domain_entry_id
attribute.
23515 23516 23517 |
# File 'lib/ovirtsdk4/types.rb', line 23515 def domain_entry_id=(value) @domain_entry_id = value end |
#email ⇒ String
Returns the value of the email
attribute.
23524 23525 23526 |
# File 'lib/ovirtsdk4/types.rb', line 23524 def email @email end |
#email=(value) ⇒ Object
Sets the value of the email
attribute.
23533 23534 23535 |
# File 'lib/ovirtsdk4/types.rb', line 23533 def email=(value) @email = value end |
#groups ⇒ Array<Group>
Returns the value of the groups
attribute.
23542 23543 23544 |
# File 'lib/ovirtsdk4/types.rb', line 23542 def groups @groups end |
#groups=(list) ⇒ Object
Sets the value of the groups
attribute.
23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 |
# File 'lib/ovirtsdk4/types.rb', line 23551 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 |
#hash ⇒ Object
Generates a hash value for this object.
23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 |
# File 'lib/ovirtsdk4/types.rb', line 23961 def hash super + @department.hash + @domain.hash + @domain_entry_id.hash + @email.hash + @groups.hash + @last_name.hash + @logged_in.hash + @namespace.hash + @options.hash + @password.hash + @permissions.hash + @principal.hash + @roles.hash + @ssh_public_keys.hash + @tags.hash + @user_name.hash + @user_options.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23568 23569 23570 |
# File 'lib/ovirtsdk4/types.rb', line 23568 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23577 23578 23579 |
# File 'lib/ovirtsdk4/types.rb', line 23577 def id=(value) @id = value end |
#last_name ⇒ String
Returns the value of the last_name
attribute.
23586 23587 23588 |
# File 'lib/ovirtsdk4/types.rb', line 23586 def last_name @last_name end |
#last_name=(value) ⇒ Object
Sets the value of the last_name
attribute.
23595 23596 23597 |
# File 'lib/ovirtsdk4/types.rb', line 23595 def last_name=(value) @last_name = value end |
#logged_in ⇒ Boolean
Returns the value of the logged_in
attribute.
23604 23605 23606 |
# File 'lib/ovirtsdk4/types.rb', line 23604 def logged_in @logged_in end |
#logged_in=(value) ⇒ Object
Sets the value of the logged_in
attribute.
23613 23614 23615 |
# File 'lib/ovirtsdk4/types.rb', line 23613 def logged_in=(value) @logged_in = value end |
#name ⇒ String
Returns the value of the name
attribute.
23622 23623 23624 |
# File 'lib/ovirtsdk4/types.rb', line 23622 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23631 23632 23633 |
# File 'lib/ovirtsdk4/types.rb', line 23631 def name=(value) @name = value end |
#namespace ⇒ String
Returns the value of the namespace
attribute.
23640 23641 23642 |
# File 'lib/ovirtsdk4/types.rb', line 23640 def namespace @namespace end |
#namespace=(value) ⇒ Object
Sets the value of the namespace
attribute.
23649 23650 23651 |
# File 'lib/ovirtsdk4/types.rb', line 23649 def namespace=(value) @namespace = value end |
#options ⇒ Array<UserOption>
Returns the value of the options
attribute.
23658 23659 23660 |
# File 'lib/ovirtsdk4/types.rb', line 23658 def @options end |
#options=(list) ⇒ Object
Sets the value of the options
attribute.
23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 |
# File 'lib/ovirtsdk4/types.rb', line 23667 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = UserOption.new(value) end end end @options = list end |
#password ⇒ String
Returns the value of the password
attribute.
23684 23685 23686 |
# File 'lib/ovirtsdk4/types.rb', line 23684 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
23693 23694 23695 |
# File 'lib/ovirtsdk4/types.rb', line 23693 def password=(value) @password = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
23702 23703 23704 |
# File 'lib/ovirtsdk4/types.rb', line 23702 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 |
# File 'lib/ovirtsdk4/types.rb', line 23711 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 |
#principal ⇒ String
Returns the value of the principal
attribute.
23728 23729 23730 |
# File 'lib/ovirtsdk4/types.rb', line 23728 def principal @principal end |
#principal=(value) ⇒ Object
Sets the value of the principal
attribute.
23737 23738 23739 |
# File 'lib/ovirtsdk4/types.rb', line 23737 def principal=(value) @principal = value end |
#roles ⇒ Array<Role>
Returns the value of the roles
attribute.
23746 23747 23748 |
# File 'lib/ovirtsdk4/types.rb', line 23746 def roles @roles end |
#roles=(list) ⇒ Object
Sets the value of the roles
attribute.
23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 |
# File 'lib/ovirtsdk4/types.rb', line 23755 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 ⇒ Array<SshPublicKey>
Returns the value of the ssh_public_keys
attribute.
23772 23773 23774 |
# File 'lib/ovirtsdk4/types.rb', line 23772 def ssh_public_keys @ssh_public_keys end |
#ssh_public_keys=(list) ⇒ Object
Sets the value of the ssh_public_keys
attribute.
23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 |
# File 'lib/ovirtsdk4/types.rb', line 23781 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 ⇒ Array<Tag>
Returns the value of the tags
attribute.
23798 23799 23800 |
# File 'lib/ovirtsdk4/types.rb', line 23798 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 |
# File 'lib/ovirtsdk4/types.rb', line 23807 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 |
#user_name ⇒ String
Returns the value of the user_name
attribute.
23824 23825 23826 |
# File 'lib/ovirtsdk4/types.rb', line 23824 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name
attribute.
23833 23834 23835 |
# File 'lib/ovirtsdk4/types.rb', line 23833 def user_name=(value) @user_name = value end |
#user_options ⇒ Array<Property>
Returns the value of the user_options
attribute.
23842 23843 23844 |
# File 'lib/ovirtsdk4/types.rb', line 23842 def @user_options end |
#user_options=(list) ⇒ Object
Sets the value of the user_options
attribute.
23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 |
# File 'lib/ovirtsdk4/types.rb', line 23851 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @user_options = list end |