ironic.api.controllers.version module

class ironic.api.controllers.version.Version(id, min_version, version, status='CURRENT')[source]

Bases: ironic.api.controllers.base.Base

An API version representation.

This class represents an API version, including the minimum and maximum minor versions that are supported within the major version.

id

The ID of the (major) version, also acts as the release number

A Link that point to a specific version of the API

min_version

Minimum supported (major.minor) version of API.

status

Status of the version.

One of: * CURRENT - the latest version of API, * SUPPORTED - supported, but not latest, version of API, * DEPRECATED - supported, but deprecated, version of API.

version

The current, maximum supported (major.minor) version of API.

ironic.api.controllers.version.default_version()[source]