snowflake.core.compute_pool.ComputePoolResource

class snowflake.core.compute_pool.ComputePoolResource(name: str, collection: ComputePoolCollection)

Bases: ObjectReferenceMixin[ComputePoolCollection]

A reference to a Compute Pool in Snowflake.

Attributes

root

Methods

__init__(name: str, collection: ComputePoolCollection) None
create_or_update(compute_pool: ComputePoolModel) None

Create or update a compute pool in Snowflake.

delete() None

Delete this compute pool.

fetch() ComputePoolModel

Fetch the compute pool details from Snowflake.

resume() None

Resume the compute pool.

stop_all_services() None

Stop all services that run on this compute pool.

suspend() None

Suspend the compute pool.

语言: 中文