google-cloud-talent-v4 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/talent/v4/company_service/client.rb +44 -41
- data/lib/google/cloud/talent/v4/completion/client.rb +32 -37
- data/lib/google/cloud/talent/v4/event_service/client.rb +32 -37
- data/lib/google/cloud/talent/v4/job_service/client.rb +59 -46
- data/lib/google/cloud/talent/v4/job_service/operations.rb +30 -21
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +44 -41
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0218310ff353868d4416fff4c18e1860801f05f36e8346ac413bf1554c5088d
|
4
|
+
data.tar.gz: 5abea7b89ea6825f827fe4aa4bceccaa9492494e7b3ed8b7ef508875abc8d2a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
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
|
-
#
|
124
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Talent::V4::CompanyService::Client.new
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
# to 20 seconds,
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Completion client with the default
|
105
|
-
# configuration:
|
101
|
+
# @example
|
106
102
|
#
|
107
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Talent::V4::Completion::Client.new
|
108
105
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
# to 20 seconds,
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
100
|
-
#
|
101
|
-
# To create a new EventService client with the default
|
102
|
-
# configuration:
|
98
|
+
# @example
|
103
99
|
#
|
104
|
-
#
|
100
|
+
# # Create a client using the default configuration
|
101
|
+
# client = ::Google::Cloud::Talent::V4::EventService::Client.new
|
105
102
|
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
# to 20 seconds,
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
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
|
-
#
|
134
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Talent::V4::JobService::Client.new
|
135
129
|
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
1424
|
-
#
|
1425
|
-
#
|
1426
|
-
# to 20 seconds,
|
1427
|
-
#
|
1428
|
-
#
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
#
|
1433
|
-
#
|
1434
|
-
#
|
1435
|
-
#
|
1436
|
-
#
|
1437
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
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
|
-
#
|
124
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Talent::V4::TenantService::Client.new
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
# to 20 seconds,
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|