snowflake.core.image_repository.ImageRepository¶
- class snowflake.core.image_repository.ImageRepository(name: str, database_name: str | None = None, schema_name: str | None = None, created_on: datetime | None = None, repository_url: str | None = None, owner: str | None = None, owner_role_type: str | None = None)¶
Bases:
object
A model object representing the ImageRepository resource.
Constructs an object of type ImageRepository with the provided properties.
- Parameters:
name (str) – A Snowflake object identifier.
database_name (str, optional) – A Snowflake object identifier.
schema_name (str, optional) – A Snowflake object identifier.
created_on (datetime, optional) – Time the image repository was created.
repository_url (str, optional) – Current URL of the image repository.
owner (str, optional) – Identifier for the current owner of the image repository.
owner_role_type (str, optional) – Role type of the image repository owner.
Methods
- classmethod from_dict(obj: dict) ImageRepositoryModel ¶
Creates an instance of ImageRepository from a dict.
This method constructs a ImageRepository object from a dictionary with the key-value pairs of its properties.
- Parameters:
obj (dict) – A dictionary whose keys and values correspond to the properties of the resource object.
- Returns:
A ImageRepository object created using the input dictionary; this will fail if the required properties are missing.
- Return type:
- to_dict()¶
Creates a dictionary of the properties from a ImageRepository.
This method constructs a dictionary with the key-value entries corresponding to the properties of the ImageRepository object.
- Returns:
A dictionary object created using the input model.
- Return type:
dict