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.
52649 52650 52651 52652 52653 52654 52655 52656 |
# File 'lib/ovirtsdk4/types.rb', line 52649 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.
52661 52662 52663 52664 52665 52666 52667 52668 |
# File 'lib/ovirtsdk4/types.rb', line 52661 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.
52298 52299 52300 |
# File 'lib/ovirtsdk4/types.rb', line 52298 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
52307 52308 52309 |
# File 'lib/ovirtsdk4/types.rb', line 52307 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
52316 52317 52318 |
# File 'lib/ovirtsdk4/types.rb', line 52316 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
52325 52326 52327 52328 52329 52330 52331 52332 52333 52334 52335 |
# File 'lib/ovirtsdk4/types.rb', line 52325 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.
52342 52343 52344 |
# File 'lib/ovirtsdk4/types.rb', line 52342 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
52351 52352 52353 |
# File 'lib/ovirtsdk4/types.rb', line 52351 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources
attribute.
52360 52361 52362 |
# File 'lib/ovirtsdk4/types.rb', line 52360 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources
attribute.
52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 |
# File 'lib/ovirtsdk4/types.rb', line 52369 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.
52386 52387 52388 |
# File 'lib/ovirtsdk4/types.rb', line 52386 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
52395 52396 52397 |
# File 'lib/ovirtsdk4/types.rb', line 52395 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts
attribute.
52404 52405 52406 |
# File 'lib/ovirtsdk4/types.rb', line 52404 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts
attribute.
52413 52414 52415 52416 52417 52418 52419 52420 52421 52422 52423 |
# File 'lib/ovirtsdk4/types.rb', line 52413 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.
52673 52674 52675 52676 52677 52678 52679 52680 |
# File 'lib/ovirtsdk4/types.rb', line 52673 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.
52430 52431 52432 |
# File 'lib/ovirtsdk4/types.rb', line 52430 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups
attribute.
52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 |
# File 'lib/ovirtsdk4/types.rb', line 52439 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.
52456 52457 52458 |
# File 'lib/ovirtsdk4/types.rb', line 52456 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts
attribute.
52465 52466 52467 52468 52469 52470 52471 52472 52473 52474 52475 |
# File 'lib/ovirtsdk4/types.rb', line 52465 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.
52482 52483 52484 |
# File 'lib/ovirtsdk4/types.rb', line 52482 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
52491 52492 52493 |
# File 'lib/ovirtsdk4/types.rb', line 52491 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
52500 52501 52502 |
# File 'lib/ovirtsdk4/types.rb', line 52500 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
52509 52510 52511 |
# File 'lib/ovirtsdk4/types.rb', line 52509 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
52518 52519 52520 |
# File 'lib/ovirtsdk4/types.rb', line 52518 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
52527 52528 52529 |
# File 'lib/ovirtsdk4/types.rb', line 52527 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
52536 52537 52538 |
# File 'lib/ovirtsdk4/types.rb', line 52536 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 52555 |
# File 'lib/ovirtsdk4/types.rb', line 52545 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.
52562 52563 52564 |
# File 'lib/ovirtsdk4/types.rb', line 52562 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
52571 52572 52573 |
# File 'lib/ovirtsdk4/types.rb', line 52571 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
52580 52581 52582 |
# File 'lib/ovirtsdk4/types.rb', line 52580 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
52589 52590 52591 |
# File 'lib/ovirtsdk4/types.rb', line 52589 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
52598 52599 52600 |
# File 'lib/ovirtsdk4/types.rb', line 52598 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
52607 52608 52609 |
# File 'lib/ovirtsdk4/types.rb', line 52607 def username=(value) @username = value end |