modules_service.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. syntax = "proto2";
  2. option go_package = "modules";
  3. package appengine;
  4. message ModulesServiceError {
  5. enum ErrorCode {
  6. OK = 0;
  7. INVALID_MODULE = 1;
  8. INVALID_VERSION = 2;
  9. INVALID_INSTANCES = 3;
  10. TRANSIENT_ERROR = 4;
  11. UNEXPECTED_STATE = 5;
  12. }
  13. }
  14. message GetModulesRequest {
  15. }
  16. message GetModulesResponse {
  17. repeated string module = 1;
  18. }
  19. message GetVersionsRequest {
  20. optional string module = 1;
  21. }
  22. message GetVersionsResponse {
  23. repeated string version = 1;
  24. }
  25. message GetDefaultVersionRequest {
  26. optional string module = 1;
  27. }
  28. message GetDefaultVersionResponse {
  29. required string version = 1;
  30. }
  31. message GetNumInstancesRequest {
  32. optional string module = 1;
  33. optional string version = 2;
  34. }
  35. message GetNumInstancesResponse {
  36. required int64 instances = 1;
  37. }
  38. message SetNumInstancesRequest {
  39. optional string module = 1;
  40. optional string version = 2;
  41. required int64 instances = 3;
  42. }
  43. message SetNumInstancesResponse {}
  44. message StartModuleRequest {
  45. required string module = 1;
  46. required string version = 2;
  47. }
  48. message StartModuleResponse {}
  49. message StopModuleRequest {
  50. optional string module = 1;
  51. optional string version = 2;
  52. }
  53. message StopModuleResponse {}
  54. message GetHostnameRequest {
  55. optional string module = 1;
  56. optional string version = 2;
  57. optional string instance = 3;
  58. }
  59. message GetHostnameResponse {
  60. required string hostname = 1;
  61. }