Class: OvirtSDK4::ExternalDiscoveredHost

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

- (ExternalDiscoveredHost) initialize(opts = {})

Creates a new instance of the OvirtSDK4::ExternalDiscoveredHost 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_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :id (String)

    The value of attribute id.

  • :ip (String)

    The value of attribute ip.

  • :last_report (String)

    The value of attribute last_report.

  • :mac (String)

    The value of attribute mac.

  • :name (String)

    The value of attribute name.

  • :subnet_name (String)

    The value of attribute subnet_name.



28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
# File 'lib/ovirtsdk4/types.rb', line 28872

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


28682
28683
28684
# File 'lib/ovirtsdk4/types.rb', line 28682

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


28691
28692
28693
# File 'lib/ovirtsdk4/types.rb', line 28691

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


28700
28701
28702
# File 'lib/ovirtsdk4/types.rb', line 28700

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


28709
28710
28711
# File 'lib/ovirtsdk4/types.rb', line 28709

def description=(value)
  @description = value
end

- (ExternalHostProvider) external_host_provider

Returns the value of the external_host_provider attribute.



28718
28719
28720
# File 'lib/ovirtsdk4/types.rb', line 28718

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:



28731
28732
28733
28734
28735
28736
# File 'lib/ovirtsdk4/types.rb', line 28731

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)


28743
28744
28745
# File 'lib/ovirtsdk4/types.rb', line 28743

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


28752
28753
28754
# File 'lib/ovirtsdk4/types.rb', line 28752

def id=(value)
  @id = value
end

- (String) ip

Returns the value of the ip attribute.

Returns:

  • (String)


28761
28762
28763
# File 'lib/ovirtsdk4/types.rb', line 28761

def ip
  return @ip
end

- (Object) ip=(value)

Sets the value of the ip attribute.

Parameters:

  • value (String)


28770
28771
28772
# File 'lib/ovirtsdk4/types.rb', line 28770

def ip=(value)
  @ip = value
end

- (String) last_report

Returns the value of the last_report attribute.

Returns:

  • (String)


28779
28780
28781
# File 'lib/ovirtsdk4/types.rb', line 28779

def last_report
  return @last_report
end

- (Object) last_report=(value)

Sets the value of the last_report attribute.

Parameters:

  • value (String)


28788
28789
28790
# File 'lib/ovirtsdk4/types.rb', line 28788

def last_report=(value)
  @last_report = value
end

- (String) mac

Returns the value of the mac attribute.

Returns:

  • (String)


28797
28798
28799
# File 'lib/ovirtsdk4/types.rb', line 28797

def mac
  return @mac
end

- (Object) mac=(value)

Sets the value of the mac attribute.

Parameters:

  • value (String)


28806
28807
28808
# File 'lib/ovirtsdk4/types.rb', line 28806

def mac=(value)
  @mac = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


28815
28816
28817
# File 'lib/ovirtsdk4/types.rb', line 28815

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


28824
28825
28826
# File 'lib/ovirtsdk4/types.rb', line 28824

def name=(value)
  @name = value
end

- (String) subnet_name

Returns the value of the subnet_name attribute.

Returns:

  • (String)


28833
28834
28835
# File 'lib/ovirtsdk4/types.rb', line 28833

def subnet_name
  return @subnet_name
end

- (Object) subnet_name=(value)

Sets the value of the subnet_name attribute.

Parameters:

  • value (String)


28842
28843
28844
# File 'lib/ovirtsdk4/types.rb', line 28842

def subnet_name=(value)
  @subnet_name = value
end