Skip to content

Setting

Source code in docs_src/capo_cloudextensions/types/setting.py
class Setting(TypedDict, closed=True):
    id: "capo_cloudextensions.types.configuration_id.ConfigurationId"
    """A unique identifier for this setting within the extension's configuration."""
    display_name: "capo_cloudextensions.types.display_name.DisplayName"
    """A short, human-readable label for this setting, suitable for display in a UI."""
    description: "capo_cloudextensions.types.description_256.Description_256"
    """A description of what this setting controls and how it affects the extension's behavior."""
    required: NotRequired["bool"]
    """Whether the deployer must provide a value for this setting. Defaults to false."""
    active_when: NotRequired["capo_cloudextensions.types.string_1_256.String_1_256"]
    """A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met."""
    definition: "capo_cloudextensions.types.setting_definition.SettingDefinition"
    """The type and constraints for this setting's value."""

active_when instance-attribute

active_when: NotRequired[String_1_256]

A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.

definition instance-attribute

definition: SettingDefinition

The type and constraints for this setting's value.

description instance-attribute

description: Description_256

A description of what this setting controls and how it affects the extension's behavior.

display_name instance-attribute

display_name: DisplayName

A short, human-readable label for this setting, suitable for display in a UI.

id instance-attribute

A unique identifier for this setting within the extension's configuration.

required instance-attribute

required: NotRequired[bool]

Whether the deployer must provide a value for this setting. Defaults to false.