deploy.proto 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. option java_multiple_files = true;
  18. option java_outer_classname = "DeployProto";
  19. option java_package = "com.google.appengine.v1";
  20. // Code and application artifacts used to deploy a version to App Engine.
  21. message Deployment {
  22. // Manifest of the files stored in Google Cloud Storage that are included
  23. // as part of this version. All files must be readable using the
  24. // credentials supplied with this call.
  25. map<string, FileInfo> files = 1;
  26. // A Docker image that App Engine uses to run the version.
  27. // Only applicable for instances in App Engine flexible environment.
  28. ContainerInfo container = 2;
  29. // The zip file for this deployment, if this is a zip deployment.
  30. ZipInfo zip = 3;
  31. }
  32. // Single source file that is part of the version to be deployed. Each source
  33. // file that is deployed must be specified separately.
  34. message FileInfo {
  35. // URL source to use to fetch this file. Must be a URL to a resource in
  36. // Google Cloud Storage in the form
  37. // 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
  38. string source_url = 1;
  39. // The SHA1 hash of the file, in hex.
  40. string sha1_sum = 2;
  41. // The MIME type of the file.
  42. //
  43. // Defaults to the value from Google Cloud Storage.
  44. string mime_type = 3;
  45. }
  46. // Docker image that is used to start a VM container for the version you
  47. // deploy.
  48. message ContainerInfo {
  49. // URI to the hosted container image in a Docker repository. The URI must be
  50. // fully qualified and include a tag or digest.
  51. // Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
  52. string image = 1;
  53. }
  54. message ZipInfo {
  55. // URL of the zip file to deploy from. Must be a URL to a resource in
  56. // Google Cloud Storage in the form
  57. // 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
  58. string source_url = 3;
  59. // An estimate of the number of files in a zip for a zip deployment.
  60. // If set, must be greater than or equal to the actual number of files.
  61. // Used for optimizing performance; if not provided, deployment may be slow.
  62. int32 files_count = 4;
  63. }