snowflake.core.compute_pool.ComputePoolCollection

class snowflake.core.compute_pool.ComputePoolCollection(root: Root)

Bases: AccountObjectCollectionParent[ComputePoolResource]

Represents the collection operations of the Snowflake Compute Pool resource.

Attributes

root

Methods

__init__(root: Root) None
create(compute_pool: ComputePoolModel, *, mode: CreateMode = CreateMode.error_if_exists) ComputePoolResource

Create a compute pool in Snowflake.

Parameters:
  • service – an instance of ComputePool.

  • mode

    One of the following strings.

    CreateMode.error_if_exists: Throw an snowflake.core.exceptions.ConflictError if the compute pool already exists in Snowflake. Equivalent to SQL create compute pool <name> ....

    CreateMode.or_replace: Replace if the compute pool already exists in Snowflake. Equivalent to SQL create or replace compute pool <name> ....

    CreateMode.if_not_exists: Do nothing if the compute pool already exists in Snowflake. Equivalent to SQL create compute pool <name> if not exists...

    Default value is CreateMode.error_if_exists.

items() ItemsView[str, T]
iter(*, like: str | None = None, starts_with: str | None = None, limit: int | None = None) PagedIter[ComputePoolModel]

Look up compute pools in Snowflake.

keys() KeysView[str]
values() ValuesView[T]