Secret
A class for working with Secret manifests and the Secret Django ORM.
- class smarter.apps.account.manifest.transformers.secret.SecretSerializer(*args, **kwargs)[source]
Bases:
ModelSerializerSecret serializer for Smarter api.
- class smarter.apps.account.manifest.transformers.secret.SecretTransformer(*args, user_profile, name=None, api_version=None, manifest=None, secret_id=None, secret=None, data=None, **kwargs)[source]
Bases:
SmarterHelperMixinA class for working with secrets.
- __init__(*args, user_profile, name=None, api_version=None, manifest=None, secret_id=None, secret=None, data=None, **kwargs)[source]
Options for initialization are: - name: name of the secret, for initializing the Django ORM model. - Pydantic model created by a manifest broker (preferred method). - django model secret id. - yaml manifest or json representation of a yaml manifest see ./tests/data/secret-good.yaml for an example.
- property name: str | None
Return the name of the secret. The manifest takes precedence over the secret ORM
- property secret_serializer: SecretSerializer | None
Return the secret meta serializer.
- property user_profile: UserProfile | None
Return the user profile.