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