repos
Overview
Name | repos |
Type | Resource |
Id | google.sourcerepo.repos |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Resource name of the repository, of the form projects//repos/ . The repo name may contain slashes. eg, projects/myproject/repos/name/with/slash |
pubsubConfigs | object | How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. |
size | string | The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo. |
url | string | URL to clone the repository from Google Cloud Source Repositories. Read-only field. |
mirrorConfig | object | Configuration to automatically mirror a repository from another hosting service, for example GitHub or Bitbucket. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | projectsId, reposId | Returns information about a repo. |
list | SELECT | projectsId | Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo. |
create | INSERT | projectsId | Creates a repo in the given project with the given name. If the named repository already exists, CreateRepo returns ALREADY_EXISTS . |
delete | DELETE | projectsId, reposId | Deletes a repo. |
_list | EXEC | projectsId | Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo. |
patch | EXEC | projectsId, reposId | Updates information about a repo. |
sync | EXEC | projectsId, reposId | Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field. |