Synchronize new proto changes.

This commit is contained in:
Google APIs 2017-11-12 13:03:13 -08:00
parent 52f86e2155
commit e2aab8c06b
2 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,20 @@
type: google.api.Service
config_version: 3
name: sourcerepo.googleapis.com
title: Cloud Source Repositories API
apis:
- name: google.devtools.sourcerepo.v1.SourceRepo
documentation:
summary: Access source code repositories hosted by Google.
authentication:
rules:
- selector: '*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/source.full_control,
https://www.googleapis.com/auth/source.read_only,
https://www.googleapis.com/auth/source.read_write

View File

@ -17,7 +17,6 @@ syntax = "proto3";
package google.devtools.sourcerepo.v1;
import "google/api/annotations.proto";
import "google/api/auth.proto";
import "google/iam/v1/iam_policy.proto";
import "google/iam/v1/policy.proto";
import "google/protobuf/empty.proto";
@ -78,17 +77,20 @@ service SourceRepo {
// A repository (or repo) is a Git repository storing versioned source content.
message Repo {
// Resource name of the repository, of the form
// `projects/<project>/repos/<repo>`.
// `projects/<project>/repos/<repo>`. The repo name may contain slashes.
// eg, `projects/myproject/repos/name/with/slash`
string name = 1;
// The disk usage of the repo, in bytes.
// Only returned by GetRepo.
// The disk usage of the repo, in bytes. Read-only field. Size is only
// returned by GetRepo.
int64 size = 2;
// URL to clone the repository from Google Cloud Source Repositories.
// Read-only field.
string url = 3;
// How this repository mirrors a repository managed by another service.
// Read-only field.
MirrorConfig mirror_config = 4;
}
@ -99,7 +101,7 @@ message MirrorConfig {
string url = 1;
// ID of the webhook listening to updates to trigger mirroring.
// Removing this webook from the other hosting service will stop
// Removing this webhook from the other hosting service will stop
// Google Cloud Source Repositories from receiving notifications,
// and thereby disabling mirroring.
string webhook_id = 2;