google-cloud-advisory_notifications-v1 0.4.0 → 0.5.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: c59c4d7261ecf2aa70a3da9738bd35d59271e42bdb682b53bfa932c2e1857cba
4
- data.tar.gz: 5604fd9a5f8f40f3a96d379a4846a92d6f0c3f22162c99ec2f4e6b846d9adcc6
3
+ metadata.gz: ae8aa38cff67aeb75b6b746b95509c0149c18ab243d036dfe97499153d2465d7
4
+ data.tar.gz: 1838a9e83c521771a07298d3bb4631bf89a703e78998a5de0b7e9bbd36ff3ee3
5
5
  SHA512:
6
- metadata.gz: 45236529792438e239cf87326ba2bd0b4193e4e1c1b5078ed2cd08b24b2f28bd1345a520d8c1df33e2541bdfce884643a56e1a645627373edf497a45470583c6
7
- data.tar.gz: 752e4ae9c25dc3e1aa10dc6a30b0bc7428ed6d0acff30734304eecae29368872b37175ecf8a8a540af988d57a06296a1f7c15113dab39076a06142c00b6b4f61
6
+ metadata.gz: 727a1d815f083de18fd01700d0edc4e2051c4aed890bf1fc0730a5b2e58d5b1a7ce7a2eb6b09c6ed1c6bd9bb1431823cb6db7c74121a698ca28d4043774e56a1
7
+ data.tar.gz: c28c87ca71df3486f127847fc22e514a2de5a144db59d7f3835dad07e2742e21d2c561778ad2305dc61e27f7cfb40bbd0807ce9b4f3c32b52ff5da6e64ff064c
@@ -148,7 +148,8 @@ module Google
148
148
  credentials: credentials,
149
149
  endpoint: @config.endpoint,
150
150
  channel_args: @config.channel_args,
151
- interceptors: @config.interceptors
151
+ interceptors: @config.interceptors,
152
+ channel_pool_config: @config.channel_pool
152
153
  )
153
154
  end
154
155
 
@@ -475,6 +476,14 @@ module Google
475
476
  end
476
477
  end
477
478
 
479
+ ##
480
+ # Configuration for the channel pool
481
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
482
+ #
483
+ def channel_pool
484
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
485
+ end
486
+
478
487
  ##
479
488
  # Configuration RPC class for the AdvisoryNotificationsService API.
480
489
  #
@@ -191,6 +191,26 @@ module Google
191
191
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AdvisoryNotifications::V1::Notification>]
192
192
  #
193
193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/advisory_notifications/v1"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Rest::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::AdvisoryNotifications::V1::ListNotificationsRequest.new
203
+ #
204
+ # # Call the list_notifications method.
205
+ # result = client.list_notifications request
206
+ #
207
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
208
+ # # over elements, and API calls will be issued to fetch pages as needed.
209
+ # result.each do |item|
210
+ # # Each element is of type ::Google::Cloud::AdvisoryNotifications::V1::Notification.
211
+ # p item
212
+ # end
213
+ #
194
214
  def list_notifications request, options = nil
195
215
  raise ::ArgumentError, "request must be provided" if request.nil?
196
216
 
@@ -262,6 +282,22 @@ module Google
262
282
  # @return [::Google::Cloud::AdvisoryNotifications::V1::Notification]
263
283
  #
264
284
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
285
+ #
286
+ # @example Basic example
287
+ # require "google/cloud/advisory_notifications/v1"
288
+ #
289
+ # # Create a client object. The client can be reused for multiple calls.
290
+ # client = Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::AdvisoryNotifications::V1::GetNotificationRequest.new
294
+ #
295
+ # # Call the get_notification method.
296
+ # result = client.get_notification request
297
+ #
298
+ # # The returned object is of type Google::Cloud::AdvisoryNotifications::V1::Notification.
299
+ # p result
300
+ #
265
301
  def get_notification request, options = nil
266
302
  raise ::ArgumentError, "request must be provided" if request.nil?
267
303
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AdvisoryNotifications
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.0
4
+ version: 0.5.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-08-03 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.4.2
212
+ rubygems_version: 3.4.19
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: An API for accessing Advisory Notifications in Google Cloud.