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.
21083 21084 21085 21086 21087 21088 21089 |
# File 'lib/ovirtsdk4/types.rb', line 21083 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.
21094 21095 21096 21097 21098 21099 21100 |
# File 'lib/ovirtsdk4/types.rb', line 21094 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.
20913 20914 20915 |
# File 'lib/ovirtsdk4/types.rb', line 20913 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20922 20923 20924 |
# File 'lib/ovirtsdk4/types.rb', line 20922 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20931 20932 20933 |
# File 'lib/ovirtsdk4/types.rb', line 20931 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20940 20941 20942 |
# File 'lib/ovirtsdk4/types.rb', line 20940 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
21105 21106 21107 21108 21109 21110 21111 |
# File 'lib/ovirtsdk4/types.rb', line 21105 def hash super + @host.hash + @password.hash + @target.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
20949 20950 20951 |
# File 'lib/ovirtsdk4/types.rb', line 20949 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.
20962 20963 20964 20965 20966 20967 |
# File 'lib/ovirtsdk4/types.rb', line 20962 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.
20974 20975 20976 |
# File 'lib/ovirtsdk4/types.rb', line 20974 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20983 20984 20985 |
# File 'lib/ovirtsdk4/types.rb', line 20983 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
20992 20993 20994 |
# File 'lib/ovirtsdk4/types.rb', line 20992 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21001 21002 21003 |
# File 'lib/ovirtsdk4/types.rb', line 21001 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
21010 21011 21012 |
# File 'lib/ovirtsdk4/types.rb', line 21010 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
21019 21020 21021 |
# File 'lib/ovirtsdk4/types.rb', line 21019 def password=(value) @password = value end |
#target ⇒ String
Returns the value of the target
attribute.
21028 21029 21030 |
# File 'lib/ovirtsdk4/types.rb', line 21028 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
21037 21038 21039 |
# File 'lib/ovirtsdk4/types.rb', line 21037 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
21046 21047 21048 |
# File 'lib/ovirtsdk4/types.rb', line 21046 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
21055 21056 21057 |
# File 'lib/ovirtsdk4/types.rb', line 21055 def username=(value) @username = value end |