Class: OvirtSDK4::UnmanagedNetwork
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::UnmanagedNetwork
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (HostNic) host_nic
Returns the value of the
host_nic
attribute. -
- (Object) host_nic=(value)
Sets the value of the
host_nic
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (UnmanagedNetwork) initialize(opts = {})
constructor
Creates a new instance of the UnmanagedNetwork class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
- (UnmanagedNetwork) initialize(opts = {})
Creates a new instance of the OvirtSDK4::UnmanagedNetwork class.
17247 17248 17249 17250 17251 17252 17253 17254 17255 |
# File 'lib/ovirtsdk4/types.rb', line 17247 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.host = opts[:host] self.host_nic = opts[:host_nic] self.id = opts[:id] self.name = opts[:name] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
17110 17111 17112 |
# File 'lib/ovirtsdk4/types.rb', line 17110 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
17119 17120 17121 |
# File 'lib/ovirtsdk4/types.rb', line 17119 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
17128 17129 17130 |
# File 'lib/ovirtsdk4/types.rb', line 17128 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
17137 17138 17139 |
# File 'lib/ovirtsdk4/types.rb', line 17137 def description=(value) @description = value end |
- (Host) host
Returns the value of the host
attribute.
17146 17147 17148 |
# File 'lib/ovirtsdk4/types.rb', line 17146 def host return @host end |
- (Object) host=(value)
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.
17159 17160 17161 17162 17163 17164 |
# File 'lib/ovirtsdk4/types.rb', line 17159 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (HostNic) host_nic
Returns the value of the host_nic
attribute.
17171 17172 17173 |
# File 'lib/ovirtsdk4/types.rb', line 17171 def host_nic return @host_nic end |
- (Object) host_nic=(value)
Sets the value of the host_nic
attribute.
The value
parameter can be an instance of HostNic 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.
17184 17185 17186 17187 17188 17189 |
# File 'lib/ovirtsdk4/types.rb', line 17184 def host_nic=(value) if value.is_a?(Hash) value = HostNic.new(value) end @host_nic = value end |
- (String) id
Returns the value of the id
attribute.
17196 17197 17198 |
# File 'lib/ovirtsdk4/types.rb', line 17196 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
17205 17206 17207 |
# File 'lib/ovirtsdk4/types.rb', line 17205 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
17214 17215 17216 |
# File 'lib/ovirtsdk4/types.rb', line 17214 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
17223 17224 17225 |
# File 'lib/ovirtsdk4/types.rb', line 17223 def name=(value) @name = value end |