Class: OvirtSDK4::ExternalComputeResource
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ExternalComputeResource
- 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. -
- (ExternalComputeResource) initialize(opts = {})
constructor
Creates a new instance of the ExternalComputeResource class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) provider
Returns the value of the
provider
attribute. -
- (Object) provider=(value)
Sets the value of the
provider
attribute. -
- (String) url
Returns the value of the
url
attribute. -
- (Object) url=(value)
Sets the value of the
url
attribute. -
- (String) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute.
Methods included from Type
Constructor Details
- (ExternalComputeResource) initialize(opts = {})
Creates a new instance of the OvirtSDK4::ExternalComputeResource class.
28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 |
# File 'lib/ovirtsdk4/types.rb', line 28661 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.name = opts[:name] self.provider = opts[:provider] self.url = opts[:url] self.user = opts[:user] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
28491 28492 28493 |
# File 'lib/ovirtsdk4/types.rb', line 28491 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
28500 28501 28502 |
# File 'lib/ovirtsdk4/types.rb', line 28500 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
28509 28510 28511 |
# File 'lib/ovirtsdk4/types.rb', line 28509 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
28518 28519 28520 |
# File 'lib/ovirtsdk4/types.rb', line 28518 def description=(value) @description = value end |
- (ExternalHostProvider) external_host_provider
Returns the value of the external_host_provider
attribute.
28527 28528 28529 |
# File 'lib/ovirtsdk4/types.rb', line 28527 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.
28540 28541 28542 28543 28544 28545 |
# File 'lib/ovirtsdk4/types.rb', line 28540 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.
28552 28553 28554 |
# File 'lib/ovirtsdk4/types.rb', line 28552 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
28561 28562 28563 |
# File 'lib/ovirtsdk4/types.rb', line 28561 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
28570 28571 28572 |
# File 'lib/ovirtsdk4/types.rb', line 28570 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
28579 28580 28581 |
# File 'lib/ovirtsdk4/types.rb', line 28579 def name=(value) @name = value end |
- (String) provider
Returns the value of the provider
attribute.
28588 28589 28590 |
# File 'lib/ovirtsdk4/types.rb', line 28588 def provider return @provider end |
- (Object) provider=(value)
Sets the value of the provider
attribute.
28597 28598 28599 |
# File 'lib/ovirtsdk4/types.rb', line 28597 def provider=(value) @provider = value end |
- (String) url
Returns the value of the url
attribute.
28606 28607 28608 |
# File 'lib/ovirtsdk4/types.rb', line 28606 def url return @url end |
- (Object) url=(value)
Sets the value of the url
attribute.
28615 28616 28617 |
# File 'lib/ovirtsdk4/types.rb', line 28615 def url=(value) @url = value end |
- (String) user
Returns the value of the user
attribute.
28624 28625 28626 |
# File 'lib/ovirtsdk4/types.rb', line 28624 def user return @user end |
- (Object) user=(value)
Sets the value of the user
attribute.
28633 28634 28635 |
# File 'lib/ovirtsdk4/types.rb', line 28633 def user=(value) @user = value end |