Class: OvirtSDK4::ExternalDiscoveredHost
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ExternalDiscoveredHost
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (ExternalHostProvider) external_host_provider
Returns the value of the
external_host_provider
attribute. -
- (Object) external_host_provider=(value)
Sets the value of the
external_host_provider
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (ExternalDiscoveredHost) initialize(opts = {})
constructor
Creates a new instance of the ExternalDiscoveredHost class.
-
- (String) ip
Returns the value of the
ip
attribute. -
- (Object) ip=(value)
Sets the value of the
ip
attribute. -
- (String) last_report
Returns the value of the
last_report
attribute. -
- (Object) last_report=(value)
Sets the value of the
last_report
attribute. -
- (String) mac
Returns the value of the
mac
attribute. -
- (Object) mac=(value)
Sets the value of the
mac
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) subnet_name
Returns the value of the
subnet_name
attribute. -
- (Object) subnet_name=(value)
Sets the value of the
subnet_name
attribute.
Methods included from Type
Constructor Details
- (ExternalDiscoveredHost) initialize(opts = {})
Creates a new instance of the OvirtSDK4::ExternalDiscoveredHost class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
28842 28843 28844 |
# File 'lib/ovirtsdk4/types.rb', line 28842 def subnet_name=(value) @subnet_name = value end |