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.
50959 50960 50961 50962 50963 50964 50965 50966 |
# File 'lib/ovirtsdk4/types.rb', line 50959 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.
50971 50972 50973 50974 50975 50976 50977 50978 |
# File 'lib/ovirtsdk4/types.rb', line 50971 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.
50608 50609 50610 |
# File 'lib/ovirtsdk4/types.rb', line 50608 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
50617 50618 50619 |
# File 'lib/ovirtsdk4/types.rb', line 50617 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
50626 50627 50628 |
# File 'lib/ovirtsdk4/types.rb', line 50626 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
50635 50636 50637 50638 50639 50640 50641 50642 50643 50644 50645 |
# File 'lib/ovirtsdk4/types.rb', line 50635 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.
50652 50653 50654 |
# File 'lib/ovirtsdk4/types.rb', line 50652 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
50661 50662 50663 |
# File 'lib/ovirtsdk4/types.rb', line 50661 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources
attribute.
50670 50671 50672 |
# File 'lib/ovirtsdk4/types.rb', line 50670 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources
attribute.
50679 50680 50681 50682 50683 50684 50685 50686 50687 50688 50689 |
# File 'lib/ovirtsdk4/types.rb', line 50679 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.
50696 50697 50698 |
# File 'lib/ovirtsdk4/types.rb', line 50696 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
50705 50706 50707 |
# File 'lib/ovirtsdk4/types.rb', line 50705 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts
attribute.
50714 50715 50716 |
# File 'lib/ovirtsdk4/types.rb', line 50714 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts
attribute.
50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 |
# File 'lib/ovirtsdk4/types.rb', line 50723 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.
50983 50984 50985 50986 50987 50988 50989 50990 |
# File 'lib/ovirtsdk4/types.rb', line 50983 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.
50740 50741 50742 |
# File 'lib/ovirtsdk4/types.rb', line 50740 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups
attribute.
50749 50750 50751 50752 50753 50754 50755 50756 50757 50758 50759 |
# File 'lib/ovirtsdk4/types.rb', line 50749 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.
50766 50767 50768 |
# File 'lib/ovirtsdk4/types.rb', line 50766 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts
attribute.
50775 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 |
# File 'lib/ovirtsdk4/types.rb', line 50775 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.
50792 50793 50794 |
# File 'lib/ovirtsdk4/types.rb', line 50792 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
50801 50802 50803 |
# File 'lib/ovirtsdk4/types.rb', line 50801 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
50810 50811 50812 |
# File 'lib/ovirtsdk4/types.rb', line 50810 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
50819 50820 50821 |
# File 'lib/ovirtsdk4/types.rb', line 50819 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
50828 50829 50830 |
# File 'lib/ovirtsdk4/types.rb', line 50828 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
50837 50838 50839 |
# File 'lib/ovirtsdk4/types.rb', line 50837 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
50846 50847 50848 |
# File 'lib/ovirtsdk4/types.rb', line 50846 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
50855 50856 50857 50858 50859 50860 50861 50862 50863 50864 50865 |
# File 'lib/ovirtsdk4/types.rb', line 50855 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.
50872 50873 50874 |
# File 'lib/ovirtsdk4/types.rb', line 50872 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
50881 50882 50883 |
# File 'lib/ovirtsdk4/types.rb', line 50881 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
50890 50891 50892 |
# File 'lib/ovirtsdk4/types.rb', line 50890 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
50899 50900 50901 |
# File 'lib/ovirtsdk4/types.rb', line 50899 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
50908 50909 50910 |
# File 'lib/ovirtsdk4/types.rb', line 50908 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
50917 50918 50919 |
# File 'lib/ovirtsdk4/types.rb', line 50917 def username=(value) @username = value end |