google-cloud-advisory_notifications-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4686ad87bde5a52207fbb53dee9c79fee6e851125ef300e4e86601bc9d3d702
4
- data.tar.gz: 1cbd5e1af7a672059957b1fc9a8e5317d41a2e97936de9ffdf59f2525cc24607
3
+ metadata.gz: '086f26f7c99e3186e3b289c3e60bc873401218a5f4c09823418818b30914fe35'
4
+ data.tar.gz: ef739413ece3e51cd2b8a9305afc34551081302749fa0cf808a99638e5009533
5
5
  SHA512:
6
- metadata.gz: a72db8d741b1658b0b8d20c58c54f445fc55e1102990eee4de67a2cf65da476ed4e6cf3e09f641baf3784b18574278ecb3df0cc0e850cbb9b46c27753cf7ba92
7
- data.tar.gz: 6d38d2aad090987c4966dd7c122fe54bbb9f8e4b0eac277090bac6edafce423b1e426eba87047fa159206673ba4c07d322c004650616e4fb8c1f091dfa16e788
6
+ metadata.gz: 597fde2c784bf0716c90c08c11c8ceb19ba6d2cd3c4713a5a9467e3b5fa007e0828d6abeaddca49dd605d1fefe1279c093a17a10d79cfa479bde5aba33db440a
7
+ data.tar.gz: 6020bf190dc18c11d17b432c71da9f94e9e1b8c779c6554aa3fbb9bba3d698c3019e810c66b64afa3ad4bd6fee6f2f374b91ad87678d7a81986d1d45dec67550
@@ -175,7 +175,8 @@ module Google
175
175
  #
176
176
  # @param parent [::String]
177
177
  # Required. The parent, which owns this collection of notifications.
178
- # Must be of the form "organizations/\\{organization}/locations/\\{location}".
178
+ # Must be of the form "organizations/\\{organization}/locations/\\{location}"
179
+ # or "projects/\\{project}/locations/\\{location}"
179
180
  # @param page_size [::Integer]
180
181
  # The maximum number of notifications to return. The service may return
181
182
  # fewer than this value. If unspecified or equal to 0, at most 50
@@ -285,7 +286,8 @@ module Google
285
286
  # @param name [::String]
286
287
  # Required. A name of the notification to retrieve.
287
288
  # Format:
288
- # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}.
289
+ # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}
290
+ # or projects/\\{projects}/locations/\\{location}/notifications/\\{notification}.
289
291
  # @param language_code [::String]
290
292
  # ISO code for requested localization language. If unset, will be
291
293
  # interpereted as "en". If the requested language is valid, but not supported
@@ -27,37 +27,83 @@ module Google
27
27
  ##
28
28
  # Create a fully-qualified Location resource string.
29
29
  #
30
- # The resource will be in the following format:
30
+ # @overload location_path(organization:, location:)
31
+ # The resource will be in the following format:
31
32
  #
32
- # `organizations/{organization}/locations/{location}`
33
+ # `organizations/{organization}/locations/{location}`
33
34
  #
34
- # @param organization [String]
35
- # @param location [String]
35
+ # @param organization [String]
36
+ # @param location [String]
37
+ #
38
+ # @overload location_path(project:, location:)
39
+ # The resource will be in the following format:
40
+ #
41
+ # `projects/{project}/locations/{location}`
42
+ #
43
+ # @param project [String]
44
+ # @param location [String]
36
45
  #
37
46
  # @return [::String]
38
- def location_path organization:, location:
39
- raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
47
+ def location_path **args
48
+ resources = {
49
+ "location:organization" => (proc do |organization:, location:|
50
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
51
+
52
+ "organizations/#{organization}/locations/#{location}"
53
+ end),
54
+ "location:project" => (proc do |project:, location:|
55
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
56
+
57
+ "projects/#{project}/locations/#{location}"
58
+ end)
59
+ }
40
60
 
41
- "organizations/#{organization}/locations/#{location}"
61
+ resource = resources[args.keys.sort.join(":")]
62
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
63
+ resource.call(**args)
42
64
  end
43
65
 
44
66
  ##
45
67
  # Create a fully-qualified Notification resource string.
46
68
  #
47
- # The resource will be in the following format:
69
+ # @overload notification_path(organization:, location:, notification:)
70
+ # The resource will be in the following format:
48
71
  #
49
- # `organizations/{organization}/locations/{location}/notifications/{notification}`
72
+ # `organizations/{organization}/locations/{location}/notifications/{notification}`
50
73
  #
51
- # @param organization [String]
52
- # @param location [String]
53
- # @param notification [String]
74
+ # @param organization [String]
75
+ # @param location [String]
76
+ # @param notification [String]
77
+ #
78
+ # @overload notification_path(project:, location:, notification:)
79
+ # The resource will be in the following format:
80
+ #
81
+ # `projects/{project}/locations/{location}/notifications/{notification}`
82
+ #
83
+ # @param project [String]
84
+ # @param location [String]
85
+ # @param notification [String]
54
86
  #
55
87
  # @return [::String]
56
- def notification_path organization:, location:, notification:
57
- raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
58
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
88
+ def notification_path **args
89
+ resources = {
90
+ "location:notification:organization" => (proc do |organization:, location:, notification:|
91
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
92
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
93
+
94
+ "organizations/#{organization}/locations/#{location}/notifications/#{notification}"
95
+ end),
96
+ "location:notification:project" => (proc do |project:, location:, notification:|
97
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
99
+
100
+ "projects/#{project}/locations/#{location}/notifications/#{notification}"
101
+ end)
102
+ }
59
103
 
60
- "organizations/#{organization}/locations/#{location}/notifications/#{notification}"
104
+ resource = resources[args.keys.sort.join(":")]
105
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
106
+ resource.call(**args)
61
107
  end
62
108
 
63
109
  ##
@@ -165,7 +165,8 @@ module Google
165
165
  #
166
166
  # @param parent [::String]
167
167
  # Required. The parent, which owns this collection of notifications.
168
- # Must be of the form "organizations/\\{organization}/locations/\\{location}".
168
+ # Must be of the form "organizations/\\{organization}/locations/\\{location}"
169
+ # or "projects/\\{project}/locations/\\{location}"
169
170
  # @param page_size [::Integer]
170
171
  # The maximum number of notifications to return. The service may return
171
172
  # fewer than this value. If unspecified or equal to 0, at most 50
@@ -268,7 +269,8 @@ module Google
268
269
  # @param name [::String]
269
270
  # Required. A name of the notification to retrieve.
270
271
  # Format:
271
- # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}.
272
+ # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}
273
+ # or projects/\\{projects}/locations/\\{location}/notifications/\\{notification}.
272
274
  # @param language_code [::String]
273
275
  # ISO code for requested localization language. If unset, will be
274
276
  # interpereted as "en". If the requested language is valid, but not supported
@@ -210,6 +210,13 @@ module Google
210
210
  ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
211
211
  ]
212
212
  )
213
+ .with_bindings(
214
+ uri_method: :get,
215
+ uri_template: "/v1/{parent}/notifications",
216
+ matches: [
217
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
218
+ ]
219
+ )
213
220
  transcoder.transcode request_pb
214
221
  end
215
222
 
@@ -231,6 +238,13 @@ module Google
231
238
  ["name", %r{^organizations/[^/]+/locations/[^/]+/notifications/[^/]+/?$}, false]
232
239
  ]
233
240
  )
241
+ .with_bindings(
242
+ uri_method: :get,
243
+ uri_template: "/v1/{name}",
244
+ matches: [
245
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notifications/[^/]+/?$}, false]
246
+ ]
247
+ )
234
248
  transcoder.transcode request_pb
235
249
  end
236
250
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AdvisoryNotifications
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -11,7 +11,7 @@ require 'google/api/resource_pb'
11
11
  require 'google/protobuf/timestamp_pb'
12
12
 
13
13
 
14
- descriptor_data = "\n3google/cloud/advisorynotifications/v1/service.proto\x12%google.cloud.advisorynotifications.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x03\n\x0cNotification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x07subject\x18\x02 \x01(\x0b\x32..google.cloud.advisorynotifications.v1.Subject\x12@\n\x08messages\x18\x03 \x03(\x0b\x32..google.cloud.advisorynotifications.v1.Message\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12R\n\x11notification_type\x18\x0c \x01(\x0e\x32\x37.google.cloud.advisorynotifications.v1.NotificationType:\xa4\x01\xea\x41\xa0\x01\n1advisorynotifications.googleapis.com/Notification\x12Norganizations/{organization}/locations/{location}/notifications/{notification}*\rnotifications2\x0cnotification\"\x85\x01\n\x04Text\x12\x0f\n\x07\x65n_text\x18\x01 \x01(\t\x12\x16\n\x0elocalized_text\x18\x02 \x01(\t\x12T\n\x12localization_state\x18\x03 \x01(\x0e\x32\x38.google.cloud.advisorynotifications.v1.LocalizationState\"D\n\x07Subject\x12\x39\n\x04text\x18\x01 \x01(\x0b\x32+.google.cloud.advisorynotifications.v1.Text\"\xbf\x02\n\x07Message\x12\x41\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x33.google.cloud.advisorynotifications.v1.Message.Body\x12\x46\n\x0b\x61ttachments\x18\x02 \x03(\x0b\x32\x31.google.cloud.advisorynotifications.v1.Attachment\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11localization_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x41\n\x04\x42ody\x12\x39\n\x04text\x18\x01 \x01(\x0b\x32+.google.cloud.advisorynotifications.v1.Text\"e\n\nAttachment\x12\x39\n\x03\x63sv\x18\x02 \x01(\x0b\x32*.google.cloud.advisorynotifications.v1.CsvH\x00\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x06\n\x04\x64\x61ta\"w\n\x03\x43sv\x12\x0f\n\x07headers\x18\x01 \x03(\t\x12\x44\n\tdata_rows\x18\x02 \x03(\x0b\x32\x31.google.cloud.advisorynotifications.v1.Csv.CsvRow\x1a\x19\n\x06\x43svRow\x12\x0f\n\x07\x65ntries\x18\x01 \x03(\t\"\xea\x01\n\x18ListNotificationsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x61\x64visorynotifications.googleapis.com/Notification\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.advisorynotifications.v1.NotificationView\x12\x15\n\rlanguage_code\x18\x05 \x01(\t\"\x94\x01\n\x19ListNotificationsResponse\x12J\n\rnotifications\x18\x01 \x03(\x0b\x32\x33.google.cloud.advisorynotifications.v1.Notification\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"x\n\x16GetNotificationRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1advisorynotifications.googleapis.com/Notification\x12\x15\n\rlanguage_code\x18\x05 \x01(\t\"\x89\x03\n\x08Settings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12m\n\x15notification_settings\x18\x02 \x03(\x0b\x32I.google.cloud.advisorynotifications.v1.Settings.NotificationSettingsEntryB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1ax\n\x19NotificationSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.advisorynotifications.v1.NotificationSettings:\x02\x38\x01:n\xea\x41k\n-advisorynotifications.googleapis.com/Settings\x12:organizations/{organization}/locations/{location}/settings\"\'\n\x14NotificationSettings\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"Y\n\x12GetSettingsRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-advisorynotifications.googleapis.com/Settings\"_\n\x15UpdateSettingsRequest\x12\x46\n\x08settings\x18\x01 \x01(\x0b\x32/.google.cloud.advisorynotifications.v1.SettingsB\x03\xe0\x41\x02*J\n\x10NotificationView\x12!\n\x1dNOTIFICATION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02*\xa0\x01\n\x11LocalizationState\x12\"\n\x1eLOCALIZATION_STATE_UNSPECIFIED\x10\x00\x12%\n!LOCALIZATION_STATE_NOT_APPLICABLE\x10\x01\x12\x1e\n\x1aLOCALIZATION_STATE_PENDING\x10\x02\x12 \n\x1cLOCALIZATION_STATE_COMPLETED\x10\x03*\xda\x01\n\x10NotificationType\x12!\n\x1dNOTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12/\n+NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY\x10\x01\x12\'\n#NOTIFICATION_TYPE_SENSITIVE_ACTIONS\x10\x02\x12\"\n\x1eNOTIFICATION_TYPE_SECURITY_MSA\x10\x03\x12%\n!NOTIFICATION_TYPE_THREAT_HORIZONS\x10\x04\x32\xbe\x07\n\x1c\x41\x64visoryNotificationsService\x12\xdf\x01\n\x11ListNotifications\x12?.google.cloud.advisorynotifications.v1.ListNotificationsRequest\x1a@.google.cloud.advisorynotifications.v1.ListNotificationsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=organizations/*/locations/*}/notifications\xda\x41\x06parent\x12\xcc\x01\n\x0fGetNotification\x12=.google.cloud.advisorynotifications.v1.GetNotificationRequest\x1a\x33.google.cloud.advisorynotifications.v1.Notification\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=organizations/*/locations/*/notifications/*}\xda\x41\x04name\x12\xb9\x01\n\x0bGetSettings\x12\x39.google.cloud.advisorynotifications.v1.GetSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=organizations/*/locations/*/settings}\xda\x41\x04name\x12\xd6\x01\n\x0eUpdateSettings\x12<.google.cloud.advisorynotifications.v1.UpdateSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\"U\x82\xd3\xe4\x93\x02\x44\x32\x38/v1/{settings.name=organizations/*/locations/*/settings}:\x08settings\xda\x41\x08settings\x1aX\xca\x41$advisorynotifications.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfc\x02\n)com.google.cloud.advisorynotifications.v1B\x0cServiceProtoP\x01Z_cloud.google.com/go/advisorynotifications/apiv1/advisorynotificationspb;advisorynotificationspb\xaa\x02%Google.Cloud.AdvisoryNotifications.V1\xca\x02%Google\\Cloud\\AdvisoryNotifications\\V1\xea\x02(Google::Cloud::AdvisoryNotifications::V1\xea\x41\x62\n-advisorynotifications.googleapis.com/Location\x12\x31organizations/{organization}/locations/{location}b\x06proto3"
14
+ descriptor_data = "\n3google/cloud/advisorynotifications/v1/service.proto\x12%google.cloud.advisorynotifications.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x04\n\x0cNotification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x07subject\x18\x02 \x01(\x0b\x32..google.cloud.advisorynotifications.v1.Subject\x12@\n\x08messages\x18\x03 \x03(\x0b\x32..google.cloud.advisorynotifications.v1.Message\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12R\n\x11notification_type\x18\x0c \x01(\x0e\x32\x37.google.cloud.advisorynotifications.v1.NotificationType:\xea\x01\xea\x41\xe6\x01\n1advisorynotifications.googleapis.com/Notification\x12Norganizations/{organization}/locations/{location}/notifications/{notification}\x12\x44projects/{project}/locations/{location}/notifications/{notification}*\rnotifications2\x0cnotification\"\x85\x01\n\x04Text\x12\x0f\n\x07\x65n_text\x18\x01 \x01(\t\x12\x16\n\x0elocalized_text\x18\x02 \x01(\t\x12T\n\x12localization_state\x18\x03 \x01(\x0e\x32\x38.google.cloud.advisorynotifications.v1.LocalizationState\"D\n\x07Subject\x12\x39\n\x04text\x18\x01 \x01(\x0b\x32+.google.cloud.advisorynotifications.v1.Text\"\xbf\x02\n\x07Message\x12\x41\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x33.google.cloud.advisorynotifications.v1.Message.Body\x12\x46\n\x0b\x61ttachments\x18\x02 \x03(\x0b\x32\x31.google.cloud.advisorynotifications.v1.Attachment\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11localization_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x41\n\x04\x42ody\x12\x39\n\x04text\x18\x01 \x01(\x0b\x32+.google.cloud.advisorynotifications.v1.Text\"e\n\nAttachment\x12\x39\n\x03\x63sv\x18\x02 \x01(\x0b\x32*.google.cloud.advisorynotifications.v1.CsvH\x00\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x06\n\x04\x64\x61ta\"w\n\x03\x43sv\x12\x0f\n\x07headers\x18\x01 \x03(\t\x12\x44\n\tdata_rows\x18\x02 \x03(\x0b\x32\x31.google.cloud.advisorynotifications.v1.Csv.CsvRow\x1a\x19\n\x06\x43svRow\x12\x0f\n\x07\x65ntries\x18\x01 \x03(\t\"\xea\x01\n\x18ListNotificationsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x61\x64visorynotifications.googleapis.com/Notification\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.advisorynotifications.v1.NotificationView\x12\x15\n\rlanguage_code\x18\x05 \x01(\t\"\x94\x01\n\x19ListNotificationsResponse\x12J\n\rnotifications\x18\x01 \x03(\x0b\x32\x33.google.cloud.advisorynotifications.v1.Notification\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"x\n\x16GetNotificationRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1advisorynotifications.googleapis.com/Notification\x12\x15\n\rlanguage_code\x18\x05 \x01(\t\"\x89\x03\n\x08Settings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12m\n\x15notification_settings\x18\x02 \x03(\x0b\x32I.google.cloud.advisorynotifications.v1.Settings.NotificationSettingsEntryB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1ax\n\x19NotificationSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.advisorynotifications.v1.NotificationSettings:\x02\x38\x01:n\xea\x41k\n-advisorynotifications.googleapis.com/Settings\x12:organizations/{organization}/locations/{location}/settings\"\'\n\x14NotificationSettings\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"Y\n\x12GetSettingsRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-advisorynotifications.googleapis.com/Settings\"_\n\x15UpdateSettingsRequest\x12\x46\n\x08settings\x18\x01 \x01(\x0b\x32/.google.cloud.advisorynotifications.v1.SettingsB\x03\xe0\x41\x02*J\n\x10NotificationView\x12!\n\x1dNOTIFICATION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02*\xa0\x01\n\x11LocalizationState\x12\"\n\x1eLOCALIZATION_STATE_UNSPECIFIED\x10\x00\x12%\n!LOCALIZATION_STATE_NOT_APPLICABLE\x10\x01\x12\x1e\n\x1aLOCALIZATION_STATE_PENDING\x10\x02\x12 \n\x1cLOCALIZATION_STATE_COMPLETED\x10\x03*\xda\x01\n\x10NotificationType\x12!\n\x1dNOTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12/\n+NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY\x10\x01\x12\'\n#NOTIFICATION_TYPE_SENSITIVE_ACTIONS\x10\x02\x12\"\n\x1eNOTIFICATION_TYPE_SECURITY_MSA\x10\x03\x12%\n!NOTIFICATION_TYPE_THREAT_HORIZONS\x10\x04\x32\xa8\x08\n\x1c\x41\x64visoryNotificationsService\x12\x94\x02\n\x11ListNotifications\x12?.google.cloud.advisorynotifications.v1.ListNotificationsRequest\x1a@.google.cloud.advisorynotifications.v1.ListNotificationsResponse\"|\x82\xd3\xe4\x93\x02m\x12\x36/v1/{parent=organizations/*/locations/*}/notificationsZ3\x12\x31/v1/{parent=projects/*/locations/*}/notifications\xda\x41\x06parent\x12\x81\x02\n\x0fGetNotification\x12=.google.cloud.advisorynotifications.v1.GetNotificationRequest\x1a\x33.google.cloud.advisorynotifications.v1.Notification\"z\x82\xd3\xe4\x93\x02m\x12\x36/v1/{name=organizations/*/locations/*/notifications/*}Z3\x12\x31/v1/{name=projects/*/locations/*/notifications/*}\xda\x41\x04name\x12\xb9\x01\n\x0bGetSettings\x12\x39.google.cloud.advisorynotifications.v1.GetSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=organizations/*/locations/*/settings}\xda\x41\x04name\x12\xd6\x01\n\x0eUpdateSettings\x12<.google.cloud.advisorynotifications.v1.UpdateSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\"U\x82\xd3\xe4\x93\x02\x44\x32\x38/v1/{settings.name=organizations/*/locations/*/settings}:\x08settings\xda\x41\x08settings\x1aX\xca\x41$advisorynotifications.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa6\x03\n)com.google.cloud.advisorynotifications.v1B\x0cServiceProtoP\x01Z_cloud.google.com/go/advisorynotifications/apiv1/advisorynotificationspb;advisorynotificationspb\xaa\x02%Google.Cloud.AdvisoryNotifications.V1\xca\x02%Google\\Cloud\\AdvisoryNotifications\\V1\xea\x02(Google::Cloud::AdvisoryNotifications::V1\xea\x41\x8b\x01\n-advisorynotifications.googleapis.com/Location\x12\x31organizations/{organization}/locations/{location}\x12\'projects/{project}/locations/{location}b\x06proto3"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
@@ -304,6 +304,19 @@ module Google
304
304
  # seconds: 360 # 6 minutes
305
305
  # total_poll_timeout:
306
306
  # seconds: 54000 # 90 minutes
307
+ # @!attribute [rw] auto_populated_fields
308
+ # @return [::Array<::String>]
309
+ # List of top-level fields of the request message, that should be
310
+ # automatically populated by the client libraries based on their
311
+ # (google.api.field_info).format. Currently supported format: UUID4.
312
+ #
313
+ # Example of a YAML configuration:
314
+ #
315
+ # publishing:
316
+ # method_settings:
317
+ # - selector: google.example.v1.ExampleService.CreateExample
318
+ # auto_populated_fields:
319
+ # - request_id
307
320
  class MethodSettings
308
321
  include ::Google::Protobuf::MessageExts
309
322
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -27,7 +27,8 @@ module Google
27
27
  # @return [::String]
28
28
  # The resource name of the notification.
29
29
  # Format:
30
- # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}.
30
+ # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}
31
+ # or projects/\\{project}/locations/\\{location}/notifications/\\{notification}.
31
32
  # @!attribute [rw] subject
32
33
  # @return [::Google::Cloud::AdvisoryNotifications::V1::Subject]
33
34
  # The subject line of the notification.
@@ -136,7 +137,8 @@ module Google
136
137
  # @!attribute [rw] parent
137
138
  # @return [::String]
138
139
  # Required. The parent, which owns this collection of notifications.
139
- # Must be of the form "organizations/\\{organization}/locations/\\{location}".
140
+ # Must be of the form "organizations/\\{organization}/locations/\\{location}"
141
+ # or "projects/\\{project}/locations/\\{location}"
140
142
  # @!attribute [rw] page_size
141
143
  # @return [::Integer]
142
144
  # The maximum number of notifications to return. The service may return
@@ -185,7 +187,8 @@ module Google
185
187
  # @return [::String]
186
188
  # Required. A name of the notification to retrieve.
187
189
  # Format:
188
- # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}.
190
+ # organizations/\\{organization}/locations/\\{location}/notifications/\\{notification}
191
+ # or projects/\\{projects}/locations/\\{location}/notifications/\\{notification}.
189
192
  # @!attribute [rw] language_code
190
193
  # @return [::String]
191
194
  # ISO code for requested localization language. If unset, will be
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-advisory_notifications-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-28 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common