validio_sdk.code package

Submodules

validio_sdk.code.apply module

Apply command implementation.

async validio_sdk.code.apply.apply(namespace: str, client: APIClient, ctx: DiffContext, diff: GraphDiff, show_secrets: bool) None

Applies the provided diff operations on the server.

validio_sdk.code.plan module

Plan command implementation.

class validio_sdk.code.plan.PlanResult(graph_diff: GraphDiff, diff_context: DiffContext, deprecations: list[validio_sdk.resource._resource.ResourceDeprecation])

Bases: object

Result from a plan operation.

deprecations: list[validio_sdk.resource._resource.ResourceDeprecation]
diff_context: DiffContext
graph_diff: GraphDiff
class validio_sdk.code.plan.ResourceNames(credentials: set[str] = <factory>, channels: set[str] = <factory>, sources: set[str] = <factory>, windows: set[str] = <factory>, filters: set[str] = <factory>, segmentations: set[str] = <factory>, validators: set[str] = <factory>, notification_rules: set[str] = <factory>)

Bases: object

Holds names for resource types, can be used for retaining.

channels: set[str]
credentials: set[str]
filters: set[str]
notification_rules: set[str]
segmentations: set[str]
size() int

Get the size of resources.

Return the total number of items in all sets.

sources: set[str]
validators: set[str]
windows: set[str]
async validio_sdk.code.plan.plan(namespace: str, client: APIClient, directory: Path, schema_reinference: SourceSchemaReinference, destroy: bool, no_capture: bool, show_secrets: bool, targets: ResourceNames = ResourceNames(credentials=set(), channels=set(), sources=set(), windows=set(), filters=set(), segmentations=set(), validators=set(), notification_rules=set()), import_mode: bool = False) PlanResult

Computes a diff between the manifest program and the live server resources.

validio_sdk.code.scaffold module

Init command implementation.

class validio_sdk.code.scaffold.ProjectSettings(namespace: str)

Bases: object

Represents the settings for a project.

namespace: str

validio_sdk.code.settings module

Contains shared constants.

Module contents