class OvirtSDK4::IpAddressAssignment

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {IpAddressAssignment} class.

@param opts [Hash] 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.

@option opts [BootProtocol] :assignment_method The value of attribute `assignment_method`.

@option opts [Ip, Hash] :ip The value of attribute `ip`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 4882
def initialize(opts = {})
  super(opts)
  self.assignment_method = opts[:assignment_method]
  self.ip = opts[:ip]
end

Public Instance Methods

assignment_method() click to toggle source

Returns the value of the `assignment_method` attribute.

@return [BootProtocol]

# File lib/ovirtsdk4/types.rb, line 4832
def assignment_method
  return @assignment_method
end
assignment_method=(value) click to toggle source

Sets the value of the `assignment_method` attribute.

@param value [BootProtocol]

# File lib/ovirtsdk4/types.rb, line 4841
def assignment_method=(value)
  @assignment_method = value
end
ip() click to toggle source

Returns the value of the `ip` attribute.

@return [Ip]

# File lib/ovirtsdk4/types.rb, line 4850
def ip
  return @ip
end
ip=(value) click to toggle source

Sets the value of the `ip` attribute.

@param value [Ip, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 4863
def ip=(value)
  if value.is_a?(Hash)
    value = Ip.new(value)
  end
  @ip = value
end