snowflake.core.image_repository.ImageRepositoryCollection

class snowflake.core.image_repository.ImageRepositoryCollection(schema: SchemaResource)

Bases: SchemaObjectCollectionParent[ImageRepositoryResource]

Represents the collection operations of the Snowflake Image Repository resource.

Attributes

database
root
schema

Methods

__init__(schema: SchemaResource)
create(image_repository: ImageRepositoryModel, mode: CreateMode = CreateMode.error_if_exists) ImageRepositoryResource

Create an image repository to Snowflake.

Parameters:
  • image_repository – an instance of ImageRepository.

  • mode

    One of the following strings.

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

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

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

    Default value is CreateMode.error_if_exists.

items() ItemsView[str, T]
iter(*, like: str | None = None) Iterator[ImageRepositoryModel]

Look up image repositories in Snowflake.

keys() KeysView[str]
values() ValuesView[T]
语言: 中文