google-cloud-talent-v4beta1 0.3.0 → 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/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +3 -3
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +37 -45
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +36 -41
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +75 -71
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +39 -30
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +59 -63
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +55 -61
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +16 -10
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
|
-
"company:project"
|
56
|
+
"company:project" => (proc do |project:, company:|
|
57
57
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
@@ -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]
|
@@ -60,17 +59,14 @@ module Google
|
|
60
59
|
parent_config = while namespace.any?
|
61
60
|
parent_name = namespace.join "::"
|
62
61
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
63
|
namespace.pop
|
65
64
|
end
|
66
65
|
default_config = Client::Configuration.new parent_config
|
67
66
|
|
68
67
|
default_config.rpcs.complete_query.timeout = 30.0
|
69
68
|
default_config.rpcs.complete_query.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [4, 14]
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config
|
@@ -102,19 +98,15 @@ module Google
|
|
102
98
|
##
|
103
99
|
# Create a new Completion client object.
|
104
100
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new Completion client with the default
|
108
|
-
# configuration:
|
109
|
-
#
|
110
|
-
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
|
101
|
+
# @example
|
111
102
|
#
|
112
|
-
#
|
113
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
|
114
105
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
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
|
118
110
|
#
|
119
111
|
# @yield [config] Configure the Completion client.
|
120
112
|
# @yieldparam config [Client::Configuration]
|
@@ -134,14 +126,13 @@ module Google
|
|
134
126
|
|
135
127
|
# Create credentials
|
136
128
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
130
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
132
|
!@config.endpoint.split(".").first.include?("-")
|
142
|
-
credentials ||= Credentials.default scope:
|
133
|
+
credentials ||= Credentials.default scope: @config.scope,
|
143
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
136
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
137
|
end
|
147
138
|
@quota_project_id = @config.quota_project
|
@@ -248,7 +239,9 @@ module Google
|
|
248
239
|
options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
|
249
240
|
metadata: metadata,
|
250
241
|
retry_policy: @config.rpcs.complete_query.retry_policy
|
251
|
-
|
242
|
+
|
243
|
+
options.apply_defaults timeout: @config.timeout,
|
244
|
+
metadata: @config.metadata,
|
252
245
|
retry_policy: @config.retry_policy
|
253
246
|
|
254
247
|
@completion_stub.call_rpc :complete_query, request, options: options do |response, operation|
|
@@ -272,22 +265,21 @@ module Google
|
|
272
265
|
# Configuration can be applied globally to all clients, or to a single client
|
273
266
|
# on construction.
|
274
267
|
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
# To modify the global config, setting the timeout for complete_query
|
278
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
279
|
-
#
|
280
|
-
# ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
|
281
|
-
# config.timeout = 10.0
|
282
|
-
# config.rpcs.complete_query.timeout = 20.0
|
283
|
-
# end
|
268
|
+
# @example
|
284
269
|
#
|
285
|
-
#
|
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
|
286
277
|
#
|
287
|
-
#
|
288
|
-
#
|
289
|
-
#
|
290
|
-
#
|
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
|
291
283
|
#
|
292
284
|
# @!attribute [rw] endpoint
|
293
285
|
# The hostname or hostname:port of the service endpoint.
|
@@ -351,7 +343,7 @@ module Google
|
|
351
343
|
config_attr :scope, nil, ::String, ::Array, nil
|
352
344
|
config_attr :lib_name, nil, ::String, nil
|
353
345
|
config_attr :lib_version, nil, ::String, nil
|
354
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
346
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
355
347
|
config_attr :interceptors, nil, ::Array, nil
|
356
348
|
config_attr :timeout, nil, ::Numeric, nil
|
357
349
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -372,7 +364,7 @@ module Google
|
|
372
364
|
def rpcs
|
373
365
|
@rpcs ||= begin
|
374
366
|
parent_rpcs = nil
|
375
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
367
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
376
368
|
Rpcs.new parent_rpcs
|
377
369
|
end
|
378
370
|
end
|
@@ -403,7 +395,7 @@ module Google
|
|
403
395
|
|
404
396
|
# @private
|
405
397
|
def initialize parent_rpcs = nil
|
406
|
-
complete_query_config = parent_rpcs
|
398
|
+
complete_query_config = parent_rpcs.complete_query if parent_rpcs.respond_to? :complete_query
|
407
399
|
@complete_query = ::Gapic::Config::Method.new complete_query_config
|
408
400
|
|
409
401
|
yield self if block_given?
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
|
-
"company:project"
|
56
|
+
"company:project" => (proc do |project:, company:|
|
57
57
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
@@ -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]
|
@@ -60,7 +59,7 @@ module Google
|
|
60
59
|
parent_config = while namespace.any?
|
61
60
|
parent_name = namespace.join "::"
|
62
61
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
63
|
namespace.pop
|
65
64
|
end
|
66
65
|
default_config = Client::Configuration.new parent_config
|
@@ -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:
|
103
|
-
#
|
104
|
-
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
|
98
|
+
# @example
|
105
99
|
#
|
106
|
-
#
|
107
|
-
#
|
100
|
+
# # Create a client using the default configuration
|
101
|
+
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
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,14 +123,13 @@ 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
|
-
credentials ||= Credentials.default scope:
|
130
|
+
credentials ||= Credentials.default scope: @config.scope,
|
137
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
138
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
132
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
139
133
|
credentials = Credentials.new credentials, scope: @config.scope
|
140
134
|
end
|
141
135
|
@quota_project_id = @config.quota_project
|
@@ -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
|
-
# To modify the global config, setting the timeout for create_client_event
|
250
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
251
|
-
#
|
252
|
-
# ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
|
253
|
-
# config.timeout = 10.0
|
254
|
-
# config.rpcs.create_client_event.timeout = 20.0
|
255
|
-
# end
|
243
|
+
# @example
|
256
244
|
#
|
257
|
-
#
|
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
|
258
252
|
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
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.
|
@@ -323,7 +318,7 @@ module Google
|
|
323
318
|
config_attr :scope, nil, ::String, ::Array, nil
|
324
319
|
config_attr :lib_name, nil, ::String, nil
|
325
320
|
config_attr :lib_version, nil, ::String, nil
|
326
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
321
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
327
322
|
config_attr :interceptors, nil, ::Array, nil
|
328
323
|
config_attr :timeout, nil, ::Numeric, nil
|
329
324
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -344,7 +339,7 @@ module Google
|
|
344
339
|
def rpcs
|
345
340
|
@rpcs ||= begin
|
346
341
|
parent_rpcs = nil
|
347
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
342
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
348
343
|
Rpcs.new parent_rpcs
|
349
344
|
end
|
350
345
|
end
|
@@ -375,7 +370,7 @@ module Google
|
|
375
370
|
|
376
371
|
# @private
|
377
372
|
def initialize parent_rpcs = nil
|
378
|
-
create_client_event_config = parent_rpcs
|
373
|
+
create_client_event_config = parent_rpcs.create_client_event if parent_rpcs.respond_to? :create_client_event
|
379
374
|
@create_client_event = ::Gapic::Config::Method.new create_client_event_config
|
380
375
|
|
381
376
|
yield self if block_given?
|
@@ -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]
|
@@ -60,7 +59,7 @@ module Google
|
|
60
59
|
parent_config = while namespace.any?
|
61
60
|
parent_name = namespace.join "::"
|
62
61
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
63
|
namespace.pop
|
65
64
|
end
|
66
65
|
default_config = Client::Configuration.new parent_config
|
@@ -71,10 +70,7 @@ module Google
|
|
71
70
|
|
72
71
|
default_config.rpcs.get_job.timeout = 30.0
|
73
72
|
default_config.rpcs.get_job.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [4, 14]
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
74
|
}
|
79
75
|
|
80
76
|
default_config.rpcs.update_job.timeout = 30.0
|
@@ -83,20 +79,14 @@ module Google
|
|
83
79
|
|
84
80
|
default_config.rpcs.delete_job.timeout = 30.0
|
85
81
|
default_config.rpcs.delete_job.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [4, 14]
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
90
83
|
}
|
91
84
|
|
92
85
|
default_config.rpcs.batch_delete_jobs.timeout = 30.0
|
93
86
|
|
94
87
|
default_config.rpcs.list_jobs.timeout = 30.0
|
95
88
|
default_config.rpcs.list_jobs.retry_policy = {
|
96
|
-
initial_delay: 0.1,
|
97
|
-
max_delay: 60.0,
|
98
|
-
multiplier: 1.3,
|
99
|
-
retry_codes: [4, 14]
|
89
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
100
90
|
}
|
101
91
|
|
102
92
|
default_config.rpcs.search_jobs.timeout = 30.0
|
@@ -132,19 +122,15 @@ module Google
|
|
132
122
|
##
|
133
123
|
# Create a new JobService client object.
|
134
124
|
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
# To create a new JobService client with the default
|
138
|
-
# configuration:
|
125
|
+
# @example
|
139
126
|
#
|
140
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
|
141
129
|
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# config.timeout = 10.0
|
147
|
-
# end
|
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
|
148
134
|
#
|
149
135
|
# @yield [config] Configure the JobService client.
|
150
136
|
# @yieldparam config [Client::Configuration]
|
@@ -164,14 +150,13 @@ module Google
|
|
164
150
|
|
165
151
|
# Create credentials
|
166
152
|
credentials = @config.credentials
|
167
|
-
# Use self-signed JWT if the
|
153
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
168
154
|
# but only if the default endpoint does not have a region prefix.
|
169
|
-
enable_self_signed_jwt = @config.
|
170
|
-
@config.endpoint == Client.configure.endpoint &&
|
155
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
171
156
|
!@config.endpoint.split(".").first.include?("-")
|
172
|
-
credentials ||= Credentials.default scope:
|
157
|
+
credentials ||= Credentials.default scope: @config.scope,
|
173
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
174
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
159
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
175
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
176
161
|
end
|
177
162
|
@quota_project_id = @config.quota_project
|
@@ -264,7 +249,9 @@ module Google
|
|
264
249
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
265
250
|
metadata: metadata,
|
266
251
|
retry_policy: @config.rpcs.create_job.retry_policy
|
267
|
-
|
252
|
+
|
253
|
+
options.apply_defaults timeout: @config.timeout,
|
254
|
+
metadata: @config.metadata,
|
268
255
|
retry_policy: @config.retry_policy
|
269
256
|
|
270
257
|
@job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
|
@@ -336,7 +323,9 @@ module Google
|
|
336
323
|
options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
|
337
324
|
metadata: metadata,
|
338
325
|
retry_policy: @config.rpcs.batch_create_jobs.retry_policy
|
339
|
-
|
326
|
+
|
327
|
+
options.apply_defaults timeout: @config.timeout,
|
328
|
+
metadata: @config.metadata,
|
340
329
|
retry_policy: @config.retry_policy
|
341
330
|
|
342
331
|
@job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
|
@@ -411,7 +400,9 @@ module Google
|
|
411
400
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
412
401
|
metadata: metadata,
|
413
402
|
retry_policy: @config.rpcs.get_job.retry_policy
|
414
|
-
|
403
|
+
|
404
|
+
options.apply_defaults timeout: @config.timeout,
|
405
|
+
metadata: @config.metadata,
|
415
406
|
retry_policy: @config.retry_policy
|
416
407
|
|
417
408
|
@job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
|
@@ -488,7 +479,9 @@ module Google
|
|
488
479
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
489
480
|
metadata: metadata,
|
490
481
|
retry_policy: @config.rpcs.update_job.retry_policy
|
491
|
-
|
482
|
+
|
483
|
+
options.apply_defaults timeout: @config.timeout,
|
484
|
+
metadata: @config.metadata,
|
492
485
|
retry_policy: @config.retry_policy
|
493
486
|
|
494
487
|
@job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
|
@@ -575,7 +568,9 @@ module Google
|
|
575
568
|
options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
|
576
569
|
metadata: metadata,
|
577
570
|
retry_policy: @config.rpcs.batch_update_jobs.retry_policy
|
578
|
-
|
571
|
+
|
572
|
+
options.apply_defaults timeout: @config.timeout,
|
573
|
+
metadata: @config.metadata,
|
579
574
|
retry_policy: @config.retry_policy
|
580
575
|
|
581
576
|
@job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
|
@@ -652,7 +647,9 @@ module Google
|
|
652
647
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
653
648
|
metadata: metadata,
|
654
649
|
retry_policy: @config.rpcs.delete_job.retry_policy
|
655
|
-
|
650
|
+
|
651
|
+
options.apply_defaults timeout: @config.timeout,
|
652
|
+
metadata: @config.metadata,
|
656
653
|
retry_policy: @config.retry_policy
|
657
654
|
|
658
655
|
@job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
|
@@ -734,7 +731,9 @@ module Google
|
|
734
731
|
options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
|
735
732
|
metadata: metadata,
|
736
733
|
retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
|
737
|
-
|
734
|
+
|
735
|
+
options.apply_defaults timeout: @config.timeout,
|
736
|
+
metadata: @config.metadata,
|
738
737
|
retry_policy: @config.retry_policy
|
739
738
|
|
740
739
|
@job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
|
@@ -836,7 +835,9 @@ module Google
|
|
836
835
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
837
836
|
metadata: metadata,
|
838
837
|
retry_policy: @config.rpcs.list_jobs.retry_policy
|
839
|
-
|
838
|
+
|
839
|
+
options.apply_defaults timeout: @config.timeout,
|
840
|
+
metadata: @config.metadata,
|
840
841
|
retry_policy: @config.retry_policy
|
841
842
|
|
842
843
|
@job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
|
@@ -1135,7 +1136,9 @@ module Google
|
|
1135
1136
|
options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
|
1136
1137
|
metadata: metadata,
|
1137
1138
|
retry_policy: @config.rpcs.search_jobs.retry_policy
|
1138
|
-
|
1139
|
+
|
1140
|
+
options.apply_defaults timeout: @config.timeout,
|
1141
|
+
metadata: @config.metadata,
|
1139
1142
|
retry_policy: @config.retry_policy
|
1140
1143
|
|
1141
1144
|
@job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
|
@@ -1438,7 +1441,9 @@ module Google
|
|
1438
1441
|
options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
|
1439
1442
|
metadata: metadata,
|
1440
1443
|
retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
|
1441
|
-
|
1444
|
+
|
1445
|
+
options.apply_defaults timeout: @config.timeout,
|
1446
|
+
metadata: @config.metadata,
|
1442
1447
|
retry_policy: @config.retry_policy
|
1443
1448
|
|
1444
1449
|
@job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
|
@@ -1462,22 +1467,21 @@ module Google
|
|
1462
1467
|
# Configuration can be applied globally to all clients, or to a single client
|
1463
1468
|
# on construction.
|
1464
1469
|
#
|
1465
|
-
#
|
1466
|
-
#
|
1467
|
-
# To modify the global config, setting the timeout for create_job
|
1468
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
1469
|
-
#
|
1470
|
-
# ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
|
1471
|
-
# config.timeout = 10.0
|
1472
|
-
# config.rpcs.create_job.timeout = 20.0
|
1473
|
-
# end
|
1470
|
+
# @example
|
1474
1471
|
#
|
1475
|
-
#
|
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
|
1476
1479
|
#
|
1477
|
-
#
|
1478
|
-
#
|
1479
|
-
#
|
1480
|
-
#
|
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
|
1481
1485
|
#
|
1482
1486
|
# @!attribute [rw] endpoint
|
1483
1487
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1541,7 +1545,7 @@ module Google
|
|
1541
1545
|
config_attr :scope, nil, ::String, ::Array, nil
|
1542
1546
|
config_attr :lib_name, nil, ::String, nil
|
1543
1547
|
config_attr :lib_version, nil, ::String, nil
|
1544
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1548
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1545
1549
|
config_attr :interceptors, nil, ::Array, nil
|
1546
1550
|
config_attr :timeout, nil, ::Numeric, nil
|
1547
1551
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1562,7 +1566,7 @@ module Google
|
|
1562
1566
|
def rpcs
|
1563
1567
|
@rpcs ||= begin
|
1564
1568
|
parent_rpcs = nil
|
1565
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1569
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1566
1570
|
Rpcs.new parent_rpcs
|
1567
1571
|
end
|
1568
1572
|
end
|
@@ -1638,25 +1642,25 @@ module Google
|
|
1638
1642
|
|
1639
1643
|
# @private
|
1640
1644
|
def initialize parent_rpcs = nil
|
1641
|
-
create_job_config = parent_rpcs
|
1645
|
+
create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job
|
1642
1646
|
@create_job = ::Gapic::Config::Method.new create_job_config
|
1643
|
-
batch_create_jobs_config = parent_rpcs
|
1647
|
+
batch_create_jobs_config = parent_rpcs.batch_create_jobs if parent_rpcs.respond_to? :batch_create_jobs
|
1644
1648
|
@batch_create_jobs = ::Gapic::Config::Method.new batch_create_jobs_config
|
1645
|
-
get_job_config = parent_rpcs
|
1649
|
+
get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job
|
1646
1650
|
@get_job = ::Gapic::Config::Method.new get_job_config
|
1647
|
-
update_job_config = parent_rpcs
|
1651
|
+
update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job
|
1648
1652
|
@update_job = ::Gapic::Config::Method.new update_job_config
|
1649
|
-
batch_update_jobs_config = parent_rpcs
|
1653
|
+
batch_update_jobs_config = parent_rpcs.batch_update_jobs if parent_rpcs.respond_to? :batch_update_jobs
|
1650
1654
|
@batch_update_jobs = ::Gapic::Config::Method.new batch_update_jobs_config
|
1651
|
-
delete_job_config = parent_rpcs
|
1655
|
+
delete_job_config = parent_rpcs.delete_job if parent_rpcs.respond_to? :delete_job
|
1652
1656
|
@delete_job = ::Gapic::Config::Method.new delete_job_config
|
1653
|
-
batch_delete_jobs_config = parent_rpcs
|
1657
|
+
batch_delete_jobs_config = parent_rpcs.batch_delete_jobs if parent_rpcs.respond_to? :batch_delete_jobs
|
1654
1658
|
@batch_delete_jobs = ::Gapic::Config::Method.new batch_delete_jobs_config
|
1655
|
-
list_jobs_config = parent_rpcs
|
1659
|
+
list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs
|
1656
1660
|
@list_jobs = ::Gapic::Config::Method.new list_jobs_config
|
1657
|
-
search_jobs_config = parent_rpcs
|
1661
|
+
search_jobs_config = parent_rpcs.search_jobs if parent_rpcs.respond_to? :search_jobs
|
1658
1662
|
@search_jobs = ::Gapic::Config::Method.new search_jobs_config
|
1659
|
-
search_jobs_for_alert_config = parent_rpcs
|
1663
|
+
search_jobs_for_alert_config = parent_rpcs.search_jobs_for_alert if parent_rpcs.respond_to? :search_jobs_for_alert
|
1660
1664
|
@search_jobs_for_alert = ::Gapic::Config::Method.new search_jobs_for_alert_config
|
1661
1665
|
|
1662
1666
|
yield self if block_given?
|