Resource: Repo
A repository (or repo) is a Git repository storing versioned source content.
JSON representation | |
---|---|
{ "name": string, "size": string, "url": string, "mirrorConfig": { object( |
Fields | |
---|---|
name |
Resource name of the repository, of the form |
size |
The disk usage of the repo, in bytes. Read-only field. Size is only returned by repos.get. |
url |
URL to clone the repository from Google Cloud Source Repositories. Read-only field. |
mirrorConfig |
How this repository mirrors a repository managed by another service. Read-only field. |
pubsubConfigs |
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. An object containing a list of |
MirrorConfig
Configuration to automatically mirror a repository from another hosting service, for example GitHub or Bitbucket.
JSON representation | |
---|---|
{ "url": string, "webhookId": string, "deployKeyId": string } |
Fields | |
---|---|
url |
URL of the main repository at the other hosting service. |
webhookId |
ID of the webhook listening to updates to trigger mirroring. Removing this webhook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring. |
deployKeyId |
ID of the SSH deploy key at the other hosting service. Removing this key from the other service would deauthorize Google Cloud Source Repositories from mirroring. |
Methods |
|
---|---|
|
Creates a repo in the given project with the given name. |
|
Deletes a repo. |
|
Returns information about a repo. |
|
Gets the access control policy for a resource. |
|
Returns all repos belonging to a project. |
|
Updates information about a repo. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |