The magnumclient.v1.basemodels Module

class magnumclient.v1.basemodels.BaseModel(manager, info, loaded=False)

Bases: magnumclient.common.base.Resource

model_name = ”
class magnumclient.v1.basemodels.BaseModelManager(api)

Bases: magnumclient.common.base.Manager

api_name = ”
create(**kwargs)
delete(id)
get(id)
list(limit=None, marker=None, sort_key=None, sort_dir=None, detail=False)

Retrieve a list of baymodels.

Parameters:
  • marker – Optional, the UUID of a baymodel, eg the last baymodel from a previous result set. Return the next result set.
  • limit
    The maximum number of results to return per
    request, if:
    1. limit > 0, the maximum number of baymodels to return.
    2. limit == 0, return the entire list of baymodels.
    3. limit param is NOT specified (None), the number of items returned respect the maximum imposed by the Magnum API (see Magnum’s api.max_limit option).
  • sort_key – Optional, field used for sorting.
  • sort_dir – Optional, direction of sorting, either ‘asc’ (the default) or ‘desc’.
  • detail – Optional, boolean whether to return detailed information about baymodels.
Returns:

A list of baymodels.

update(id, patch)