Repositories
get_repository(project_name, repository_name)
async
Get a repository.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_name |
str
|
The name of the project the repository belongs to. |
required |
repository_name |
str
|
The name of the repository. |
required |
Returns:
Type | Description |
---|---|
Repository
|
The repository. |
update_repository(project_name, repository_name, repository)
async
Update a repository.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_name |
str
|
The name of the project the repository belongs to. |
required |
repository_name |
str
|
The name of the repository. |
required |
repository |
Repository
|
The new repository values. |
required |
delete_repository(project_name, repository_name, missing_ok=None)
async
Delete a repository.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_name |
str
|
The name of the project the repository belongs to. |
required |
repository_name |
str
|
The name of the repository. |
required |
missing_ok |
Optional[bool]
|
DEPRECATED: If true, Do not raise an error if the repository does not exist. |
None
|
get_repositories(project_name=None, query=None, sort=None, page=1, page_size=10, limit=None, **kwargs)
async
Get a list of all repositories, optionally only in a specific project.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_name |
Optional[str]
|
The name of the project to retrieve repositories from. If None, retrieve repositories from all projects. |
None
|
query |
str
|
The query string to filter the repositories. Supported query patterns are:
The value of range and list can be:
All of these query patterns should be put in the query string
and separated by |
None
|
sort |
str
|
The sort method. TODO: add boilerplate sort documentation |
None
|
page |
int
|
The page of results to return |
1
|
page_size |
int
|
The number of results to return per page |
10
|
limit |
Optional[int]
|
The maximum number of results to return. |
None
|
Returns:
Type | Description |
---|---|
List[Repository]
|
A list of repositories matching the query. |