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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#department ⇒ String
Returns the value of the
departmentattribute. -
#department=(value) ⇒ Object
Sets the value of the
departmentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#domain_entry_id ⇒ String
Returns the value of the
domain_entry_idattribute. -
#domain_entry_id=(value) ⇒ Object
Sets the value of the
domain_entry_idattribute. -
#email ⇒ String
Returns the value of the
emailattribute. -
#email=(value) ⇒ Object
Sets the value of the
emailattribute. -
#groups ⇒ Array<Group>
Returns the value of the
groupsattribute. -
#groups=(list) ⇒ Object
Sets the value of the
groupsattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ User
constructor
Creates a new instance of the User class.
-
#last_name ⇒ String
Returns the value of the
last_nameattribute. -
#last_name=(value) ⇒ Object
Sets the value of the
last_nameattribute. -
#logged_in ⇒ Boolean
Returns the value of the
logged_inattribute. -
#logged_in=(value) ⇒ Object
Sets the value of the
logged_inattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#namespace ⇒ String
Returns the value of the
namespaceattribute. -
#namespace=(value) ⇒ Object
Sets the value of the
namespaceattribute. -
#options ⇒ Array<UserOption>
Returns the value of the
optionsattribute. -
#options=(list) ⇒ Object
Sets the value of the
optionsattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#principal ⇒ String
Returns the value of the
principalattribute. -
#principal=(value) ⇒ Object
Sets the value of the
principalattribute. -
#roles ⇒ Array<Role>
Returns the value of the
rolesattribute. -
#roles=(list) ⇒ Object
Sets the value of the
rolesattribute. -
#ssh_public_keys ⇒ Array<SshPublicKey>
Returns the value of the
ssh_public_keysattribute. -
#ssh_public_keys=(list) ⇒ Object
Sets the value of the
ssh_public_keysattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#user_name ⇒ String
Returns the value of the
user_nameattribute. -
#user_name=(value) ⇒ Object
Sets the value of the
user_nameattribute. -
#user_options ⇒ Array<Property>
Returns the value of the
user_optionsattribute. -
#user_options=(list) ⇒ Object
Sets the value of the
user_optionsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ User
Creates a new instance of the OvirtSDK4::User class.
24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 |
# File 'lib/ovirtsdk4/types.rb', line 24656 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.
24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 |
# File 'lib/ovirtsdk4/types.rb', line 24680 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 && == other. && @password == other.password && == other. && @principal == other.principal && @roles == other.roles && @ssh_public_keys == other.ssh_public_keys && == other. && @user_name == other.user_name && == other. end |
#comment ⇒ String
Returns the value of the comment attribute.
24170 24171 24172 |
# File 'lib/ovirtsdk4/types.rb', line 24170 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
24179 24180 24181 |
# File 'lib/ovirtsdk4/types.rb', line 24179 def comment=(value) @comment = value end |
#department ⇒ String
Returns the value of the department attribute.
24188 24189 24190 |
# File 'lib/ovirtsdk4/types.rb', line 24188 def department @department end |
#department=(value) ⇒ Object
Sets the value of the department attribute.
24197 24198 24199 |
# File 'lib/ovirtsdk4/types.rb', line 24197 def department=(value) @department = value end |
#description ⇒ String
Returns the value of the description attribute.
24206 24207 24208 |
# File 'lib/ovirtsdk4/types.rb', line 24206 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
24215 24216 24217 |
# File 'lib/ovirtsdk4/types.rb', line 24215 def description=(value) @description = value end |
#domain ⇒ Domain
Returns the value of the domain attribute.
24224 24225 24226 |
# File 'lib/ovirtsdk4/types.rb', line 24224 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.
24237 24238 24239 24240 24241 24242 |
# File 'lib/ovirtsdk4/types.rb', line 24237 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.
24249 24250 24251 |
# File 'lib/ovirtsdk4/types.rb', line 24249 def domain_entry_id @domain_entry_id end |
#domain_entry_id=(value) ⇒ Object
Sets the value of the domain_entry_id attribute.
24258 24259 24260 |
# File 'lib/ovirtsdk4/types.rb', line 24258 def domain_entry_id=(value) @domain_entry_id = value end |
#email ⇒ String
Returns the value of the email attribute.
24267 24268 24269 |
# File 'lib/ovirtsdk4/types.rb', line 24267 def email @email end |
#email=(value) ⇒ Object
Sets the value of the email attribute.
24276 24277 24278 |
# File 'lib/ovirtsdk4/types.rb', line 24276 def email=(value) @email = value end |
#groups ⇒ Array<Group>
Returns the value of the groups attribute.
24285 24286 24287 |
# File 'lib/ovirtsdk4/types.rb', line 24285 def groups @groups end |
#groups=(list) ⇒ Object
Sets the value of the groups attribute.
24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 |
# File 'lib/ovirtsdk4/types.rb', line 24294 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.
24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 |
# File 'lib/ovirtsdk4/types.rb', line 24704 def hash super + @department.hash + @domain.hash + @domain_entry_id.hash + @email.hash + @groups.hash + @last_name.hash + @logged_in.hash + @namespace.hash + .hash + @password.hash + .hash + @principal.hash + @roles.hash + @ssh_public_keys.hash + .hash + @user_name.hash + .hash end |
#id ⇒ String
Returns the value of the id attribute.
24311 24312 24313 |
# File 'lib/ovirtsdk4/types.rb', line 24311 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
24320 24321 24322 |
# File 'lib/ovirtsdk4/types.rb', line 24320 def id=(value) @id = value end |
#last_name ⇒ String
Returns the value of the last_name attribute.
24329 24330 24331 |
# File 'lib/ovirtsdk4/types.rb', line 24329 def last_name @last_name end |
#last_name=(value) ⇒ Object
Sets the value of the last_name attribute.
24338 24339 24340 |
# File 'lib/ovirtsdk4/types.rb', line 24338 def last_name=(value) @last_name = value end |
#logged_in ⇒ Boolean
Returns the value of the logged_in attribute.
24347 24348 24349 |
# File 'lib/ovirtsdk4/types.rb', line 24347 def logged_in @logged_in end |
#logged_in=(value) ⇒ Object
Sets the value of the logged_in attribute.
24356 24357 24358 |
# File 'lib/ovirtsdk4/types.rb', line 24356 def logged_in=(value) @logged_in = value end |
#name ⇒ String
Returns the value of the name attribute.
24365 24366 24367 |
# File 'lib/ovirtsdk4/types.rb', line 24365 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
24374 24375 24376 |
# File 'lib/ovirtsdk4/types.rb', line 24374 def name=(value) @name = value end |
#namespace ⇒ String
Returns the value of the namespace attribute.
24383 24384 24385 |
# File 'lib/ovirtsdk4/types.rb', line 24383 def namespace @namespace end |
#namespace=(value) ⇒ Object
Sets the value of the namespace attribute.
24392 24393 24394 |
# File 'lib/ovirtsdk4/types.rb', line 24392 def namespace=(value) @namespace = value end |
#options ⇒ Array<UserOption>
Returns the value of the options attribute.
24401 24402 24403 |
# File 'lib/ovirtsdk4/types.rb', line 24401 def end |
#options=(list) ⇒ Object
Sets the value of the options attribute.
24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 |
# File 'lib/ovirtsdk4/types.rb', line 24410 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 = list end |
#password ⇒ String
Returns the value of the password attribute.
24427 24428 24429 |
# File 'lib/ovirtsdk4/types.rb', line 24427 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
24436 24437 24438 |
# File 'lib/ovirtsdk4/types.rb', line 24436 def password=(value) @password = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
24445 24446 24447 |
# File 'lib/ovirtsdk4/types.rb', line 24445 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 |
# File 'lib/ovirtsdk4/types.rb', line 24454 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 = list end |
#principal ⇒ String
Returns the value of the principal attribute.
24471 24472 24473 |
# File 'lib/ovirtsdk4/types.rb', line 24471 def principal @principal end |
#principal=(value) ⇒ Object
Sets the value of the principal attribute.
24480 24481 24482 |
# File 'lib/ovirtsdk4/types.rb', line 24480 def principal=(value) @principal = value end |
#roles ⇒ Array<Role>
Returns the value of the roles attribute.
24489 24490 24491 |
# File 'lib/ovirtsdk4/types.rb', line 24489 def roles @roles end |
#roles=(list) ⇒ Object
Sets the value of the roles attribute.
24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 |
# File 'lib/ovirtsdk4/types.rb', line 24498 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.
24515 24516 24517 |
# File 'lib/ovirtsdk4/types.rb', line 24515 def ssh_public_keys @ssh_public_keys end |
#ssh_public_keys=(list) ⇒ Object
Sets the value of the ssh_public_keys attribute.
24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 |
# File 'lib/ovirtsdk4/types.rb', line 24524 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.
24541 24542 24543 |
# File 'lib/ovirtsdk4/types.rb', line 24541 def end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 |
# File 'lib/ovirtsdk4/types.rb', line 24550 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 = list end |
#user_name ⇒ String
Returns the value of the user_name attribute.
24567 24568 24569 |
# File 'lib/ovirtsdk4/types.rb', line 24567 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name attribute.
24576 24577 24578 |
# File 'lib/ovirtsdk4/types.rb', line 24576 def user_name=(value) @user_name = value end |
#user_options ⇒ Array<Property>
Returns the value of the user_options attribute.
24585 24586 24587 |
# File 'lib/ovirtsdk4/types.rb', line 24585 def end |
#user_options=(list) ⇒ Object
Sets the value of the user_options attribute.
24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 |
# File 'lib/ovirtsdk4/types.rb', line 24594 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 = list end |