google-cloud-talent-v4 0.4.2 → 0.4.3

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: a6bd0a9027f17423bd8d8f98dc6fcd887c066d3e3760d457009a9cf82c34bc0e
4
- data.tar.gz: 1cbab753039fb59587484b39997029c618fa454fbf6fdbd850a6098ea8735959
3
+ metadata.gz: b0218310ff353868d4416fff4c18e1860801f05f36e8346ac413bf1554c5088d
4
+ data.tar.gz: 5abea7b89ea6825f827fe4aa4bceccaa9492494e7b3ed8b7ef508875abc8d2a3
5
5
  SHA512:
6
- metadata.gz: db2cb47d24427e73287507fc512f7de67cea2dbe54c31acc8c9926f9b32ba53722ab31e3b400f52356029bd61470b2caebdbf276413f313f1fe4675c0ea76e11
7
- data.tar.gz: 1f9c9d811488d009e91d2b82e7d5f0caa8a10fdcb30ef4182107ee8ceb9cf42dee1b7eebbd40d4f4a131acd9757baae2bbe5d45078b701e54c90d5bc77baeda3
6
+ metadata.gz: 422ab4d0c5db640ab8e04c43c608021e7370bc0ab42ebc4295d4f753535ea2f3ca33e63e32f8c25394fe6a8b045988e82102dcc8db63baa491462f91ec3341d7
7
+ data.tar.gz: 626c0adc16359572e2708178c3a4c9cf5c8fb354ab1d8b2d68a48c6256b275cdd959fd9aa8e0cebfeed5e7d6947c1ccb74beb99408d4d31772def912131c35c9
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::CompanyService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all CompanyService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::CompanyService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all CompanyService clients
47
+ # ::Google::Cloud::Talent::V4::CompanyService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new CompanyService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new CompanyService client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new
115
+ # @example
122
116
  #
123
- # To create a new CompanyService client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new
125
119
  #
126
- # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the CompanyService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -229,7 +223,9 @@ module Google
229
223
  options.apply_defaults timeout: @config.rpcs.create_company.timeout,
230
224
  metadata: metadata,
231
225
  retry_policy: @config.rpcs.create_company.retry_policy
232
- options.apply_defaults metadata: @config.metadata,
226
+
227
+ options.apply_defaults timeout: @config.timeout,
228
+ metadata: @config.metadata,
233
229
  retry_policy: @config.retry_policy
234
230
 
235
231
  @company_service_stub.call_rpc :create_company, request, options: options do |response, operation|
@@ -299,7 +295,9 @@ module Google
299
295
  options.apply_defaults timeout: @config.rpcs.get_company.timeout,
300
296
  metadata: metadata,
301
297
  retry_policy: @config.rpcs.get_company.retry_policy
302
- options.apply_defaults metadata: @config.metadata,
298
+
299
+ options.apply_defaults timeout: @config.timeout,
300
+ metadata: @config.metadata,
303
301
  retry_policy: @config.retry_policy
304
302
 
305
303
  @company_service_stub.call_rpc :get_company, request, options: options do |response, operation|
@@ -373,7 +371,9 @@ module Google
373
371
  options.apply_defaults timeout: @config.rpcs.update_company.timeout,
374
372
  metadata: metadata,
375
373
  retry_policy: @config.rpcs.update_company.retry_policy
376
- options.apply_defaults metadata: @config.metadata,
374
+
375
+ options.apply_defaults timeout: @config.timeout,
376
+ metadata: @config.metadata,
377
377
  retry_policy: @config.retry_policy
378
378
 
379
379
  @company_service_stub.call_rpc :update_company, request, options: options do |response, operation|
@@ -444,7 +444,9 @@ module Google
444
444
  options.apply_defaults timeout: @config.rpcs.delete_company.timeout,
445
445
  metadata: metadata,
446
446
  retry_policy: @config.rpcs.delete_company.retry_policy
447
- options.apply_defaults metadata: @config.metadata,
447
+
448
+ options.apply_defaults timeout: @config.timeout,
449
+ metadata: @config.metadata,
448
450
  retry_policy: @config.retry_policy
449
451
 
450
452
  @company_service_stub.call_rpc :delete_company, request, options: options do |response, operation|
@@ -525,7 +527,9 @@ module Google
525
527
  options.apply_defaults timeout: @config.rpcs.list_companies.timeout,
526
528
  metadata: metadata,
527
529
  retry_policy: @config.rpcs.list_companies.retry_policy
528
- options.apply_defaults metadata: @config.metadata,
530
+
531
+ options.apply_defaults timeout: @config.timeout,
532
+ metadata: @config.metadata,
529
533
  retry_policy: @config.retry_policy
530
534
 
531
535
  @company_service_stub.call_rpc :list_companies, request, options: options do |response, operation|
@@ -550,22 +554,21 @@ module Google
550
554
  # Configuration can be applied globally to all clients, or to a single client
551
555
  # on construction.
552
556
  #
553
- # # Examples
554
- #
555
- # To modify the global config, setting the timeout for create_company
556
- # to 20 seconds, and all remaining timeouts to 10 seconds:
557
- #
558
- # ::Google::Cloud::Talent::V4::CompanyService::Client.configure do |config|
559
- # config.timeout = 10.0
560
- # config.rpcs.create_company.timeout = 20.0
561
- # end
562
- #
563
- # To apply the above configuration only to a new client:
564
- #
565
- # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new do |config|
566
- # config.timeout = 10.0
567
- # config.rpcs.create_company.timeout = 20.0
568
- # end
557
+ # @example
558
+ #
559
+ # # Modify the global config, setting the timeout for
560
+ # # create_company to 20 seconds,
561
+ # # and all remaining timeouts to 10 seconds.
562
+ # ::Google::Cloud::Talent::V4::CompanyService::Client.configure do |config|
563
+ # config.timeout = 10.0
564
+ # config.rpcs.create_company.timeout = 20.0
565
+ # end
566
+ #
567
+ # # Apply the above configuration only to a new client.
568
+ # client = ::Google::Cloud::Talent::V4::CompanyService::Client.new do |config|
569
+ # config.timeout = 10.0
570
+ # config.rpcs.create_company.timeout = 20.0
571
+ # end
569
572
  #
570
573
  # @!attribute [rw] endpoint
571
574
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::Completion::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Completion clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::Completion::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Completion clients
47
+ # ::Google::Cloud::Talent::V4::Completion::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new Completion client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Completion client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::Talent::V4::Completion::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Talent::V4::Completion::Client.new
108
105
  #
109
- # To create a new Completion client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::Talent::V4::Completion::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Talent::V4::Completion::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Completion client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -239,7 +233,9 @@ module Google
239
233
  options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
240
234
  metadata: metadata,
241
235
  retry_policy: @config.rpcs.complete_query.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
236
+
237
+ options.apply_defaults timeout: @config.timeout,
238
+ metadata: @config.metadata,
243
239
  retry_policy: @config.retry_policy
244
240
 
245
241
  @completion_stub.call_rpc :complete_query, request, options: options do |response, operation|
@@ -263,22 +259,21 @@ module Google
263
259
  # Configuration can be applied globally to all clients, or to a single client
264
260
  # on construction.
265
261
  #
266
- # # Examples
267
- #
268
- # To modify the global config, setting the timeout for complete_query
269
- # to 20 seconds, and all remaining timeouts to 10 seconds:
270
- #
271
- # ::Google::Cloud::Talent::V4::Completion::Client.configure do |config|
272
- # config.timeout = 10.0
273
- # config.rpcs.complete_query.timeout = 20.0
274
- # end
275
- #
276
- # To apply the above configuration only to a new client:
277
- #
278
- # client = ::Google::Cloud::Talent::V4::Completion::Client.new do |config|
279
- # config.timeout = 10.0
280
- # config.rpcs.complete_query.timeout = 20.0
281
- # end
262
+ # @example
263
+ #
264
+ # # Modify the global config, setting the timeout for
265
+ # # complete_query to 20 seconds,
266
+ # # and all remaining timeouts to 10 seconds.
267
+ # ::Google::Cloud::Talent::V4::Completion::Client.configure do |config|
268
+ # config.timeout = 10.0
269
+ # config.rpcs.complete_query.timeout = 20.0
270
+ # end
271
+ #
272
+ # # Apply the above configuration only to a new client.
273
+ # client = ::Google::Cloud::Talent::V4::Completion::Client.new do |config|
274
+ # config.timeout = 10.0
275
+ # config.rpcs.complete_query.timeout = 20.0
276
+ # end
282
277
  #
283
278
  # @!attribute [rw] endpoint
284
279
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::EventService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all EventService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::EventService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all EventService clients
47
+ # ::Google::Cloud::Talent::V4::EventService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -96,19 +95,15 @@ module Google
96
95
  ##
97
96
  # Create a new EventService client object.
98
97
  #
99
- # ## Examples
100
- #
101
- # To create a new EventService client with the default
102
- # configuration:
98
+ # @example
103
99
  #
104
- # client = ::Google::Cloud::Talent::V4::EventService::Client.new
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::Talent::V4::EventService::Client.new
105
102
  #
106
- # To create a new EventService client with a custom
107
- # configuration:
108
- #
109
- # client = ::Google::Cloud::Talent::V4::EventService::Client.new do |config|
110
- # config.timeout = 10.0
111
- # end
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::Talent::V4::EventService::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
112
107
  #
113
108
  # @yield [config] Configure the EventService client.
114
109
  # @yieldparam config [Client::Configuration]
@@ -128,10 +123,9 @@ module Google
128
123
 
129
124
  # Create credentials
130
125
  credentials = @config.credentials
131
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
126
+ # Use self-signed JWT if the endpoint is unchanged from default,
132
127
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
134
- @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
129
  !@config.endpoint.split(".").first.include?("-")
136
130
  credentials ||= Credentials.default scope: @config.scope,
137
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -219,7 +213,9 @@ module Google
219
213
  options.apply_defaults timeout: @config.rpcs.create_client_event.timeout,
220
214
  metadata: metadata,
221
215
  retry_policy: @config.rpcs.create_client_event.retry_policy
222
- options.apply_defaults metadata: @config.metadata,
216
+
217
+ options.apply_defaults timeout: @config.timeout,
218
+ metadata: @config.metadata,
223
219
  retry_policy: @config.retry_policy
224
220
 
225
221
  @event_service_stub.call_rpc :create_client_event, request, options: options do |response, operation|
@@ -243,22 +239,21 @@ module Google
243
239
  # Configuration can be applied globally to all clients, or to a single client
244
240
  # on construction.
245
241
  #
246
- # # Examples
247
- #
248
- # To modify the global config, setting the timeout for create_client_event
249
- # to 20 seconds, and all remaining timeouts to 10 seconds:
250
- #
251
- # ::Google::Cloud::Talent::V4::EventService::Client.configure do |config|
252
- # config.timeout = 10.0
253
- # config.rpcs.create_client_event.timeout = 20.0
254
- # end
255
- #
256
- # To apply the above configuration only to a new client:
257
- #
258
- # client = ::Google::Cloud::Talent::V4::EventService::Client.new do |config|
259
- # config.timeout = 10.0
260
- # config.rpcs.create_client_event.timeout = 20.0
261
- # end
242
+ # @example
243
+ #
244
+ # # Modify the global config, setting the timeout for
245
+ # # create_client_event to 20 seconds,
246
+ # # and all remaining timeouts to 10 seconds.
247
+ # ::Google::Cloud::Talent::V4::EventService::Client.configure do |config|
248
+ # config.timeout = 10.0
249
+ # config.rpcs.create_client_event.timeout = 20.0
250
+ # end
251
+ #
252
+ # # Apply the above configuration only to a new client.
253
+ # client = ::Google::Cloud::Talent::V4::EventService::Client.new do |config|
254
+ # config.timeout = 10.0
255
+ # config.rpcs.create_client_event.timeout = 20.0
256
+ # end
262
257
  #
263
258
  # @!attribute [rw] endpoint
264
259
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::JobService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all JobService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all JobService clients
47
+ # ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -123,19 +122,15 @@ module Google
123
122
  ##
124
123
  # Create a new JobService client object.
125
124
  #
126
- # ## Examples
127
- #
128
- # To create a new JobService client with the default
129
- # configuration:
130
- #
131
- # client = ::Google::Cloud::Talent::V4::JobService::Client.new
125
+ # @example
132
126
  #
133
- # To create a new JobService client with a custom
134
- # configuration:
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Talent::V4::JobService::Client.new
135
129
  #
136
- # client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
137
- # config.timeout = 10.0
138
- # end
130
+ # # Create a client using a custom configuration
131
+ # client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
132
+ # config.timeout = 10.0
133
+ # end
139
134
  #
140
135
  # @yield [config] Configure the JobService client.
141
136
  # @yieldparam config [Client::Configuration]
@@ -155,10 +150,9 @@ module Google
155
150
 
156
151
  # Create credentials
157
152
  credentials = @config.credentials
158
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
153
+ # Use self-signed JWT if the endpoint is unchanged from default,
159
154
  # but only if the default endpoint does not have a region prefix.
160
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
161
- @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
162
156
  !@config.endpoint.split(".").first.include?("-")
163
157
  credentials ||= Credentials.default scope: @config.scope,
164
158
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -254,7 +248,9 @@ module Google
254
248
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
255
249
  metadata: metadata,
256
250
  retry_policy: @config.rpcs.create_job.retry_policy
257
- options.apply_defaults metadata: @config.metadata,
251
+
252
+ options.apply_defaults timeout: @config.timeout,
253
+ metadata: @config.metadata,
258
254
  retry_policy: @config.retry_policy
259
255
 
260
256
  @job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -326,7 +322,9 @@ module Google
326
322
  options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
327
323
  metadata: metadata,
328
324
  retry_policy: @config.rpcs.batch_create_jobs.retry_policy
329
- options.apply_defaults metadata: @config.metadata,
325
+
326
+ options.apply_defaults timeout: @config.timeout,
327
+ metadata: @config.metadata,
330
328
  retry_policy: @config.retry_policy
331
329
 
332
330
  @job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
@@ -398,7 +396,9 @@ module Google
398
396
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
399
397
  metadata: metadata,
400
398
  retry_policy: @config.rpcs.get_job.retry_policy
401
- options.apply_defaults metadata: @config.metadata,
399
+
400
+ options.apply_defaults timeout: @config.timeout,
401
+ metadata: @config.metadata,
402
402
  retry_policy: @config.retry_policy
403
403
 
404
404
  @job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -475,7 +475,9 @@ module Google
475
475
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
476
476
  metadata: metadata,
477
477
  retry_policy: @config.rpcs.update_job.retry_policy
478
- options.apply_defaults metadata: @config.metadata,
478
+
479
+ options.apply_defaults timeout: @config.timeout,
480
+ metadata: @config.metadata,
479
481
  retry_policy: @config.retry_policy
480
482
 
481
483
  @job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
@@ -562,7 +564,9 @@ module Google
562
564
  options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
563
565
  metadata: metadata,
564
566
  retry_policy: @config.rpcs.batch_update_jobs.retry_policy
565
- options.apply_defaults metadata: @config.metadata,
567
+
568
+ options.apply_defaults timeout: @config.timeout,
569
+ metadata: @config.metadata,
566
570
  retry_policy: @config.retry_policy
567
571
 
568
572
  @job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
@@ -636,7 +640,9 @@ module Google
636
640
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
637
641
  metadata: metadata,
638
642
  retry_policy: @config.rpcs.delete_job.retry_policy
639
- options.apply_defaults metadata: @config.metadata,
643
+
644
+ options.apply_defaults timeout: @config.timeout,
645
+ metadata: @config.metadata,
640
646
  retry_policy: @config.retry_policy
641
647
 
642
648
  @job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -714,7 +720,9 @@ module Google
714
720
  options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
715
721
  metadata: metadata,
716
722
  retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
717
- options.apply_defaults metadata: @config.metadata,
723
+
724
+ options.apply_defaults timeout: @config.timeout,
725
+ metadata: @config.metadata,
718
726
  retry_policy: @config.retry_policy
719
727
 
720
728
  @job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
@@ -816,7 +824,9 @@ module Google
816
824
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
817
825
  metadata: metadata,
818
826
  retry_policy: @config.rpcs.list_jobs.retry_policy
819
- options.apply_defaults metadata: @config.metadata,
827
+
828
+ options.apply_defaults timeout: @config.timeout,
829
+ metadata: @config.metadata,
820
830
  retry_policy: @config.retry_policy
821
831
 
822
832
  @job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -1104,7 +1114,9 @@ module Google
1104
1114
  options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
1105
1115
  metadata: metadata,
1106
1116
  retry_policy: @config.rpcs.search_jobs.retry_policy
1107
- options.apply_defaults metadata: @config.metadata,
1117
+
1118
+ options.apply_defaults timeout: @config.timeout,
1119
+ metadata: @config.metadata,
1108
1120
  retry_policy: @config.retry_policy
1109
1121
 
1110
1122
  @job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
@@ -1396,7 +1408,9 @@ module Google
1396
1408
  options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
1397
1409
  metadata: metadata,
1398
1410
  retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
1399
- options.apply_defaults metadata: @config.metadata,
1411
+
1412
+ options.apply_defaults timeout: @config.timeout,
1413
+ metadata: @config.metadata,
1400
1414
  retry_policy: @config.retry_policy
1401
1415
 
1402
1416
  @job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
@@ -1420,22 +1434,21 @@ module Google
1420
1434
  # Configuration can be applied globally to all clients, or to a single client
1421
1435
  # on construction.
1422
1436
  #
1423
- # # Examples
1424
- #
1425
- # To modify the global config, setting the timeout for create_job
1426
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1427
- #
1428
- # ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
1429
- # config.timeout = 10.0
1430
- # config.rpcs.create_job.timeout = 20.0
1431
- # end
1432
- #
1433
- # To apply the above configuration only to a new client:
1434
- #
1435
- # client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
1436
- # config.timeout = 10.0
1437
- # config.rpcs.create_job.timeout = 20.0
1438
- # end
1437
+ # @example
1438
+ #
1439
+ # # Modify the global config, setting the timeout for
1440
+ # # create_job to 20 seconds,
1441
+ # # and all remaining timeouts to 10 seconds.
1442
+ # ::Google::Cloud::Talent::V4::JobService::Client.configure do |config|
1443
+ # config.timeout = 10.0
1444
+ # config.rpcs.create_job.timeout = 20.0
1445
+ # end
1446
+ #
1447
+ # # Apply the above configuration only to a new client.
1448
+ # client = ::Google::Cloud::Talent::V4::JobService::Client.new do |config|
1449
+ # config.timeout = 10.0
1450
+ # config.rpcs.create_job.timeout = 20.0
1451
+ # end
1439
1452
  #
1440
1453
  # @!attribute [rw] endpoint
1441
1454
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4::TenantService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all TenantService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all TenantService clients
47
+ # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new TenantService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new TenantService client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new
115
+ # @example
122
116
  #
123
- # To create a new TenantService client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new
125
119
  #
126
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the TenantService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -229,7 +223,9 @@ module Google
229
223
  options.apply_defaults timeout: @config.rpcs.create_tenant.timeout,
230
224
  metadata: metadata,
231
225
  retry_policy: @config.rpcs.create_tenant.retry_policy
232
- options.apply_defaults metadata: @config.metadata,
226
+
227
+ options.apply_defaults timeout: @config.timeout,
228
+ metadata: @config.metadata,
233
229
  retry_policy: @config.retry_policy
234
230
 
235
231
  @tenant_service_stub.call_rpc :create_tenant, request, options: options do |response, operation|
@@ -298,7 +294,9 @@ module Google
298
294
  options.apply_defaults timeout: @config.rpcs.get_tenant.timeout,
299
295
  metadata: metadata,
300
296
  retry_policy: @config.rpcs.get_tenant.retry_policy
301
- options.apply_defaults metadata: @config.metadata,
297
+
298
+ options.apply_defaults timeout: @config.timeout,
299
+ metadata: @config.metadata,
302
300
  retry_policy: @config.retry_policy
303
301
 
304
302
  @tenant_service_stub.call_rpc :get_tenant, request, options: options do |response, operation|
@@ -372,7 +370,9 @@ module Google
372
370
  options.apply_defaults timeout: @config.rpcs.update_tenant.timeout,
373
371
  metadata: metadata,
374
372
  retry_policy: @config.rpcs.update_tenant.retry_policy
375
- options.apply_defaults metadata: @config.metadata,
373
+
374
+ options.apply_defaults timeout: @config.timeout,
375
+ metadata: @config.metadata,
376
376
  retry_policy: @config.retry_policy
377
377
 
378
378
  @tenant_service_stub.call_rpc :update_tenant, request, options: options do |response, operation|
@@ -441,7 +441,9 @@ module Google
441
441
  options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout,
442
442
  metadata: metadata,
443
443
  retry_policy: @config.rpcs.delete_tenant.retry_policy
444
- options.apply_defaults metadata: @config.metadata,
444
+
445
+ options.apply_defaults timeout: @config.timeout,
446
+ metadata: @config.metadata,
445
447
  retry_policy: @config.retry_policy
446
448
 
447
449
  @tenant_service_stub.call_rpc :delete_tenant, request, options: options do |response, operation|
@@ -515,7 +517,9 @@ module Google
515
517
  options.apply_defaults timeout: @config.rpcs.list_tenants.timeout,
516
518
  metadata: metadata,
517
519
  retry_policy: @config.rpcs.list_tenants.retry_policy
518
- options.apply_defaults metadata: @config.metadata,
520
+
521
+ options.apply_defaults timeout: @config.timeout,
522
+ metadata: @config.metadata,
519
523
  retry_policy: @config.retry_policy
520
524
 
521
525
  @tenant_service_stub.call_rpc :list_tenants, request, options: options do |response, operation|
@@ -540,22 +544,21 @@ module Google
540
544
  # Configuration can be applied globally to all clients, or to a single client
541
545
  # on construction.
542
546
  #
543
- # # Examples
544
- #
545
- # To modify the global config, setting the timeout for create_tenant
546
- # to 20 seconds, and all remaining timeouts to 10 seconds:
547
- #
548
- # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
549
- # config.timeout = 10.0
550
- # config.rpcs.create_tenant.timeout = 20.0
551
- # end
552
- #
553
- # To apply the above configuration only to a new client:
554
- #
555
- # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
556
- # config.timeout = 10.0
557
- # config.rpcs.create_tenant.timeout = 20.0
558
- # end
547
+ # @example
548
+ #
549
+ # # Modify the global config, setting the timeout for
550
+ # # create_tenant to 20 seconds,
551
+ # # and all remaining timeouts to 10 seconds.
552
+ # ::Google::Cloud::Talent::V4::TenantService::Client.configure do |config|
553
+ # config.timeout = 10.0
554
+ # config.rpcs.create_tenant.timeout = 20.0
555
+ # end
556
+ #
557
+ # # Apply the above configuration only to a new client.
558
+ # client = ::Google::Cloud::Talent::V4::TenantService::Client.new do |config|
559
+ # config.timeout = 10.0
560
+ # config.rpcs.create_tenant.timeout = 20.0
561
+ # end
559
562
  #
560
563
  # @!attribute [rw] endpoint
561
564
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a