Secret
Smarter API Secret Manifest Constants
Smarter API Manifest - Secret.metadata
- pydantic model smarter.apps.account.manifest.models.secret.metadata.SAMSecretMetadata[source]
Bases:
AbstractSAMMetadataBaseSmarter API Secret Manifest - Metadata class.
Show JSON schema
{ "title": "SAMSecretMetadata", "description": "Smarter API Secret Manifest - Metadata class.", "type": "object", "properties": { "name": { "description": "Secret.metadata.name[str]. Required. The name of the secret. camelCase, no spaces, no special characters.", "title": "Name", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The description for this resource. Be brief. Keep it under 255 characters.", "title": "Description" }, "version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The semantic version of the manifest. Example: 0.1.0", "title": "Version" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']", "title": "Tags" }, "annotations": { "anyOf": [ { "items": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "format": "date", "type": "string" }, { "format": "date-time", "type": "string" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "format": "uuid", "type": "string" }, { "format": "binary", "type": "string" }, { "items": {}, "type": "array" }, { "additionalProperties": true, "type": "object" } ] }, "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "The manifest annotations. Used for storing arbitrary metadata as\n key-value pairs. Example: [{'smarter.sh/test-manifest/project-name': 'Scooby dooby do'}]. The\n key should be a valid url-friendly string. The value accepts\n multi-line string values (YAML block scalars) and various scalar types including\n str, int, float, bool, datetime.date, datetime.datetime, decimal.Decimal, uuid.UUID, bytes, list, dict.\n ", "title": "Annotations" } }, "required": [ "name", "description", "version" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
Smarter API Manifest - Secret.spec
- pydantic model smarter.apps.account.manifest.models.secret.spec.SAMSecretSpec[source]
Bases:
AbstractSAMSpecBaseSmarter API Secret Manifest Secret.spec
Show JSON schema
{ "title": "SAMSecretSpec", "description": "Smarter API Secret Manifest Secret.spec", "type": "object", "properties": { "config": { "$ref": "#/$defs/SAMSecretSpecConfig", "description": "Secret.spec.config[object]. The configuration for the Secret." } }, "$defs": { "SAMSecretSpecConfig": { "description": "Smarter API Secret Manifest Secret.spec.config", "properties": { "value": { "description": "Secret.spec.configuration.value[str]. Required. The unencrypted value of the Secret.", "title": "Value", "type": "string" }, "expiration_date": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Secret.spec.configuration.expiration_date[str]. Optional. The expiration date of the Secret.", "title": "Expiration Date" } }, "required": [ "value" ], "title": "SAMSecretSpecConfig", "type": "object" } }, "required": [ "config" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field config:
SAMSecretSpecConfig[Required] Secret.spec.config[object]. The configuration for the Secret.
- Validated by:
- pydantic model smarter.apps.account.manifest.models.secret.spec.SAMSecretSpecConfig[source]
Bases:
AbstractSAMSpecBaseSmarter API Secret Manifest Secret.spec.config
Show JSON schema
{ "title": "SAMSecretSpecConfig", "description": "Smarter API Secret Manifest Secret.spec.config", "type": "object", "properties": { "value": { "description": "Secret.spec.configuration.value[str]. Required. The unencrypted value of the Secret.", "title": "Value", "type": "string" }, "expiration_date": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Secret.spec.configuration.expiration_date[str]. Optional. The expiration date of the Secret.", "title": "Expiration Date" } }, "required": [ "value" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field expiration_date:
Optional[datetime] = None Secret.spec.configuration.expiration_date[str]. Optional. The expiration date of the Secret.
- Validated by:
-
field value:
str[Required] Secret.spec.configuration.value[str]. Required. The unencrypted value of the Secret.
- Validated by:
- validator ensure_utc » expiration_date[source]
Smarter API Manifest - User.status
- pydantic model smarter.apps.account.manifest.models.secret.status.SAMSecretStatus[source]
Bases:
AbstractSAMStatusBaseSmarter API Secret Manifest - Status class (read-only, like Kubernetes status attributes).
Show JSON schema
{ "title": "SAMSecretStatus", "description": "Smarter API Secret Manifest - Status class (read-only, like Kubernetes status attributes).", "type": "object", "properties": { "recordLocator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.", "title": "Recordlocator" }, "created": { "description": "The date in which this resource was created. Read only.", "format": "date-time", "title": "Created", "type": "string" }, "modified": { "description": "The date in which this resource was most recently changed. Read only.", "format": "date-time", "title": "Modified", "type": "string" }, "accountNumber": { "description": "Secret.status.account_number: The account owner of this Secret. Read only.", "title": "Accountnumber", "type": "string" }, "username": { "description": "Secret.status.account_number: The Smarter user who created this Secret. Read only.", "title": "Username", "type": "string" }, "last_accessed": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Secret.status.last_accessed: The date in which this Secret was most recently accessed. Read only.", "title": "Last Accessed" } }, "required": [ "created", "modified", "accountNumber", "username" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field accountNumber:
str[Required] Secret.status.account_number: The account owner of this Secret. Read only.
- Validated by:
-
field last_accessed:
Optional[datetime] = None Secret.status.last_accessed: The date in which this Secret was most recently accessed. Read only.
- Validated by:
Smarter API Secret Manifest
- pydantic model smarter.apps.account.manifest.models.secret.model.SAMSecret[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Secret
Show JSON schema
{ "title": "SAMSecret", "description": "Smarter API Manifest - Secret", "type": "object", "properties": { "apiVersion": { "description": "apiVersion[String]: Required. The API version of the AbstractSAMBase.", "title": "Apiversion", "type": "string" }, "kind": { "description": "kind[String]: Required. The kind of resource described by the manifest.", "title": "Kind", "type": "string" }, "metadata": { "$ref": "#/$defs/SAMSecretMetadata", "description": "Secret.metadata[obj]: Required, the Secret metadata." }, "spec": { "$ref": "#/$defs/SAMSecretSpec", "description": "Secret.spec[obj]: Required, the Secret specification." }, "status": { "anyOf": [ { "$ref": "#/$defs/SAMSecretStatus" }, { "type": "null" } ], "default": null, "description": "Secret.status[obj]: Optional, Read-only. Stateful status information about the Secret." } }, "$defs": { "SAMSecretMetadata": { "description": "Smarter API Secret Manifest - Metadata class.", "properties": { "name": { "description": "Secret.metadata.name[str]. Required. The name of the secret. camelCase, no spaces, no special characters.", "title": "Name", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The description for this resource. Be brief. Keep it under 255 characters.", "title": "Description" }, "version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The semantic version of the manifest. Example: 0.1.0", "title": "Version" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']", "title": "Tags" }, "annotations": { "anyOf": [ { "items": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "format": "date", "type": "string" }, { "format": "date-time", "type": "string" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "format": "uuid", "type": "string" }, { "format": "binary", "type": "string" }, { "items": {}, "type": "array" }, { "additionalProperties": true, "type": "object" } ] }, "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "The manifest annotations. Used for storing arbitrary metadata as\n key-value pairs. Example: [{'smarter.sh/test-manifest/project-name': 'Scooby dooby do'}]. The\n key should be a valid url-friendly string. The value accepts\n multi-line string values (YAML block scalars) and various scalar types including\n str, int, float, bool, datetime.date, datetime.datetime, decimal.Decimal, uuid.UUID, bytes, list, dict.\n ", "title": "Annotations" } }, "required": [ "name", "description", "version" ], "title": "SAMSecretMetadata", "type": "object" }, "SAMSecretSpec": { "description": "Smarter API Secret Manifest Secret.spec", "properties": { "config": { "$ref": "#/$defs/SAMSecretSpecConfig", "description": "Secret.spec.config[object]. The configuration for the Secret." } }, "required": [ "config" ], "title": "SAMSecretSpec", "type": "object" }, "SAMSecretSpecConfig": { "description": "Smarter API Secret Manifest Secret.spec.config", "properties": { "value": { "description": "Secret.spec.configuration.value[str]. Required. The unencrypted value of the Secret.", "title": "Value", "type": "string" }, "expiration_date": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Secret.spec.configuration.expiration_date[str]. Optional. The expiration date of the Secret.", "title": "Expiration Date" } }, "required": [ "value" ], "title": "SAMSecretSpecConfig", "type": "object" }, "SAMSecretStatus": { "description": "Smarter API Secret Manifest - Status class (read-only, like Kubernetes status attributes).", "properties": { "recordLocator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.", "title": "Recordlocator" }, "created": { "description": "The date in which this resource was created. Read only.", "format": "date-time", "title": "Created", "type": "string" }, "modified": { "description": "The date in which this resource was most recently changed. Read only.", "format": "date-time", "title": "Modified", "type": "string" }, "accountNumber": { "description": "Secret.status.account_number: The account owner of this Secret. Read only.", "title": "Accountnumber", "type": "string" }, "username": { "description": "Secret.status.account_number: The Smarter user who created this Secret. Read only.", "title": "Username", "type": "string" }, "last_accessed": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Secret.status.last_accessed: The date in which this Secret was most recently accessed. Read only.", "title": "Last Accessed" } }, "required": [ "created", "modified", "accountNumber", "username" ], "title": "SAMSecretStatus", "type": "object" } }, "required": [ "apiVersion", "kind", "metadata", "spec" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field metadata:
SAMSecretMetadata[Required] Secret.metadata[obj]: Required, the Secret metadata.
- Validated by:
-
field spec:
SAMSecretSpec[Required] Secret.spec[obj]: Required, the Secret specification.
- Validated by:
-
field status:
Optional[SAMSecretStatus] = None Secret.status[obj]: Optional, Read-only. Stateful status information about the Secret.
- Validated by: