deploy.proto 4.0 KB

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