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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ StorageConnectionExtension
constructor
Creates a new instance of the StorageConnectionExtension class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#target ⇒ String
Returns the value of the
targetattribute. -
#target=(value) ⇒ Object
Sets the value of the
targetattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ StorageConnectionExtension
Creates a new instance of the OvirtSDK4::StorageConnectionExtension class.
22106 22107 22108 22109 22110 22111 22112 |
# File 'lib/ovirtsdk4/types.rb', line 22106 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.
22117 22118 22119 22120 22121 22122 22123 |
# File 'lib/ovirtsdk4/types.rb', line 22117 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.
21936 21937 21938 |
# File 'lib/ovirtsdk4/types.rb', line 21936 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
21945 21946 21947 |
# File 'lib/ovirtsdk4/types.rb', line 21945 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
21954 21955 21956 |
# File 'lib/ovirtsdk4/types.rb', line 21954 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
21963 21964 21965 |
# File 'lib/ovirtsdk4/types.rb', line 21963 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22128 22129 22130 22131 22132 22133 22134 |
# File 'lib/ovirtsdk4/types.rb', line 22128 def hash super + @host.hash + @password.hash + @target.hash + @username.hash end |
#host ⇒ Host
Returns the value of the host attribute.
21972 21973 21974 |
# File 'lib/ovirtsdk4/types.rb', line 21972 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.
21985 21986 21987 21988 21989 21990 |
# File 'lib/ovirtsdk4/types.rb', line 21985 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.
21997 21998 21999 |
# File 'lib/ovirtsdk4/types.rb', line 21997 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
22006 22007 22008 |
# File 'lib/ovirtsdk4/types.rb', line 22006 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
22015 22016 22017 |
# File 'lib/ovirtsdk4/types.rb', line 22015 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
22024 22025 22026 |
# File 'lib/ovirtsdk4/types.rb', line 22024 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
22033 22034 22035 |
# File 'lib/ovirtsdk4/types.rb', line 22033 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
22042 22043 22044 |
# File 'lib/ovirtsdk4/types.rb', line 22042 def password=(value) @password = value end |
#target ⇒ String
Returns the value of the target attribute.
22051 22052 22053 |
# File 'lib/ovirtsdk4/types.rb', line 22051 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target attribute.
22060 22061 22062 |
# File 'lib/ovirtsdk4/types.rb', line 22060 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username attribute.
22069 22070 22071 |
# File 'lib/ovirtsdk4/types.rb', line 22069 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
22078 22079 22080 |
# File 'lib/ovirtsdk4/types.rb', line 22078 def username=(value) @username = value end |