REST Resource: 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>. The repo name may contain slashes. eg, projects/myproject/repos/name/with/slash

size

string (int64 format)

The disk usage of the repo, in bytes. Read-only field. Size is only returned by repos.get.

url

string

URL to clone the repository from Google Cloud Source Repositories. Read-only field.

mirrorConfig

object(MirrorConfig)

How this repository mirrors a repository managed by another service. Read-only field.

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 webhook 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