Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1578)

Unified Diff: appengine/monorail/proto/api_clients_config.proto

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/monorail/proto/__init__.py ('k') | appengine/monorail/proto/api_clients_config_pb2.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/monorail/proto/api_clients_config.proto
diff --git a/appengine/monorail/proto/api_clients_config.proto b/appengine/monorail/proto/api_clients_config.proto
new file mode 100644
index 0000000000000000000000000000000000000000..fd30ee9569cde511a6dc65573110411fc5c1bb9d
--- /dev/null
+++ b/appengine/monorail/proto/api_clients_config.proto
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All Rights Reserved.
+// Use of this source code is governed by the Apache v2.0 license that can be
+// found in the LICENSE file.
+
+// Schemas for monorail api client configs.
+// Command to generate api_clients_config_pb2.py: in monorail/ directory:
+// protoc ./proto/api_clients_config.proto --proto_path=./proto/ --python_out=./proto
+
+
+syntax = "proto2";
+
+package monorail;
+
+message ProjectPermission {
+ enum Role {
+ committer = 1;
+ contributor = 2;
+ }
+
+ optional string project = 1;
+ optional Role role = 2 [default = contributor];
+ repeated string extra_permissions = 3;
+}
+
+message Client {
+ optional string client_email = 1;
+ optional string display_name = 2;
+ optional string client_id = 3;
+ optional string description = 4;
+ repeated ProjectPermission project_permissions = 5;
+ optional int32 period_limit = 6 [default = 100000];
+ optional int32 lifetime_limit = 7 [default = 1000000];
+ repeated string contacts = 8;
+}
+
+message ClientCfg {
+ repeated Client clients = 1;
+}
« no previous file with comments | « appengine/monorail/proto/__init__.py ('k') | appengine/monorail/proto/api_clients_config_pb2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698