snowflake.core.code_bundle

Manages Snowflake code bundles.

Example

>>> code_bundles: CodeBundleCollection = root.databases["mydb"].schemas["myschema"].code_bundles
>>> mybundle = code_bundles.create(
...     CodeBundle(name="mybundle", from_location="@mydb.myschema.mystage/src")
... )
>>> bundle_iter = code_bundles.iter(like="my%")
>>> mybundle = code_bundles["mybundle"]
>>> an_existing_bundle = code_bundles["an_existing_bundle"]

Refer to snowflake.core.Root to create the root.

Classes

CodeBundle(*, name[, from_location, ...])

A model object representing the CodeBundle resource.

CodeBundleResource(name, collection)

Represents a reference to a Snowflake code bundle.

CodeBundleCollection(schema)

Represents the collection operations on the Snowflake code bundle resource.

AddVersionCodeBundleRequest(*, from_location)

A model object representing the AddVersionCodeBundleRequest resource.

AddVersionCodeBundleRequestVersion(*[, ...])

A model object representing the AddVersionCodeBundleRequestVersion resource.

BundleSpec(*, type, compute_type[, ...])

A model object representing the BundleSpec resource.

CodeBundleSpecification(*, bundle)

A model object representing the CodeBundleSpecification resource.

ExecuteCodeBundleRequest(*, entrypoint[, ...])

A model object representing the ExecuteCodeBundleRequest resource.

StageMount(*, stage_url, mount_path[, ...])

A model object representing the StageMount resource.

SuccessAcceptedResponse(*[, code, message, ...])

A model object representing the SuccessAcceptedResponse resource.

SuccessResponse(*[, status])

A model object representing the SuccessResponse resource.

VersionDetails(*[, name, alias, ...])

A model object representing the VersionDetails resource.