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¶
Methods
- __init__(schema: SchemaResource)¶
- create(image_repository: ImageRepository, mode: Literal['errorifexists'] | Literal['orreplace'] | Literal['ifnotexists'] = 'errorifexists') ImageRepositoryResource ¶
Create an image repository to Snowflake.
- Parameters:
image_repository – an instance of
ImageRepository
.mode –
One of the following strings.
”errorifexists”: Throw an
snowflake.core.exceptions.ConflictError
if the image repository already exists in Snowflake. Equivalent to SQLcreate image repository <name> ...
.”orreplace”: Replace if the image repository already exists in Snowflake. Equivalent to SQL
create or replace image repository <name> ...
.”ifnotexists”: Do nothing if the image repository already exists in Snowflake. Equivalent to SQL
create image repository <name> if not exists...
Default value is “errorifexists”.
- items() ItemsView[str, T] ¶
- iter(*, like: str | None = None, startswith: str | None = None, limit: int | None = None, from_name: str | None = None) PagedIter[ImageRepository] ¶
Look up image repositories in Snowflake.
- keys() KeysView[str] ¶
- values() ValuesView[T] ¶