Bases: object
This class represents an API Version Request.
This class provides convenience methods for manipulation and comparison of version numbers that we need to do to implement microversions.
Create an API version object.
version_str – String representation of APIVersionRequest. Correct format is ‘X.Y’, where ‘X’ and ‘Y’ are int values. None value should be used to create Null APIVersionRequest, which is equal to 0.0
Version string representation.
Converts object to string representation which if used to create an APIVersion object results in the same version.
Matches the version object.
Returns whether the version object represents a version greater than or equal to the minimum version and less than or equal to the maximum version.
min_version – Minimum acceptable version.
max_version – Maximum acceptable version.
boolean
If min_version is null then there is no minimum limit. If max_version is null then there is no maximum limit. If self is null then raise ValueError
Bases: object
Versioning information for a single method
name – Name of the method
start_version – Minimum acceptable version
end_version – Maximum acceptable_version
func – Method to call
Minimum and maximums are inclusive
Checks that microversion header is in response.
Checks major part of APIVersion
obj is supported.
novaclient.exceptions.UnsupportedVersion – if major part is not supported
Discover most recent version supported by API and client.
Checks requested_version
and returns the most recent version
supported by both the API and the client.
client – client object
requested_version – requested version represented by APIVersion obj
APIVersion
Returns checked APIVersion object
Set microversion headers if api_version is not null
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.