Skip to content

Commit 3e039f5

Browse files
Google APIscopybara-github
authored andcommitted
feat: added platform log RolloutUpdateEvent
PiperOrigin-RevId: 574527232
1 parent 5183984 commit 3e039f5

3 files changed

Lines changed: 100 additions & 0 deletions

File tree

google/cloud/deploy/v1/clouddeploy_v1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ types:
1616
- name: google.cloud.deploy.v1.ReleaseNotificationEvent
1717
- name: google.cloud.deploy.v1.ReleaseRenderEvent
1818
- name: google.cloud.deploy.v1.RolloutNotificationEvent
19+
- name: google.cloud.deploy.v1.RolloutUpdateEvent
1920
- name: google.cloud.deploy.v1.TargetNotificationEvent
2021

2122
documentation:

google/cloud/deploy/v1/log_enums.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ enum Type {
4141
// Resource deleted.
4242
TYPE_RESOURCE_DELETED = 6;
4343

44+
// Rollout updated.
45+
TYPE_ROLLOUT_UPDATE = 7;
46+
4447
// Deprecated: This field is never used. Use release_render log type instead.
4548
TYPE_RENDER_STATUES_CHANGE = 2 [deprecated = true];
4649
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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

Comments
 (0)