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. |
PubsubConfig
Configuration to publish a Cloud Pub/Sub message.
JSON representation |
---|
{
"topic": string,
"messageFormat": enum ( |
Fields | |
---|---|
topic |
A topic of Cloud Pub/Sub. Values are of the form |
messageFormat |
The format of the Cloud Pub/Sub messages. |
serviceAccountEmail |
Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account. |
MessageFormat
The format of the Cloud Pub/Sub messages.
Enums | |
---|---|
MESSAGE_FORMAT_UNSPECIFIED |
Unspecified. |
PROTOBUF |
The message payload is a serialized protocol buffer of SourceRepoEvent. |
JSON |
The message payload is a JSON string of SourceRepoEvent. |
Methods |
|
---|---|
|
Creates a repo in the given project with the given name. |
|
Deletes a repo. |
|
Returns information about a repo. |
|
Gets the IAM policy policy for a resource. |
|
Returns all repos belonging to a project. |
|
Updates information about a repo. |
|
Sets the IAM policy on the specified resource. |
|
Synchronize a connected repo. |
|
Returns permissions that a caller has on the specified resource. |