Class: OvirtSDK4::Ssh
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Ssh
- 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. -
#authentication_method ⇒ SshAuthenticationMethod
Returns the value of the
authentication_method
attribute. -
#authentication_method=(value) ⇒ Object
Sets the value of the
authentication_method
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#fingerprint ⇒ String
Returns the value of the
fingerprint
attribute. -
#fingerprint=(value) ⇒ Object
Sets the value of the
fingerprint
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 = {}) ⇒ Ssh
constructor
Creates a new instance of the Ssh class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#public_key ⇒ String
Returns the value of the
public_key
attribute. -
#public_key=(value) ⇒ Object
Sets the value of the
public_key
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 = {}) ⇒ Ssh
Creates a new instance of the OvirtSDK4::Ssh class.
19563 19564 19565 19566 19567 19568 19569 19570 |
# File 'lib/ovirtsdk4/types.rb', line 19563 def initialize(opts = {}) super(opts) self.authentication_method = opts[:authentication_method] self.fingerprint = opts[:fingerprint] self.port = opts[:port] self.public_key = opts[:public_key] self.user = opts[:user] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
19575 19576 19577 19578 19579 19580 19581 19582 |
# File 'lib/ovirtsdk4/types.rb', line 19575 def ==(other) super && @authentication_method == other.authentication_method && @fingerprint == other.fingerprint && @port == other.port && @public_key == other.public_key && @user == other.user end |
#authentication_method ⇒ SshAuthenticationMethod
Returns the value of the authentication_method
attribute.
19373 19374 19375 |
# File 'lib/ovirtsdk4/types.rb', line 19373 def authentication_method @authentication_method end |
#authentication_method=(value) ⇒ Object
Sets the value of the authentication_method
attribute.
19382 19383 19384 |
# File 'lib/ovirtsdk4/types.rb', line 19382 def authentication_method=(value) @authentication_method = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
19391 19392 19393 |
# File 'lib/ovirtsdk4/types.rb', line 19391 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
19400 19401 19402 |
# File 'lib/ovirtsdk4/types.rb', line 19400 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
19409 19410 19411 |
# File 'lib/ovirtsdk4/types.rb', line 19409 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
19418 19419 19420 |
# File 'lib/ovirtsdk4/types.rb', line 19418 def description=(value) @description = value end |
#fingerprint ⇒ String
Returns the value of the fingerprint
attribute.
19427 19428 19429 |
# File 'lib/ovirtsdk4/types.rb', line 19427 def fingerprint @fingerprint end |
#fingerprint=(value) ⇒ Object
Sets the value of the fingerprint
attribute.
19436 19437 19438 |
# File 'lib/ovirtsdk4/types.rb', line 19436 def fingerprint=(value) @fingerprint = value end |
#hash ⇒ Object
Generates a hash value for this object.
19587 19588 19589 19590 19591 19592 19593 19594 |
# File 'lib/ovirtsdk4/types.rb', line 19587 def hash super + @authentication_method.hash + @fingerprint.hash + @port.hash + @public_key.hash + @user.hash end |
#id ⇒ String
Returns the value of the id
attribute.
19445 19446 19447 |
# File 'lib/ovirtsdk4/types.rb', line 19445 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
19454 19455 19456 |
# File 'lib/ovirtsdk4/types.rb', line 19454 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
19463 19464 19465 |
# File 'lib/ovirtsdk4/types.rb', line 19463 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
19472 19473 19474 |
# File 'lib/ovirtsdk4/types.rb', line 19472 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
19481 19482 19483 |
# File 'lib/ovirtsdk4/types.rb', line 19481 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
19490 19491 19492 |
# File 'lib/ovirtsdk4/types.rb', line 19490 def port=(value) @port = value end |
#public_key ⇒ String
Returns the value of the public_key
attribute.
19499 19500 19501 |
# File 'lib/ovirtsdk4/types.rb', line 19499 def public_key @public_key end |
#public_key=(value) ⇒ Object
Sets the value of the public_key
attribute.
19508 19509 19510 |
# File 'lib/ovirtsdk4/types.rb', line 19508 def public_key=(value) @public_key = value end |
#user ⇒ User
Returns the value of the user
attribute.
19517 19518 19519 |
# File 'lib/ovirtsdk4/types.rb', line 19517 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.
19530 19531 19532 19533 19534 19535 |
# File 'lib/ovirtsdk4/types.rb', line 19530 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |