Skip to main content

repos

Overview

Namerepos
TypeResource
Idgoogle.sourcerepo.repos

Fields

NameDatatypeDescription
namestringResource name of the repository, of the form projects//repos/. The repo name may contain slashes. eg, projects/myproject/repos/name/with/slash
pubsubConfigsobjectHow this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
sizestringThe disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
urlstringURL to clone the repository from Google Cloud Source Repositories. Read-only field.
mirrorConfigobjectConfiguration to automatically mirror a repository from another hosting service, for example GitHub or Bitbucket.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprojectsId, reposIdReturns information about a repo.
listSELECTprojectsIdReturns 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.
createINSERTprojectsIdCreates a repo in the given project with the given name. If the named repository already exists, CreateRepo returns ALREADY_EXISTS.
deleteDELETEprojectsId, reposIdDeletes a repo.
_listEXECprojectsIdReturns 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.
patchEXECprojectsId, reposIdUpdates information about a repo.
syncEXECprojectsId, reposIdSynchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.