Class: OvirtSDK4::ExternalHostProvider

Inherits:
ExternalProvider show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (ExternalHostProvider) initialize(opts = {})

Creates a new instance of the OvirtSDK4::ExternalHostProvider class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :authentication_url (String)

    The value of attribute authentication_url.

  • :certificates (Array<Certificate>, Array<Hash>)

    The values of attribute certificates.

  • :comment (String)

    The value of attribute comment.

  • :compute_resources (Array<ExternalComputeResource>, Array<Hash>)

    The values of attribute compute_resources.

  • :description (String)

    The value of attribute description.

  • :discovered_hosts (Array<ExternalDiscoveredHost>, Array<Hash>)

    The values of attribute discovered_hosts.

  • :host_groups (Array<ExternalHostGroup>, Array<Hash>)

    The values of attribute host_groups.

  • :hosts (Array<Host>, Array<Hash>)

    The values of attribute hosts.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :password (String)

    The value of attribute password.

  • :properties (Array<Property>, Array<Hash>)

    The values of attribute properties.

  • :requires_authentication (Boolean)

    The value of attribute requires_authentication.

  • :url (String)

    The value of attribute url.

  • :username (String)

    The value of attribute username.



40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
# File 'lib/ovirtsdk4/types.rb', line 40779

def initialize(opts = {})
  super(opts)
  self.authentication_url = opts[:authentication_url]
  self.certificates = opts[:certificates]
  self.comment = opts[:comment]
  self.compute_resources = opts[:compute_resources]
  self.description = opts[:description]
  self.discovered_hosts = opts[:discovered_hosts]
  self.host_groups = opts[:host_groups]
  self.hosts = opts[:hosts]
  self.id = opts[:id]
  self.name = opts[:name]
  self.password = opts[:password]
  self.properties = opts[:properties]
  self.requires_authentication = opts[:requires_authentication]
  self.url = opts[:url]
  self.username = opts[:username]
end

Instance Method Details

- (String) authentication_url

Returns the value of the authentication_url attribute.

Returns:

  • (String)


40434
40435
40436
# File 'lib/ovirtsdk4/types.rb', line 40434

def authentication_url
  return @authentication_url
end

- (Object) authentication_url=(value)

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


40443
40444
40445
# File 'lib/ovirtsdk4/types.rb', line 40443

def authentication_url=(value)
  @authentication_url = value
end

- (Array<Certificate>) certificates

Returns the value of the certificates attribute.

Returns:



40452
40453
40454
# File 'lib/ovirtsdk4/types.rb', line 40452

def certificates
  return @certificates
end

- (Object) certificates=(list)

Sets the value of the certificates attribute.

Parameters:



40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
# File 'lib/ovirtsdk4/types.rb', line 40460

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

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


40477
40478
40479
# File 'lib/ovirtsdk4/types.rb', line 40477

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


40486
40487
40488
# File 'lib/ovirtsdk4/types.rb', line 40486

def comment=(value)
  @comment = value
end

- (Array<ExternalComputeResource>) compute_resources

Returns the value of the compute_resources attribute.

Returns:



40495
40496
40497
# File 'lib/ovirtsdk4/types.rb', line 40495

def compute_resources
  return @compute_resources
end

- (Object) compute_resources=(list)

Sets the value of the compute_resources attribute.

Parameters:



40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
# File 'lib/ovirtsdk4/types.rb', line 40503

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

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


40520
40521
40522
# File 'lib/ovirtsdk4/types.rb', line 40520

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


40529
40530
40531
# File 'lib/ovirtsdk4/types.rb', line 40529

def description=(value)
  @description = value
end

- (Array<ExternalDiscoveredHost>) discovered_hosts

Returns the value of the discovered_hosts attribute.

Returns:



40538
40539
40540
# File 'lib/ovirtsdk4/types.rb', line 40538

def discovered_hosts
  return @discovered_hosts
end

- (Object) discovered_hosts=(list)

Sets the value of the discovered_hosts attribute.

Parameters:



40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
# File 'lib/ovirtsdk4/types.rb', line 40546

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

- (Array<ExternalHostGroup>) host_groups

Returns the value of the host_groups attribute.

Returns:



40563
40564
40565
# File 'lib/ovirtsdk4/types.rb', line 40563

def host_groups
  return @host_groups
end

- (Object) host_groups=(list)

Sets the value of the host_groups attribute.

Parameters:



40571
40572
40573
40574
40575
40576
40577
40578
40579
40580
40581
# File 'lib/ovirtsdk4/types.rb', line 40571

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

- (Array<Host>) hosts

Returns the value of the hosts attribute.

Returns:



40588
40589
40590
# File 'lib/ovirtsdk4/types.rb', line 40588

def hosts
  return @hosts
end

- (Object) hosts=(list)

Sets the value of the hosts attribute.

Parameters:

  • list (Array<Host>)


40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
# File 'lib/ovirtsdk4/types.rb', line 40596

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


40613
40614
40615
# File 'lib/ovirtsdk4/types.rb', line 40613

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


40622
40623
40624
# File 'lib/ovirtsdk4/types.rb', line 40622

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


40631
40632
40633
# File 'lib/ovirtsdk4/types.rb', line 40631

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


40640
40641
40642
# File 'lib/ovirtsdk4/types.rb', line 40640

def name=(value)
  @name = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


40649
40650
40651
# File 'lib/ovirtsdk4/types.rb', line 40649

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


40658
40659
40660
# File 'lib/ovirtsdk4/types.rb', line 40658

def password=(value)
  @password = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



40667
40668
40669
# File 'lib/ovirtsdk4/types.rb', line 40667

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
# File 'lib/ovirtsdk4/types.rb', line 40675

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

- (Boolean) requires_authentication

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)


40692
40693
40694
# File 'lib/ovirtsdk4/types.rb', line 40692

def requires_authentication
  return @requires_authentication
end

- (Object) requires_authentication=(value)

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


40701
40702
40703
# File 'lib/ovirtsdk4/types.rb', line 40701

def requires_authentication=(value)
  @requires_authentication = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


40710
40711
40712
# File 'lib/ovirtsdk4/types.rb', line 40710

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


40719
40720
40721
# File 'lib/ovirtsdk4/types.rb', line 40719

def url=(value)
  @url = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


40728
40729
40730
# File 'lib/ovirtsdk4/types.rb', line 40728

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


40737
40738
40739
# File 'lib/ovirtsdk4/types.rb', line 40737

def username=(value)
  @username = value
end