Skip to content

VersionPolicy

Source code in docs_src/capo_cloudextensions/types/version_policy.py
class VersionPolicy(TypedDict, closed=True):
    update_strategy: NotRequired[
        "capo_cloudextensions.types.update_strategy.UpdateStrategy"
    ]
    """The update strategy to use when a new extension version is available."""
    version_selector: NotRequired[
        "capo_cloudextensions.types.semantic_version_selector.SemanticVersionSelector"
    ]
    """An optional version selector that constrains which versions are eligible. If the strategy is AUTOMATIC, this allows limiting updates to patches within a minor version. When MANUAL, the value must correspond to a specific Extension version"""

update_strategy instance-attribute

update_strategy: NotRequired[UpdateStrategy]

The update strategy to use when a new extension version is available.

version_selector instance-attribute

version_selector: NotRequired[SemanticVersionSelector]

An optional version selector that constrains which versions are eligible. If the strategy is AUTOMATIC, this allows limiting updates to patches within a minor version. When MANUAL, the value must correspond to a specific Extension version