snowflake.core.code_bundle_execution.StageMount

class snowflake.core.code_bundle_execution.StageMount(*, stage_url: Annotated[str, Strict(strict=True)], mount_path: Annotated[str, Strict(strict=True)], cpu_limit: Annotated[str, Strict(strict=True)] | None = None, memory_limit: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

A model object representing the StageMount resource.

Constructs an object of type StageMount with the provided properties.

Parameters:
  • stage_url (str) – Stage path to mount (for example, “@stage/dir”).

  • mount_path (str) – Container path where the stage is mounted.

  • cpu_limit (str, optional) – CPU limit for the mount (not yet implemented).

  • memory_limit (str, optional) – Memory limit for the mount (not yet implemented).

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) → StageMount

Create an instance of StageMount from a dict.

classmethod from_json(json_str: str) → StageMount

Create an instance of StageMount 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.