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