google-cloud-talent-v4beta1 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +41 -11
  4. data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +41 -11
  5. data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +54 -32
  6. data/lib/google/cloud/talent/v4beta1/completion/client.rb +32 -3
  7. data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +32 -3
  8. data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +22 -8
  9. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +32 -3
  10. data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +32 -3
  11. data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +22 -8
  12. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +53 -21
  13. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +25 -20
  14. data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +53 -21
  15. data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +54 -42
  16. data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +94 -62
  17. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +41 -11
  18. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +41 -11
  19. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +54 -32
  20. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  21. data/proto_docs/google/api/client.rb +74 -10
  22. data/proto_docs/google/api/resource.rb +7 -2
  23. data/proto_docs/google/longrunning/operations.rb +19 -14
  24. metadata +5 -5
@@ -30,6 +30,9 @@ module Google
30
30
  # A service that handles tenant management, including CRUD and enumeration.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "jobs.$UNIVERSE_DOMAIN$"
35
38
 
@@ -173,8 +176,28 @@ module Google
173
176
  universe_domain: @config.universe_domain,
174
177
  channel_args: @config.channel_args,
175
178
  interceptors: @config.interceptors,
176
- channel_pool_config: @config.channel_pool
179
+ channel_pool_config: @config.channel_pool,
180
+ logger: @config.logger
177
181
  )
182
+
183
+ @tenant_service_stub.stub_logger&.info do |entry|
184
+ entry.set_system_name
185
+ entry.set_service
186
+ entry.message = "Created client for #{entry.service}"
187
+ entry.set_credentials_fields credentials
188
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
189
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
190
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
191
+ end
192
+ end
193
+
194
+ ##
195
+ # The logger used for request/response debug logging.
196
+ #
197
+ # @return [Logger]
198
+ #
199
+ def logger
200
+ @tenant_service_stub.logger
178
201
  end
179
202
 
180
203
  # Service calls
@@ -239,10 +262,11 @@ module Google
239
262
  # Customize the options with defaults
240
263
  metadata = @config.rpcs.create_tenant.metadata.to_h
241
264
 
242
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
243
266
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
244
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
245
268
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
269
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
246
270
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
247
271
 
248
272
  header_params = {}
@@ -263,7 +287,6 @@ module Google
263
287
 
264
288
  @tenant_service_stub.call_rpc :create_tenant, request, options: options do |response, operation|
265
289
  yield response, operation if block_given?
266
- return response
267
290
  end
268
291
  rescue ::GRPC::BadStatus => e
269
292
  raise ::Google::Cloud::Error.from_error(e)
@@ -327,10 +350,11 @@ module Google
327
350
  # Customize the options with defaults
328
351
  metadata = @config.rpcs.get_tenant.metadata.to_h
329
352
 
330
- # Set x-goog-api-client and x-goog-user-project headers
353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
354
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
355
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
356
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
357
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
334
358
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
335
359
 
336
360
  header_params = {}
@@ -351,7 +375,6 @@ module Google
351
375
 
352
376
  @tenant_service_stub.call_rpc :get_tenant, request, options: options do |response, operation|
353
377
  yield response, operation if block_given?
354
- return response
355
378
  end
356
379
  rescue ::GRPC::BadStatus => e
357
380
  raise ::Google::Cloud::Error.from_error(e)
@@ -425,10 +448,11 @@ module Google
425
448
  # Customize the options with defaults
426
449
  metadata = @config.rpcs.update_tenant.metadata.to_h
427
450
 
428
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
429
452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
431
454
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
432
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
433
457
 
434
458
  header_params = {}
@@ -449,7 +473,6 @@ module Google
449
473
 
450
474
  @tenant_service_stub.call_rpc :update_tenant, request, options: options do |response, operation|
451
475
  yield response, operation if block_given?
452
- return response
453
476
  end
454
477
  rescue ::GRPC::BadStatus => e
455
478
  raise ::Google::Cloud::Error.from_error(e)
@@ -513,10 +536,11 @@ module Google
513
536
  # Customize the options with defaults
514
537
  metadata = @config.rpcs.delete_tenant.metadata.to_h
515
538
 
516
- # Set x-goog-api-client and x-goog-user-project headers
539
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
517
540
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
518
541
  lib_name: @config.lib_name, lib_version: @config.lib_version,
519
542
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
543
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
520
544
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
545
 
522
546
  header_params = {}
@@ -537,7 +561,6 @@ module Google
537
561
 
538
562
  @tenant_service_stub.call_rpc :delete_tenant, request, options: options do |response, operation|
539
563
  yield response, operation if block_given?
540
- return response
541
564
  end
542
565
  rescue ::GRPC::BadStatus => e
543
566
  raise ::Google::Cloud::Error.from_error(e)
@@ -610,10 +633,11 @@ module Google
610
633
  # Customize the options with defaults
611
634
  metadata = @config.rpcs.list_tenants.metadata.to_h
612
635
 
613
- # Set x-goog-api-client and x-goog-user-project headers
636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
637
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
616
639
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
640
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
641
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
642
 
619
643
  header_params = {}
@@ -635,7 +659,7 @@ module Google
635
659
  @tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
636
660
  response = ::Gapic::PagedEnumerable.new @tenant_service_stub, :list_tenants, request, response, operation, options
637
661
  yield response, operation if block_given?
638
- return response
662
+ throw :response, response
639
663
  end
640
664
  rescue ::GRPC::BadStatus => e
641
665
  raise ::Google::Cloud::Error.from_error(e)
@@ -724,6 +748,11 @@ module Google
724
748
  # default endpoint URL. The default value of nil uses the environment
725
749
  # universe (usually the default "googleapis.com" universe).
726
750
  # @return [::String,nil]
751
+ # @!attribute [rw] logger
752
+ # A custom logger to use for request/response debug logging, or the value
753
+ # `:default` (the default) to construct a default logger, or `nil` to
754
+ # explicitly disable logging.
755
+ # @return [::Logger,:default,nil]
727
756
  #
728
757
  class Configuration
729
758
  extend ::Gapic::Config
@@ -748,6 +777,7 @@ module Google
748
777
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
749
778
  config_attr :quota_project, nil, ::String, nil
750
779
  config_attr :universe_domain, nil, ::String, nil
780
+ config_attr :logger, :default, ::Logger, nil, :default
751
781
 
752
782
  # @private
753
783
  def initialize parent_config = nil
@@ -32,6 +32,9 @@ module Google
32
32
  # A service that handles tenant management, including CRUD and enumeration.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "jobs.$UNIVERSE_DOMAIN$"
37
40
 
@@ -166,8 +169,28 @@ module Google
166
169
  endpoint: @config.endpoint,
167
170
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
168
171
  universe_domain: @config.universe_domain,
169
- credentials: credentials
172
+ credentials: credentials,
173
+ logger: @config.logger
170
174
  )
175
+
176
+ @tenant_service_stub.logger(stub: true)&.info do |entry|
177
+ entry.set_system_name
178
+ entry.set_service
179
+ entry.message = "Created client for #{entry.service}"
180
+ entry.set_credentials_fields credentials
181
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
182
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
183
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
184
+ end
185
+ end
186
+
187
+ ##
188
+ # The logger used for request/response debug logging.
189
+ #
190
+ # @return [Logger]
191
+ #
192
+ def logger
193
+ @tenant_service_stub.logger
171
194
  end
172
195
 
173
196
  # Service calls
@@ -231,12 +254,13 @@ module Google
231
254
  # Customize the options with defaults
232
255
  call_metadata = @config.rpcs.create_tenant.metadata.to_h
233
256
 
234
- # Set x-goog-api-client and x-goog-user-project headers
257
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
235
258
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
236
259
  lib_name: @config.lib_name, lib_version: @config.lib_version,
237
260
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION,
238
261
  transports_version_send: [:rest]
239
262
 
263
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
240
264
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
241
265
 
242
266
  options.apply_defaults timeout: @config.rpcs.create_tenant.timeout,
@@ -249,7 +273,6 @@ module Google
249
273
 
250
274
  @tenant_service_stub.create_tenant request, options do |result, operation|
251
275
  yield result, operation if block_given?
252
- return result
253
276
  end
254
277
  rescue ::Gapic::Rest::Error => e
255
278
  raise ::Google::Cloud::Error.from_error(e)
@@ -312,12 +335,13 @@ module Google
312
335
  # Customize the options with defaults
313
336
  call_metadata = @config.rpcs.get_tenant.metadata.to_h
314
337
 
315
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
316
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
317
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
318
341
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION,
319
342
  transports_version_send: [:rest]
320
343
 
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
321
345
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
322
346
 
323
347
  options.apply_defaults timeout: @config.rpcs.get_tenant.timeout,
@@ -330,7 +354,6 @@ module Google
330
354
 
331
355
  @tenant_service_stub.get_tenant request, options do |result, operation|
332
356
  yield result, operation if block_given?
333
- return result
334
357
  end
335
358
  rescue ::Gapic::Rest::Error => e
336
359
  raise ::Google::Cloud::Error.from_error(e)
@@ -403,12 +426,13 @@ module Google
403
426
  # Customize the options with defaults
404
427
  call_metadata = @config.rpcs.update_tenant.metadata.to_h
405
428
 
406
- # Set x-goog-api-client and x-goog-user-project headers
429
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
407
430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
408
431
  lib_name: @config.lib_name, lib_version: @config.lib_version,
409
432
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION,
410
433
  transports_version_send: [:rest]
411
434
 
435
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
412
436
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
413
437
 
414
438
  options.apply_defaults timeout: @config.rpcs.update_tenant.timeout,
@@ -421,7 +445,6 @@ module Google
421
445
 
422
446
  @tenant_service_stub.update_tenant request, options do |result, operation|
423
447
  yield result, operation if block_given?
424
- return result
425
448
  end
426
449
  rescue ::Gapic::Rest::Error => e
427
450
  raise ::Google::Cloud::Error.from_error(e)
@@ -484,12 +507,13 @@ module Google
484
507
  # Customize the options with defaults
485
508
  call_metadata = @config.rpcs.delete_tenant.metadata.to_h
486
509
 
487
- # Set x-goog-api-client and x-goog-user-project headers
510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
488
511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
490
513
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION,
491
514
  transports_version_send: [:rest]
492
515
 
516
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
493
517
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
494
518
 
495
519
  options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout,
@@ -502,7 +526,6 @@ module Google
502
526
 
503
527
  @tenant_service_stub.delete_tenant request, options do |result, operation|
504
528
  yield result, operation if block_given?
505
- return result
506
529
  end
507
530
  rescue ::Gapic::Rest::Error => e
508
531
  raise ::Google::Cloud::Error.from_error(e)
@@ -574,12 +597,13 @@ module Google
574
597
  # Customize the options with defaults
575
598
  call_metadata = @config.rpcs.list_tenants.metadata.to_h
576
599
 
577
- # Set x-goog-api-client and x-goog-user-project headers
600
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
601
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
602
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
603
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION,
581
604
  transports_version_send: [:rest]
582
605
 
606
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
607
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
608
 
585
609
  options.apply_defaults timeout: @config.rpcs.list_tenants.timeout,
@@ -593,7 +617,7 @@ module Google
593
617
  @tenant_service_stub.list_tenants request, options do |result, operation|
594
618
  result = ::Gapic::Rest::PagedEnumerable.new @tenant_service_stub, :list_tenants, "tenants", request, result, options
595
619
  yield result, operation if block_given?
596
- return result
620
+ throw :response, result
597
621
  end
598
622
  rescue ::Gapic::Rest::Error => e
599
623
  raise ::Google::Cloud::Error.from_error(e)
@@ -673,6 +697,11 @@ module Google
673
697
  # default endpoint URL. The default value of nil uses the environment
674
698
  # universe (usually the default "googleapis.com" universe).
675
699
  # @return [::String,nil]
700
+ # @!attribute [rw] logger
701
+ # A custom logger to use for request/response debug logging, or the value
702
+ # `:default` (the default) to construct a default logger, or `nil` to
703
+ # explicitly disable logging.
704
+ # @return [::Logger,:default,nil]
676
705
  #
677
706
  class Configuration
678
707
  extend ::Gapic::Config
@@ -694,6 +723,7 @@ module Google
694
723
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
695
724
  config_attr :quota_project, nil, ::String, nil
696
725
  config_attr :universe_domain, nil, ::String, nil
726
+ config_attr :logger, :default, ::Logger, nil, :default
697
727
 
698
728
  # @private
699
729
  def initialize parent_config = nil
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the create_tenant REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "create_tenant",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Cloud::Talent::V4beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_tenant",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Cloud::Talent::V4beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "update_tenant",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Cloud::Talent::V4beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "delete_tenant",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "list_tenants",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Cloud::Talent::V4beta1::ListTenantsResponse.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4beta1
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -28,6 +28,9 @@ module Google
28
28
  # @!attribute [rw] destinations
29
29
  # @return [::Array<::Google::Api::ClientLibraryDestination>]
30
30
  # The destination where API teams want this client library to be published.
31
+ # @!attribute [rw] selective_gapic_generation
32
+ # @return [::Google::Api::SelectiveGapicGeneration]
33
+ # Configuration for which RPCs should be generated in the GAPIC client.
31
34
  class CommonLanguageSettings
32
35
  include ::Google::Protobuf::MessageExts
33
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -118,6 +121,10 @@ module Google
118
121
  # @return [::String]
119
122
  # Optional link to proto reference documentation. Example:
120
123
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
124
+ # @!attribute [rw] rest_reference_documentation_uri
125
+ # @return [::String]
126
+ # Optional link to REST reference documentation. Example:
127
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
128
  class Publishing
122
129
  include ::Google::Protobuf::MessageExts
123
130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +199,32 @@ module Google
192
199
  # @!attribute [rw] common
193
200
  # @return [::Google::Api::CommonLanguageSettings]
194
201
  # Some settings.
202
+ # @!attribute [rw] experimental_features
203
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
204
+ # Experimental features to be included during client library generation.
195
205
  class PythonSettings
196
206
  include ::Google::Protobuf::MessageExts
197
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
+
209
+ # Experimental features to be included during client library generation.
210
+ # These fields will be deprecated once the feature graduates and is enabled
211
+ # by default.
212
+ # @!attribute [rw] rest_async_io_enabled
213
+ # @return [::Boolean]
214
+ # Enables generation of asynchronous REST clients if `rest` transport is
215
+ # enabled. By default, asynchronous REST clients will not be generated.
216
+ # This feature will be enabled by default 1 month after launching the
217
+ # feature in preview packages.
218
+ # @!attribute [rw] protobuf_pythonic_types_enabled
219
+ # @return [::Boolean]
220
+ # Enables generation of protobuf code using new types that are more
221
+ # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
+ # enabled by default 1 month after launching the feature in preview
223
+ # packages.
224
+ class ExperimentalFeatures
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
198
228
  end
199
229
 
200
230
  # Settings for Node client libraries.
@@ -276,9 +306,28 @@ module Google
276
306
  # @!attribute [rw] common
277
307
  # @return [::Google::Api::CommonLanguageSettings]
278
308
  # Some settings.
309
+ # @!attribute [rw] renamed_services
310
+ # @return [::Google::Protobuf::Map{::String => ::String}]
311
+ # Map of service names to renamed services. Keys are the package relative
312
+ # service names and values are the name to be used for the service client
313
+ # and call options.
314
+ #
315
+ # publishing:
316
+ # go_settings:
317
+ # renamed_services:
318
+ # Publisher: TopicAdmin
279
319
  class GoSettings
280
320
  include ::Google::Protobuf::MessageExts
281
321
  extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ # @!attribute [rw] key
324
+ # @return [::String]
325
+ # @!attribute [rw] value
326
+ # @return [::String]
327
+ class RenamedServicesEntry
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+ end
282
331
  end
283
332
 
284
333
  # Describes the generator configuration for a method.
@@ -286,6 +335,13 @@ module Google
286
335
  # @return [::String]
287
336
  # The fully qualified name of the method, for which the options below apply.
288
337
  # This is used to find the method to apply the options.
338
+ #
339
+ # Example:
340
+ #
341
+ # publishing:
342
+ # method_settings:
343
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
344
+ # # method settings for CreateFolder...
289
345
  # @!attribute [rw] long_running
290
346
  # @return [::Google::Api::MethodSettings::LongRunning]
291
347
  # Describes settings to use for long-running operations when generating
@@ -294,17 +350,14 @@ module Google
294
350
  #
295
351
  # Example of a YAML configuration::
296
352
  #
297
- # publishing:
298
- # method_settings:
353
+ # publishing:
354
+ # method_settings:
299
355
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
356
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
357
+ # initial_poll_delay: 60s # 1 minute
303
358
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
359
+ # max_poll_delay: 360s # 6 minutes
360
+ # total_poll_timeout: 54000s # 90 minutes
308
361
  # @!attribute [rw] auto_populated_fields
309
362
  # @return [::Array<::String>]
310
363
  # List of top-level fields of the request message, that should be
@@ -313,8 +366,8 @@ module Google
313
366
  #
314
367
  # Example of a YAML configuration:
315
368
  #
316
- # publishing:
317
- # method_settings:
369
+ # publishing:
370
+ # method_settings:
318
371
  # - selector: google.example.v1.ExampleService.CreateExample
319
372
  # auto_populated_fields:
320
373
  # - request_id
@@ -350,6 +403,17 @@ module Google
350
403
  end
351
404
  end
352
405
 
406
+ # This message is used to configure the generation of a subset of the RPCs in
407
+ # a service for client libraries.
408
+ # @!attribute [rw] methods
409
+ # @return [::Array<::String>]
410
+ # An allowlist of the fully qualified names of RPCs that should be included
411
+ # on public client surfaces.
412
+ class SelectiveGapicGeneration
413
+ include ::Google::Protobuf::MessageExts
414
+ extend ::Google::Protobuf::MessageExts::ClassMethods
415
+ end
416
+
353
417
  # The organization for which the client libraries are being published.
354
418
  # Affects the url where generated docs are published, etc.
355
419
  module ClientLibraryOrganization
@@ -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'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
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