ai_core_sdk.models.repository module

class ai_core_sdk.models.repository.Repository(name: str, url: str, status: RepositoryStatus = None, **kwargs)

Bases: object

The Repository object defines the repository

Parameters:
  • name (str) – name of the repository

  • url (str) – URL of the repository

  • status (class:ai_core_sdk.models.repository_status.RepositoryStatus, optional) – status of the repository, defaults to None

__init__(name: str, url: str, status: RepositoryStatus = None, **kwargs)
static from_dict(repository_dict: Dict[str, str])

Returns a ai_core_sdk.models.repository.Repository object, created from the values in the dict provided as parameter

Parameters:

repository_dict (Dict[str, Any]) – Dict which includes the necessary values to create the object

Returns:

An object, created from the values provided

Return type:

class:ai_core_sdk.models.repository.Repository