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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ User
Creates a new instance of the OvirtSDK4::User class.
23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 |
# File 'lib/ovirtsdk4/types.rb', line 23452 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.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
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 |
# File 'lib/ovirtsdk4/types.rb', line 23474 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 && @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 end |
#comment ⇒ String
Returns the value of the comment
attribute.
23022 23023 23024 |
# File 'lib/ovirtsdk4/types.rb', line 23022 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23031 23032 23033 |
# File 'lib/ovirtsdk4/types.rb', line 23031 def comment=(value) @comment = value end |
#department ⇒ String
Returns the value of the department
attribute.
23040 23041 23042 |
# File 'lib/ovirtsdk4/types.rb', line 23040 def department @department end |
#department=(value) ⇒ Object
Sets the value of the department
attribute.
23049 23050 23051 |
# File 'lib/ovirtsdk4/types.rb', line 23049 def department=(value) @department = value end |
#description ⇒ String
Returns the value of the description
attribute.
23058 23059 23060 |
# File 'lib/ovirtsdk4/types.rb', line 23058 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23067 23068 23069 |
# File 'lib/ovirtsdk4/types.rb', line 23067 def description=(value) @description = value end |
#domain ⇒ Domain
Returns the value of the domain
attribute.
23076 23077 23078 |
# File 'lib/ovirtsdk4/types.rb', line 23076 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.
23089 23090 23091 23092 23093 23094 |
# File 'lib/ovirtsdk4/types.rb', line 23089 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.
23101 23102 23103 |
# File 'lib/ovirtsdk4/types.rb', line 23101 def domain_entry_id @domain_entry_id end |
#domain_entry_id=(value) ⇒ Object
Sets the value of the domain_entry_id
attribute.
23110 23111 23112 |
# File 'lib/ovirtsdk4/types.rb', line 23110 def domain_entry_id=(value) @domain_entry_id = value end |
#email ⇒ String
Returns the value of the email
attribute.
23119 23120 23121 |
# File 'lib/ovirtsdk4/types.rb', line 23119 def email @email end |
#email=(value) ⇒ Object
Sets the value of the email
attribute.
23128 23129 23130 |
# File 'lib/ovirtsdk4/types.rb', line 23128 def email=(value) @email = value end |
#groups ⇒ Array<Group>
Returns the value of the groups
attribute.
23137 23138 23139 |
# File 'lib/ovirtsdk4/types.rb', line 23137 def groups @groups end |
#groups=(list) ⇒ Object
Sets the value of the groups
attribute.
23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 |
# File 'lib/ovirtsdk4/types.rb', line 23146 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.
23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 |
# File 'lib/ovirtsdk4/types.rb', line 23496 def hash super + @department.hash + @domain.hash + @domain_entry_id.hash + @email.hash + @groups.hash + @last_name.hash + @logged_in.hash + @namespace.hash + @password.hash + @permissions.hash + @principal.hash + @roles.hash + @ssh_public_keys.hash + @tags.hash + @user_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23163 23164 23165 |
# File 'lib/ovirtsdk4/types.rb', line 23163 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23172 23173 23174 |
# File 'lib/ovirtsdk4/types.rb', line 23172 def id=(value) @id = value end |
#last_name ⇒ String
Returns the value of the last_name
attribute.
23181 23182 23183 |
# File 'lib/ovirtsdk4/types.rb', line 23181 def last_name @last_name end |
#last_name=(value) ⇒ Object
Sets the value of the last_name
attribute.
23190 23191 23192 |
# File 'lib/ovirtsdk4/types.rb', line 23190 def last_name=(value) @last_name = value end |
#logged_in ⇒ Boolean
Returns the value of the logged_in
attribute.
23199 23200 23201 |
# File 'lib/ovirtsdk4/types.rb', line 23199 def logged_in @logged_in end |
#logged_in=(value) ⇒ Object
Sets the value of the logged_in
attribute.
23208 23209 23210 |
# File 'lib/ovirtsdk4/types.rb', line 23208 def logged_in=(value) @logged_in = value end |
#name ⇒ String
Returns the value of the name
attribute.
23217 23218 23219 |
# File 'lib/ovirtsdk4/types.rb', line 23217 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23226 23227 23228 |
# File 'lib/ovirtsdk4/types.rb', line 23226 def name=(value) @name = value end |
#namespace ⇒ String
Returns the value of the namespace
attribute.
23235 23236 23237 |
# File 'lib/ovirtsdk4/types.rb', line 23235 def namespace @namespace end |
#namespace=(value) ⇒ Object
Sets the value of the namespace
attribute.
23244 23245 23246 |
# File 'lib/ovirtsdk4/types.rb', line 23244 def namespace=(value) @namespace = value end |
#password ⇒ String
Returns the value of the password
attribute.
23253 23254 23255 |
# File 'lib/ovirtsdk4/types.rb', line 23253 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
23262 23263 23264 |
# File 'lib/ovirtsdk4/types.rb', line 23262 def password=(value) @password = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
23271 23272 23273 |
# File 'lib/ovirtsdk4/types.rb', line 23271 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 |
# File 'lib/ovirtsdk4/types.rb', line 23280 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.
23297 23298 23299 |
# File 'lib/ovirtsdk4/types.rb', line 23297 def principal @principal end |
#principal=(value) ⇒ Object
Sets the value of the principal
attribute.
23306 23307 23308 |
# File 'lib/ovirtsdk4/types.rb', line 23306 def principal=(value) @principal = value end |
#roles ⇒ Array<Role>
Returns the value of the roles
attribute.
23315 23316 23317 |
# File 'lib/ovirtsdk4/types.rb', line 23315 def roles @roles end |
#roles=(list) ⇒ Object
Sets the value of the roles
attribute.
23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 |
# File 'lib/ovirtsdk4/types.rb', line 23324 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.
23341 23342 23343 |
# File 'lib/ovirtsdk4/types.rb', line 23341 def ssh_public_keys @ssh_public_keys end |
#ssh_public_keys=(list) ⇒ Object
Sets the value of the ssh_public_keys
attribute.
23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 |
# File 'lib/ovirtsdk4/types.rb', line 23350 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.
23367 23368 23369 |
# File 'lib/ovirtsdk4/types.rb', line 23367 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 |
# File 'lib/ovirtsdk4/types.rb', line 23376 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.
23393 23394 23395 |
# File 'lib/ovirtsdk4/types.rb', line 23393 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name
attribute.
23402 23403 23404 |
# File 'lib/ovirtsdk4/types.rb', line 23402 def user_name=(value) @user_name = value end |