The Allocation
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.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.
The candidate nodes for this allocation.
Timestamp at which the allocation was created.
A set of one or more arbitrary metadata key and value pairs.
The UUID for the allocation.
The last error for the allocation.
A list of relative links, including the self and bookmark links.
The name of the allocation.
The node UUID or name to create the allocation against, bypassing the normal allocation process.
UUID of the node this allocation belongs to.
The requested resource class.
The state of the allocation.
The requested traits.
Timestamp at which the allocation was last updated.
Wait for the allocation to become active.
session (Adapter
) – The session to use for making this request.
timeout – How much (in seconds) to wait for the allocation.
The value of None
(the default) means no client-side timeout.
ignore_error – If True
, this call will raise an exception
if the allocation reaches the error
state. Otherwise the error
state is considered successful and the call returns.
This Allocation
instance.
ResourceFailure
if allocation
fails and ignore_error
is False
.
ResourceTimeout
on timeout.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.