snowflake.core.code_bundle.CodeBundle¶
- class snowflake.core.code_bundle.CodeBundle(*, name: Annotated[str, Strict(strict=True)], from_location: Annotated[str, Strict(strict=True)] | None = None, comment: Annotated[str, Strict(strict=True)] | None = None, created_on: datetime | 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, owner: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, owner_role_type: Annotated[str, Strict(strict=True)] | None = None, default_version_details: VersionDetails | None = None, last_version_details: VersionDetails | None = None, live_version_location_uri: Annotated[str, Strict(strict=True)] | None = None, container_type: Annotated[str, Strict(strict=True)] | None = None, container_database: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, container_schema: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, container_name: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None)¶
Bases:
BaseModelA model object representing the CodeBundle resource.
Constructs an object of type CodeBundle with the provided properties.
- Parameters:
name (str) – Name of the code bundle.
from_location (str, optional) – Stage location to copy the code bundle files from. This must be a Snowflake stage location.
comment (str, optional) – User comment associated with the code bundle.
created_on (datetime, optional) – Date and time when the code bundle was created — Read-only: any user-provided value will be ignored.
database_name (str, optional) – Database in which the code bundle is stored — Read-only: any user-provided value will be ignored.
schema_name (str, optional) – Schema in which the code bundle is stored — Read-only: any user-provided value will be ignored.
owner (str, optional) – Role that owns the code bundle — Read-only: any user-provided value will be ignored.
owner_role_type (str, optional) – The type of role that owns the code bundle — Read-only: any user-provided value will be ignored.
default_version_details (VersionDetails, optional)
last_version_details (VersionDetails, optional)
live_version_location_uri (str, optional) – The current (live) version location — Read-only: any user-provided value will be ignored.
container_type (str, optional) – The type of the entity that contains this code bundle — Read-only: any user-provided value will be ignored.
container_database (str, optional) – Database of the entity that contains this code bundle — Read-only: any user-provided value will be ignored.
container_schema (str, optional) – Schema of the entity that contains this code bundle — Read-only: any user-provided value will be ignored.
container_name (str, optional) – Name of the entity that contains this code bundle — Read-only: any user-provided value will be ignored.
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) CodeBundle¶
Create an instance of CodeBundle from a dict.
- classmethod from_json(json_str: str) CodeBundle¶
Create an instance of CodeBundle 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.