Skip to content

Commit 8feac32

Browse files
Google APIscopybara-github
authored andcommitted
feat: updating Cloud Client Libraries with new field NotificationType for advisorynotifications.googleapis.com
PiperOrigin-RevId: 520321196
1 parent 26a424a commit 8feac32

3 files changed

Lines changed: 27 additions & 17 deletions

File tree

google/cloud/advisorynotifications/v1/BUILD.bazel

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ py_gapic_library(
173173
rest_numeric_enums = True,
174174
service_yaml = "advisorynotifications_v1.yaml",
175175
transport = "grpc+rest",
176-
deps = [],
176+
deps = [
177+
],
177178
)
178179

179180
py_test(
@@ -294,9 +295,7 @@ ruby_grpc_library(
294295
ruby_cloud_gapic_library(
295296
name = "advisorynotifications_ruby_gapic",
296297
srcs = [":advisorynotifications_proto_with_info"],
297-
extra_protoc_parameters = [
298-
"ruby-cloud-gem-name=google-cloud-advisory_notifications-v1",
299-
],
298+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-advisory_notifications-v1"],
300299
grpc_service_config = "advisorynotifications_v1_grpc_service_config.json",
301300
rest_numeric_enums = True,
302301
service_yaml = "advisorynotifications_v1.yaml",

google/cloud/advisorynotifications/v1/advisorynotifications_v1.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,16 @@ authentication:
2121
https://www.googleapis.com/auth/cloud-platform
2222
2323
publishing:
24-
organization: CLOUD
25-
new_issue_uri: 'https://issuetracker.google.com/issues/new?component=1009495'
26-
documentation_uri: 'https://cloud.google.com/advisory-notifications/docs/overview'
27-
api_short_name: 'advisorynotifications'
24+
new_issue_uri: https://issuetracker.google.com/issues/new?component=1009495
25+
documentation_uri: https://cloud.google.com/advisory-notifications/docs/overview
26+
api_short_name: advisorynotifications
2827
github_label: 'api: advisorynotifications'
29-
doc_tag_prefix: 'advisorynotifications'
30-
codeowner_github_teams:
28+
doc_tag_prefix: advisorynotifications
29+
organization: CLOUD
3130
library_settings:
32-
- version: 'google.cloud.advisorynotifications.v1'
31+
- version: google.cloud.advisorynotifications.v1
3332
launch_stage: GA
34-
rest_numeric_enums: false
3533
java_settings:
36-
library_package: ''
37-
service_class_names:
3834
common:
3935
destinations:
4036
- PACKAGE_MANAGER

google/cloud/advisorynotifications/v1/service.proto

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -24,11 +24,11 @@ import "google/protobuf/timestamp.proto";
2424

2525
option csharp_namespace = "Google.Cloud.AdvisoryNotifications.V1";
2626
option go_package = "cloud.google.com/go/advisorynotifications/apiv1/advisorynotificationspb;advisorynotificationspb";
27-
option php_namespace = "Google\\Cloud\\AdvisoryNotifications\\V1";
28-
option ruby_package = "Google::Cloud::AdvisoryNotifications::V1";
2927
option java_multiple_files = true;
3028
option java_outer_classname = "ServiceProto";
3129
option java_package = "com.google.cloud.advisorynotifications.v1";
30+
option php_namespace = "Google\\Cloud\\AdvisoryNotifications\\V1";
31+
option ruby_package = "Google::Cloud::AdvisoryNotifications::V1";
3232
option (google.api.resource_definition) = {
3333
type: "advisorynotifications.googleapis.com/Location"
3434
pattern: "organizations/{organization}/locations/{location}"
@@ -92,6 +92,18 @@ enum LocalizationState {
9292
LOCALIZATION_STATE_COMPLETED = 3;
9393
}
9494

95+
// Type of notification
96+
enum NotificationType {
97+
// Default type
98+
NOTIFICATION_TYPE_UNSPECIFIED = 0;
99+
100+
// Security and privacy advisory notifications
101+
NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1;
102+
103+
// Sensitive action notifications
104+
NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2;
105+
}
106+
95107
// A notification object for notifying customers about security and privacy
96108
// issues.
97109
message Notification {
@@ -114,6 +126,9 @@ message Notification {
114126
// Output only. Time the notification was created.
115127
google.protobuf.Timestamp create_time = 4
116128
[(google.api.field_behavior) = OUTPUT_ONLY];
129+
130+
// Type of notification
131+
NotificationType notification_type = 12;
117132
}
118133

119134
// A text object containing the English text and its localized copies.

0 commit comments

Comments
 (0)