Class: OvirtSDK4::ExternalHost

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (ExternalHost) initialize(opts = {})

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

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.



29024
29025
29026
29027
29028
29029
29030
29031
29032
# File 'lib/ovirtsdk4/types.rb', line 29024

def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.external_host_provider = opts[:external_host_provider]
  self.id = opts[:id]
  self.name = opts[:name]
end

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


28894
28895
28896
# File 'lib/ovirtsdk4/types.rb', line 28894

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


28903
28904
28905
# File 'lib/ovirtsdk4/types.rb', line 28903

def address=(value)
  @address = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


28912
28913
28914
# File 'lib/ovirtsdk4/types.rb', line 28912

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


28921
28922
28923
# File 'lib/ovirtsdk4/types.rb', line 28921

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


28930
28931
28932
# File 'lib/ovirtsdk4/types.rb', line 28930

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


28939
28940
28941
# File 'lib/ovirtsdk4/types.rb', line 28939

def description=(value)
  @description = value
end

- (ExternalHostProvider) external_host_provider

Returns the value of the external_host_provider attribute.



28948
28949
28950
# File 'lib/ovirtsdk4/types.rb', line 28948

def external_host_provider
  return @external_host_provider
end

- (Object) external_host_provider=(value)

Sets the value of the external_host_provider attribute.

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



28961
28962
28963
28964
28965
28966
# File 'lib/ovirtsdk4/types.rb', line 28961

def external_host_provider=(value)
  if value.is_a?(Hash)
    value = ExternalHostProvider.new(value)
  end
  @external_host_provider = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


28973
28974
28975
# File 'lib/ovirtsdk4/types.rb', line 28973

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


28982
28983
28984
# File 'lib/ovirtsdk4/types.rb', line 28982

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


28991
28992
28993
# File 'lib/ovirtsdk4/types.rb', line 28991

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


29000
29001
29002
# File 'lib/ovirtsdk4/types.rb', line 29000

def name=(value)
  @name = value
end