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
trueifselfandotherhave the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_urlattribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_urlattribute. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificatesattribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificatesattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the
compute_resourcesattribute. -
#compute_resources=(list) ⇒ Object
Sets the value of the
compute_resourcesattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the
discovered_hostsattribute. -
#discovered_hosts=(list) ⇒ Object
Sets the value of the
discovered_hostsattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_groups ⇒ Array<ExternalHostGroup>
Returns the value of the
host_groupsattribute. -
#host_groups=(list) ⇒ Object
Sets the value of the
host_groupsattribute. -
#hosts ⇒ Array<Host>
Returns the value of the
hostsattribute. -
#hosts=(list) ⇒ Object
Sets the value of the
hostsattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ ExternalHostProvider
constructor
Creates a new instance of the ExternalHostProvider class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authenticationattribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authenticationattribute. -
#url ⇒ String
Returns the value of the
urlattribute. -
#url=(value) ⇒ Object
Sets the value of the
urlattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalHostProvider
Creates a new instance of the OvirtSDK4::ExternalHostProvider class.
50166 50167 50168 50169 50170 50171 50172 50173 |
# File 'lib/ovirtsdk4/types.rb', line 50166 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.
50178 50179 50180 50181 50182 50183 50184 50185 |
# File 'lib/ovirtsdk4/types.rb', line 50178 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.
49815 49816 49817 |
# File 'lib/ovirtsdk4/types.rb', line 49815 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
49824 49825 49826 |
# File 'lib/ovirtsdk4/types.rb', line 49824 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates attribute.
49833 49834 49835 |
# File 'lib/ovirtsdk4/types.rb', line 49833 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates attribute.
49842 49843 49844 49845 49846 49847 49848 49849 49850 49851 49852 |
# File 'lib/ovirtsdk4/types.rb', line 49842 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.
49859 49860 49861 |
# File 'lib/ovirtsdk4/types.rb', line 49859 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
49868 49869 49870 |
# File 'lib/ovirtsdk4/types.rb', line 49868 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources attribute.
49877 49878 49879 |
# File 'lib/ovirtsdk4/types.rb', line 49877 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources attribute.
49886 49887 49888 49889 49890 49891 49892 49893 49894 49895 49896 |
# File 'lib/ovirtsdk4/types.rb', line 49886 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.
49903 49904 49905 |
# File 'lib/ovirtsdk4/types.rb', line 49903 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
49912 49913 49914 |
# File 'lib/ovirtsdk4/types.rb', line 49912 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts attribute.
49921 49922 49923 |
# File 'lib/ovirtsdk4/types.rb', line 49921 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts attribute.
49930 49931 49932 49933 49934 49935 49936 49937 49938 49939 49940 |
# File 'lib/ovirtsdk4/types.rb', line 49930 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.
50190 50191 50192 50193 50194 50195 50196 50197 |
# File 'lib/ovirtsdk4/types.rb', line 50190 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.
49947 49948 49949 |
# File 'lib/ovirtsdk4/types.rb', line 49947 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups attribute.
49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 49966 |
# File 'lib/ovirtsdk4/types.rb', line 49956 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.
49973 49974 49975 |
# File 'lib/ovirtsdk4/types.rb', line 49973 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts attribute.
49982 49983 49984 49985 49986 49987 49988 49989 49990 49991 49992 |
# File 'lib/ovirtsdk4/types.rb', line 49982 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.
49999 50000 50001 |
# File 'lib/ovirtsdk4/types.rb', line 49999 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
50008 50009 50010 |
# File 'lib/ovirtsdk4/types.rb', line 50008 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
50017 50018 50019 |
# File 'lib/ovirtsdk4/types.rb', line 50017 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
50026 50027 50028 |
# File 'lib/ovirtsdk4/types.rb', line 50026 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
50035 50036 50037 |
# File 'lib/ovirtsdk4/types.rb', line 50035 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
50044 50045 50046 |
# File 'lib/ovirtsdk4/types.rb', line 50044 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
50053 50054 50055 |
# File 'lib/ovirtsdk4/types.rb', line 50053 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
50062 50063 50064 50065 50066 50067 50068 50069 50070 50071 50072 |
# File 'lib/ovirtsdk4/types.rb', line 50062 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.
50079 50080 50081 |
# File 'lib/ovirtsdk4/types.rb', line 50079 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
50088 50089 50090 |
# File 'lib/ovirtsdk4/types.rb', line 50088 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url attribute.
50097 50098 50099 |
# File 'lib/ovirtsdk4/types.rb', line 50097 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
50106 50107 50108 |
# File 'lib/ovirtsdk4/types.rb', line 50106 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
50115 50116 50117 |
# File 'lib/ovirtsdk4/types.rb', line 50115 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
50124 50125 50126 |
# File 'lib/ovirtsdk4/types.rb', line 50124 def username=(value) @username = value end |