snowflake.core.image_repository.ImageRepositoryResource¶
- class snowflake.core.image_repository.ImageRepositoryResource(name: str, collection_class: ImageRepositoryCollectionBase)¶
- Bases: - ImageRepositoryResourceBase- Represents a reference to a Snowflake image repository. - With this image repository reference, you can create and fetch information about image repositories, as well as perform certain actions on them. - Attributes - database¶
- The DatabaseResource this reference belongs to. 
 - fully_qualified_name¶
- Return the fully qualified name of the object this reference points to. 
 - root¶
- The Root object this reference belongs to. 
 - Methods - delete() None¶
- The - delete()method is deprecated; use- drop()instead.- Delete this image repository. - Deleting an image repository using its reference: - >>> image_repository_reference.delete() 
 - drop(if_exists: bool | None = None) None¶
- Deletes an image repository. - Parameters:
- if_exists (bool) – Parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn’t exist. 
 
 - drop_async(if_exists: bool | None = None) PollingOperation[None]¶
- An asynchronous version of - drop().- Refer to - PollingOperationfor more information on asynchronous execution and the return type.
 - fetch() ImageRepositoryModel¶
- Fetch the details of an image repository. - Examples - Fetching a reference to an image repository to print its name and properties: - >>> my_image_repository = image_repository_reference.fetch() >>> print(my_image_repository.name) 
 - fetch_async() PollingOperation[ImageRepositoryModel]¶
- An asynchronous version of - fetch().- Refer to - PollingOperationfor more information on asynchronous execution and the return type.
 - list_images_in_repository() Iterable[Image]¶
- List images in the image repository. 
 - list_images_in_repository_async() PollingOperation[Iterable[Image]]¶
- An asynchronous version of - list_images_in_repository().- Refer to - PollingOperationfor more information on asynchronous execution and the return type.