Class: OvirtSDK4::NicConfiguration
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::NicConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (BootProtocol) boot_protocol
Returns the value of the
boot_protocol
attribute. -
- (Object) boot_protocol=(value)
Sets the value of the
boot_protocol
attribute. -
- (NicConfiguration) initialize(opts = {})
constructor
Creates a new instance of the NicConfiguration class.
-
- (Ip) ip
Returns the value of the
ip
attribute. -
- (Object) ip=(value)
Sets the value of the
ip
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Boolean) on_boot
Returns the value of the
on_boot
attribute. -
- (Object) on_boot=(value)
Sets the value of the
on_boot
attribute.
Methods included from Type
Constructor Details
- (NicConfiguration) initialize(opts = {})
Creates a new instance of the OvirtSDK4::NicConfiguration class.
8117 8118 8119 8120 8121 8122 8123 |
# File 'lib/ovirtsdk4/types.rb', line 8117 def initialize(opts = {}) super(opts) self.boot_protocol = opts[:boot_protocol] self.ip = opts[:ip] self.name = opts[:name] self.on_boot = opts[:on_boot] end |
Instance Method Details
- (BootProtocol) boot_protocol
Returns the value of the boot_protocol
attribute.
8027 8028 8029 |
# File 'lib/ovirtsdk4/types.rb', line 8027 def boot_protocol return @boot_protocol end |
- (Object) boot_protocol=(value)
Sets the value of the boot_protocol
attribute.
8036 8037 8038 |
# File 'lib/ovirtsdk4/types.rb', line 8036 def boot_protocol=(value) @boot_protocol = value end |
- (Ip) ip
Returns the value of the ip
attribute.
8045 8046 8047 |
# File 'lib/ovirtsdk4/types.rb', line 8045 def ip return @ip end |
- (Object) ip=(value)
Sets the value of the ip
attribute.
The value
parameter can be an instance of Ip 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.
8058 8059 8060 8061 8062 8063 |
# File 'lib/ovirtsdk4/types.rb', line 8058 def ip=(value) if value.is_a?(Hash) value = Ip.new(value) end @ip = value end |
- (String) name
Returns the value of the name
attribute.
8070 8071 8072 |
# File 'lib/ovirtsdk4/types.rb', line 8070 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
8079 8080 8081 |
# File 'lib/ovirtsdk4/types.rb', line 8079 def name=(value) @name = value end |
- (Boolean) on_boot
Returns the value of the on_boot
attribute.
8088 8089 8090 |
# File 'lib/ovirtsdk4/types.rb', line 8088 def on_boot return @on_boot end |
- (Object) on_boot=(value)
Sets the value of the on_boot
attribute.
8097 8098 8099 |
# File 'lib/ovirtsdk4/types.rb', line 8097 def on_boot=(value) @on_boot = value end |