Source code for smarter.apps.account.manifest.enum

"""Smarter API PLugin Manifest - enumerated datatypes."""

from smarter.common.enum import SmarterEnumAbstract


###############################################################################
# Enums for manifest keys in error handlers and other on-screen messages
###############################################################################
[docs] class SAMAccountSpecKeys(SmarterEnumAbstract): """Smarter API Plugin Spec keys enumeration.""" CONFIG = "config"
[docs] class SAMUserSpecKeys(SmarterEnumAbstract): """Smarter API User Spec keys enumeration.""" CONFIG = "config"
[docs] class SAMSecretSpecKeys(SmarterEnumAbstract): """Smarter API Secret Spec keys enumeration.""" CONFIG = "config" VALUE = "value" DESCRIPTION = "description" EXPIRATION_DATE = "expiration_date"
[docs] class SAMSecretMetadataKeys(SmarterEnumAbstract): """Smarter API Secret Metadata keys enumeration.""" NAME = "name" DESCRIPTION = "description" VERSION = "version" TAGS = "tags" ANNOTATIONS = "annotations" USERNAME = "username" ACCOUNT_NUMBER = "accountNumber"
[docs] class SAMSecretStatusKeys(SmarterEnumAbstract): """Smarter API Secret Metadata keys enumeration.""" USERNAME = "username" ACCOUNT_NUMBER = "accountNumber" CREATED = "created" MODIFIED = "modified" LAST_ACCESSED = "last_accessed"