deploy.proto 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // Copyright 2021 Google LLC
  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.v1beta;
  16. import "google/protobuf/duration.proto";
  17. option csharp_namespace = "Google.Cloud.AppEngine.V1Beta";
  18. option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "DeployProto";
  21. option java_package = "com.google.appengine.v1beta";
  22. option php_namespace = "Google\\Cloud\\AppEngine\\V1beta";
  23. option ruby_package = "Google::Cloud::AppEngine::V1beta";
  24. // Code and application artifacts used to deploy a version to App Engine.
  25. message Deployment {
  26. // Manifest of the files stored in Google Cloud Storage that are included
  27. // as part of this version. All files must be readable using the
  28. // credentials supplied with this call.
  29. map<string, FileInfo> files = 1;
  30. // The Docker image for the container that runs the version.
  31. // Only applicable for instances running in the App Engine flexible environment.
  32. ContainerInfo container = 2;
  33. // The zip file for this deployment, if this is a zip deployment.
  34. ZipInfo zip = 3;
  35. // Google Cloud Build build information. Only applicable for instances running
  36. // in the App Engine flexible environment.
  37. BuildInfo build = 5;
  38. // Options for any Google Cloud Build builds created as a part of this
  39. // deployment.
  40. //
  41. // These options will only be used if a new build is created, such as when
  42. // deploying to the App Engine flexible environment using files or zip.
  43. CloudBuildOptions cloud_build_options = 6;
  44. }
  45. // Single source file that is part of the version to be deployed. Each source
  46. // file that is deployed must be specified separately.
  47. message FileInfo {
  48. // URL source to use to fetch this file. Must be a URL to a resource in
  49. // Google Cloud Storage in the form
  50. // 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
  51. string source_url = 1;
  52. // The SHA1 hash of the file, in hex.
  53. string sha1_sum = 2;
  54. // The MIME type of the file.
  55. //
  56. // Defaults to the value from Google Cloud Storage.
  57. string mime_type = 3;
  58. }
  59. // Docker image that is used to create a container and start a VM instance for
  60. // the version that you deploy. Only applicable for instances running in the App
  61. // Engine flexible environment.
  62. message ContainerInfo {
  63. // URI to the hosted container image in Google Container Registry. The URI
  64. // must be fully qualified and include a tag or digest.
  65. // Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
  66. string image = 1;
  67. }
  68. // Google Cloud Build information.
  69. message BuildInfo {
  70. // The Google Cloud Build id.
  71. // Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
  72. string cloud_build_id = 1;
  73. }
  74. // Options for the build operations performed as a part of the version
  75. // deployment. Only applicable for App Engine flexible environment when creating
  76. // a version using source code directly.
  77. message CloudBuildOptions {
  78. // Path to the yaml file used in deployment, used to determine runtime
  79. // configuration details.
  80. //
  81. // Required for flexible environment builds.
  82. //
  83. // See https://cloud.google.com/appengine/docs/standard/python/config/appref
  84. // for more details.
  85. string app_yaml_path = 1;
  86. // The Cloud Build timeout used as part of any dependent builds performed by
  87. // version creation. Defaults to 10 minutes.
  88. google.protobuf.Duration cloud_build_timeout = 2;
  89. }
  90. // The zip file information for a zip deployment.
  91. message ZipInfo {
  92. // URL of the zip file to deploy from. Must be a URL to a resource in
  93. // Google Cloud Storage in the form
  94. // 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
  95. string source_url = 3;
  96. // An estimate of the number of files in a zip for a zip deployment.
  97. // If set, must be greater than or equal to the actual number of files.
  98. // Used for optimizing performance; if not provided, deployment may be slow.
  99. int32 files_count = 4;
  100. }