google-cloud-talent-v4beta1 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 +4 -4
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +44 -41
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +44 -41
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +32 -37
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +32 -37
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +59 -46
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +30 -21
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +47 -42
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +44 -41
- data/lib/google/cloud/talent/v4beta1/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: 3f9ec648d2f92363d012af81fe8ce6a004bb19698256f61e4a18370b49d54690
|
4
|
+
data.tar.gz: 9769dfe2c3a96f45220b653d8a07628da9824ab1fa27749a7a8bef0bbd6545fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d682371f7e9242c5a550d99be59c3c7425358fe6fde8692752e416e17ce8753ab4a02c292d7fc3c84fff288dc879556f669680f1939708144ce15a9918c061e1
|
7
|
+
data.tar.gz: cbbb24807b6b4818c5d26eb94e1b8cbc4f3182b27c8f8b0aca7b509f88aa689b4864d62930c0419f68e49aebd64742342058c4c4d389682b8253305da19e0ea6
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Talent::V4beta1::ApplicationService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all ApplicationService clients
|
48
|
+
# ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -114,19 +113,15 @@ module Google
|
|
114
113
|
##
|
115
114
|
# Create a new ApplicationService client object.
|
116
115
|
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
# To create a new ApplicationService client with the default
|
120
|
-
# configuration:
|
121
|
-
#
|
122
|
-
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
116
|
+
# @example
|
123
117
|
#
|
124
|
-
#
|
125
|
-
#
|
118
|
+
# # Create a client using the default configuration
|
119
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new
|
126
120
|
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
121
|
+
# # Create a client using a custom configuration
|
122
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
123
|
+
# config.timeout = 10.0
|
124
|
+
# end
|
130
125
|
#
|
131
126
|
# @yield [config] Configure the ApplicationService client.
|
132
127
|
# @yieldparam config [Client::Configuration]
|
@@ -146,10 +141,9 @@ module Google
|
|
146
141
|
|
147
142
|
# Create credentials
|
148
143
|
credentials = @config.credentials
|
149
|
-
# Use self-signed JWT if the
|
144
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
150
145
|
# but only if the default endpoint does not have a region prefix.
|
151
|
-
enable_self_signed_jwt = @config.
|
152
|
-
@config.endpoint == Client.configure.endpoint &&
|
146
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
153
147
|
!@config.endpoint.split(".").first.include?("-")
|
154
148
|
credentials ||= Credentials.default scope: @config.scope,
|
155
149
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -231,7 +225,9 @@ module Google
|
|
231
225
|
options.apply_defaults timeout: @config.rpcs.create_application.timeout,
|
232
226
|
metadata: metadata,
|
233
227
|
retry_policy: @config.rpcs.create_application.retry_policy
|
234
|
-
|
228
|
+
|
229
|
+
options.apply_defaults timeout: @config.timeout,
|
230
|
+
metadata: @config.metadata,
|
235
231
|
retry_policy: @config.retry_policy
|
236
232
|
|
237
233
|
@application_service_stub.call_rpc :create_application, request, options: options do |response, operation|
|
@@ -301,7 +297,9 @@ module Google
|
|
301
297
|
options.apply_defaults timeout: @config.rpcs.get_application.timeout,
|
302
298
|
metadata: metadata,
|
303
299
|
retry_policy: @config.rpcs.get_application.retry_policy
|
304
|
-
|
300
|
+
|
301
|
+
options.apply_defaults timeout: @config.timeout,
|
302
|
+
metadata: @config.metadata,
|
305
303
|
retry_policy: @config.retry_policy
|
306
304
|
|
307
305
|
@application_service_stub.call_rpc :get_application, request, options: options do |response, operation|
|
@@ -375,7 +373,9 @@ module Google
|
|
375
373
|
options.apply_defaults timeout: @config.rpcs.update_application.timeout,
|
376
374
|
metadata: metadata,
|
377
375
|
retry_policy: @config.rpcs.update_application.retry_policy
|
378
|
-
|
376
|
+
|
377
|
+
options.apply_defaults timeout: @config.timeout,
|
378
|
+
metadata: @config.metadata,
|
379
379
|
retry_policy: @config.retry_policy
|
380
380
|
|
381
381
|
@application_service_stub.call_rpc :update_application, request, options: options do |response, operation|
|
@@ -445,7 +445,9 @@ module Google
|
|
445
445
|
options.apply_defaults timeout: @config.rpcs.delete_application.timeout,
|
446
446
|
metadata: metadata,
|
447
447
|
retry_policy: @config.rpcs.delete_application.retry_policy
|
448
|
-
|
448
|
+
|
449
|
+
options.apply_defaults timeout: @config.timeout,
|
450
|
+
metadata: @config.metadata,
|
449
451
|
retry_policy: @config.retry_policy
|
450
452
|
|
451
453
|
@application_service_stub.call_rpc :delete_application, request, options: options do |response, operation|
|
@@ -520,7 +522,9 @@ module Google
|
|
520
522
|
options.apply_defaults timeout: @config.rpcs.list_applications.timeout,
|
521
523
|
metadata: metadata,
|
522
524
|
retry_policy: @config.rpcs.list_applications.retry_policy
|
523
|
-
|
525
|
+
|
526
|
+
options.apply_defaults timeout: @config.timeout,
|
527
|
+
metadata: @config.metadata,
|
524
528
|
retry_policy: @config.retry_policy
|
525
529
|
|
526
530
|
@application_service_stub.call_rpc :list_applications, request, options: options do |response, operation|
|
@@ -545,22 +549,21 @@ module Google
|
|
545
549
|
# Configuration can be applied globally to all clients, or to a single client
|
546
550
|
# on construction.
|
547
551
|
#
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
# to 20 seconds,
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
# end
|
552
|
+
# @example
|
553
|
+
#
|
554
|
+
# # Modify the global config, setting the timeout for
|
555
|
+
# # create_application to 20 seconds,
|
556
|
+
# # and all remaining timeouts to 10 seconds.
|
557
|
+
# ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config|
|
558
|
+
# config.timeout = 10.0
|
559
|
+
# config.rpcs.create_application.timeout = 20.0
|
560
|
+
# end
|
561
|
+
#
|
562
|
+
# # Apply the above configuration only to a new client.
|
563
|
+
# client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config|
|
564
|
+
# config.timeout = 10.0
|
565
|
+
# config.rpcs.create_application.timeout = 20.0
|
566
|
+
# end
|
564
567
|
#
|
565
568
|
# @!attribute [rw] endpoint
|
566
569
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::CompanyService::Client.new
|
115
|
+
# @example
|
122
116
|
#
|
123
|
-
#
|
124
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
120
|
+
# # Create a client using a custom configuration
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::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
|
@@ -230,7 +224,9 @@ module Google
|
|
230
224
|
options.apply_defaults timeout: @config.rpcs.create_company.timeout,
|
231
225
|
metadata: metadata,
|
232
226
|
retry_policy: @config.rpcs.create_company.retry_policy
|
233
|
-
|
227
|
+
|
228
|
+
options.apply_defaults timeout: @config.timeout,
|
229
|
+
metadata: @config.metadata,
|
234
230
|
retry_policy: @config.retry_policy
|
235
231
|
|
236
232
|
@company_service_stub.call_rpc :create_company, request, options: options do |response, operation|
|
@@ -303,7 +299,9 @@ module Google
|
|
303
299
|
options.apply_defaults timeout: @config.rpcs.get_company.timeout,
|
304
300
|
metadata: metadata,
|
305
301
|
retry_policy: @config.rpcs.get_company.retry_policy
|
306
|
-
|
302
|
+
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
304
|
+
metadata: @config.metadata,
|
307
305
|
retry_policy: @config.retry_policy
|
308
306
|
|
309
307
|
@company_service_stub.call_rpc :get_company, request, options: options do |response, operation|
|
@@ -377,7 +375,9 @@ module Google
|
|
377
375
|
options.apply_defaults timeout: @config.rpcs.update_company.timeout,
|
378
376
|
metadata: metadata,
|
379
377
|
retry_policy: @config.rpcs.update_company.retry_policy
|
380
|
-
|
378
|
+
|
379
|
+
options.apply_defaults timeout: @config.timeout,
|
380
|
+
metadata: @config.metadata,
|
381
381
|
retry_policy: @config.retry_policy
|
382
382
|
|
383
383
|
@company_service_stub.call_rpc :update_company, request, options: options do |response, operation|
|
@@ -451,7 +451,9 @@ module Google
|
|
451
451
|
options.apply_defaults timeout: @config.rpcs.delete_company.timeout,
|
452
452
|
metadata: metadata,
|
453
453
|
retry_policy: @config.rpcs.delete_company.retry_policy
|
454
|
-
|
454
|
+
|
455
|
+
options.apply_defaults timeout: @config.timeout,
|
456
|
+
metadata: @config.metadata,
|
455
457
|
retry_policy: @config.retry_policy
|
456
458
|
|
457
459
|
@company_service_stub.call_rpc :delete_company, request, options: options do |response, operation|
|
@@ -535,7 +537,9 @@ module Google
|
|
535
537
|
options.apply_defaults timeout: @config.rpcs.list_companies.timeout,
|
536
538
|
metadata: metadata,
|
537
539
|
retry_policy: @config.rpcs.list_companies.retry_policy
|
538
|
-
|
540
|
+
|
541
|
+
options.apply_defaults timeout: @config.timeout,
|
542
|
+
metadata: @config.metadata,
|
539
543
|
retry_policy: @config.retry_policy
|
540
544
|
|
541
545
|
@company_service_stub.call_rpc :list_companies, request, options: options do |response, operation|
|
@@ -560,22 +564,21 @@ module Google
|
|
560
564
|
# Configuration can be applied globally to all clients, or to a single client
|
561
565
|
# on construction.
|
562
566
|
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
# to 20 seconds,
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
#
|
578
|
-
# end
|
567
|
+
# @example
|
568
|
+
#
|
569
|
+
# # Modify the global config, setting the timeout for
|
570
|
+
# # create_company to 20 seconds,
|
571
|
+
# # and all remaining timeouts to 10 seconds.
|
572
|
+
# ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
573
|
+
# config.timeout = 10.0
|
574
|
+
# config.rpcs.create_company.timeout = 20.0
|
575
|
+
# end
|
576
|
+
#
|
577
|
+
# # Apply the above configuration only to a new client.
|
578
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
579
|
+
# config.timeout = 10.0
|
580
|
+
# config.rpcs.create_company.timeout = 20.0
|
581
|
+
# end
|
579
582
|
#
|
580
583
|
# @!attribute [rw] endpoint
|
581
584
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::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::V4beta1::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
|
@@ -245,7 +239,9 @@ module Google
|
|
245
239
|
options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
|
246
240
|
metadata: metadata,
|
247
241
|
retry_policy: @config.rpcs.complete_query.retry_policy
|
248
|
-
|
242
|
+
|
243
|
+
options.apply_defaults timeout: @config.timeout,
|
244
|
+
metadata: @config.metadata,
|
249
245
|
retry_policy: @config.retry_policy
|
250
246
|
|
251
247
|
@completion_stub.call_rpc :complete_query, request, options: options do |response, operation|
|
@@ -269,22 +265,21 @@ module Google
|
|
269
265
|
# Configuration can be applied globally to all clients, or to a single client
|
270
266
|
# on construction.
|
271
267
|
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
# to 20 seconds,
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
281
|
-
#
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
# end
|
268
|
+
# @example
|
269
|
+
#
|
270
|
+
# # Modify the global config, setting the timeout for
|
271
|
+
# # complete_query to 20 seconds,
|
272
|
+
# # and all remaining timeouts to 10 seconds.
|
273
|
+
# ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
|
274
|
+
# config.timeout = 10.0
|
275
|
+
# config.rpcs.complete_query.timeout = 20.0
|
276
|
+
# end
|
277
|
+
#
|
278
|
+
# # Apply the above configuration only to a new client.
|
279
|
+
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
|
280
|
+
# config.timeout = 10.0
|
281
|
+
# config.rpcs.complete_query.timeout = 20.0
|
282
|
+
# end
|
288
283
|
#
|
289
284
|
# @!attribute [rw] endpoint
|
290
285
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::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::V4beta1::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
|
@@ -220,7 +214,9 @@ module Google
|
|
220
214
|
options.apply_defaults timeout: @config.rpcs.create_client_event.timeout,
|
221
215
|
metadata: metadata,
|
222
216
|
retry_policy: @config.rpcs.create_client_event.retry_policy
|
223
|
-
|
217
|
+
|
218
|
+
options.apply_defaults timeout: @config.timeout,
|
219
|
+
metadata: @config.metadata,
|
224
220
|
retry_policy: @config.retry_policy
|
225
221
|
|
226
222
|
@event_service_stub.call_rpc :create_client_event, request, options: options do |response, operation|
|
@@ -244,22 +240,21 @@ module Google
|
|
244
240
|
# Configuration can be applied globally to all clients, or to a single client
|
245
241
|
# on construction.
|
246
242
|
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# to 20 seconds,
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
# end
|
243
|
+
# @example
|
244
|
+
#
|
245
|
+
# # Modify the global config, setting the timeout for
|
246
|
+
# # create_client_event to 20 seconds,
|
247
|
+
# # and all remaining timeouts to 10 seconds.
|
248
|
+
# ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
|
249
|
+
# config.timeout = 10.0
|
250
|
+
# config.rpcs.create_client_event.timeout = 20.0
|
251
|
+
# end
|
252
|
+
#
|
253
|
+
# # Apply the above configuration only to a new client.
|
254
|
+
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
|
255
|
+
# config.timeout = 10.0
|
256
|
+
# config.rpcs.create_client_event.timeout = 20.0
|
257
|
+
# end
|
263
258
|
#
|
264
259
|
# @!attribute [rw] endpoint
|
265
260
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::JobService::Client.new
|
125
|
+
# @example
|
132
126
|
#
|
133
|
-
#
|
134
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
|
135
129
|
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
130
|
+
# # Create a client using a custom configuration
|
131
|
+
# client = ::Google::Cloud::Talent::V4beta1::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
|
@@ -255,7 +249,9 @@ module Google
|
|
255
249
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
256
250
|
metadata: metadata,
|
257
251
|
retry_policy: @config.rpcs.create_job.retry_policy
|
258
|
-
|
252
|
+
|
253
|
+
options.apply_defaults timeout: @config.timeout,
|
254
|
+
metadata: @config.metadata,
|
259
255
|
retry_policy: @config.retry_policy
|
260
256
|
|
261
257
|
@job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
|
@@ -327,7 +323,9 @@ module Google
|
|
327
323
|
options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
|
328
324
|
metadata: metadata,
|
329
325
|
retry_policy: @config.rpcs.batch_create_jobs.retry_policy
|
330
|
-
|
326
|
+
|
327
|
+
options.apply_defaults timeout: @config.timeout,
|
328
|
+
metadata: @config.metadata,
|
331
329
|
retry_policy: @config.retry_policy
|
332
330
|
|
333
331
|
@job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
|
@@ -402,7 +400,9 @@ module Google
|
|
402
400
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
403
401
|
metadata: metadata,
|
404
402
|
retry_policy: @config.rpcs.get_job.retry_policy
|
405
|
-
|
403
|
+
|
404
|
+
options.apply_defaults timeout: @config.timeout,
|
405
|
+
metadata: @config.metadata,
|
406
406
|
retry_policy: @config.retry_policy
|
407
407
|
|
408
408
|
@job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
|
@@ -479,7 +479,9 @@ module Google
|
|
479
479
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
480
480
|
metadata: metadata,
|
481
481
|
retry_policy: @config.rpcs.update_job.retry_policy
|
482
|
-
|
482
|
+
|
483
|
+
options.apply_defaults timeout: @config.timeout,
|
484
|
+
metadata: @config.metadata,
|
483
485
|
retry_policy: @config.retry_policy
|
484
486
|
|
485
487
|
@job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
|
@@ -566,7 +568,9 @@ module Google
|
|
566
568
|
options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
|
567
569
|
metadata: metadata,
|
568
570
|
retry_policy: @config.rpcs.batch_update_jobs.retry_policy
|
569
|
-
|
571
|
+
|
572
|
+
options.apply_defaults timeout: @config.timeout,
|
573
|
+
metadata: @config.metadata,
|
570
574
|
retry_policy: @config.retry_policy
|
571
575
|
|
572
576
|
@job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
|
@@ -643,7 +647,9 @@ module Google
|
|
643
647
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
644
648
|
metadata: metadata,
|
645
649
|
retry_policy: @config.rpcs.delete_job.retry_policy
|
646
|
-
|
650
|
+
|
651
|
+
options.apply_defaults timeout: @config.timeout,
|
652
|
+
metadata: @config.metadata,
|
647
653
|
retry_policy: @config.retry_policy
|
648
654
|
|
649
655
|
@job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
|
@@ -725,7 +731,9 @@ module Google
|
|
725
731
|
options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
|
726
732
|
metadata: metadata,
|
727
733
|
retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
|
728
|
-
|
734
|
+
|
735
|
+
options.apply_defaults timeout: @config.timeout,
|
736
|
+
metadata: @config.metadata,
|
729
737
|
retry_policy: @config.retry_policy
|
730
738
|
|
731
739
|
@job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
|
@@ -827,7 +835,9 @@ module Google
|
|
827
835
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
828
836
|
metadata: metadata,
|
829
837
|
retry_policy: @config.rpcs.list_jobs.retry_policy
|
830
|
-
|
838
|
+
|
839
|
+
options.apply_defaults timeout: @config.timeout,
|
840
|
+
metadata: @config.metadata,
|
831
841
|
retry_policy: @config.retry_policy
|
832
842
|
|
833
843
|
@job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
|
@@ -1126,7 +1136,9 @@ module Google
|
|
1126
1136
|
options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
|
1127
1137
|
metadata: metadata,
|
1128
1138
|
retry_policy: @config.rpcs.search_jobs.retry_policy
|
1129
|
-
|
1139
|
+
|
1140
|
+
options.apply_defaults timeout: @config.timeout,
|
1141
|
+
metadata: @config.metadata,
|
1130
1142
|
retry_policy: @config.retry_policy
|
1131
1143
|
|
1132
1144
|
@job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
|
@@ -1429,7 +1441,9 @@ module Google
|
|
1429
1441
|
options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
|
1430
1442
|
metadata: metadata,
|
1431
1443
|
retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
|
1432
|
-
|
1444
|
+
|
1445
|
+
options.apply_defaults timeout: @config.timeout,
|
1446
|
+
metadata: @config.metadata,
|
1433
1447
|
retry_policy: @config.retry_policy
|
1434
1448
|
|
1435
1449
|
@job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
|
@@ -1453,22 +1467,21 @@ module Google
|
|
1453
1467
|
# Configuration can be applied globally to all clients, or to a single client
|
1454
1468
|
# on construction.
|
1455
1469
|
#
|
1456
|
-
#
|
1457
|
-
#
|
1458
|
-
#
|
1459
|
-
# to 20 seconds,
|
1460
|
-
#
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1467
|
-
#
|
1468
|
-
#
|
1469
|
-
#
|
1470
|
-
#
|
1471
|
-
# end
|
1470
|
+
# @example
|
1471
|
+
#
|
1472
|
+
# # Modify the global config, setting the timeout for
|
1473
|
+
# # create_job to 20 seconds,
|
1474
|
+
# # and all remaining timeouts to 10 seconds.
|
1475
|
+
# ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
|
1476
|
+
# config.timeout = 10.0
|
1477
|
+
# config.rpcs.create_job.timeout = 20.0
|
1478
|
+
# end
|
1479
|
+
#
|
1480
|
+
# # Apply the above configuration only to a new client.
|
1481
|
+
# client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
|
1482
|
+
# config.timeout = 10.0
|
1483
|
+
# config.rpcs.create_job.timeout = 20.0
|
1484
|
+
# end
|
1472
1485
|
#
|
1473
1486
|
# @!attribute [rw] endpoint
|
1474
1487
|
# 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.
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all ProfileService clients
|
48
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -116,19 +115,15 @@ module Google
|
|
116
115
|
##
|
117
116
|
# Create a new ProfileService client object.
|
118
117
|
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
# To create a new ProfileService client with the default
|
122
|
-
# configuration:
|
118
|
+
# @example
|
123
119
|
#
|
124
|
-
#
|
120
|
+
# # Create a client using the default configuration
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
125
122
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
# config.timeout = 10.0
|
131
|
-
# end
|
123
|
+
# # Create a client using a custom configuration
|
124
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
125
|
+
# config.timeout = 10.0
|
126
|
+
# end
|
132
127
|
#
|
133
128
|
# @yield [config] Configure the ProfileService client.
|
134
129
|
# @yieldparam config [Client::Configuration]
|
@@ -148,10 +143,9 @@ module Google
|
|
148
143
|
|
149
144
|
# Create credentials
|
150
145
|
credentials = @config.credentials
|
151
|
-
# Use self-signed JWT if the
|
146
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
152
147
|
# but only if the default endpoint does not have a region prefix.
|
153
|
-
enable_self_signed_jwt = @config.
|
154
|
-
@config.endpoint == Client.configure.endpoint &&
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
155
149
|
!@config.endpoint.split(".").first.include?("-")
|
156
150
|
credentials ||= Credentials.default scope: @config.scope,
|
157
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -264,7 +258,9 @@ module Google
|
|
264
258
|
options.apply_defaults timeout: @config.rpcs.list_profiles.timeout,
|
265
259
|
metadata: metadata,
|
266
260
|
retry_policy: @config.rpcs.list_profiles.retry_policy
|
267
|
-
|
261
|
+
|
262
|
+
options.apply_defaults timeout: @config.timeout,
|
263
|
+
metadata: @config.metadata,
|
268
264
|
retry_policy: @config.retry_policy
|
269
265
|
|
270
266
|
@profile_service_stub.call_rpc :list_profiles, request, options: options do |response, operation|
|
@@ -336,7 +332,9 @@ module Google
|
|
336
332
|
options.apply_defaults timeout: @config.rpcs.create_profile.timeout,
|
337
333
|
metadata: metadata,
|
338
334
|
retry_policy: @config.rpcs.create_profile.retry_policy
|
339
|
-
|
335
|
+
|
336
|
+
options.apply_defaults timeout: @config.timeout,
|
337
|
+
metadata: @config.metadata,
|
340
338
|
retry_policy: @config.retry_policy
|
341
339
|
|
342
340
|
@profile_service_stub.call_rpc :create_profile, request, options: options do |response, operation|
|
@@ -406,7 +404,9 @@ module Google
|
|
406
404
|
options.apply_defaults timeout: @config.rpcs.get_profile.timeout,
|
407
405
|
metadata: metadata,
|
408
406
|
retry_policy: @config.rpcs.get_profile.retry_policy
|
409
|
-
|
407
|
+
|
408
|
+
options.apply_defaults timeout: @config.timeout,
|
409
|
+
metadata: @config.metadata,
|
410
410
|
retry_policy: @config.retry_policy
|
411
411
|
|
412
412
|
@profile_service_stub.call_rpc :get_profile, request, options: options do |response, operation|
|
@@ -476,7 +476,9 @@ module Google
|
|
476
476
|
options.apply_defaults timeout: @config.rpcs.update_profile.timeout,
|
477
477
|
metadata: metadata,
|
478
478
|
retry_policy: @config.rpcs.update_profile.retry_policy
|
479
|
-
|
479
|
+
|
480
|
+
options.apply_defaults timeout: @config.timeout,
|
481
|
+
metadata: @config.metadata,
|
480
482
|
retry_policy: @config.retry_policy
|
481
483
|
|
482
484
|
@profile_service_stub.call_rpc :update_profile, request, options: options do |response, operation|
|
@@ -548,7 +550,9 @@ module Google
|
|
548
550
|
options.apply_defaults timeout: @config.rpcs.delete_profile.timeout,
|
549
551
|
metadata: metadata,
|
550
552
|
retry_policy: @config.rpcs.delete_profile.retry_policy
|
551
|
-
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.timeout,
|
555
|
+
metadata: @config.metadata,
|
552
556
|
retry_policy: @config.retry_policy
|
553
557
|
|
554
558
|
@profile_service_stub.call_rpc :delete_profile, request, options: options do |response, operation|
|
@@ -789,7 +793,9 @@ module Google
|
|
789
793
|
options.apply_defaults timeout: @config.rpcs.search_profiles.timeout,
|
790
794
|
metadata: metadata,
|
791
795
|
retry_policy: @config.rpcs.search_profiles.retry_policy
|
792
|
-
|
796
|
+
|
797
|
+
options.apply_defaults timeout: @config.timeout,
|
798
|
+
metadata: @config.metadata,
|
793
799
|
retry_policy: @config.retry_policy
|
794
800
|
|
795
801
|
@profile_service_stub.call_rpc :search_profiles, request, options: options do |response, operation|
|
@@ -813,22 +819,21 @@ module Google
|
|
813
819
|
# Configuration can be applied globally to all clients, or to a single client
|
814
820
|
# on construction.
|
815
821
|
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
819
|
-
# to 20 seconds,
|
820
|
-
#
|
821
|
-
#
|
822
|
-
#
|
823
|
-
#
|
824
|
-
#
|
825
|
-
#
|
826
|
-
#
|
827
|
-
#
|
828
|
-
#
|
829
|
-
#
|
830
|
-
#
|
831
|
-
# end
|
822
|
+
# @example
|
823
|
+
#
|
824
|
+
# # Modify the global config, setting the timeout for
|
825
|
+
# # list_profiles to 20 seconds,
|
826
|
+
# # and all remaining timeouts to 10 seconds.
|
827
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
828
|
+
# config.timeout = 10.0
|
829
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
830
|
+
# end
|
831
|
+
#
|
832
|
+
# # Apply the above configuration only to a new client.
|
833
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
834
|
+
# config.timeout = 10.0
|
835
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
836
|
+
# end
|
832
837
|
#
|
833
838
|
# @!attribute [rw] endpoint
|
834
839
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::TenantService::Client.new
|
115
|
+
# @example
|
122
116
|
#
|
123
|
-
#
|
124
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::Talent::V4beta1::TenantService::Client.new
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
120
|
+
# # Create a client using a custom configuration
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::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::V4beta1::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::V4beta1::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-v4beta1
|
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
|