Class: OvirtSDK4::StorageConnectionExtension
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::StorageConnectionExtension
- 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. -
#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.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ StorageConnectionExtension
constructor
Creates a new instance of the StorageConnectionExtension class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#target ⇒ String
Returns the value of the
target
attribute. -
#target=(value) ⇒ Object
Sets the value of the
target
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ StorageConnectionExtension
Creates a new instance of the OvirtSDK4::StorageConnectionExtension class.
21836 21837 21838 21839 21840 21841 21842 |
# File 'lib/ovirtsdk4/types.rb', line 21836 def initialize(opts = {}) super(opts) self.host = opts[:host] self.password = opts[:password] self.target = opts[:target] self.username = opts[:username] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
21847 21848 21849 21850 21851 21852 21853 |
# File 'lib/ovirtsdk4/types.rb', line 21847 def ==(other) super && @host == other.host && @password == other.password && @target == other.target && @username == other.username end |
#comment ⇒ String
Returns the value of the comment
attribute.
21666 21667 21668 |
# File 'lib/ovirtsdk4/types.rb', line 21666 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21675 21676 21677 |
# File 'lib/ovirtsdk4/types.rb', line 21675 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
21684 21685 21686 |
# File 'lib/ovirtsdk4/types.rb', line 21684 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21693 21694 21695 |
# File 'lib/ovirtsdk4/types.rb', line 21693 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
21858 21859 21860 21861 21862 21863 21864 |
# File 'lib/ovirtsdk4/types.rb', line 21858 def hash super + @host.hash + @password.hash + @target.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
21702 21703 21704 |
# File 'lib/ovirtsdk4/types.rb', line 21702 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of Host 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.
21715 21716 21717 21718 21719 21720 |
# File 'lib/ovirtsdk4/types.rb', line 21715 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id
attribute.
21727 21728 21729 |
# File 'lib/ovirtsdk4/types.rb', line 21727 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21736 21737 21738 |
# File 'lib/ovirtsdk4/types.rb', line 21736 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
21745 21746 21747 |
# File 'lib/ovirtsdk4/types.rb', line 21745 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21754 21755 21756 |
# File 'lib/ovirtsdk4/types.rb', line 21754 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
21763 21764 21765 |
# File 'lib/ovirtsdk4/types.rb', line 21763 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
21772 21773 21774 |
# File 'lib/ovirtsdk4/types.rb', line 21772 def password=(value) @password = value end |
#target ⇒ String
Returns the value of the target
attribute.
21781 21782 21783 |
# File 'lib/ovirtsdk4/types.rb', line 21781 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
21790 21791 21792 |
# File 'lib/ovirtsdk4/types.rb', line 21790 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
21799 21800 21801 |
# File 'lib/ovirtsdk4/types.rb', line 21799 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
21808 21809 21810 |
# File 'lib/ovirtsdk4/types.rb', line 21808 def username=(value) @username = value end |