Class: OvirtSDK4::NicConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (NicConfiguration) initialize(opts = {})

Creates a new instance of the OvirtSDK4::NicConfiguration class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :boot_protocol (BootProtocol)

    The value of attribute boot_protocol.

  • :ip (Ip, Hash)

    The value of attribute ip.

  • :name (String)

    The value of attribute name.

  • :on_boot (Boolean)

    The value of attribute on_boot.



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (Ip, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


8097
8098
8099
# File 'lib/ovirtsdk4/types.rb', line 8097

def on_boot=(value)
  @on_boot = value
end