google-cloud-advisory_notifications-v1 0.5.0 → 0.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae8aa38cff67aeb75b6b746b95509c0149c18ab243d036dfe97499153d2465d7
4
- data.tar.gz: 1838a9e83c521771a07298d3bb4631bf89a703e78998a5de0b7e9bbd36ff3ee3
3
+ metadata.gz: c4686ad87bde5a52207fbb53dee9c79fee6e851125ef300e4e86601bc9d3d702
4
+ data.tar.gz: 1cbd5e1af7a672059957b1fc9a8e5317d41a2e97936de9ffdf59f2525cc24607
5
5
  SHA512:
6
- metadata.gz: 727a1d815f083de18fd01700d0edc4e2051c4aed890bf1fc0730a5b2e58d5b1a7ce7a2eb6b09c6ed1c6bd9bb1431823cb6db7c74121a698ca28d4043774e56a1
7
- data.tar.gz: c28c87ca71df3486f127847fc22e514a2de5a144db59d7f3835dad07e2742e21d2c561778ad2305dc61e27f7cfb40bbd0807ce9b4f3c32b52ff5da6e64ff064c
6
+ metadata.gz: a72db8d741b1658b0b8d20c58c54f445fc55e1102990eee4de67a2cf65da476ed4e6cf3e09f641baf3784b18574278ecb3df0cc0e850cbb9b46c27753cf7ba92
7
+ data.tar.gz: 6d38d2aad090987c4966dd7c122fe54bbb9f8e4b0eac277090bac6edafce423b1e426eba87047fa159206673ba4c07d322c004650616e4fb8c1f091dfa16e788
@@ -357,6 +357,178 @@ module Google
357
357
  raise ::Google::Cloud::Error.from_error(e)
358
358
  end
359
359
 
360
+ ##
361
+ # Get notification settings.
362
+ #
363
+ # @overload get_settings(request, options = nil)
364
+ # Pass arguments to `get_settings` via a request object, either of type
365
+ # {::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest} or an equivalent Hash.
366
+ #
367
+ # @param request [::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest, ::Hash]
368
+ # A request object representing the call parameters. Required. To specify no
369
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
370
+ # @param options [::Gapic::CallOptions, ::Hash]
371
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
372
+ #
373
+ # @overload get_settings(name: nil)
374
+ # Pass arguments to `get_settings` via keyword arguments. Note that at
375
+ # least one keyword argument is required. To specify no parameters, or to keep all
376
+ # the default parameter values, pass an empty Hash as a request object (see above).
377
+ #
378
+ # @param name [::String]
379
+ # Required. The resource name of the settings to retrieve.
380
+ # Format:
381
+ # organizations/\\{organization}/locations/\\{location}/settings.
382
+ #
383
+ # @yield [response, operation] Access the result along with the RPC operation
384
+ # @yieldparam response [::Google::Cloud::AdvisoryNotifications::V1::Settings]
385
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
386
+ #
387
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
388
+ #
389
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
390
+ #
391
+ # @example Basic example
392
+ # require "google/cloud/advisory_notifications/v1"
393
+ #
394
+ # # Create a client object. The client can be reused for multiple calls.
395
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Client.new
396
+ #
397
+ # # Create a request. To set request fields, pass in keyword arguments.
398
+ # request = Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest.new
399
+ #
400
+ # # Call the get_settings method.
401
+ # result = client.get_settings request
402
+ #
403
+ # # The returned object is of type Google::Cloud::AdvisoryNotifications::V1::Settings.
404
+ # p result
405
+ #
406
+ def get_settings request, options = nil
407
+ raise ::ArgumentError, "request must be provided" if request.nil?
408
+
409
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest
410
+
411
+ # Converts hash and nil to an options object
412
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
413
+
414
+ # Customize the options with defaults
415
+ metadata = @config.rpcs.get_settings.metadata.to_h
416
+
417
+ # Set x-goog-api-client and x-goog-user-project headers
418
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
419
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
420
+ gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
421
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
+
423
+ header_params = {}
424
+ if request.name
425
+ header_params["name"] = request.name
426
+ end
427
+
428
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
429
+ metadata[:"x-goog-request-params"] ||= request_params_header
430
+
431
+ options.apply_defaults timeout: @config.rpcs.get_settings.timeout,
432
+ metadata: metadata,
433
+ retry_policy: @config.rpcs.get_settings.retry_policy
434
+
435
+ options.apply_defaults timeout: @config.timeout,
436
+ metadata: @config.metadata,
437
+ retry_policy: @config.retry_policy
438
+
439
+ @advisory_notifications_service_stub.call_rpc :get_settings, request, options: options do |response, operation|
440
+ yield response, operation if block_given?
441
+ return response
442
+ end
443
+ rescue ::GRPC::BadStatus => e
444
+ raise ::Google::Cloud::Error.from_error(e)
445
+ end
446
+
447
+ ##
448
+ # Update notification settings.
449
+ #
450
+ # @overload update_settings(request, options = nil)
451
+ # Pass arguments to `update_settings` via a request object, either of type
452
+ # {::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest} or an equivalent Hash.
453
+ #
454
+ # @param request [::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest, ::Hash]
455
+ # A request object representing the call parameters. Required. To specify no
456
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
457
+ # @param options [::Gapic::CallOptions, ::Hash]
458
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
459
+ #
460
+ # @overload update_settings(settings: nil)
461
+ # Pass arguments to `update_settings` via keyword arguments. Note that at
462
+ # least one keyword argument is required. To specify no parameters, or to keep all
463
+ # the default parameter values, pass an empty Hash as a request object (see above).
464
+ #
465
+ # @param settings [::Google::Cloud::AdvisoryNotifications::V1::Settings, ::Hash]
466
+ # Required. New settings.
467
+ #
468
+ # @yield [response, operation] Access the result along with the RPC operation
469
+ # @yieldparam response [::Google::Cloud::AdvisoryNotifications::V1::Settings]
470
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
471
+ #
472
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
473
+ #
474
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
475
+ #
476
+ # @example Basic example
477
+ # require "google/cloud/advisory_notifications/v1"
478
+ #
479
+ # # Create a client object. The client can be reused for multiple calls.
480
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest.new
484
+ #
485
+ # # Call the update_settings method.
486
+ # result = client.update_settings request
487
+ #
488
+ # # The returned object is of type Google::Cloud::AdvisoryNotifications::V1::Settings.
489
+ # p result
490
+ #
491
+ def update_settings request, options = nil
492
+ raise ::ArgumentError, "request must be provided" if request.nil?
493
+
494
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest
495
+
496
+ # Converts hash and nil to an options object
497
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
498
+
499
+ # Customize the options with defaults
500
+ metadata = @config.rpcs.update_settings.metadata.to_h
501
+
502
+ # Set x-goog-api-client and x-goog-user-project headers
503
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
504
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
505
+ gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION
506
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
507
+
508
+ header_params = {}
509
+ if request.settings&.name
510
+ header_params["settings.name"] = request.settings.name
511
+ end
512
+
513
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
514
+ metadata[:"x-goog-request-params"] ||= request_params_header
515
+
516
+ options.apply_defaults timeout: @config.rpcs.update_settings.timeout,
517
+ metadata: metadata,
518
+ retry_policy: @config.rpcs.update_settings.retry_policy
519
+
520
+ options.apply_defaults timeout: @config.timeout,
521
+ metadata: @config.metadata,
522
+ retry_policy: @config.retry_policy
523
+
524
+ @advisory_notifications_service_stub.call_rpc :update_settings, request, options: options do |response, operation|
525
+ yield response, operation if block_given?
526
+ return response
527
+ end
528
+ rescue ::GRPC::BadStatus => e
529
+ raise ::Google::Cloud::Error.from_error(e)
530
+ end
531
+
360
532
  ##
361
533
  # Configuration class for the AdvisoryNotificationsService API.
362
534
  #
@@ -512,6 +684,16 @@ module Google
512
684
  # @return [::Gapic::Config::Method]
513
685
  #
514
686
  attr_reader :get_notification
687
+ ##
688
+ # RPC-specific configuration for `get_settings`
689
+ # @return [::Gapic::Config::Method]
690
+ #
691
+ attr_reader :get_settings
692
+ ##
693
+ # RPC-specific configuration for `update_settings`
694
+ # @return [::Gapic::Config::Method]
695
+ #
696
+ attr_reader :update_settings
515
697
 
516
698
  # @private
517
699
  def initialize parent_rpcs = nil
@@ -519,6 +701,10 @@ module Google
519
701
  @list_notifications = ::Gapic::Config::Method.new list_notifications_config
520
702
  get_notification_config = parent_rpcs.get_notification if parent_rpcs.respond_to? :get_notification
521
703
  @get_notification = ::Gapic::Config::Method.new get_notification_config
704
+ get_settings_config = parent_rpcs.get_settings if parent_rpcs.respond_to? :get_settings
705
+ @get_settings = ::Gapic::Config::Method.new get_settings_config
706
+ update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
707
+ @update_settings = ::Gapic::Config::Method.new update_settings_config
522
708
 
523
709
  yield self if block_given?
524
710
  end
@@ -60,6 +60,23 @@ module Google
60
60
  "organizations/#{organization}/locations/#{location}/notifications/#{notification}"
61
61
  end
62
62
 
63
+ ##
64
+ # Create a fully-qualified Settings resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `organizations/{organization}/locations/{location}/settings`
69
+ #
70
+ # @param organization [String]
71
+ # @param location [String]
72
+ #
73
+ # @return [::String]
74
+ def settings_path organization:, location:
75
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
76
+
77
+ "organizations/#{organization}/locations/#{location}/settings"
78
+ end
79
+
63
80
  extend self
64
81
  end
65
82
  end
@@ -333,6 +333,164 @@ module Google
333
333
  raise ::Google::Cloud::Error.from_error(e)
334
334
  end
335
335
 
336
+ ##
337
+ # Get notification settings.
338
+ #
339
+ # @overload get_settings(request, options = nil)
340
+ # Pass arguments to `get_settings` via a request object, either of type
341
+ # {::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest} or an equivalent Hash.
342
+ #
343
+ # @param request [::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest, ::Hash]
344
+ # A request object representing the call parameters. Required. To specify no
345
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
346
+ # @param options [::Gapic::CallOptions, ::Hash]
347
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
348
+ #
349
+ # @overload get_settings(name: nil)
350
+ # Pass arguments to `get_settings` via keyword arguments. Note that at
351
+ # least one keyword argument is required. To specify no parameters, or to keep all
352
+ # the default parameter values, pass an empty Hash as a request object (see above).
353
+ #
354
+ # @param name [::String]
355
+ # Required. The resource name of the settings to retrieve.
356
+ # Format:
357
+ # organizations/\\{organization}/locations/\\{location}/settings.
358
+ # @yield [result, operation] Access the result along with the TransportOperation object
359
+ # @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
360
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
361
+ #
362
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
363
+ #
364
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
365
+ #
366
+ # @example Basic example
367
+ # require "google/cloud/advisory_notifications/v1"
368
+ #
369
+ # # Create a client object. The client can be reused for multiple calls.
370
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Rest::Client.new
371
+ #
372
+ # # Create a request. To set request fields, pass in keyword arguments.
373
+ # request = Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest.new
374
+ #
375
+ # # Call the get_settings method.
376
+ # result = client.get_settings request
377
+ #
378
+ # # The returned object is of type Google::Cloud::AdvisoryNotifications::V1::Settings.
379
+ # p result
380
+ #
381
+ def get_settings request, options = nil
382
+ raise ::ArgumentError, "request must be provided" if request.nil?
383
+
384
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest
385
+
386
+ # Converts hash and nil to an options object
387
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
388
+
389
+ # Customize the options with defaults
390
+ call_metadata = @config.rpcs.get_settings.metadata.to_h
391
+
392
+ # Set x-goog-api-client and x-goog-user-project headers
393
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
394
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
395
+ gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
396
+ transports_version_send: [:rest]
397
+
398
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
399
+
400
+ options.apply_defaults timeout: @config.rpcs.get_settings.timeout,
401
+ metadata: call_metadata,
402
+ retry_policy: @config.rpcs.get_settings.retry_policy
403
+
404
+ options.apply_defaults timeout: @config.timeout,
405
+ metadata: @config.metadata,
406
+ retry_policy: @config.retry_policy
407
+
408
+ @advisory_notifications_service_stub.get_settings request, options do |result, operation|
409
+ yield result, operation if block_given?
410
+ return result
411
+ end
412
+ rescue ::Gapic::Rest::Error => e
413
+ raise ::Google::Cloud::Error.from_error(e)
414
+ end
415
+
416
+ ##
417
+ # Update notification settings.
418
+ #
419
+ # @overload update_settings(request, options = nil)
420
+ # Pass arguments to `update_settings` via a request object, either of type
421
+ # {::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest} or an equivalent Hash.
422
+ #
423
+ # @param request [::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest, ::Hash]
424
+ # A request object representing the call parameters. Required. To specify no
425
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
426
+ # @param options [::Gapic::CallOptions, ::Hash]
427
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
428
+ #
429
+ # @overload update_settings(settings: nil)
430
+ # Pass arguments to `update_settings` via keyword arguments. Note that at
431
+ # least one keyword argument is required. To specify no parameters, or to keep all
432
+ # the default parameter values, pass an empty Hash as a request object (see above).
433
+ #
434
+ # @param settings [::Google::Cloud::AdvisoryNotifications::V1::Settings, ::Hash]
435
+ # Required. New settings.
436
+ # @yield [result, operation] Access the result along with the TransportOperation object
437
+ # @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
438
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
439
+ #
440
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
441
+ #
442
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
443
+ #
444
+ # @example Basic example
445
+ # require "google/cloud/advisory_notifications/v1"
446
+ #
447
+ # # Create a client object. The client can be reused for multiple calls.
448
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Rest::Client.new
449
+ #
450
+ # # Create a request. To set request fields, pass in keyword arguments.
451
+ # request = Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest.new
452
+ #
453
+ # # Call the update_settings method.
454
+ # result = client.update_settings request
455
+ #
456
+ # # The returned object is of type Google::Cloud::AdvisoryNotifications::V1::Settings.
457
+ # p result
458
+ #
459
+ def update_settings request, options = nil
460
+ raise ::ArgumentError, "request must be provided" if request.nil?
461
+
462
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest
463
+
464
+ # Converts hash and nil to an options object
465
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
466
+
467
+ # Customize the options with defaults
468
+ call_metadata = @config.rpcs.update_settings.metadata.to_h
469
+
470
+ # Set x-goog-api-client and x-goog-user-project headers
471
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
472
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
473
+ gapic_version: ::Google::Cloud::AdvisoryNotifications::V1::VERSION,
474
+ transports_version_send: [:rest]
475
+
476
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
+
478
+ options.apply_defaults timeout: @config.rpcs.update_settings.timeout,
479
+ metadata: call_metadata,
480
+ retry_policy: @config.rpcs.update_settings.retry_policy
481
+
482
+ options.apply_defaults timeout: @config.timeout,
483
+ metadata: @config.metadata,
484
+ retry_policy: @config.retry_policy
485
+
486
+ @advisory_notifications_service_stub.update_settings request, options do |result, operation|
487
+ yield result, operation if block_given?
488
+ return result
489
+ end
490
+ rescue ::Gapic::Rest::Error => e
491
+ raise ::Google::Cloud::Error.from_error(e)
492
+ end
493
+
336
494
  ##
337
495
  # Configuration class for the AdvisoryNotificationsService REST API.
338
496
  #
@@ -468,6 +626,16 @@ module Google
468
626
  # @return [::Gapic::Config::Method]
469
627
  #
470
628
  attr_reader :get_notification
629
+ ##
630
+ # RPC-specific configuration for `get_settings`
631
+ # @return [::Gapic::Config::Method]
632
+ #
633
+ attr_reader :get_settings
634
+ ##
635
+ # RPC-specific configuration for `update_settings`
636
+ # @return [::Gapic::Config::Method]
637
+ #
638
+ attr_reader :update_settings
471
639
 
472
640
  # @private
473
641
  def initialize parent_rpcs = nil
@@ -475,6 +643,10 @@ module Google
475
643
  @list_notifications = ::Gapic::Config::Method.new list_notifications_config
476
644
  get_notification_config = parent_rpcs.get_notification if parent_rpcs.respond_to? :get_notification
477
645
  @get_notification = ::Gapic::Config::Method.new get_notification_config
646
+ get_settings_config = parent_rpcs.get_settings if parent_rpcs.respond_to? :get_settings
647
+ @get_settings = ::Gapic::Config::Method.new get_settings_config
648
+ update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
649
+ @update_settings = ::Gapic::Config::Method.new update_settings_config
478
650
 
479
651
  yield self if block_given?
480
652
  end
@@ -116,6 +116,82 @@ module Google
116
116
  result
117
117
  end
118
118
 
119
+ ##
120
+ # Baseline implementation for the get_settings REST call
121
+ #
122
+ # @param request_pb [::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest]
123
+ # A request object representing the call parameters. Required.
124
+ # @param options [::Gapic::CallOptions]
125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
126
+ #
127
+ # @yield [result, operation] Access the result along with the TransportOperation object
128
+ # @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
130
+ #
131
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
132
+ # A result object deserialized from the server's reply
133
+ def get_settings request_pb, options = nil
134
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
135
+
136
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_settings_request request_pb
137
+ query_string_params = if query_string_params.any?
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
+ else
140
+ {}
141
+ end
142
+
143
+ response = @client_stub.make_http_request(
144
+ verb,
145
+ uri: uri,
146
+ body: body || "",
147
+ params: query_string_params,
148
+ options: options
149
+ )
150
+ operation = ::Gapic::Rest::TransportOperation.new response
151
+ result = ::Google::Cloud::AdvisoryNotifications::V1::Settings.decode_json response.body, ignore_unknown_fields: true
152
+
153
+ yield result, operation if block_given?
154
+ result
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the update_settings REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Cloud::AdvisoryNotifications::V1::Settings]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
170
+ # A result object deserialized from the server's reply
171
+ def update_settings request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_settings_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::AdvisoryNotifications::V1::Settings.decode_json response.body, ignore_unknown_fields: true
190
+
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+
119
195
  ##
120
196
  # @private
121
197
  #
@@ -157,6 +233,49 @@ module Google
157
233
  )
158
234
  transcoder.transcode request_pb
159
235
  end
236
+
237
+ ##
238
+ # @private
239
+ #
240
+ # GRPC transcoding helper method for the get_settings REST call
241
+ #
242
+ # @param request_pb [::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest]
243
+ # A request object representing the call parameters. Required.
244
+ # @return [Array(String, [String, nil], Hash{String => String})]
245
+ # Uri, Body, Query string parameters
246
+ def self.transcode_get_settings_request request_pb
247
+ transcoder = Gapic::Rest::GrpcTranscoder.new
248
+ .with_bindings(
249
+ uri_method: :get,
250
+ uri_template: "/v1/{name}",
251
+ matches: [
252
+ ["name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
253
+ ]
254
+ )
255
+ transcoder.transcode request_pb
256
+ end
257
+
258
+ ##
259
+ # @private
260
+ #
261
+ # GRPC transcoding helper method for the update_settings REST call
262
+ #
263
+ # @param request_pb [::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest]
264
+ # A request object representing the call parameters. Required.
265
+ # @return [Array(String, [String, nil], Hash{String => String})]
266
+ # Uri, Body, Query string parameters
267
+ def self.transcode_update_settings_request request_pb
268
+ transcoder = Gapic::Rest::GrpcTranscoder.new
269
+ .with_bindings(
270
+ uri_method: :patch,
271
+ uri_template: "/v1/{settings.name}",
272
+ body: "settings",
273
+ matches: [
274
+ ["settings.name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
275
+ ]
276
+ )
277
+ transcoder.transcode request_pb
278
+ end
160
279
  end
161
280
  end
162
281
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AdvisoryNotifications
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.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*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\xa9\x04\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\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\"\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"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
@@ -53,6 +53,10 @@ module Google
53
53
  ListNotificationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.ListNotificationsRequest").msgclass
54
54
  ListNotificationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.ListNotificationsResponse").msgclass
55
55
  GetNotificationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.GetNotificationRequest").msgclass
56
+ Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.Settings").msgclass
57
+ NotificationSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.NotificationSettings").msgclass
58
+ GetSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.GetSettingsRequest").msgclass
59
+ UpdateSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.UpdateSettingsRequest").msgclass
56
60
  NotificationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.NotificationView").enummodule
57
61
  LocalizationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.LocalizationState").enummodule
58
62
  NotificationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.advisorynotifications.v1.NotificationType").enummodule
@@ -37,6 +37,10 @@ module Google
37
37
  rpc :ListNotifications, ::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsRequest, ::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsResponse
38
38
  # Gets a notification.
39
39
  rpc :GetNotification, ::Google::Cloud::AdvisoryNotifications::V1::GetNotificationRequest, ::Google::Cloud::AdvisoryNotifications::V1::Notification
40
+ # Get notification settings.
41
+ rpc :GetSettings, ::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest, ::Google::Cloud::AdvisoryNotifications::V1::Settings
42
+ # Update notification settings.
43
+ rpc :UpdateSettings, ::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest, ::Google::Cloud::AdvisoryNotifications::V1::Settings
40
44
  end
41
45
 
42
46
  Stub = Service.rpc_stub_class
@@ -198,6 +198,66 @@ module Google
198
198
  extend ::Google::Protobuf::MessageExts::ClassMethods
199
199
  end
200
200
 
201
+ # Settings for Advisory Notifications.
202
+ # @!attribute [r] name
203
+ # @return [::String]
204
+ # Output only. The resource name of the settings to retrieve.
205
+ # Format:
206
+ # organizations/\\{organization}/locations/\\{location}/settings.
207
+ # @!attribute [rw] notification_settings
208
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AdvisoryNotifications::V1::NotificationSettings}]
209
+ # Required. Map of each notification type and its settings to get/set all
210
+ # settings at once. The server will validate the value for each notification
211
+ # type.
212
+ # @!attribute [rw] etag
213
+ # @return [::String]
214
+ # Required. Fingerprint for optimistic concurrency returned in Get requests.
215
+ # Must be provided for Update requests. If the value provided does not match
216
+ # the value known to the server, ABORTED will be thrown, and the client
217
+ # should retry the read-modify-write cycle.
218
+ class Settings
219
+ include ::Google::Protobuf::MessageExts
220
+ extend ::Google::Protobuf::MessageExts::ClassMethods
221
+
222
+ # @!attribute [rw] key
223
+ # @return [::String]
224
+ # @!attribute [rw] value
225
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::NotificationSettings]
226
+ class NotificationSettingsEntry
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
230
+ end
231
+
232
+ # Settings for each NotificationType.
233
+ # @!attribute [rw] enabled
234
+ # @return [::Boolean]
235
+ # Whether the associated NotificationType is enabled.
236
+ class NotificationSettings
237
+ include ::Google::Protobuf::MessageExts
238
+ extend ::Google::Protobuf::MessageExts::ClassMethods
239
+ end
240
+
241
+ # Request of GetSettings endpoint.
242
+ # @!attribute [rw] name
243
+ # @return [::String]
244
+ # Required. The resource name of the settings to retrieve.
245
+ # Format:
246
+ # organizations/\\{organization}/locations/\\{location}/settings.
247
+ class GetSettingsRequest
248
+ include ::Google::Protobuf::MessageExts
249
+ extend ::Google::Protobuf::MessageExts::ClassMethods
250
+ end
251
+
252
+ # Request of UpdateSettings endpoint.
253
+ # @!attribute [rw] settings
254
+ # @return [::Google::Cloud::AdvisoryNotifications::V1::Settings]
255
+ # Required. New settings.
256
+ class UpdateSettingsRequest
257
+ include ::Google::Protobuf::MessageExts
258
+ extend ::Google::Protobuf::MessageExts::ClassMethods
259
+ end
260
+
201
261
  # Notification view.
202
262
  module NotificationView
203
263
  # Not specified, equivalent to BASIC.
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.5.0
4
+ version: 0.6.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-12 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common