Remove BPA from Makefile
[icn.git] / cmd / bpa-operator / vendor / google.golang.org / appengine / internal / modules / modules_service.proto
1 syntax = "proto2";
2 option go_package = "modules";
3
4 package appengine;
5
6 message ModulesServiceError {
7   enum ErrorCode {
8     OK  = 0;
9     INVALID_MODULE = 1;
10     INVALID_VERSION = 2;
11     INVALID_INSTANCES = 3;
12     TRANSIENT_ERROR = 4;
13     UNEXPECTED_STATE = 5;
14   }
15 }
16
17 message GetModulesRequest {
18 }
19
20 message GetModulesResponse {
21   repeated string module = 1;
22 }
23
24 message GetVersionsRequest {
25   optional string module = 1;
26 }
27
28 message GetVersionsResponse {
29   repeated string version = 1;
30 }
31
32 message GetDefaultVersionRequest {
33   optional string module = 1;
34 }
35
36 message GetDefaultVersionResponse {
37   required string version = 1;
38 }
39
40 message GetNumInstancesRequest {
41   optional string module = 1;
42   optional string version = 2;
43 }
44
45 message GetNumInstancesResponse {
46   required int64 instances = 1;
47 }
48
49 message SetNumInstancesRequest {
50   optional string module = 1;
51   optional string version = 2;
52   required int64 instances = 3;
53 }
54
55 message SetNumInstancesResponse {}
56
57 message StartModuleRequest {
58   required string module = 1;
59   required string version = 2;
60 }
61
62 message StartModuleResponse {}
63
64 message StopModuleRequest {
65   optional string module = 1;
66   optional string version = 2;
67 }
68
69 message StopModuleResponse {}
70
71 message GetHostnameRequest {
72   optional string module = 1;
73   optional string version = 2;
74   optional string instance = 3;
75 }
76
77 message GetHostnameResponse {
78   required string hostname = 1;
79 }
80