|
| 1 | +// Copyright 2023 Google LLC |
| 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 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.cloud.deploy.v1; |
| 18 | + |
| 19 | +import "google/api/field_behavior.proto"; |
| 20 | +import "google/cloud/deploy/v1/log_enums.proto"; |
| 21 | + |
| 22 | +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; |
| 23 | +option java_multiple_files = true; |
| 24 | +option java_outer_classname = "RolloutUpdatePayloadProto"; |
| 25 | +option java_package = "com.google.cloud.deploy.v1"; |
| 26 | + |
| 27 | +// Payload proto for "clouddeploy.googleapis.com/rollout_update" |
| 28 | +// Platform Log event that describes the rollout update event. |
| 29 | +message RolloutUpdateEvent { |
| 30 | + // RolloutUpdateType indicates the type of the rollout update. |
| 31 | + enum RolloutUpdateType { |
| 32 | + // Rollout update type unspecified. |
| 33 | + ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0; |
| 34 | + |
| 35 | + // rollout state updated to pending. |
| 36 | + PENDING = 1; |
| 37 | + |
| 38 | + // Rollout state updated to pending release. |
| 39 | + PENDING_RELEASE = 2; |
| 40 | + |
| 41 | + // Rollout state updated to in progress. |
| 42 | + IN_PROGRESS = 3; |
| 43 | + |
| 44 | + // Rollout state updated to cancelling. |
| 45 | + CANCELLING = 4; |
| 46 | + |
| 47 | + // Rollout state updated to cancelled. |
| 48 | + CANCELLED = 5; |
| 49 | + |
| 50 | + // Rollout state updated to halted. |
| 51 | + HALTED = 6; |
| 52 | + |
| 53 | + // Rollout state updated to succeeded. |
| 54 | + SUCCEEDED = 7; |
| 55 | + |
| 56 | + // Rollout state updated to failed. |
| 57 | + FAILED = 8; |
| 58 | + |
| 59 | + // Rollout requires approval. |
| 60 | + APPROVAL_REQUIRED = 9; |
| 61 | + |
| 62 | + // Rollout has been approved. |
| 63 | + APPROVED = 10; |
| 64 | + |
| 65 | + // Rollout has been rejected. |
| 66 | + REJECTED = 11; |
| 67 | + |
| 68 | + // Rollout requires advance to the next phase. |
| 69 | + ADVANCE_REQUIRED = 12; |
| 70 | + |
| 71 | + // Rollout has been advanced. |
| 72 | + ADVANCED = 13; |
| 73 | + } |
| 74 | + |
| 75 | + // Unique identifier of the pipeline. |
| 76 | + string pipeline_uid = 1; |
| 77 | + |
| 78 | + // Unique identifier of the release. |
| 79 | + string release_uid = 2; |
| 80 | + |
| 81 | + // The name of the rollout. |
| 82 | + string rollout = 3; |
| 83 | + |
| 84 | + // ID of the target. |
| 85 | + string target_id = 4; |
| 86 | + |
| 87 | + // Output only. The type of the rollout update. |
| 88 | + RolloutUpdateType rollout_update_type = 5 |
| 89 | + [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 90 | + |
| 91 | + // Debug message for when a rollout update event occurs. |
| 92 | + string message = 6; |
| 93 | + |
| 94 | + // Type of this notification, e.g. for a rollout update event. |
| 95 | + Type type = 7; |
| 96 | +} |
0 commit comments