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.
54609 54610 54611 54612 54613 54614 54615 54616 |
# File 'lib/ovirtsdk4/types.rb', line 54609 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.
54621 54622 54623 54624 54625 54626 54627 54628 |
# File 'lib/ovirtsdk4/types.rb', line 54621 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.
54258 54259 54260 |
# File 'lib/ovirtsdk4/types.rb', line 54258 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
54267 54268 54269 |
# File 'lib/ovirtsdk4/types.rb', line 54267 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates attribute.
54276 54277 54278 |
# File 'lib/ovirtsdk4/types.rb', line 54276 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates attribute.
54285 54286 54287 54288 54289 54290 54291 54292 54293 54294 54295 |
# File 'lib/ovirtsdk4/types.rb', line 54285 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.
54302 54303 54304 |
# File 'lib/ovirtsdk4/types.rb', line 54302 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
54311 54312 54313 |
# File 'lib/ovirtsdk4/types.rb', line 54311 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources attribute.
54320 54321 54322 |
# File 'lib/ovirtsdk4/types.rb', line 54320 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources attribute.
54329 54330 54331 54332 54333 54334 54335 54336 54337 54338 54339 |
# File 'lib/ovirtsdk4/types.rb', line 54329 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.
54346 54347 54348 |
# File 'lib/ovirtsdk4/types.rb', line 54346 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
54355 54356 54357 |
# File 'lib/ovirtsdk4/types.rb', line 54355 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts attribute.
54364 54365 54366 |
# File 'lib/ovirtsdk4/types.rb', line 54364 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts attribute.
54373 54374 54375 54376 54377 54378 54379 54380 54381 54382 54383 |
# File 'lib/ovirtsdk4/types.rb', line 54373 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.
54633 54634 54635 54636 54637 54638 54639 54640 |
# File 'lib/ovirtsdk4/types.rb', line 54633 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.
54390 54391 54392 |
# File 'lib/ovirtsdk4/types.rb', line 54390 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups attribute.
54399 54400 54401 54402 54403 54404 54405 54406 54407 54408 54409 |
# File 'lib/ovirtsdk4/types.rb', line 54399 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.
54416 54417 54418 |
# File 'lib/ovirtsdk4/types.rb', line 54416 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts attribute.
54425 54426 54427 54428 54429 54430 54431 54432 54433 54434 54435 |
# File 'lib/ovirtsdk4/types.rb', line 54425 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.
54442 54443 54444 |
# File 'lib/ovirtsdk4/types.rb', line 54442 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
54451 54452 54453 |
# File 'lib/ovirtsdk4/types.rb', line 54451 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
54460 54461 54462 |
# File 'lib/ovirtsdk4/types.rb', line 54460 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
54469 54470 54471 |
# File 'lib/ovirtsdk4/types.rb', line 54469 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
54478 54479 54480 |
# File 'lib/ovirtsdk4/types.rb', line 54478 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
54487 54488 54489 |
# File 'lib/ovirtsdk4/types.rb', line 54487 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
54496 54497 54498 |
# File 'lib/ovirtsdk4/types.rb', line 54496 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
54505 54506 54507 54508 54509 54510 54511 54512 54513 54514 54515 |
# File 'lib/ovirtsdk4/types.rb', line 54505 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.
54522 54523 54524 |
# File 'lib/ovirtsdk4/types.rb', line 54522 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
54531 54532 54533 |
# File 'lib/ovirtsdk4/types.rb', line 54531 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url attribute.
54540 54541 54542 |
# File 'lib/ovirtsdk4/types.rb', line 54540 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
54549 54550 54551 |
# File 'lib/ovirtsdk4/types.rb', line 54549 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
54558 54559 54560 |
# File 'lib/ovirtsdk4/types.rb', line 54558 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
54567 54568 54569 |
# File 'lib/ovirtsdk4/types.rb', line 54567 def username=(value) @username = value end |