Class: OvirtSDK4::Ip

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Ip) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Ip 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):

  • :address (String)

    The value of attribute address.

  • :gateway (String)

    The value of attribute gateway.

  • :netmask (String)

    The value of attribute netmask.

  • :version (IpVersion)

    The value of attribute version.



4446
4447
4448
4449
4450
4451
4452
# File 'lib/ovirtsdk4/types.rb', line 4446

def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  self.gateway = opts[:gateway]
  self.netmask = opts[:netmask]
  self.version = opts[:version]
end

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


4363
4364
4365
# File 'lib/ovirtsdk4/types.rb', line 4363

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


4372
4373
4374
# File 'lib/ovirtsdk4/types.rb', line 4372

def address=(value)
  @address = value
end

- (String) gateway

Returns the value of the gateway attribute.

Returns:

  • (String)


4381
4382
4383
# File 'lib/ovirtsdk4/types.rb', line 4381

def gateway
  return @gateway
end

- (Object) gateway=(value)

Sets the value of the gateway attribute.

Parameters:

  • value (String)


4390
4391
4392
# File 'lib/ovirtsdk4/types.rb', line 4390

def gateway=(value)
  @gateway = value
end

- (String) netmask

Returns the value of the netmask attribute.

Returns:

  • (String)


4399
4400
4401
# File 'lib/ovirtsdk4/types.rb', line 4399

def netmask
  return @netmask
end

- (Object) netmask=(value)

Sets the value of the netmask attribute.

Parameters:

  • value (String)


4408
4409
4410
# File 'lib/ovirtsdk4/types.rb', line 4408

def netmask=(value)
  @netmask = value
end

- (IpVersion) version

Returns the value of the version attribute.

Returns:



4417
4418
4419
# File 'lib/ovirtsdk4/types.rb', line 4417

def version
  return @version
end

- (Object) version=(value)

Sets the value of the version attribute.

Parameters:



4426
4427
4428
# File 'lib/ovirtsdk4/types.rb', line 4426

def version=(value)
  @version = value
end