EnvironmentBaseConfig#
- pydantic model phalanx.models.environments.EnvironmentBaseConfig#
Configuration common to EnviromentConfig and Environment.
- Parameters:
data (
Any
) โ
Show JSON schema
{ "title": "EnvironmentBaseConfig", "description": "Configuration common to `EnviromentConfig` and `Environment`.", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "fqdn": { "title": "Fqdn", "type": "string" }, "onepassword": { "anyOf": [ { "$ref": "#/$defs/OnepasswordConfig" }, { "type": "null" } ], "default": null }, "vaultUrl": { "title": "Vaulturl", "type": "string" }, "vaultPathPrefix": { "title": "Vaultpathprefix", "type": "string" } }, "$defs": { "OnepasswordConfig": { "description": "Configuration for 1Password static secrets source.", "properties": { "connectUrl": { "format": "uri", "minLength": 1, "title": "Connecturl", "type": "string" }, "vaultTitle": { "title": "Vaulttitle", "type": "string" } }, "required": [ "connectUrl", "vaultTitle" ], "title": "OnepasswordConfig", "type": "object" } }, "required": [ "name", "fqdn", "vaultUrl", "vaultPathPrefix" ] }
- Config:
alias_generator: function = <function to_camel_case at 0x7f4c25c04900>
populate_by_name: bool = True
- Fields:
- Validators:
_validate_onepassword
ยปonepassword
- field fqdn: str [Required]#
Fully-qualified domain name.
- field name: str [Required]#
Name of the environment.
- field onepassword: OnepasswordConfig | None = None#
Configuration for using 1Password as a static secrets source.
- Validated by:
_validate_onepassword
- field vault_path_prefix: str [Required] (alias 'vaultPathPrefix')#
Prefix of Vault paths, including the Kv2 mount point.
- field vault_url: str [Required] (alias 'vaultUrl')#
URL of Vault server.
- model_dump(**kwargs)#
Export the model as a dictionary.
Overridden to change the default of
by_alias
from False to True, so that by default the exported dictionary uses camel-case.
- model_dump_json(**kwargs)#
Export the model as JSON.
Overridden to change the default of
by_alias
from False to True, so that by default the exported dictionary uses camel-case.