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.



45041
45042
45043
45044
# File 'lib/ovirtsdk4/types.rb', line 45041

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.



45049
45050
45051
45052
# File 'lib/ovirtsdk4/types.rb', line 45049

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

#authentication_urlString

Returns the value of the authentication_url attribute.

Returns:

  • (String)


44810
44811
44812
# File 'lib/ovirtsdk4/types.rb', line 44810

def authentication_url
  @authentication_url
end

#authentication_url=(value) ⇒ Object

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


44819
44820
44821
# File 'lib/ovirtsdk4/types.rb', line 44819

def authentication_url=(value)
  @authentication_url = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


44828
44829
44830
# File 'lib/ovirtsdk4/types.rb', line 44828

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


44837
44838
44839
# File 'lib/ovirtsdk4/types.rb', line 44837

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


44846
44847
44848
# File 'lib/ovirtsdk4/types.rb', line 44846

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


44855
44856
44857
# File 'lib/ovirtsdk4/types.rb', line 44855

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



45057
45058
45059
45060
# File 'lib/ovirtsdk4/types.rb', line 45057

def hash
  super +
  @tenant_name.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


44864
44865
44866
# File 'lib/ovirtsdk4/types.rb', line 44864

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


44873
44874
44875
# File 'lib/ovirtsdk4/types.rb', line 44873

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


44882
44883
44884
# File 'lib/ovirtsdk4/types.rb', line 44882

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


44891
44892
44893
# File 'lib/ovirtsdk4/types.rb', line 44891

def name=(value)
  @name = value
end

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)


44900
44901
44902
# File 'lib/ovirtsdk4/types.rb', line 44900

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)


44909
44910
44911
# File 'lib/ovirtsdk4/types.rb', line 44909

def password=(value)
  @password = value
end

#propertiesArray<Property>

Returns the value of the properties attribute.

Returns:



44918
44919
44920
# File 'lib/ovirtsdk4/types.rb', line 44918

def properties
  @properties
end

#properties=(list) ⇒ Object

Sets the value of the properties attribute.

Parameters:



44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
# File 'lib/ovirtsdk4/types.rb', line 44927

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)


44944
44945
44946
# File 'lib/ovirtsdk4/types.rb', line 44944

def requires_authentication
  @requires_authentication
end

#requires_authentication=(value) ⇒ Object

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


44953
44954
44955
# File 'lib/ovirtsdk4/types.rb', line 44953

def requires_authentication=(value)
  @requires_authentication = value
end

#tenant_nameString

Returns the value of the tenant_name attribute.

Returns:

  • (String)


44962
44963
44964
# File 'lib/ovirtsdk4/types.rb', line 44962

def tenant_name
  @tenant_name
end

#tenant_name=(value) ⇒ Object

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)


44971
44972
44973
# File 'lib/ovirtsdk4/types.rb', line 44971

def tenant_name=(value)
  @tenant_name = value
end

#urlString

Returns the value of the url attribute.

Returns:

  • (String)


44980
44981
44982
# File 'lib/ovirtsdk4/types.rb', line 44980

def url
  @url
end

#url=(value) ⇒ Object

Sets the value of the url attribute.

Parameters:

  • value (String)


44989
44990
44991
# File 'lib/ovirtsdk4/types.rb', line 44989

def url=(value)
  @url = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)


44998
44999
45000
# File 'lib/ovirtsdk4/types.rb', line 44998

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)


45007
45008
45009
# File 'lib/ovirtsdk4/types.rb', line 45007

def username=(value)
  @username = value
end