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.
20036 20037 20038 20039 20040 20041 20042 20043 |
# File 'lib/ovirtsdk4/types.rb', line 20036 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.
20048 20049 20050 20051 20052 20053 20054 20055 |
# File 'lib/ovirtsdk4/types.rb', line 20048 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.
19846 19847 19848 |
# File 'lib/ovirtsdk4/types.rb', line 19846 def authentication_method @authentication_method end |
#authentication_method=(value) ⇒ Object
Sets the value of the authentication_method
attribute.
19855 19856 19857 |
# File 'lib/ovirtsdk4/types.rb', line 19855 def authentication_method=(value) @authentication_method = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
19864 19865 19866 |
# File 'lib/ovirtsdk4/types.rb', line 19864 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
19873 19874 19875 |
# File 'lib/ovirtsdk4/types.rb', line 19873 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
19882 19883 19884 |
# File 'lib/ovirtsdk4/types.rb', line 19882 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
19891 19892 19893 |
# File 'lib/ovirtsdk4/types.rb', line 19891 def description=(value) @description = value end |
#fingerprint ⇒ String
Returns the value of the fingerprint
attribute.
19900 19901 19902 |
# File 'lib/ovirtsdk4/types.rb', line 19900 def fingerprint @fingerprint end |
#fingerprint=(value) ⇒ Object
Sets the value of the fingerprint
attribute.
19909 19910 19911 |
# File 'lib/ovirtsdk4/types.rb', line 19909 def fingerprint=(value) @fingerprint = value end |
#hash ⇒ Object
Generates a hash value for this object.
20060 20061 20062 20063 20064 20065 20066 20067 |
# File 'lib/ovirtsdk4/types.rb', line 20060 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.
19918 19919 19920 |
# File 'lib/ovirtsdk4/types.rb', line 19918 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
19927 19928 19929 |
# File 'lib/ovirtsdk4/types.rb', line 19927 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
19936 19937 19938 |
# File 'lib/ovirtsdk4/types.rb', line 19936 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
19945 19946 19947 |
# File 'lib/ovirtsdk4/types.rb', line 19945 def name=(value) @name = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
19954 19955 19956 |
# File 'lib/ovirtsdk4/types.rb', line 19954 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
19963 19964 19965 |
# File 'lib/ovirtsdk4/types.rb', line 19963 def port=(value) @port = value end |
#public_key ⇒ String
Returns the value of the public_key
attribute.
19972 19973 19974 |
# File 'lib/ovirtsdk4/types.rb', line 19972 def public_key @public_key end |
#public_key=(value) ⇒ Object
Sets the value of the public_key
attribute.
19981 19982 19983 |
# File 'lib/ovirtsdk4/types.rb', line 19981 def public_key=(value) @public_key = value end |
#user ⇒ User
Returns the value of the user
attribute.
19990 19991 19992 |
# File 'lib/ovirtsdk4/types.rb', line 19990 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.
20003 20004 20005 20006 20007 20008 |
# File 'lib/ovirtsdk4/types.rb', line 20003 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |