google-cloud-advisory_notifications-v1 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/client.rb +14 -6
- data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/paths.rb +29 -7
- data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/rest/client.rb +14 -6
- data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/rest/service_stub.rb +15 -0
- data/lib/google/cloud/advisory_notifications/v1/version.rb +1 -1
- data/lib/google/cloud/advisorynotifications/v1/service_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/advisorynotifications/v1/service.rb +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3be8e82a34456d392807faf2f2b390aec9060c76d6ef6a9f2385673c5c733aa9
|
4
|
+
data.tar.gz: 3a47e94a07a7573e92dba8dbff421a25e5692f0480daf357826ec4dac74cdc00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e20710a78d91499ea406613530e07dfac7176969ccb5ade9ded4847c0374e332a1482f86adfd579a427a70fb4dac0df0ab8282259951de7a781d44cfff5321d
|
7
|
+
data.tar.gz: 4d8c595c0eb53542015b9b6431b8761ecf8162871a2a9954310b5b1e0e181dbf0e14cba88492701f01c01021ab8458c69b6ef2b5cc2e8f154ed93da0cbe76b48
|
data/README.md
CHANGED
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# Service to manage Security and Privacy Notifications.
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
# @private
|
34
|
+
API_VERSION = ""
|
35
|
+
|
33
36
|
# @private
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "advisorynotifications.$UNIVERSE_DOMAIN$"
|
35
38
|
|
@@ -191,7 +194,7 @@ module Google
|
|
191
194
|
# @param parent [::String]
|
192
195
|
# Required. The parent, which owns this collection of notifications.
|
193
196
|
# Must be of the form "organizations/\\{organization}/locations/\\{location}"
|
194
|
-
# or "projects/\\{project}/locations/\\{location}"
|
197
|
+
# or "projects/\\{project}/locations/\\{location}".
|
195
198
|
# @param page_size [::Integer]
|
196
199
|
# The maximum number of notifications to return. The service may return
|
197
200
|
# fewer than this value. If unspecified or equal to 0, at most 50
|
@@ -249,10 +252,11 @@ module Google
|
|
249
252
|
# Customize the options with defaults
|
250
253
|
metadata = @config.rpcs.list_notifications.metadata.to_h
|
251
254
|
|
252
|
-
# Set x-goog-api-client
|
255
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
253
256
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
254
257
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
255
258
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
|
259
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
256
260
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
261
|
|
258
262
|
header_params = {}
|
@@ -344,10 +348,11 @@ module Google
|
|
344
348
|
# Customize the options with defaults
|
345
349
|
metadata = @config.rpcs.get_notification.metadata.to_h
|
346
350
|
|
347
|
-
# Set x-goog-api-client
|
351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
348
352
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
349
353
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
350
354
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
|
355
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
351
356
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
352
357
|
|
353
358
|
header_params = {}
|
@@ -395,7 +400,8 @@ module Google
|
|
395
400
|
# @param name [::String]
|
396
401
|
# Required. The resource name of the settings to retrieve.
|
397
402
|
# Format:
|
398
|
-
# organizations/\\{organization}/locations/\\{location}/settings
|
403
|
+
# organizations/\\{organization}/locations/\\{location}/settings or
|
404
|
+
# projects/\\{projects}/locations/\\{location}/settings.
|
399
405
|
#
|
400
406
|
# @yield [response, operation] Access the result along with the RPC operation
|
401
407
|
# @yieldparam response [::Google::Cloud::AdvisoryNotifications::V1::Settings]
|
@@ -431,10 +437,11 @@ module Google
|
|
431
437
|
# Customize the options with defaults
|
432
438
|
metadata = @config.rpcs.get_settings.metadata.to_h
|
433
439
|
|
434
|
-
# Set x-goog-api-client
|
440
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
435
441
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
436
442
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
437
443
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
|
444
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
438
445
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
439
446
|
|
440
447
|
header_params = {}
|
@@ -516,10 +523,11 @@ module Google
|
|
516
523
|
# Customize the options with defaults
|
517
524
|
metadata = @config.rpcs.update_settings.metadata.to_h
|
518
525
|
|
519
|
-
# Set x-goog-api-client
|
526
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
520
527
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
521
528
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
522
529
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
|
530
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
523
531
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
524
532
|
|
525
533
|
header_params = {}
|
@@ -109,18 +109,40 @@ module Google
|
|
109
109
|
##
|
110
110
|
# Create a fully-qualified Settings resource string.
|
111
111
|
#
|
112
|
-
#
|
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
|
-
#
|
120
|
+
# @overload settings_path(project:, location:)
|
121
|
+
# The resource will be in the following format:
|
115
122
|
#
|
116
|
-
#
|
117
|
-
#
|
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
|
121
|
-
|
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
|
-
|
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
|
data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/rest/client.rb
CHANGED
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Service to manage Security and Privacy Notifications.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "advisorynotifications.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -184,7 +187,7 @@ module Google
|
|
184
187
|
# @param parent [::String]
|
185
188
|
# Required. The parent, which owns this collection of notifications.
|
186
189
|
# Must be of the form "organizations/\\{organization}/locations/\\{location}"
|
187
|
-
# or "projects/\\{project}/locations/\\{location}"
|
190
|
+
# or "projects/\\{project}/locations/\\{location}".
|
188
191
|
# @param page_size [::Integer]
|
189
192
|
# The maximum number of notifications to return. The service may return
|
190
193
|
# fewer than this value. If unspecified or equal to 0, at most 50
|
@@ -241,12 +244,13 @@ module Google
|
|
241
244
|
# Customize the options with defaults
|
242
245
|
call_metadata = @config.rpcs.list_notifications.metadata.to_h
|
243
246
|
|
244
|
-
# Set x-goog-api-client
|
247
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
245
248
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
246
249
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
247
250
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
|
248
251
|
transports_version_send: [:rest]
|
249
252
|
|
253
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
250
254
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
251
255
|
|
252
256
|
options.apply_defaults timeout: @config.rpcs.list_notifications.timeout,
|
@@ -329,12 +333,13 @@ module Google
|
|
329
333
|
# Customize the options with defaults
|
330
334
|
call_metadata = @config.rpcs.get_notification.metadata.to_h
|
331
335
|
|
332
|
-
# Set x-goog-api-client
|
336
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
333
337
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
334
338
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
335
339
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
|
336
340
|
transports_version_send: [:rest]
|
337
341
|
|
342
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
338
343
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
339
344
|
|
340
345
|
options.apply_defaults timeout: @config.rpcs.get_notification.timeout,
|
@@ -374,7 +379,8 @@ module Google
|
|
374
379
|
# @param name [::String]
|
375
380
|
# Required. The resource name of the settings to retrieve.
|
376
381
|
# Format:
|
377
|
-
# organizations/\\{organization}/locations/\\{location}/settings
|
382
|
+
# organizations/\\{organization}/locations/\\{location}/settings or
|
383
|
+
# projects/\\{projects}/locations/\\{location}/settings.
|
378
384
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
379
385
|
# @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
|
380
386
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -409,12 +415,13 @@ module Google
|
|
409
415
|
# Customize the options with defaults
|
410
416
|
call_metadata = @config.rpcs.get_settings.metadata.to_h
|
411
417
|
|
412
|
-
# Set x-goog-api-client
|
418
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
413
419
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
414
420
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
415
421
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
|
416
422
|
transports_version_send: [:rest]
|
417
423
|
|
424
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
418
425
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
419
426
|
|
420
427
|
options.apply_defaults timeout: @config.rpcs.get_settings.timeout,
|
@@ -487,12 +494,13 @@ module Google
|
|
487
494
|
# Customize the options with defaults
|
488
495
|
call_metadata = @config.rpcs.update_settings.metadata.to_h
|
489
496
|
|
490
|
-
# Set x-goog-api-client
|
497
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
491
498
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
492
499
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
493
500
|
gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
|
494
501
|
transports_version_send: [:rest]
|
495
502
|
|
503
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
496
504
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
497
505
|
|
498
506
|
options.apply_defaults timeout: @config.rpcs.update_settings.timeout,
|
data/lib/google/cloud/advisory_notifications/v1/advisory_notifications_service/rest/service_stub.rb
CHANGED
@@ -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
|
@@ -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\"\
|
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
|
@@ -286,6 +290,13 @@ module Google
|
|
286
290
|
# @return [::String]
|
287
291
|
# The fully qualified name of the method, for which the options below apply.
|
288
292
|
# This is used to find the method to apply the options.
|
293
|
+
#
|
294
|
+
# Example:
|
295
|
+
#
|
296
|
+
# publishing:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
299
|
+
# # method settings for CreateFolder...
|
289
300
|
# @!attribute [rw] long_running
|
290
301
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
302
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +305,14 @@ module Google
|
|
294
305
|
#
|
295
306
|
# Example of a YAML configuration::
|
296
307
|
#
|
297
|
-
#
|
298
|
-
#
|
308
|
+
# publishing:
|
309
|
+
# method_settings:
|
299
310
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
311
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
312
|
+
# initial_poll_delay: 60s # 1 minute
|
303
313
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
314
|
+
# max_poll_delay: 360s # 6 minutes
|
315
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
316
|
# @!attribute [rw] auto_populated_fields
|
309
317
|
# @return [::Array<::String>]
|
310
318
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +321,8 @@ module Google
|
|
313
321
|
#
|
314
322
|
# Example of a YAML configuration:
|
315
323
|
#
|
316
|
-
#
|
317
|
-
#
|
324
|
+
# publishing:
|
325
|
+
# method_settings:
|
318
326
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
327
|
# auto_populated_fields:
|
320
328
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -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 [
|
205
|
+
# @!attribute [rw] name
|
206
206
|
# @return [::String]
|
207
|
-
#
|
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.
|
4
|
+
version: 0.10.1
|
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-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|