snowflake.core.code_bundle_execution.CodeBundleExecution¶
- class snowflake.core.code_bundle_execution.CodeBundleExecution(*, bundle_name: Annotated[str, Strict(strict=True)] | None = None, database_name: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, schema_name: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, status: Annotated[str, Strict(strict=True)] | None = None, bundle_type: Annotated[str, Strict(strict=True)] | None = None, compute_type: Annotated[str, Strict(strict=True)] | None = None, language_type: Annotated[str, Strict(strict=True)] | None = None, runtime_name: Annotated[str, Strict(strict=True)] | None = None, execution_name: Annotated[str, Strict(strict=True)] | None = None, start_time: Annotated[str, Strict(strict=True)] | None = None, end_time: Annotated[str, Strict(strict=True)] | None = None, entrypoint: Annotated[str, Strict(strict=True)] | None = None, query_id: Annotated[str, Strict(strict=True)] | None = None)¶
Bases:
BaseModelA model object representing the CodeBundleExecution resource.
Constructs an object of type CodeBundleExecution with the provided properties.
- Parameters:
bundle_name (str, optional) – Fully qualified name of the code bundle. May be empty for anonymous (unnamed) executions.
database_name (str, optional) – Database supplied when the code bundle was created or executed.
schema_name (str, optional) – Schema supplied when the code bundle was created or executed.
status (str, optional) – Execution job status (for example, Queued, In progress, Succeeded, or Failed).
bundle_type (str, optional) – Type of the code bundle (for example, custompython, mljava, or spark).
compute_type (str, optional) – Compute on which the execution ran (for example, warehouse, compute_pool, or serverless).
language_type (str, optional) – Language of the code bundle (for example, python or java).
runtime_name (str, optional) – Name of the runtime backing the execution (warehouse name or SPCS service name).
execution_name (str, optional) – Optional caller-supplied name for the execution (used primarily for anonymous executions).
start_time (str, optional) – Time when the execution started.
end_time (str, optional) – Time when the execution completed.
entrypoint (str, optional) – File path entrypoint of the execution.
query_id (str, optional) – Query id of the statement that executed the code bundle.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
- classmethod from_dict(obj: dict) CodeBundleExecution¶
Create an instance of CodeBundleExecution from a dict.
- classmethod from_json(json_str: str) CodeBundleExecution¶
Create an instance of CodeBundleExecution from a JSON string.
- to_dict(hide_readonly_properties: bool = False) dict[str, Any]¶
Returns the dictionary representation of the model using alias.
- to_dict_without_readonly_properties() dict[str, Any]¶
Return the dictionary representation of the model without readonly properties.
- to_json() str¶
Returns the JSON representation of the model using alias.
- to_str() str¶
Returns the string representation of the model using alias.