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
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificates
attribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificates
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the
compute_resources
attribute. -
#compute_resources=(list) ⇒ Object
Sets the value of the
compute_resources
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the
discovered_hosts
attribute. -
#discovered_hosts=(list) ⇒ Object
Sets the value of the
discovered_hosts
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_groups ⇒ Array<ExternalHostGroup>
Returns the value of the
host_groups
attribute. -
#host_groups=(list) ⇒ Object
Sets the value of the
host_groups
attribute. -
#hosts ⇒ Array<Host>
Returns the value of the
hosts
attribute. -
#hosts=(list) ⇒ Object
Sets the value of the
hosts
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ ExternalHostProvider
constructor
Creates a new instance of the ExternalHostProvider class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authentication
attribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authentication
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalHostProvider
Creates a new instance of the OvirtSDK4::ExternalHostProvider class.
49884 49885 49886 49887 49888 49889 49890 49891 |
# File 'lib/ovirtsdk4/types.rb', line 49884 def initialize(opts = {}) super(opts) self.certificates = opts[:certificates] self.compute_resources = opts[:compute_resources] self.discovered_hosts = opts[:discovered_hosts] self.host_groups = opts[:host_groups] self.hosts = opts[:hosts] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
49896 49897 49898 49899 49900 49901 49902 49903 |
# File 'lib/ovirtsdk4/types.rb', line 49896 def ==(other) super && @certificates == other.certificates && @compute_resources == other.compute_resources && @discovered_hosts == other.discovered_hosts && @host_groups == other.host_groups && @hosts == other.hosts end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
49533 49534 49535 |
# File 'lib/ovirtsdk4/types.rb', line 49533 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
49542 49543 49544 |
# File 'lib/ovirtsdk4/types.rb', line 49542 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
49551 49552 49553 |
# File 'lib/ovirtsdk4/types.rb', line 49551 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
49560 49561 49562 49563 49564 49565 49566 49567 49568 49569 49570 |
# File 'lib/ovirtsdk4/types.rb', line 49560 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 |
#comment ⇒ String
Returns the value of the comment
attribute.
49577 49578 49579 |
# File 'lib/ovirtsdk4/types.rb', line 49577 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
49586 49587 49588 |
# File 'lib/ovirtsdk4/types.rb', line 49586 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources
attribute.
49595 49596 49597 |
# File 'lib/ovirtsdk4/types.rb', line 49595 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources
attribute.
49604 49605 49606 49607 49608 49609 49610 49611 49612 49613 49614 |
# File 'lib/ovirtsdk4/types.rb', line 49604 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 |
#description ⇒ String
Returns the value of the description
attribute.
49621 49622 49623 |
# File 'lib/ovirtsdk4/types.rb', line 49621 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
49630 49631 49632 |
# File 'lib/ovirtsdk4/types.rb', line 49630 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts
attribute.
49639 49640 49641 |
# File 'lib/ovirtsdk4/types.rb', line 49639 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts
attribute.
49648 49649 49650 49651 49652 49653 49654 49655 49656 49657 49658 |
# File 'lib/ovirtsdk4/types.rb', line 49648 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 |
#hash ⇒ Object
Generates a hash value for this object.
49908 49909 49910 49911 49912 49913 49914 49915 |
# File 'lib/ovirtsdk4/types.rb', line 49908 def hash super + @certificates.hash + @compute_resources.hash + @discovered_hosts.hash + @host_groups.hash + @hosts.hash end |
#host_groups ⇒ Array<ExternalHostGroup>
Returns the value of the host_groups
attribute.
49665 49666 49667 |
# File 'lib/ovirtsdk4/types.rb', line 49665 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups
attribute.
49674 49675 49676 49677 49678 49679 49680 49681 49682 49683 49684 |
# File 'lib/ovirtsdk4/types.rb', line 49674 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 |
#hosts ⇒ Array<Host>
Returns the value of the hosts
attribute.
49691 49692 49693 |
# File 'lib/ovirtsdk4/types.rb', line 49691 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts
attribute.
49700 49701 49702 49703 49704 49705 49706 49707 49708 49709 49710 |
# File 'lib/ovirtsdk4/types.rb', line 49700 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 |
#id ⇒ String
Returns the value of the id
attribute.
49717 49718 49719 |
# File 'lib/ovirtsdk4/types.rb', line 49717 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
49726 49727 49728 |
# File 'lib/ovirtsdk4/types.rb', line 49726 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
49735 49736 49737 |
# File 'lib/ovirtsdk4/types.rb', line 49735 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
49744 49745 49746 |
# File 'lib/ovirtsdk4/types.rb', line 49744 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
49753 49754 49755 |
# File 'lib/ovirtsdk4/types.rb', line 49753 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
49762 49763 49764 |
# File 'lib/ovirtsdk4/types.rb', line 49762 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
49771 49772 49773 |
# File 'lib/ovirtsdk4/types.rb', line 49771 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
49780 49781 49782 49783 49784 49785 49786 49787 49788 49789 49790 |
# File 'lib/ovirtsdk4/types.rb', line 49780 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 |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
49797 49798 49799 |
# File 'lib/ovirtsdk4/types.rb', line 49797 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
49806 49807 49808 |
# File 'lib/ovirtsdk4/types.rb', line 49806 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
49815 49816 49817 |
# File 'lib/ovirtsdk4/types.rb', line 49815 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
49824 49825 49826 |
# File 'lib/ovirtsdk4/types.rb', line 49824 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
49833 49834 49835 |
# File 'lib/ovirtsdk4/types.rb', line 49833 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
49842 49843 49844 |
# File 'lib/ovirtsdk4/types.rb', line 49842 def username=(value) @username = value end |