Class: OvirtSDK4::ExternalProvider

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

Direct Known Subclasses

ExternalHostProvider, OpenStackProvider

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (ExternalProvider) initialize(opts = {})

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

  • :url (String)

    The value of attribute url.

  • :username (String)

    The value of attribute username.



29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
# File 'lib/ovirtsdk4/types.rb', line 29465

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.url = opts[:url]
  self.username = opts[:username]
end

Instance Method Details

- (String) authentication_url

Returns the value of the authentication_url attribute.

Returns:

  • (String)


29255
29256
29257
# File 'lib/ovirtsdk4/types.rb', line 29255

def authentication_url
  return @authentication_url
end

- (Object) authentication_url=(value)

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


29264
29265
29266
# File 'lib/ovirtsdk4/types.rb', line 29264

def authentication_url=(value)
  @authentication_url = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


29273
29274
29275
# File 'lib/ovirtsdk4/types.rb', line 29273

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


29282
29283
29284
# File 'lib/ovirtsdk4/types.rb', line 29282

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


29291
29292
29293
# File 'lib/ovirtsdk4/types.rb', line 29291

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


29300
29301
29302
# File 'lib/ovirtsdk4/types.rb', line 29300

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


29309
29310
29311
# File 'lib/ovirtsdk4/types.rb', line 29309

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


29318
29319
29320
# File 'lib/ovirtsdk4/types.rb', line 29318

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


29327
29328
29329
# File 'lib/ovirtsdk4/types.rb', line 29327

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


29336
29337
29338
# File 'lib/ovirtsdk4/types.rb', line 29336

def name=(value)
  @name = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


29345
29346
29347
# File 'lib/ovirtsdk4/types.rb', line 29345

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


29354
29355
29356
# File 'lib/ovirtsdk4/types.rb', line 29354

def password=(value)
  @password = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



29363
29364
29365
# File 'lib/ovirtsdk4/types.rb', line 29363

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
# File 'lib/ovirtsdk4/types.rb', line 29371

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)


29388
29389
29390
# File 'lib/ovirtsdk4/types.rb', line 29388

def requires_authentication
  return @requires_authentication
end

- (Object) requires_authentication=(value)

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


29397
29398
29399
# File 'lib/ovirtsdk4/types.rb', line 29397

def requires_authentication=(value)
  @requires_authentication = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


29406
29407
29408
# File 'lib/ovirtsdk4/types.rb', line 29406

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


29415
29416
29417
# File 'lib/ovirtsdk4/types.rb', line 29415

def url=(value)
  @url = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


29424
29425
29426
# File 'lib/ovirtsdk4/types.rb', line 29424

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


29433
29434
29435
# File 'lib/ovirtsdk4/types.rb', line 29433

def username=(value)
  @username = value
end