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.
23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 |
# File 'lib/ovirtsdk4/types.rb', line 23376 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.
23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 |
# File 'lib/ovirtsdk4/types.rb', line 23398 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.
22946 22947 22948 |
# File 'lib/ovirtsdk4/types.rb', line 22946 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
22955 22956 22957 |
# File 'lib/ovirtsdk4/types.rb', line 22955 def comment=(value) @comment = value end |
#department ⇒ String
Returns the value of the department
attribute.
22964 22965 22966 |
# File 'lib/ovirtsdk4/types.rb', line 22964 def department @department end |
#department=(value) ⇒ Object
Sets the value of the department
attribute.
22973 22974 22975 |
# File 'lib/ovirtsdk4/types.rb', line 22973 def department=(value) @department = value end |
#description ⇒ String
Returns the value of the description
attribute.
22982 22983 22984 |
# File 'lib/ovirtsdk4/types.rb', line 22982 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
22991 22992 22993 |
# File 'lib/ovirtsdk4/types.rb', line 22991 def description=(value) @description = value end |
#domain ⇒ Domain
Returns the value of the domain
attribute.
23000 23001 23002 |
# File 'lib/ovirtsdk4/types.rb', line 23000 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.
23013 23014 23015 23016 23017 23018 |
# File 'lib/ovirtsdk4/types.rb', line 23013 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.
23025 23026 23027 |
# File 'lib/ovirtsdk4/types.rb', line 23025 def domain_entry_id @domain_entry_id end |
#domain_entry_id=(value) ⇒ Object
Sets the value of the domain_entry_id
attribute.
23034 23035 23036 |
# File 'lib/ovirtsdk4/types.rb', line 23034 def domain_entry_id=(value) @domain_entry_id = value end |
#email ⇒ String
Returns the value of the email
attribute.
23043 23044 23045 |
# File 'lib/ovirtsdk4/types.rb', line 23043 def email @email end |
#email=(value) ⇒ Object
Sets the value of the email
attribute.
23052 23053 23054 |
# File 'lib/ovirtsdk4/types.rb', line 23052 def email=(value) @email = value end |
#groups ⇒ Array<Group>
Returns the value of the groups
attribute.
23061 23062 23063 |
# File 'lib/ovirtsdk4/types.rb', line 23061 def groups @groups end |
#groups=(list) ⇒ Object
Sets the value of the groups
attribute.
23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 |
# File 'lib/ovirtsdk4/types.rb', line 23070 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.
23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 |
# File 'lib/ovirtsdk4/types.rb', line 23420 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.
23087 23088 23089 |
# File 'lib/ovirtsdk4/types.rb', line 23087 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23096 23097 23098 |
# File 'lib/ovirtsdk4/types.rb', line 23096 def id=(value) @id = value end |
#last_name ⇒ String
Returns the value of the last_name
attribute.
23105 23106 23107 |
# File 'lib/ovirtsdk4/types.rb', line 23105 def last_name @last_name end |
#last_name=(value) ⇒ Object
Sets the value of the last_name
attribute.
23114 23115 23116 |
# File 'lib/ovirtsdk4/types.rb', line 23114 def last_name=(value) @last_name = value end |
#logged_in ⇒ Boolean
Returns the value of the logged_in
attribute.
23123 23124 23125 |
# File 'lib/ovirtsdk4/types.rb', line 23123 def logged_in @logged_in end |
#logged_in=(value) ⇒ Object
Sets the value of the logged_in
attribute.
23132 23133 23134 |
# File 'lib/ovirtsdk4/types.rb', line 23132 def logged_in=(value) @logged_in = value end |
#name ⇒ String
Returns the value of the name
attribute.
23141 23142 23143 |
# File 'lib/ovirtsdk4/types.rb', line 23141 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23150 23151 23152 |
# File 'lib/ovirtsdk4/types.rb', line 23150 def name=(value) @name = value end |
#namespace ⇒ String
Returns the value of the namespace
attribute.
23159 23160 23161 |
# File 'lib/ovirtsdk4/types.rb', line 23159 def namespace @namespace end |
#namespace=(value) ⇒ Object
Sets the value of the namespace
attribute.
23168 23169 23170 |
# File 'lib/ovirtsdk4/types.rb', line 23168 def namespace=(value) @namespace = value end |
#password ⇒ String
Returns the value of the password
attribute.
23177 23178 23179 |
# File 'lib/ovirtsdk4/types.rb', line 23177 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
23186 23187 23188 |
# File 'lib/ovirtsdk4/types.rb', line 23186 def password=(value) @password = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
23195 23196 23197 |
# File 'lib/ovirtsdk4/types.rb', line 23195 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 |
# File 'lib/ovirtsdk4/types.rb', line 23204 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.
23221 23222 23223 |
# File 'lib/ovirtsdk4/types.rb', line 23221 def principal @principal end |
#principal=(value) ⇒ Object
Sets the value of the principal
attribute.
23230 23231 23232 |
# File 'lib/ovirtsdk4/types.rb', line 23230 def principal=(value) @principal = value end |
#roles ⇒ Array<Role>
Returns the value of the roles
attribute.
23239 23240 23241 |
# File 'lib/ovirtsdk4/types.rb', line 23239 def roles @roles end |
#roles=(list) ⇒ Object
Sets the value of the roles
attribute.
23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 |
# File 'lib/ovirtsdk4/types.rb', line 23248 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.
23265 23266 23267 |
# File 'lib/ovirtsdk4/types.rb', line 23265 def ssh_public_keys @ssh_public_keys end |
#ssh_public_keys=(list) ⇒ Object
Sets the value of the ssh_public_keys
attribute.
23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 |
# File 'lib/ovirtsdk4/types.rb', line 23274 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.
23291 23292 23293 |
# File 'lib/ovirtsdk4/types.rb', line 23291 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 |
# File 'lib/ovirtsdk4/types.rb', line 23300 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.
23317 23318 23319 |
# File 'lib/ovirtsdk4/types.rb', line 23317 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name
attribute.
23326 23327 23328 |
# File 'lib/ovirtsdk4/types.rb', line 23326 def user_name=(value) @user_name = value end |