deployment.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2019 The Grafeas Authors. All rights reserved.
  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 grafeas.v1;
  16. import "google/protobuf/timestamp.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
  18. option java_multiple_files = true;
  19. option java_package = "io.grafeas.v1";
  20. option objc_class_prefix = "GRA";
  21. // An artifact that can be deployed in some runtime.
  22. message DeploymentNote {
  23. // Required. Resource URI for the artifact being deployed.
  24. repeated string resource_uri = 1;
  25. }
  26. // The period during which some deployable was active in a runtime.
  27. message DeploymentOccurrence {
  28. // Identity of the user that triggered this deployment.
  29. string user_email = 1;
  30. // Required. Beginning of the lifetime of this deployment.
  31. google.protobuf.Timestamp deploy_time = 2;
  32. // End of the lifetime of this deployment.
  33. google.protobuf.Timestamp undeploy_time = 3;
  34. // Configuration used to create this deployment.
  35. string config = 4;
  36. // Address of the runtime element hosting this deployment.
  37. string address = 5;
  38. // Output only. Resource URI for the artifact being deployed taken from
  39. // the deployable field with the same name.
  40. repeated string resource_uri = 6;
  41. // Types of platforms.
  42. enum Platform {
  43. // Unknown.
  44. PLATFORM_UNSPECIFIED = 0;
  45. // Google Container Engine.
  46. GKE = 1;
  47. // Google App Engine: Flexible Environment.
  48. FLEX = 2;
  49. // Custom user-defined platform.
  50. CUSTOM = 3;
  51. }
  52. // Platform hosting this deployment.
  53. Platform platform = 7;
  54. }