Class: OvirtSDK4::ExternalNetworkProviderConfiguration

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ ExternalNetworkProviderConfiguration

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

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :external_network_provider (ExternalProvider, Hash)

    The value of attribute external_network_provider.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.


38991
38992
38993
38994
38995
# File 'lib/ovirtsdk4/types.rb', line 38991

def initialize(opts = {})
  super(opts)
  self.external_network_provider = opts[:external_network_provider]
  self.host = opts[:host]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


39000
39001
39002
39003
39004
# File 'lib/ovirtsdk4/types.rb', line 39000

def ==(other)
  super &&
  @external_network_provider == other.external_network_provider &&
  @host == other.host
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

38854
38855
38856
# File 'lib/ovirtsdk4/types.rb', line 38854

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

38863
38864
38865
# File 'lib/ovirtsdk4/types.rb', line 38863

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

38872
38873
38874
# File 'lib/ovirtsdk4/types.rb', line 38872

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

38881
38882
38883
# File 'lib/ovirtsdk4/types.rb', line 38881

def description=(value)
  @description = value
end

#external_network_providerExternalProvider

Returns the value of the external_network_provider attribute.

Returns:


38890
38891
38892
# File 'lib/ovirtsdk4/types.rb', line 38890

def external_network_provider
  @external_network_provider
end

#external_network_provider=(value) ⇒ Object

Sets the value of the external_network_provider attribute.

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


38903
38904
38905
38906
38907
38908
# File 'lib/ovirtsdk4/types.rb', line 38903

def external_network_provider=(value)
  if value.is_a?(Hash)
    value = ExternalProvider.new(value)
  end
  @external_network_provider = value
end

#hashObject

Generates a hash value for this object.


39009
39010
39011
39012
39013
# File 'lib/ovirtsdk4/types.rb', line 39009

def hash
  super +
  @external_network_provider.hash +
  @host.hash
end

#hostHost

Returns the value of the host attribute.

Returns:


38915
38916
38917
# File 'lib/ovirtsdk4/types.rb', line 38915

def host
  @host
end

#host=(value) ⇒ Object

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.

Parameters:

  • value (Host, Hash)

38928
38929
38930
38931
38932
38933
# File 'lib/ovirtsdk4/types.rb', line 38928

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

38940
38941
38942
# File 'lib/ovirtsdk4/types.rb', line 38940

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

38949
38950
38951
# File 'lib/ovirtsdk4/types.rb', line 38949

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

38958
38959
38960
# File 'lib/ovirtsdk4/types.rb', line 38958

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

38967
38968
38969
# File 'lib/ovirtsdk4/types.rb', line 38967

def name=(value)
  @name = value
end