"""Smarter API Manifests Enumerations."""
from smarter.common.enum import SmarterEnumAbstract
from .exceptions import SAMExceptionBase
###############################################################################
# Smarter API Manifest Enumerations
###############################################################################
[docs]
class SAMSpecificationKeyOptions(SmarterEnumAbstract):
"""
Key types enumeration.
Used to specify whether a key in the specification is required, optional, or read-only.
"""
#: The key is mandatory.
REQUIRED = "required"
#: The key is optional.
OPTIONAL = "optional"
#: The key is read-only and cannot be modified.
READONLY = "readonly"
[docs]
class SAMKeys(SmarterEnumAbstract):
"""Smarter API Manifest top-level keys enumeration."""
#: The API version key.
APIVERSION = "apiVersion"
#: The kind key.
KIND = "kind"
#: The metadata key.
METADATA = "metadata"
#: The specification key.
SPEC = "spec"
#: The status key.
STATUS = "status"
###############################################################################
# Smarter API cli response Enumerations
###############################################################################
[docs]
class SCLIResponseGet(SmarterEnumAbstract):
"""CLI get response enumeration."""
#: The kwargs key.
KWARGS = "kwargs"
#: The data key.
DATA = "data"
[docs]
class SCLIResponseGetData(SmarterEnumAbstract):
"""CLI get response data enumeration."""
#: The titles key.
TITLES = "titles"
#: The items key.
ITEMS = "items"