application.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Copyright 2016 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.appengine.v1;
  16. import "google/api/annotations.proto";
  17. import "google/protobuf/duration.proto";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ApplicationProto";
  20. option java_package = "com.google.appengine.v1";
  21. // An Application resource contains the top-level configuration of an App
  22. // Engine application.
  23. message Application {
  24. // Full path to the Application resource in the API.
  25. // Example: `apps/myapp`.
  26. //
  27. // @OutputOnly
  28. string name = 1;
  29. // Identifier of the Application resource. This identifier is equivalent
  30. // to the project ID of the Google Cloud Platform project where you want to
  31. // deploy your application.
  32. // Example: `myapp`.
  33. string id = 2;
  34. // HTTP path dispatch rules for requests to the application that do not
  35. // explicitly target a service or version. Rules are order-dependent.
  36. //
  37. // @OutputOnly
  38. repeated UrlDispatchRule dispatch_rules = 3;
  39. // Google Apps authentication domain that controls which users can access
  40. // this application.
  41. //
  42. // Defaults to open access for any Google Account.
  43. string auth_domain = 6;
  44. // Location from which this application will be run. Application instances
  45. // will run out of data centers in the chosen location, which is also where
  46. // all of the application's end user content is stored.
  47. //
  48. // Defaults to `us-central`.
  49. //
  50. // Options are:
  51. //
  52. // `us-central` - Central US
  53. //
  54. // `europe-west` - Western Europe
  55. //
  56. // `us-east1` - Eastern US
  57. string location_id = 7;
  58. // Google Cloud Storage bucket that can be used for storing files
  59. // associated with this application. This bucket is associated with the
  60. // application and can be used by the gcloud deployment commands.
  61. //
  62. // @OutputOnly
  63. string code_bucket = 8;
  64. // Cookie expiration policy for this application.
  65. //
  66. // @OutputOnly
  67. google.protobuf.Duration default_cookie_expiration = 9;
  68. // Hostname used to reach this application, as resolved by App Engine.
  69. //
  70. // @OutputOnly
  71. string default_hostname = 11;
  72. // Google Cloud Storage bucket that can be used by this application to store
  73. // content.
  74. //
  75. // @OutputOnly
  76. string default_bucket = 12;
  77. }
  78. // Rules to match an HTTP request and dispatch that request to a service.
  79. message UrlDispatchRule {
  80. // Domain name to match against. The wildcard "`*`" is supported if
  81. // specified before a period: "`*.`".
  82. //
  83. // Defaults to matching all domains: "`*`".
  84. string domain = 1;
  85. // Pathname within the host. Must start with a "`/`". A
  86. // single "`*`" can be included at the end of the path. The sum
  87. // of the lengths of the domain and path may not exceed 100
  88. // characters.
  89. string path = 2;
  90. // Resource ID of a service in this application that should
  91. // serve the matched request. The service must already
  92. // exist. Example: `default`.
  93. string service = 3;
  94. }