Class: OvirtSDK4::ExternalHostProvider
- Inherits:
-
ExternalProvider
- Object
- Struct
- Identified
- ExternalProvider
- OvirtSDK4::ExternalHostProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) authentication_url
Returns the value of the
authentication_url
attribute. -
- (Object) authentication_url=(value)
Sets the value of the
authentication_url
attribute. -
- (Array<Certificate>) certificates
Returns the value of the
certificates
attribute. -
- (Object) certificates=(list)
Sets the value of the
certificates
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Array<ExternalComputeResource>) compute_resources
Returns the value of the
compute_resources
attribute. -
- (Object) compute_resources=(list)
Sets the value of the
compute_resources
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Array<ExternalDiscoveredHost>) discovered_hosts
Returns the value of the
discovered_hosts
attribute. -
- (Object) discovered_hosts=(list)
Sets the value of the
discovered_hosts
attribute. -
- (Array<ExternalHostGroup>) host_groups
Returns the value of the
host_groups
attribute. -
- (Object) host_groups=(list)
Sets the value of the
host_groups
attribute. -
- (Array<Host>) hosts
Returns the value of the
hosts
attribute. -
- (Object) hosts=(list)
Sets the value of the
hosts
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (ExternalHostProvider) initialize(opts = {})
constructor
Creates a new instance of the ExternalHostProvider class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) password
Returns the value of the
password
attribute. -
- (Object) password=(value)
Sets the value of the
password
attribute. -
- (Array<Property>) properties
Returns the value of the
properties
attribute. -
- (Object) properties=(list)
Sets the value of the
properties
attribute. -
- (Boolean) requires_authentication
Returns the value of the
requires_authentication
attribute. -
- (Object) requires_authentication=(value)
Sets the value of the
requires_authentication
attribute. -
- (String) url
Returns the value of the
url
attribute. -
- (Object) url=(value)
Sets the value of the
url
attribute. -
- (String) username
Returns the value of the
username
attribute. -
- (Object) username=(value)
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
- (ExternalHostProvider) initialize(opts = {})
Creates a new instance of the OvirtSDK4::ExternalHostProvider class.
40779 40780 40781 40782 40783 40784 40785 40786 40787 40788 40789 40790 40791 40792 40793 40794 40795 40796 |
# File 'lib/ovirtsdk4/types.rb', line 40779 def initialize(opts = {}) super(opts) self.authentication_url = opts[:authentication_url] self.certificates = opts[:certificates] self.comment = opts[:comment] self.compute_resources = opts[:compute_resources] self.description = opts[:description] self.discovered_hosts = opts[:discovered_hosts] self.host_groups = opts[:host_groups] self.hosts = opts[:hosts] self.id = opts[:id] self.name = opts[:name] self.password = opts[:password] self.properties = opts[:properties] self.requires_authentication = opts[:requires_authentication] self.url = opts[:url] self.username = opts[:username] end |
Instance Method Details
- (String) authentication_url
Returns the value of the authentication_url
attribute.
40434 40435 40436 |
# File 'lib/ovirtsdk4/types.rb', line 40434 def authentication_url return @authentication_url end |
- (Object) authentication_url=(value)
Sets the value of the authentication_url
attribute.
40443 40444 40445 |
# File 'lib/ovirtsdk4/types.rb', line 40443 def authentication_url=(value) @authentication_url = value end |
- (Array<Certificate>) certificates
Returns the value of the certificates
attribute.
40452 40453 40454 |
# File 'lib/ovirtsdk4/types.rb', line 40452 def certificates return @certificates end |
- (Object) certificates=(list)
Sets the value of the certificates
attribute.
40460 40461 40462 40463 40464 40465 40466 40467 40468 40469 40470 |
# File 'lib/ovirtsdk4/types.rb', line 40460 def certificates=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Certificate.new(value) end end end @certificates = list end |
- (String) comment
Returns the value of the comment
attribute.
40477 40478 40479 |
# File 'lib/ovirtsdk4/types.rb', line 40477 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
40486 40487 40488 |
# File 'lib/ovirtsdk4/types.rb', line 40486 def comment=(value) @comment = value end |
- (Array<ExternalComputeResource>) compute_resources
Returns the value of the compute_resources
attribute.
40495 40496 40497 |
# File 'lib/ovirtsdk4/types.rb', line 40495 def compute_resources return @compute_resources end |
- (Object) compute_resources=(list)
Sets the value of the compute_resources
attribute.
40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 |
# File 'lib/ovirtsdk4/types.rb', line 40503 def compute_resources=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalComputeResource.new(value) end end end @compute_resources = list end |
- (String) description
Returns the value of the description
attribute.
40520 40521 40522 |
# File 'lib/ovirtsdk4/types.rb', line 40520 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
40529 40530 40531 |
# File 'lib/ovirtsdk4/types.rb', line 40529 def description=(value) @description = value end |
- (Array<ExternalDiscoveredHost>) discovered_hosts
Returns the value of the discovered_hosts
attribute.
40538 40539 40540 |
# File 'lib/ovirtsdk4/types.rb', line 40538 def discovered_hosts return @discovered_hosts end |
- (Object) discovered_hosts=(list)
Sets the value of the discovered_hosts
attribute.
40546 40547 40548 40549 40550 40551 40552 40553 40554 40555 40556 |
# File 'lib/ovirtsdk4/types.rb', line 40546 def discovered_hosts=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalDiscoveredHost.new(value) end end end @discovered_hosts = list end |
- (Array<ExternalHostGroup>) host_groups
Returns the value of the host_groups
attribute.
40563 40564 40565 |
# File 'lib/ovirtsdk4/types.rb', line 40563 def host_groups return @host_groups end |
- (Object) host_groups=(list)
Sets the value of the host_groups
attribute.
40571 40572 40573 40574 40575 40576 40577 40578 40579 40580 40581 |
# File 'lib/ovirtsdk4/types.rb', line 40571 def host_groups=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalHostGroup.new(value) end end end @host_groups = list end |
- (Array<Host>) hosts
Returns the value of the hosts
attribute.
40588 40589 40590 |
# File 'lib/ovirtsdk4/types.rb', line 40588 def hosts return @hosts end |
- (Object) hosts=(list)
Sets the value of the hosts
attribute.
40596 40597 40598 40599 40600 40601 40602 40603 40604 40605 40606 |
# File 'lib/ovirtsdk4/types.rb', line 40596 def hosts=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Host.new(value) end end end @hosts = list end |
- (String) id
Returns the value of the id
attribute.
40613 40614 40615 |
# File 'lib/ovirtsdk4/types.rb', line 40613 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
40622 40623 40624 |
# File 'lib/ovirtsdk4/types.rb', line 40622 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
40631 40632 40633 |
# File 'lib/ovirtsdk4/types.rb', line 40631 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
40640 40641 40642 |
# File 'lib/ovirtsdk4/types.rb', line 40640 def name=(value) @name = value end |
- (String) password
Returns the value of the password
attribute.
40649 40650 40651 |
# File 'lib/ovirtsdk4/types.rb', line 40649 def password return @password end |
- (Object) password=(value)
Sets the value of the password
attribute.
40658 40659 40660 |
# File 'lib/ovirtsdk4/types.rb', line 40658 def password=(value) @password = value end |
- (Array<Property>) properties
Returns the value of the properties
attribute.
40667 40668 40669 |
# File 'lib/ovirtsdk4/types.rb', line 40667 def properties return @properties end |
- (Object) properties=(list)
Sets the value of the properties
attribute.
40675 40676 40677 40678 40679 40680 40681 40682 40683 40684 40685 |
# File 'lib/ovirtsdk4/types.rb', line 40675 def properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @properties = list end |
- (Boolean) requires_authentication
Returns the value of the requires_authentication
attribute.
40692 40693 40694 |
# File 'lib/ovirtsdk4/types.rb', line 40692 def requires_authentication return @requires_authentication end |
- (Object) requires_authentication=(value)
Sets the value of the requires_authentication
attribute.
40701 40702 40703 |
# File 'lib/ovirtsdk4/types.rb', line 40701 def requires_authentication=(value) @requires_authentication = value end |
- (String) url
Returns the value of the url
attribute.
40710 40711 40712 |
# File 'lib/ovirtsdk4/types.rb', line 40710 def url return @url end |
- (Object) url=(value)
Sets the value of the url
attribute.
40719 40720 40721 |
# File 'lib/ovirtsdk4/types.rb', line 40719 def url=(value) @url = value end |
- (String) username
Returns the value of the username
attribute.
40728 40729 40730 |
# File 'lib/ovirtsdk4/types.rb', line 40728 def username return @username end |
- (Object) username=(value)
Sets the value of the username
attribute.
40737 40738 40739 |
# File 'lib/ovirtsdk4/types.rb', line 40737 def username=(value) @username = value end |