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. -
#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.
19184 19185 19186 19187 19188 19189 19190 |
# File 'lib/ovirtsdk4/types.rb', line 19184 def initialize(opts = {}) super(opts) self.authentication_method = opts[:authentication_method] self.fingerprint = opts[:fingerprint] self.port = opts[:port] self.user = opts[:user] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
19195 19196 19197 19198 19199 19200 19201 |
# File 'lib/ovirtsdk4/types.rb', line 19195 def ==(other) super && @authentication_method == other.authentication_method && @fingerprint == other.fingerprint && @port == other.port && @user == other.user end |
#authentication_method ⇒ SshAuthenticationMethod
Returns the value of the authentication_method
attribute.
19014 19015 19016 |
# File 'lib/ovirtsdk4/types.rb', line 19014 def authentication_method @authentication_method end |
#authentication_method=(value) ⇒ Object
Sets the value of the authentication_method
attribute.
19023 19024 19025 |
# File 'lib/ovirtsdk4/types.rb', line 19023 def authentication_method=(value) @authentication_method = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
19032 19033 19034 |
# File 'lib/ovirtsdk4/types.rb', line 19032 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
19041 19042 19043 |
# File 'lib/ovirtsdk4/types.rb', line 19041 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
19050 19051 19052 |
# File 'lib/ovirtsdk4/types.rb', line 19050 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
19059 19060 19061 |
# File 'lib/ovirtsdk4/types.rb', line 19059 def description=(value) @description = value end |
#fingerprint ⇒ String
Returns the value of the fingerprint
attribute.
19068 19069 19070 |
# File 'lib/ovirtsdk4/types.rb', line 19068 def fingerprint @fingerprint end |
#fingerprint=(value) ⇒ Object
Sets the value of the fingerprint
attribute.
19077 19078 19079 |
# File 'lib/ovirtsdk4/types.rb', line 19077 def fingerprint=(value) @fingerprint = value end |
#hash ⇒ Object
Generates a hash value for this object.
19206 19207 19208 19209 19210 19211 19212 |
# File 'lib/ovirtsdk4/types.rb', line 19206 def hash super + @authentication_method.hash + @fingerprint.hash + @port.hash + @user.hash end |
#id ⇒ String
Returns the value of the id
attribute.
19086 19087 19088 |
# File 'lib/ovirtsdk4/types.rb', line 19086 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
19095 19096 19097 |
# File 'lib/ovirtsdk4/types.rb', line 19095 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
19104 19105 19106 |
# File 'lib/ovirtsdk4/types.rb', line 19104 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
19113 19114 19115 |
# File 'lib/ovirtsdk4/types.rb', line 19113 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
19122 19123 19124 |
# File 'lib/ovirtsdk4/types.rb', line 19122 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
19131 19132 19133 |
# File 'lib/ovirtsdk4/types.rb', line 19131 def port=(value) @port = value end |
#user ⇒ User
Returns the value of the user
attribute.
19140 19141 19142 |
# File 'lib/ovirtsdk4/types.rb', line 19140 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.
19153 19154 19155 19156 19157 19158 |
# File 'lib/ovirtsdk4/types.rb', line 19153 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |