deployment.proto 2.2 KB

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