Class: OvirtSDK4::OpenStackProvider

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ OpenStackProvider

Creates a new instance of the OvirtSDK4::OpenStackProvider 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.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :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.

  • :tenant_name (String)

    The value of attribute tenant_name.

  • :url (String)

    The value of attribute url.

  • :username (String)

    The value of attribute username.


46796
46797
46798
46799
# File 'lib/ovirtsdk4/types.rb', line 46796

def initialize(opts = {})
  super(opts)
  self.tenant_name = opts[:tenant_name]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


46804
46805
46806
46807
# File 'lib/ovirtsdk4/types.rb', line 46804

def ==(other)
  super &&
  @tenant_name == other.tenant_name
end

#authentication_urlString

Returns the value of the authentication_url attribute.

Returns:

  • (String)

46565
46566
46567
# File 'lib/ovirtsdk4/types.rb', line 46565

def authentication_url
  @authentication_url
end

#authentication_url=(value) ⇒ Object

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)

46574
46575
46576
# File 'lib/ovirtsdk4/types.rb', line 46574

def authentication_url=(value)
  @authentication_url = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

46583
46584
46585
# File 'lib/ovirtsdk4/types.rb', line 46583

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

46592
46593
46594
# File 'lib/ovirtsdk4/types.rb', line 46592

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

46601
46602
46603
# File 'lib/ovirtsdk4/types.rb', line 46601

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

46610
46611
46612
# File 'lib/ovirtsdk4/types.rb', line 46610

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.


46812
46813
46814
46815
# File 'lib/ovirtsdk4/types.rb', line 46812

def hash
  super +
  @tenant_name.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

46619
46620
46621
# File 'lib/ovirtsdk4/types.rb', line 46619

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

46628
46629
46630
# File 'lib/ovirtsdk4/types.rb', line 46628

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

46637
46638
46639
# File 'lib/ovirtsdk4/types.rb', line 46637

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

46646
46647
46648
# File 'lib/ovirtsdk4/types.rb', line 46646

def name=(value)
  @name = value
end

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)

46655
46656
46657
# File 'lib/ovirtsdk4/types.rb', line 46655

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)

46664
46665
46666
# File 'lib/ovirtsdk4/types.rb', line 46664

def password=(value)
  @password = value
end

#propertiesArray<Property>

Returns the value of the properties attribute.

Returns:


46673
46674
46675
# File 'lib/ovirtsdk4/types.rb', line 46673

def properties
  @properties
end

#properties=(list) ⇒ Object

Sets the value of the properties attribute.

Parameters:


46682
46683
46684
46685
46686
46687
46688
46689
46690
46691
46692
# File 'lib/ovirtsdk4/types.rb', line 46682

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_authenticationBoolean

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)

46699
46700
46701
# File 'lib/ovirtsdk4/types.rb', line 46699

def requires_authentication
  @requires_authentication
end

#requires_authentication=(value) ⇒ Object

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)

46708
46709
46710
# File 'lib/ovirtsdk4/types.rb', line 46708

def requires_authentication=(value)
  @requires_authentication = value
end

#tenant_nameString

Returns the value of the tenant_name attribute.

Returns:

  • (String)

46717
46718
46719
# File 'lib/ovirtsdk4/types.rb', line 46717

def tenant_name
  @tenant_name
end

#tenant_name=(value) ⇒ Object

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)

46726
46727
46728
# File 'lib/ovirtsdk4/types.rb', line 46726

def tenant_name=(value)
  @tenant_name = value
end

#urlString

Returns the value of the url attribute.

Returns:

  • (String)

46735
46736
46737
# File 'lib/ovirtsdk4/types.rb', line 46735

def url
  @url
end

#url=(value) ⇒ Object

Sets the value of the url attribute.

Parameters:

  • value (String)

46744
46745
46746
# File 'lib/ovirtsdk4/types.rb', line 46744

def url=(value)
  @url = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)

46753
46754
46755
# File 'lib/ovirtsdk4/types.rb', line 46753

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)

46762
46763
46764
# File 'lib/ovirtsdk4/types.rb', line 46762

def username=(value)
  @username = value
end