Skip to content

Commit 41d7a83

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Automation API and Rollback API
chore: update platform logs docs: small documentation updates PiperOrigin-RevId: 578872129
1 parent a70dd17 commit 41d7a83

8 files changed

Lines changed: 1143 additions & 89 deletions

google/cloud/deploy/v1/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
2121
proto_library(
2222
name = "deploy_proto",
2323
srcs = [
24+
"automation_payload.proto",
25+
"automationrun_payload.proto",
2426
"cloud_deploy.proto",
2527
"deliverypipeline_notification_payload.proto",
2628
"jobrun_notification_payload.proto",
2729
"log_enums.proto",
2830
"release_notification_payload.proto",
2931
"release_render_payload.proto",
3032
"rollout_notification_payload.proto",
33+
"rollout_update_payload.proto",
3134
"target_notification_payload.proto",
3235
],
3336
deps = [
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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/cloud/deploy/v1/log_enums.proto";
20+
21+
option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "AutomationPayloadProto";
24+
option java_package = "com.google.cloud.deploy.v1";
25+
26+
// Payload proto for "clouddeploy.googleapis.com/automation"
27+
// Platform Log event that describes the Automation related events.
28+
message AutomationEvent {
29+
// Debug message for when there is an update on the AutomationRun.
30+
// Provides further details about the resource creation or state change.
31+
string message = 1;
32+
33+
// The name of the `AutomationRun`.
34+
string automation = 2;
35+
36+
// Unique identifier of the `DeliveryPipeline`.
37+
string pipeline_uid = 3;
38+
39+
// Type of this notification, e.g. for a Pub/Sub failure.
40+
Type type = 4;
41+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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/cloud/deploy/v1/log_enums.proto";
20+
21+
option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "AutomationRunPayloadProto";
24+
option java_package = "com.google.cloud.deploy.v1";
25+
26+
// Payload proto for "clouddeploy.googleapis.com/automation_run"
27+
// Platform Log event that describes the AutomationRun related events.
28+
message AutomationRunEvent {
29+
// Debug message for when there is an update on the AutomationRun.
30+
// Provides further details about the resource creation or state change.
31+
string message = 1;
32+
33+
// The name of the `AutomationRun`.
34+
string automation_run = 2;
35+
36+
// Unique identifier of the `DeliveryPipeline`.
37+
string pipeline_uid = 3;
38+
39+
// Identifier of the `Automation`.
40+
string automation_id = 4;
41+
42+
// Identifier of the `Automation` rule.
43+
string rule_id = 5;
44+
45+
// ID of the `Target` to which the `AutomationRun` is created.
46+
string destination_target_id = 6;
47+
48+
// Type of this notification, e.g. for a Pub/Sub failure.
49+
Type type = 7;
50+
}

0 commit comments

Comments
 (0)