"""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.
.. :no-index:
attributes:
REQUIRED: Indicates that the key is mandatory.
OPTIONAL: Indicates that the key is optional.
READONLY: Indicates that the key is read-only and cannot be modified.
"""
REQUIRED = "required"
OPTIONAL = "optional"
READONLY = "readonly"
[docs]
class SAMKeys(SmarterEnumAbstract):
"""
Smarter API required keys enumeration.
.. :no-index:
attributes:
APIVERSION: The API version key.
KIND: The kind key.
METADATA: The metadata key.
SPEC: The specification key.
STATUS: The status key.
"""
APIVERSION = "apiVersion"
KIND = "kind"
METADATA = "metadata"
SPEC = "spec"
STATUS = "status"
###############################################################################
# Smarter API cli response Enumerations
###############################################################################
[docs]
class SCLIResponseGet(SmarterEnumAbstract):
"""
CLI get response enumeration.
.. :no-index:
attributes:
KWARGS: The kwargs key.
DATA: The data key.
"""
KWARGS = "kwargs"
DATA = "data"
[docs]
class SCLIResponseGetData(SmarterEnumAbstract):
"""
CLI get response data enumeration.
.. :no-index:
attributes:
TITLES: The titles key.
ITEMS: The items key.
"""
TITLES = "titles"
ITEMS = "items"