ironicclient.common.base module¶
Base utilities to build API operation managers and objects on top of.
-
class
ironicclient.common.base.CreateManager(api)[source]¶ Bases:
ironicclient.common.base.ManagerProvides creation operations with a particular API.
-
create(**kwargs)[source]¶ Create a resource based on a kwargs dictionary of attributes.
- Parameters
kwargs – A dictionary containing the attributes of the resource that will be created.
- Raises
exc.InvalidAttribute – For invalid attributes that are not needed to create the resource.
-
-
class
ironicclient.common.base.Manager(api)[source]¶ Bases:
objectProvides CRUD operations with a particular API.
-
abstract property
resource_class¶ The resource class
-
abstract property
-
class
ironicclient.common.base.Resource(manager, info, loaded=False)[source]¶ Bases:
ironicclient.common.apiclient.base.ResourceRepresents a particular instance of an object (tenant, user, etc).
This is pretty much just a bag for attributes.