Index
SourceRepo
(interface)CreateRepoRequest
(message)DeleteRepoRequest
(message)GetProjectConfigRequest
(message)GetRepoRequest
(message)ListReposRequest
(message)ListReposResponse
(message)MirrorConfig
(message)ProjectConfig
(message)PubsubConfig
(message)PubsubConfig.MessageFormat
(enum)Repo
(message)SyncRepoMetadata
(message)SyncRepoRequest
(message)UpdateProjectConfigRequest
(message)UpdateRepoRequest
(message)
SourceRepo
The Source Repo API service.
CreateRepo |
---|
Creates a repo in the given project with the given name. If the named repository already exists,
|
DeleteRepo |
---|
Deletes a repo.
|
GetIamPolicy |
---|
Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
|
GetProjectConfig |
---|
Returns the Cloud Source Repositories configuration of the project.
|
GetRepo |
---|
Returns information about a repo.
|
ListRepos |
---|
Returns 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.
|
SetIamPolicy |
---|
Sets the IAM policy on the specified resource. Replaces any existing policy.
|
SyncRepo |
---|
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
|
TestIamPermissions |
---|
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
|
UpdateProjectConfig |
---|
Updates the Cloud Source Repositories configuration of the project.
|
UpdateRepo |
---|
Updates information about a repo.
|
CreateRepoRequest
Request for CreateRepo
Fields | |
---|---|
parent |
The project in which to create the repo. Values are of the form Authorization requires the following IAM permission on the specified resource
|
repo |
The repo to create. Only name should be set; setting other fields is an error. The project in the name should match the parent field. |
DeleteRepoRequest
Request for DeleteRepo.
Fields | |
---|---|
name |
The name of the repo to delete. Values are of the form Authorization requires the following IAM permission on the specified resource
|
GetProjectConfigRequest
Request for GetProjectConfig.
Fields | |
---|---|
name |
The name of the requested project. Values are of the form Authorization requires the following IAM permission on the specified resource
|
GetRepoRequest
Request for GetRepo.
Fields | |
---|---|
name |
The name of the requested repository. Values are of the form Authorization requires the following IAM permission on the specified resource
|
ListReposRequest
Request for ListRepos.
Fields | |
---|---|
name |
The project ID whose repos should be listed. Values are of the form Authorization requires the following IAM permission on the specified resource
|
page_size |
Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server. |
page_token |
Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior ListReposResponse's next_page_token field. |
ListReposResponse
Response for ListRepos. The size is not set in the returned repositories.
Fields | |
---|---|
repos[] |
The listed repos. |
next_page_token |
If non-empty, additional repositories exist within the project. These can be retrieved by including this value in the next ListReposRequest's page_token field. |
MirrorConfig
Configuration to automatically mirror a repository from another hosting service, for example GitHub or Bitbucket.
Fields | |
---|---|
url |
URL of the main repository at the other hosting service. |
webhook_id |
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. |
deploy_key_id |
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. |
ProjectConfig
Cloud Source Repositories configuration of a project.
Fields | |
---|---|
name |
The name of the project. Values are of the form |
pubsub_configs |
How this project publishes a change in the repositories through Cloud Pub/Sub. Keyed by the topic names. |
enable_private_key_check |
Reject a Git push that contains a private key. |
PubsubConfig
Configuration to publish a Cloud Pub/Sub message.
Fields | |
---|---|
topic |
A topic of Cloud Pub/Sub. Values are of the form |
message_format |
The format of the Cloud Pub/Sub messages. |
service_account_email |
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. |
Repo
A repository (or repo) is a Git repository storing versioned source content.
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 GetRepo. |
url |
URL to clone the repository from Google Cloud Source Repositories. Read-only field. |
mirror_config |
How this repository mirrors a repository managed by another service. Read-only field. |
pubsub_configs |
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names. |
SyncRepoMetadata
Metadata of SyncRepo.
This message is in the metadata field of Operation.
Fields | |
---|---|
name |
The name of the repo being synchronized. Values are of the form |
status_message |
The latest status message on syncing the repository. |
start_time |
The time this operation is started. |
update_time |
The time this operation's status message is updated. |
SyncRepoRequest
Request for SyncRepo.
Fields | |
---|---|
name |
The name of the repo to synchronize. Values are of the form Authorization requires the following IAM permission on the specified resource
|
UpdateProjectConfigRequest
Request for UpdateProjectConfig.
Fields | |
---|---|
name |
The name of the requested project. Values are of the form Authorization requires the following IAM permission on the specified resource
|
project_config |
The new configuration for the project. |
update_mask |
A FieldMask specifying which fields of the project_config to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op. |
UpdateRepoRequest
Request for UpdateRepo.
Fields | |
---|---|
name |
The name of the requested repository. Values are of the form Authorization requires the following IAM permission on the specified resource
|
repo |
The new configuration for the repository. |
update_mask |
A FieldMask specifying which fields of the repo to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op. |