Class: OvirtSDK4::SshPublicKey
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::SshPublicKey
- 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. -
#content ⇒ String
Returns the value of the
content
attribute. -
#content=(value) ⇒ Object
Sets the value of the
content
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
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 = {}) ⇒ SshPublicKey
constructor
Creates a new instance of the SshPublicKey class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#user ⇒ User
Returns the value of the
user
attribute. -
#user=(value) ⇒ Object
Sets the value of the
user
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SshPublicKey
Creates a new instance of the OvirtSDK4::SshPublicKey class.
19455 19456 19457 19458 19459 |
# File 'lib/ovirtsdk4/types.rb', line 19455 def initialize(opts = {}) super(opts) self.content = opts[:content] self.user = opts[:user] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
19464 19465 19466 19467 19468 |
# File 'lib/ovirtsdk4/types.rb', line 19464 def ==(other) super && @content == other.content && @user == other.user end |
#comment ⇒ String
Returns the value of the comment
attribute.
19325 19326 19327 |
# File 'lib/ovirtsdk4/types.rb', line 19325 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
19334 19335 19336 |
# File 'lib/ovirtsdk4/types.rb', line 19334 def comment=(value) @comment = value end |
#content ⇒ String
Returns the value of the content
attribute.
19343 19344 19345 |
# File 'lib/ovirtsdk4/types.rb', line 19343 def content @content end |
#content=(value) ⇒ Object
Sets the value of the content
attribute.
19352 19353 19354 |
# File 'lib/ovirtsdk4/types.rb', line 19352 def content=(value) @content = value end |
#description ⇒ String
Returns the value of the description
attribute.
19361 19362 19363 |
# File 'lib/ovirtsdk4/types.rb', line 19361 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
19370 19371 19372 |
# File 'lib/ovirtsdk4/types.rb', line 19370 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
19473 19474 19475 19476 19477 |
# File 'lib/ovirtsdk4/types.rb', line 19473 def hash super + @content.hash + @user.hash end |
#id ⇒ String
Returns the value of the id
attribute.
19379 19380 19381 |
# File 'lib/ovirtsdk4/types.rb', line 19379 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
19388 19389 19390 |
# File 'lib/ovirtsdk4/types.rb', line 19388 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
19397 19398 19399 |
# File 'lib/ovirtsdk4/types.rb', line 19397 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
19406 19407 19408 |
# File 'lib/ovirtsdk4/types.rb', line 19406 def name=(value) @name = value end |
#user ⇒ User
Returns the value of the user
attribute.
19415 19416 19417 |
# File 'lib/ovirtsdk4/types.rb', line 19415 def user @user end |
#user=(value) ⇒ Object
Sets the value of the user
attribute.
The value
parameter can be an instance of User 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.
19428 19429 19430 19431 19432 19433 |
# File 'lib/ovirtsdk4/types.rb', line 19428 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |