openstack.placement.v1.resource_provider_allocation

The ResourceProviderAllocation Class

The ResourceProviderAllocation class inherits from Resource.

class openstack.placement.v1.resource_provider_allocation.ResourceProviderAllocation(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized – This is not intended to be used directly. See new() and existing().

  • connection – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key = None

Singular form of key for resource.

resources_key = None

Plural form of key for resource.

base_path = '/resource_providers/%(resource_provider_id)s/allocations'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

resource_provider_id

The UUID of a resource provider.

consumer_id

The UUID of the consumer.

resource_provider_generation

A consistent view marker that assists with the management of concurrent resource provider updates.

consumer_generation

The generation of the consumer. Available from microversion 1.28.

resources

A dictionary of resource class names to the amount allocated to this consumer from this resource provider.

classmethod list(session, paginated=True, base_path=None, allow_unknown_params=False, *, microversion=None, **params)

This method is a generator which yields resource objects.

A re-implementation of list() that handles placement’s single, unpaginated list implementation.

Refer to list() for full documentation including parameter, exception and return type documentation.