snowflake.core.external_volume.ExternalVolumeResourceΒΆ

class snowflake.core.external_volume.ExternalVolumeResource(name: str, collection_class: ExternalVolumeCollectionBase)ΒΆ

Bases: ExternalVolumeResourceBase

Represents a reference to a Snowflake external volume.

With this external volume reference, you can fetch information about external volumes, as well as perform certain actions on them.

Attributes

rootΒΆ

The Root object this reference belongs to.

Methods

drop(if_exists: bool | None = None) β†’ NoneΒΆ

Delete an external volume.

Parameters:

if_exists (bool) – Parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn’t exist.

drop_async(if_exists: bool | None = None) β†’ PollingOperation[None]ΒΆ

An asynchronous version of drop().

Refer to PollingOperation for more information on asynchronous execution and the return type.

fetch() β†’ ExternalVolumeΒΆ

Fetch an external volume.

fetch_async() β†’ PollingOperation[ExternalVolume]ΒΆ

An asynchronous version of fetch().

Refer to PollingOperation for more information on asynchronous execution and the return type.

undrop() β†’ NoneΒΆ

Undrop an external volume.

undrop_async() β†’ PollingOperation[None]ΒΆ

An asynchronous version of undrop().

Refer to PollingOperation for more information on asynchronous execution and the return type.