Collection: projects.repos

Resource: Repo

A repository (or repo) is a Git repository storing versioned source content.

JSON representation
{
  "name": string,
  "size": string,
  "url": string,
  "mirrorConfig": {
    object(MirrorConfig)
  },
}
Fields
name

string

Resource name of the repository, of the form projects/<project>/repos/<repo>.

size

string (int64 format)

The size in bytes of the repo.

url

string

URL to clone the repository from Google Cloud Source Repositories.

mirrorConfig

object(MirrorConfig)

How this repository mirrors a repository managed by another service.

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

string

URL of the main repository at the other hosting service.

webhookId

string

ID of the webhook listening to updates to trigger mirroring. Removing this webook from the other hosting service will stop Google Cloud Source Repositories from receiving notifications, and thereby disabling mirroring.

deployKeyId

string

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

create

Creates a repo in the given project with the given name..

delete

Deletes a repo.

get

Returns information about a repo.

getIamPolicy

Gets the access control policy for a resource.

list

Returns all repos belonging to a project.

setIamPolicy

Sets the access control policy on the specified resource.

testIamPermissions

Returns permissions that a caller has on the specified resource.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Source Repositories