Class: OvirtSDK4::OpenStackProvider

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

Direct Known Subclasses

OpenStackImageProvider, OpenStackNetworkProvider, OpenStackVolumeProvider

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (OpenStackProvider) initialize(opts = {})

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.



36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
# File 'lib/ovirtsdk4/types.rb', line 36193

def initialize(opts = {})
  super(opts)
  self.authentication_url = opts[:authentication_url]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.password = opts[:password]
  self.properties = opts[:properties]
  self.requires_authentication = opts[:requires_authentication]
  self.tenant_name = opts[:tenant_name]
  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)


35963
35964
35965
# File 'lib/ovirtsdk4/types.rb', line 35963

def authentication_url
  return @authentication_url
end

- (Object) authentication_url=(value)

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


35972
35973
35974
# File 'lib/ovirtsdk4/types.rb', line 35972

def authentication_url=(value)
  @authentication_url = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


35981
35982
35983
# File 'lib/ovirtsdk4/types.rb', line 35981

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


35990
35991
35992
# File 'lib/ovirtsdk4/types.rb', line 35990

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


35999
36000
36001
# File 'lib/ovirtsdk4/types.rb', line 35999

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


36008
36009
36010
# File 'lib/ovirtsdk4/types.rb', line 36008

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


36017
36018
36019
# File 'lib/ovirtsdk4/types.rb', line 36017

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


36026
36027
36028
# File 'lib/ovirtsdk4/types.rb', line 36026

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


36035
36036
36037
# File 'lib/ovirtsdk4/types.rb', line 36035

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


36044
36045
36046
# File 'lib/ovirtsdk4/types.rb', line 36044

def name=(value)
  @name = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


36053
36054
36055
# File 'lib/ovirtsdk4/types.rb', line 36053

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


36062
36063
36064
# File 'lib/ovirtsdk4/types.rb', line 36062

def password=(value)
  @password = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



36071
36072
36073
# File 'lib/ovirtsdk4/types.rb', line 36071

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
# File 'lib/ovirtsdk4/types.rb', line 36079

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)


36096
36097
36098
# File 'lib/ovirtsdk4/types.rb', line 36096

def requires_authentication
  return @requires_authentication
end

- (Object) requires_authentication=(value)

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


36105
36106
36107
# File 'lib/ovirtsdk4/types.rb', line 36105

def requires_authentication=(value)
  @requires_authentication = value
end

- (String) tenant_name

Returns the value of the tenant_name attribute.

Returns:

  • (String)


36114
36115
36116
# File 'lib/ovirtsdk4/types.rb', line 36114

def tenant_name
  return @tenant_name
end

- (Object) tenant_name=(value)

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)


36123
36124
36125
# File 'lib/ovirtsdk4/types.rb', line 36123

def tenant_name=(value)
  @tenant_name = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


36132
36133
36134
# File 'lib/ovirtsdk4/types.rb', line 36132

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


36141
36142
36143
# File 'lib/ovirtsdk4/types.rb', line 36141

def url=(value)
  @url = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


36150
36151
36152
# File 'lib/ovirtsdk4/types.rb', line 36150

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


36159
36160
36161
# File 'lib/ovirtsdk4/types.rb', line 36159

def username=(value)
  @username = value
end