keystoneauth1.fixture.discovery.DiscoveryList(href=None, v2=True, v3=True, v2_id=None, v3_id=None, v2_status=None, v2_updated=None, v2_html=True, v2_pdf=True, v3_status=None, v3_updated=None, v3_json=True, v3_xml=True)¶Bases: dict
A List of version elements.
Creates a correctly structured list of identity service endpoints for use in testing with discovery.
| Parameters: |
|
|---|
TEST_URL = 'http://keystone.host:5000/'¶add_microversion(href, id, **kwargs)¶Add a microversion version to the list.
The parameters are the same as MicroversionDiscovery.
add_nova_microversion(href, id, **kwargs)¶Add a nova microversion version to the list.
The parameters are the same as NovaMicroversionDiscovery.
add_v2(href, **kwargs)¶Add a v2 version to the list.
The parameters are the same as V2Discovery.
add_v3(href, **kwargs)¶Add a v3 version to the list.
The parameters are the same as V3Discovery.
add_version(version)¶Add a new version structure to the list.
| Parameters: | version (dict) – A new version structure to add to the list. |
|---|
versions¶keystoneauth1.fixture.discovery.V2Discovery(href, id=None, html=True, pdf=True, **kwargs)¶Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V2 identity service endpoint.
Provides some default values and helper methods for creating a v2.0 endpoint version structure. Clients should use this instead of creating their own structures.
| Parameters: |
|
|---|
add_html_description()¶Add the HTML described by links.
The standard structure includes a link to a HTML document with the API specification. Add it to this entry.
add_pdf_description()¶Add the PDF described by links.
The standard structure includes a link to a PDF document with the API specification. Add it to this entry.
keystoneauth1.fixture.discovery.V3Discovery(href, id=None, json=True, xml=True, **kwargs)¶Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V3 identity service endpoint.
Provides some default values and helper methods for creating a v3 endpoint version structure. Clients should use this instead of creating their own structures.
| Parameters: |
|
|---|
add_json_media_type()¶Add the JSON media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add JSON to the list.
add_xml_media_type()¶Add the XML media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add XML to the list.
keystoneauth1.fixture.discovery.VersionDiscovery(href, id, **kwargs)¶Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for non-keystone services without microversions.
Provides some default values and helper methods for creating a microversion endpoint version structure. Clients should use this instead of creating their own structures.
| Parameters: |
|
|---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.