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
- create(compute_pool: ComputePool, *, mode: Literal['errorifexists'] | Literal['orreplace'] | Literal['ifnotexists'] = 'errorifexists') ComputePoolResource ¶
Create a compute pool in Snowflake.
- Parameters:
service – an instance of
ComputePool
.mode –
One of the following strings.
errorifexists: Throw an
snowflake.core.exceptions.ConflictError
if the compute pool already exists in Snowflake. Equivalent to SQLcreate compute pool <name> ...
.”orreplace”: Replace if the compute pool already exists in Snowflake. Equivalent to SQL
create or replace compute pool <name> ...
.”ifnotexists”: Do nothing if the compute pool already exists in Snowflake. Equivalent to SQL
create compute pool <name> if not exists...
Default value is “errorifexists”.
- create_or_update(compute_pool: ComputePool) ComputePoolResource ¶
Create or update a compute pool in Snowflake.
- items() ItemsView[str, T] ¶
- iter(*, like: str | None = None, startswith: str | None = None, limit: int | None = None, from_name: str | None = None) PagedIter[ComputePool] ¶
Look up compute pools in Snowflake.
- keys() KeysView[str] ¶
- values() ValuesView[T] ¶