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.
54316 54317 54318 54319 54320 54321 54322 54323 |
# File 'lib/ovirtsdk4/types.rb', line 54316 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.
54328 54329 54330 54331 54332 54333 54334 54335 |
# File 'lib/ovirtsdk4/types.rb', line 54328 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.
53965 53966 53967 |
# File 'lib/ovirtsdk4/types.rb', line 53965 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
53974 53975 53976 |
# File 'lib/ovirtsdk4/types.rb', line 53974 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
53983 53984 53985 |
# File 'lib/ovirtsdk4/types.rb', line 53983 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
53992 53993 53994 53995 53996 53997 53998 53999 54000 54001 54002 |
# File 'lib/ovirtsdk4/types.rb', line 53992 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.
54009 54010 54011 |
# File 'lib/ovirtsdk4/types.rb', line 54009 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
54018 54019 54020 |
# File 'lib/ovirtsdk4/types.rb', line 54018 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources
attribute.
54027 54028 54029 |
# File 'lib/ovirtsdk4/types.rb', line 54027 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources
attribute.
54036 54037 54038 54039 54040 54041 54042 54043 54044 54045 54046 |
# File 'lib/ovirtsdk4/types.rb', line 54036 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.
54053 54054 54055 |
# File 'lib/ovirtsdk4/types.rb', line 54053 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
54062 54063 54064 |
# File 'lib/ovirtsdk4/types.rb', line 54062 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts
attribute.
54071 54072 54073 |
# File 'lib/ovirtsdk4/types.rb', line 54071 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts
attribute.
54080 54081 54082 54083 54084 54085 54086 54087 54088 54089 54090 |
# File 'lib/ovirtsdk4/types.rb', line 54080 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.
54340 54341 54342 54343 54344 54345 54346 54347 |
# File 'lib/ovirtsdk4/types.rb', line 54340 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.
54097 54098 54099 |
# File 'lib/ovirtsdk4/types.rb', line 54097 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups
attribute.
54106 54107 54108 54109 54110 54111 54112 54113 54114 54115 54116 |
# File 'lib/ovirtsdk4/types.rb', line 54106 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.
54123 54124 54125 |
# File 'lib/ovirtsdk4/types.rb', line 54123 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts
attribute.
54132 54133 54134 54135 54136 54137 54138 54139 54140 54141 54142 |
# File 'lib/ovirtsdk4/types.rb', line 54132 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.
54149 54150 54151 |
# File 'lib/ovirtsdk4/types.rb', line 54149 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
54158 54159 54160 |
# File 'lib/ovirtsdk4/types.rb', line 54158 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
54167 54168 54169 |
# File 'lib/ovirtsdk4/types.rb', line 54167 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
54176 54177 54178 |
# File 'lib/ovirtsdk4/types.rb', line 54176 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
54185 54186 54187 |
# File 'lib/ovirtsdk4/types.rb', line 54185 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
54194 54195 54196 |
# File 'lib/ovirtsdk4/types.rb', line 54194 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
54203 54204 54205 |
# File 'lib/ovirtsdk4/types.rb', line 54203 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 |
# File 'lib/ovirtsdk4/types.rb', line 54212 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.
54229 54230 54231 |
# File 'lib/ovirtsdk4/types.rb', line 54229 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
54238 54239 54240 |
# File 'lib/ovirtsdk4/types.rb', line 54238 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
54247 54248 54249 |
# File 'lib/ovirtsdk4/types.rb', line 54247 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
54256 54257 54258 |
# File 'lib/ovirtsdk4/types.rb', line 54256 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
54265 54266 54267 |
# File 'lib/ovirtsdk4/types.rb', line 54265 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
54274 54275 54276 |
# File 'lib/ovirtsdk4/types.rb', line 54274 def username=(value) @username = value end |