Skip to content

metadata

Metadata specific shared across all horde APIs.

These classes can be inherited and new values added to them to support new APIs' metadata. See the horde_sdk.generic_api.generic_clients module for more information.

GenericHeaderFields

Bases: StrEnum

StrEnum for data that may be passed in the header of a request.

Pass this in to a GenericClient initializer if implementing a new API. See an existing API's metadata.py module.

Source code in horde_sdk/generic_api/metadata.py
class GenericHeaderFields(StrEnum):
    """`StrEnum` for data that may be passed in the header of a request.

    Pass this in to a GenericClient initializer if implementing a new API. See an existing API's `metadata.py` module.
    """

    apikey = auto()
    accept = auto()
    # X_Fields = "X-Fields" # TODO?
    client_agent = auto()

apikey class-attribute instance-attribute

apikey = auto()

accept class-attribute instance-attribute

accept = auto()

client_agent class-attribute instance-attribute

client_agent = auto()

GenericAcceptTypes

Bases: StrEnum

StrEnum for supported values for the header parameter 'accept'.

Pass this in to a GenericClient initializer if implementing a new API. See an existing API's metadata.py module.

Source code in horde_sdk/generic_api/metadata.py
class GenericAcceptTypes(StrEnum):
    """`StrEnum` for supported values for the header parameter 'accept'.

    Pass this in to a GenericClient initializer if implementing a new API. See an existing API's `metadata.py` module.
    """

    json = "application/json"

json class-attribute instance-attribute

json = 'application/json'

GenericPathFields

Bases: StrEnum

StrEnum for data that may be passed as part of a URL path (before the query string).

Pass this in to a GenericClient initializer if implementing a new API. See an existing API's metadata.py module.

Source code in horde_sdk/generic_api/metadata.py
class GenericPathFields(StrEnum):
    """`StrEnum` for data that may be passed as part of a URL path (before the query string).

    Pass this in to a GenericClient initializer if implementing a new API. See an existing API's `metadata.py` module.
    """

GenericQueryFields

Bases: StrEnum

StrEnum for data that may be passed as part of a URL query (after the ?).

Pass this in to a GenericClient initializer if implementing a new API. See an existing API's metadata.py module.

Source code in horde_sdk/generic_api/metadata.py
class GenericQueryFields(StrEnum):
    """`StrEnum` for data that may be passed as part of a URL query (after the `?`).

    Pass this in to a GenericClient initializer if implementing a new API. See an existing API's `metadata.py` module.
    """