Base utilities to build API operation managers and objects on top of.
Bases: keystoneclient.base.Manager
Base manager class for manipulating Keystone entities.
Children of this class are expected to define a collection_key and key.
Builds a resource URL for the given kwargs.
Given an example collection where collection_key = ‘entities’ and key = ‘entity’, the following URL’s could be generated.
By default, the URL will represent a collection of entities, e.g.:
/entities
If kwargs contains an entity_id, then the URL will represent a specific member, e.g.:
/entities/{entity_id}
If a base_url is provided, the generated URL will be appended to it.
Bases: object
Managers interact with a particular type of API (servers, flavors, images, etc.) and provide CRUD operations for them.
Bases: keystoneclient.base.Manager
Like a Manager, but with additional find()/findall() methods.
Find a single item with attributes matching **kwargs.
This isn’t very efficient: it loads the entire list then filters on the Python side.
Find all items with attributes matching **kwargs.
This isn’t very efficient: it loads the entire list then filters on the Python side.
Bases: object
A resource represents a particular instance of an object (tenant, user, etc). This is pretty much just a bag for attributes.
Parameters: |
|
---|
Abstracts the common pattern of allowing both an object or an object’s ID (UUID) as a parameter when dealing with relationships.