The Extension
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.
A unique identifier, which will be used for accessing the extension
through a dedicated url /extensions/*alias*
. The extension
alias uniquely identifies an extension and is prefixed by a vendor
identifier. Type: string
A description of the extension. Type: string
Links to the documentation in various format. Type: string
The name of the extension. Type: string
The second unique identifier of the extension after the alias. It is usually a URL which will be used. Example: “http://docs.openstack.org/identity/api/ext/s3tokens/v1.0” Type: string
The last time the extension has been modified (update date).
This method is a generator which yields resource objects.
This resource object list generator handles pagination and takes query params for response filtering.
session (Adapter
) – The session to use for making this request.
paginated (bool) – True
if a GET to this resource returns
a paginated series of responses, or False
if a GET returns only
one page of data. When paginated is False only one page of data
will be returned regardless of the API’s support of pagination.
base_path (str) – Base part of the URI for listing resources, if
different from base_path
.
allow_unknown_params (bool) – True
to accept, but discard
unknown query parameters. This allows getting list of ‘filters’ and
passing everything known to the server. False
will result in
validation exception when unknown query parameters are passed.
params (dict) – These keyword arguments are passed through the
_transpose()
method
to find if any of them match expected query parameters to be sent
in the params argument to
get()
. They are additionally
checked against the base_path
format string to see if any path fragments need to be filled in by
the contents of this argument.
A generator of Resource
objects.
MethodNotSupported
if
Resource.allow_list
is not set to True
.
InvalidResourceQuery
if query
contains invalid params.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.