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.
20981 20982 20983 20984 20985 20986 20987 |
# File 'lib/ovirtsdk4/types.rb', line 20981 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.
20992 20993 20994 20995 20996 20997 20998 |
# File 'lib/ovirtsdk4/types.rb', line 20992 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.
20811 20812 20813 |
# File 'lib/ovirtsdk4/types.rb', line 20811 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20820 20821 20822 |
# File 'lib/ovirtsdk4/types.rb', line 20820 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20829 20830 20831 |
# File 'lib/ovirtsdk4/types.rb', line 20829 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20838 20839 20840 |
# File 'lib/ovirtsdk4/types.rb', line 20838 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
21003 21004 21005 21006 21007 21008 21009 |
# File 'lib/ovirtsdk4/types.rb', line 21003 def hash super + @host.hash + @password.hash + @target.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
20847 20848 20849 |
# File 'lib/ovirtsdk4/types.rb', line 20847 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.
20860 20861 20862 20863 20864 20865 |
# File 'lib/ovirtsdk4/types.rb', line 20860 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.
20872 20873 20874 |
# File 'lib/ovirtsdk4/types.rb', line 20872 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20881 20882 20883 |
# File 'lib/ovirtsdk4/types.rb', line 20881 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
20890 20891 20892 |
# File 'lib/ovirtsdk4/types.rb', line 20890 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20899 20900 20901 |
# File 'lib/ovirtsdk4/types.rb', line 20899 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
20908 20909 20910 |
# File 'lib/ovirtsdk4/types.rb', line 20908 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20917 20918 20919 |
# File 'lib/ovirtsdk4/types.rb', line 20917 def password=(value) @password = value end |
#target ⇒ String
Returns the value of the target
attribute.
20926 20927 20928 |
# File 'lib/ovirtsdk4/types.rb', line 20926 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20935 20936 20937 |
# File 'lib/ovirtsdk4/types.rb', line 20935 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
20944 20945 20946 |
# File 'lib/ovirtsdk4/types.rb', line 20944 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20953 20954 20955 |
# File 'lib/ovirtsdk4/types.rb', line 20953 def username=(value) @username = value end |