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.
20781 20782 20783 20784 20785 20786 20787 |
# File 'lib/ovirtsdk4/types.rb', line 20781 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.
20792 20793 20794 20795 20796 20797 20798 |
# File 'lib/ovirtsdk4/types.rb', line 20792 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.
20611 20612 20613 |
# File 'lib/ovirtsdk4/types.rb', line 20611 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20620 20621 20622 |
# File 'lib/ovirtsdk4/types.rb', line 20620 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20629 20630 20631 |
# File 'lib/ovirtsdk4/types.rb', line 20629 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20638 20639 20640 |
# File 'lib/ovirtsdk4/types.rb', line 20638 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
20803 20804 20805 20806 20807 20808 20809 |
# File 'lib/ovirtsdk4/types.rb', line 20803 def hash super + @host.hash + @password.hash + @target.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
20647 20648 20649 |
# File 'lib/ovirtsdk4/types.rb', line 20647 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.
20660 20661 20662 20663 20664 20665 |
# File 'lib/ovirtsdk4/types.rb', line 20660 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.
20672 20673 20674 |
# File 'lib/ovirtsdk4/types.rb', line 20672 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20681 20682 20683 |
# File 'lib/ovirtsdk4/types.rb', line 20681 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
20690 20691 20692 |
# File 'lib/ovirtsdk4/types.rb', line 20690 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20699 20700 20701 |
# File 'lib/ovirtsdk4/types.rb', line 20699 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
20708 20709 20710 |
# File 'lib/ovirtsdk4/types.rb', line 20708 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20717 20718 20719 |
# File 'lib/ovirtsdk4/types.rb', line 20717 def password=(value) @password = value end |
#target ⇒ String
Returns the value of the target
attribute.
20726 20727 20728 |
# File 'lib/ovirtsdk4/types.rb', line 20726 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20735 20736 20737 |
# File 'lib/ovirtsdk4/types.rb', line 20735 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
20744 20745 20746 |
# File 'lib/ovirtsdk4/types.rb', line 20744 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20753 20754 20755 |
# File 'lib/ovirtsdk4/types.rb', line 20753 def username=(value) @username = value end |