google-cloud-advisory_notifications-v1 0.9.0 → 0.10.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: b958b2525fd4b58c820b7224ac35b3a65a8d7718ecc0c9e0c8816941bf20b923
4
- data.tar.gz: 2719c4835d3ef220a2dc345ddfec22a4786a7591d89c3d283dfbd692f6c135a3
3
+ metadata.gz: 76374378da665de0d34566ac67b441db3cfab54da5f58d21e1eaf1f3bf56439c
4
+ data.tar.gz: a4d3c97b464524e0e1b1f852885a6ab35c105c77826a260523d8fbd275250bb0
5
5
  SHA512:
6
- metadata.gz: 3d720e29fe8cc19a629249b4f304fff6c50811e310197631450fb93a7fb3ca68dda11464b60b2548cb6de5d27f8fd7af0262745c6b832808841b5eaa11c33546
7
- data.tar.gz: 5a8a2ec2a6ab25029fbe76aa681d846762e32face4567d69b4453a543f00966e889dedca47a0ad9e3ce5b0d3c715d8f128620d64c86d80965de1ddf04c76bccd
6
+ metadata.gz: 6e39fb8b5e085ea23c5ea8935f3d74b984d64b66f94a4bc9f4dd1345d47e2d751020588c8d13e573417575bd81dc6624f6ea3fdce28b8eb03c000ae98c10b951
7
+ data.tar.gz: f2e45e6d5b8e6b6fbc495fbf67530e8d018935e12699c2e0786d442f21de624d2523c6cc4f1a6870c54a9d30ff32863ec3c08032848fe2a5c5458f9d1c601fde
@@ -191,7 +191,7 @@ module Google
191
191
  # @param parent [::String]
192
192
  # Required. The parent, which owns this collection of notifications.
193
193
  # Must be of the form "organizations/\\{organization}/locations/\\{location}"
194
- # or "projects/\\{project}/locations/\\{location}"
194
+ # or "projects/\\{project}/locations/\\{location}".
195
195
  # @param page_size [::Integer]
196
196
  # The maximum number of notifications to return. The service may return
197
197
  # fewer than this value. If unspecified or equal to 0, at most 50
@@ -395,7 +395,8 @@ module Google
395
395
  # @param name [::String]
396
396
  # Required. The resource name of the settings to retrieve.
397
397
  # Format:
398
- # organizations/\\{organization}/locations/\\{location}/settings.
398
+ # organizations/\\{organization}/locations/\\{location}/settings or
399
+ # projects/\\{projects}/locations/\\{location}/settings.
399
400
  #
400
401
  # @yield [response, operation] Access the result along with the RPC operation
401
402
  # @yieldparam response [::Google::Cloud::AdvisoryNotifications::V1::Settings]
@@ -109,18 +109,40 @@ module Google
109
109
  ##
110
110
  # Create a fully-qualified Settings resource string.
111
111
  #
112
- # The resource will be in the following format:
112
+ # @overload settings_path(organization:, location:)
113
+ # The resource will be in the following format:
114
+ #
115
+ # `organizations/{organization}/locations/{location}/settings`
116
+ #
117
+ # @param organization [String]
118
+ # @param location [String]
113
119
  #
114
- # `organizations/{organization}/locations/{location}/settings`
120
+ # @overload settings_path(project:, location:)
121
+ # The resource will be in the following format:
115
122
  #
116
- # @param organization [String]
117
- # @param location [String]
123
+ # `projects/{project}/locations/{location}/settings`
124
+ #
125
+ # @param project [String]
126
+ # @param location [String]
118
127
  #
119
128
  # @return [::String]
120
- def settings_path organization:, location:
121
- raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
129
+ def settings_path **args
130
+ resources = {
131
+ "location:organization" => (proc do |organization:, location:|
132
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
133
+
134
+ "organizations/#{organization}/locations/#{location}/settings"
135
+ end),
136
+ "location:project" => (proc do |project:, location:|
137
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
122
138
 
123
- "organizations/#{organization}/locations/#{location}/settings"
139
+ "projects/#{project}/locations/#{location}/settings"
140
+ end)
141
+ }
142
+
143
+ resource = resources[args.keys.sort.join(":")]
144
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
145
+ resource.call(**args)
124
146
  end
125
147
 
126
148
  extend self
@@ -184,7 +184,7 @@ module Google
184
184
  # @param parent [::String]
185
185
  # Required. The parent, which owns this collection of notifications.
186
186
  # Must be of the form "organizations/\\{organization}/locations/\\{location}"
187
- # or "projects/\\{project}/locations/\\{location}"
187
+ # or "projects/\\{project}/locations/\\{location}".
188
188
  # @param page_size [::Integer]
189
189
  # The maximum number of notifications to return. The service may return
190
190
  # fewer than this value. If unspecified or equal to 0, at most 50
@@ -374,7 +374,8 @@ module Google
374
374
  # @param name [::String]
375
375
  # Required. The resource name of the settings to retrieve.
376
376
  # Format:
377
- # organizations/\\{organization}/locations/\\{location}/settings.
377
+ # organizations/\\{organization}/locations/\\{location}/settings or
378
+ # projects/\\{projects}/locations/\\{location}/settings.
378
379
  # @yield [result, operation] Access the result along with the TransportOperation object
379
380
  # @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
380
381
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -287,6 +287,13 @@ module Google
287
287
  ["name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
288
288
  ]
289
289
  )
290
+ .with_bindings(
291
+ uri_method: :get,
292
+ uri_template: "/v1/{name}",
293
+ matches: [
294
+ ["name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
295
+ ]
296
+ )
290
297
  transcoder.transcode request_pb
291
298
  end
292
299
 
@@ -309,6 +316,14 @@ module Google
309
316
  ["settings.name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
310
317
  ]
311
318
  )
319
+ .with_bindings(
320
+ uri_method: :patch,
321
+ uri_template: "/v1/{settings.name}",
322
+ body: "settings",
323
+ matches: [
324
+ ["settings.name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
325
+ ]
326
+ )
312
327
  transcoder.transcode request_pb
313
328
  end
314
329
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AdvisoryNotifications
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.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\"\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\"|\xda\x41\x06parent\x82\xd3\xe4\x93\x02m\x12\x36/v1/{parent=organizations/*/locations/*}/notificationsZ3\x12\x31/v1/{parent=projects/*/locations/*}/notifications\x12\x81\x02\n\x0fGetNotification\x12=.google.cloud.advisorynotifications.v1.GetNotificationRequest\x1a\x33.google.cloud.advisorynotifications.v1.Notification\"z\xda\x41\x04name\x82\xd3\xe4\x93\x02m\x12\x36/v1/{name=organizations/*/locations/*/notifications/*}Z3\x12\x31/v1/{name=projects/*/locations/*/notifications/*}\x12\xb9\x01\n\x0bGetSettings\x12\x39.google.cloud.advisorynotifications.v1.GetSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=organizations/*/locations/*/settings}\x12\xd6\x01\n\x0eUpdateSettings\x12<.google.cloud.advisorynotifications.v1.UpdateSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\"U\xda\x41\x08settings\x82\xd3\xe4\x93\x02\x44\x32\x38/v1/{settings.name=organizations/*/locations/*/settings}:\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"
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\"\xd1\x03\n\x08Settings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\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:\xb5\x01\xea\x41\xb1\x01\n-advisorynotifications.googleapis.com/Settings\x12:organizations/{organization}/locations/{location}/settings\x12\x30projects/{project}/locations/{location}/settings*\x08settings2\x08settings\"\'\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\x99\t\n\x1c\x41\x64visoryNotificationsService\x12\x94\x02\n\x11ListNotifications\x12?.google.cloud.advisorynotifications.v1.ListNotificationsRequest\x1a@.google.cloud.advisorynotifications.v1.ListNotificationsResponse\"|\xda\x41\x06parent\x82\xd3\xe4\x93\x02m\x12\x36/v1/{parent=organizations/*/locations/*}/notificationsZ3\x12\x31/v1/{parent=projects/*/locations/*}/notifications\x12\x81\x02\n\x0fGetNotification\x12=.google.cloud.advisorynotifications.v1.GetNotificationRequest\x1a\x33.google.cloud.advisorynotifications.v1.Notification\"z\xda\x41\x04name\x82\xd3\xe4\x93\x02m\x12\x36/v1/{name=organizations/*/locations/*/notifications/*}Z3\x12\x31/v1/{name=projects/*/locations/*/notifications/*}\x12\xe7\x01\n\x0bGetSettings\x12\x39.google.cloud.advisorynotifications.v1.GetSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\"l\xda\x41\x04name\x82\xd3\xe4\x93\x02_\x12//v1/{name=organizations/*/locations/*/settings}Z,\x12*/v1/{name=projects/*/locations/*/settings}\x12\x99\x02\n\x0eUpdateSettings\x12<.google.cloud.advisorynotifications.v1.UpdateSettingsRequest\x1a/.google.cloud.advisorynotifications.v1.Settings\"\x97\x01\xda\x41\x08settings\x82\xd3\xe4\x93\x02\x85\x01\x32\x38/v1/{settings.name=organizations/*/locations/*/settings}:\x08settingsZ?23/v1/{settings.name=projects/*/locations/*/settings}:\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
 
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -138,7 +138,7 @@ module Google
138
138
  # @return [::String]
139
139
  # Required. The parent, which owns this collection of notifications.
140
140
  # Must be of the form "organizations/\\{organization}/locations/\\{location}"
141
- # or "projects/\\{project}/locations/\\{location}"
141
+ # or "projects/\\{project}/locations/\\{location}".
142
142
  # @!attribute [rw] page_size
143
143
  # @return [::Integer]
144
144
  # The maximum number of notifications to return. The service may return
@@ -202,11 +202,12 @@ module Google
202
202
  end
203
203
 
204
204
  # Settings for Advisory Notifications.
205
- # @!attribute [r] name
205
+ # @!attribute [rw] name
206
206
  # @return [::String]
207
- # Output only. The resource name of the settings to retrieve.
207
+ # Identifier. The resource name of the settings to retrieve.
208
208
  # Format:
209
- # organizations/\\{organization}/locations/\\{location}/settings.
209
+ # organizations/\\{organization}/locations/\\{location}/settings or
210
+ # projects/\\{projects}/locations/\\{location}/settings.
210
211
  # @!attribute [rw] notification_settings
211
212
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AdvisoryNotifications::V1::NotificationSettings}]
212
213
  # Required. Map of each notification type and its settings to get/set all
@@ -246,7 +247,8 @@ module Google
246
247
  # @return [::String]
247
248
  # Required. The resource name of the settings to retrieve.
248
249
  # Format:
249
- # organizations/\\{organization}/locations/\\{location}/settings.
250
+ # organizations/\\{organization}/locations/\\{location}/settings or
251
+ # projects/\\{projects}/locations/\\{location}/settings.
250
252
  class GetSettingsRequest
251
253
  include ::Google::Protobuf::MessageExts
252
254
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.9.0
4
+ version: 0.10.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common