google-cloud-talent 0.10.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -59
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +347 -0
  6. data/README.md +35 -25
  7. data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb} +4 -14
  8. data/lib/google/cloud/talent.rb +253 -441
  9. data/lib/google/cloud/talent/version.rb +6 -2
  10. metadata +62 -111
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/talent/v4beta1.rb +0 -543
  13. data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -63
  14. data/lib/google/cloud/talent/v4beta1/application_service_client.rb +0 -527
  15. data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +0 -51
  16. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -55
  17. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -55
  18. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -18
  19. data/lib/google/cloud/talent/v4beta1/common_pb.rb +0 -341
  20. data/lib/google/cloud/talent/v4beta1/company_pb.rb +0 -41
  21. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +0 -536
  22. data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +0 -51
  23. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +0 -56
  24. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +0 -55
  25. data/lib/google/cloud/talent/v4beta1/completion_client.rb +0 -344
  26. data/lib/google/cloud/talent/v4beta1/completion_client_config.json +0 -31
  27. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +0 -56
  28. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +0 -47
  29. data/lib/google/cloud/talent/v4beta1/credentials.rb +0 -42
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +0 -162
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +0 -100
  32. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +0 -1057
  33. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +0 -107
  34. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +0 -116
  35. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +0 -130
  36. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +0 -224
  37. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +0 -36
  38. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +0 -763
  39. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +0 -50
  40. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +0 -331
  41. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +0 -694
  42. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +0 -750
  43. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -361
  44. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +0 -70
  45. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +0 -96
  46. data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +0 -51
  47. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +0 -131
  48. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +0 -91
  49. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +0 -222
  50. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +0 -113
  51. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +0 -34
  52. data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +0 -39
  53. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +0 -43
  54. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -31
  55. data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +0 -36
  56. data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +0 -128
  57. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +0 -37
  58. data/lib/google/cloud/talent/v4beta1/event_pb.rb +0 -69
  59. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +0 -271
  60. data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +0 -31
  61. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +0 -27
  62. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +0 -52
  63. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +0 -187
  64. data/lib/google/cloud/talent/v4beta1/helpers.rb +0 -179
  65. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -27
  66. data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -72
  67. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +0 -1521
  68. data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +0 -76
  69. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -166
  70. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +0 -87
  71. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -213
  72. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +0 -765
  73. data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +0 -56
  74. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -91
  75. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -64
  76. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +0 -34
  77. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +0 -474
  78. data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +0 -51
  79. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +0 -55
  80. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +0 -54
@@ -1,543 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- require "google/cloud/talent/v4beta1/tenant_service_client"
17
- require "google/cloud/talent/v4beta1/profile_service_client"
18
- require "google/cloud/talent/v4beta1/event_service_client"
19
- require "google/cloud/talent/v4beta1/application_service_client"
20
- require "google/cloud/talent/v4beta1/helpers"
21
- require "google/cloud/talent/v4beta1/company_service_client"
22
- require "google/cloud/talent/v4beta1/job_service_client"
23
- require "google/cloud/talent/v4beta1/completion_client"
24
- require "google/cloud/talent/v4beta1/common_pb"
25
- require "google/cloud/talent/v4beta1/job_service_pb"
26
-
27
- module Google
28
- module Cloud
29
- module Talent
30
- # rubocop:disable LineLength
31
-
32
- ##
33
- # # Ruby Client for Cloud Talent Solution API
34
- #
35
- # [Cloud Talent Solution API][Product Documentation]:
36
- # Cloud Talent Solution provides the capability to create, read, update, and
37
- # delete job postings, as well as search jobs based on keywords and filters.
38
- # - [Product Documentation][]
39
- #
40
- # ## Quick Start
41
- # In order to use this library, you first need to go through the following
42
- # steps:
43
- #
44
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
45
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
46
- # 3. [Enable the Cloud Talent Solution API.](https://console.cloud.google.com/apis/library/talent.googleapis.com)
47
- # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-talent/latest/file.AUTHENTICATION.html)
48
- #
49
- # ### Installation
50
- # ```
51
- # $ gem install google-cloud-talent
52
- # ```
53
- #
54
- # ### Next Steps
55
- # - Read the [Cloud Talent Solution API Product documentation][Product Documentation]
56
- # to learn more about the product and see How-to Guides.
57
- # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
58
- # to see the full list of Cloud APIs that we cover.
59
- #
60
- # [Product Documentation]: https://cloud.google.com/talent
61
- #
62
- # ## Enabling Logging
63
- #
64
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
65
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
66
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
67
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
68
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
69
- #
70
- # Configuring a Ruby stdlib logger:
71
- #
72
- # ```ruby
73
- # require "logger"
74
- #
75
- # module MyLogger
76
- # LOGGER = Logger.new $stderr, level: Logger::WARN
77
- # def logger
78
- # LOGGER
79
- # end
80
- # end
81
- #
82
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
83
- # module GRPC
84
- # extend MyLogger
85
- # end
86
- # ```
87
- #
88
- module V4beta1
89
- # rubocop:enable LineLength
90
-
91
- module TenantService
92
- ##
93
- # A service that handles tenant management, including CRUD and enumeration.
94
- #
95
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
96
- # Provides the means for authenticating requests made by the client. This parameter can
97
- # be many types.
98
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
99
- # authenticating requests made by this client.
100
- # A `String` will be treated as the path to the keyfile to be used for the construction of
101
- # credentials for this client.
102
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
103
- # credentials for this client.
104
- # A `GRPC::Core::Channel` will be used to make calls through.
105
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
106
- # should already be composed with a `GRPC::Core::CallCredentials` object.
107
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
108
- # metadata for requests, generally, to give OAuth credentials.
109
- # @param scopes [Array<String>]
110
- # The OAuth scopes for this service. This parameter is ignored if
111
- # an updater_proc is supplied.
112
- # @param client_config [Hash]
113
- # A Hash for call options for each method. See
114
- # Google::Gax#construct_settings for the structure of
115
- # this data. Falls back to the default config if not specified
116
- # or the specified config is missing data points.
117
- # @param timeout [Numeric]
118
- # The default timeout, in seconds, for calls made through this client.
119
- # @param metadata [Hash]
120
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
121
- # @param service_address [String]
122
- # Override for the service hostname, or `nil` to leave as the default.
123
- # @param service_port [Integer]
124
- # Override for the service port, or `nil` to leave as the default.
125
- # @param exception_transformer [Proc]
126
- # An optional proc that intercepts any exceptions raised during an API call to inject
127
- # custom error handling.
128
- def self.new \
129
- credentials: nil,
130
- scopes: nil,
131
- client_config: nil,
132
- timeout: nil,
133
- metadata: nil,
134
- service_address: nil,
135
- service_port: nil,
136
- exception_transformer: nil,
137
- lib_name: nil,
138
- lib_version: nil
139
- kwargs = {
140
- credentials: credentials,
141
- scopes: scopes,
142
- client_config: client_config,
143
- timeout: timeout,
144
- metadata: metadata,
145
- exception_transformer: exception_transformer,
146
- lib_name: lib_name,
147
- service_address: service_address,
148
- service_port: service_port,
149
- lib_version: lib_version
150
- }.select { |_, v| v != nil }
151
- Google::Cloud::Talent::V4beta1::TenantServiceClient.new(**kwargs)
152
- end
153
- end
154
-
155
- module ProfileService
156
- ##
157
- # A service that handles profile management, including profile CRUD,
158
- # enumeration and search.
159
- #
160
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
161
- # Provides the means for authenticating requests made by the client. This parameter can
162
- # be many types.
163
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
164
- # authenticating requests made by this client.
165
- # A `String` will be treated as the path to the keyfile to be used for the construction of
166
- # credentials for this client.
167
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
168
- # credentials for this client.
169
- # A `GRPC::Core::Channel` will be used to make calls through.
170
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
171
- # should already be composed with a `GRPC::Core::CallCredentials` object.
172
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
173
- # metadata for requests, generally, to give OAuth credentials.
174
- # @param scopes [Array<String>]
175
- # The OAuth scopes for this service. This parameter is ignored if
176
- # an updater_proc is supplied.
177
- # @param client_config [Hash]
178
- # A Hash for call options for each method. See
179
- # Google::Gax#construct_settings for the structure of
180
- # this data. Falls back to the default config if not specified
181
- # or the specified config is missing data points.
182
- # @param timeout [Numeric]
183
- # The default timeout, in seconds, for calls made through this client.
184
- # @param metadata [Hash]
185
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
186
- # @param service_address [String]
187
- # Override for the service hostname, or `nil` to leave as the default.
188
- # @param service_port [Integer]
189
- # Override for the service port, or `nil` to leave as the default.
190
- # @param exception_transformer [Proc]
191
- # An optional proc that intercepts any exceptions raised during an API call to inject
192
- # custom error handling.
193
- def self.new \
194
- credentials: nil,
195
- scopes: nil,
196
- client_config: nil,
197
- timeout: nil,
198
- metadata: nil,
199
- service_address: nil,
200
- service_port: nil,
201
- exception_transformer: nil,
202
- lib_name: nil,
203
- lib_version: nil
204
- kwargs = {
205
- credentials: credentials,
206
- scopes: scopes,
207
- client_config: client_config,
208
- timeout: timeout,
209
- metadata: metadata,
210
- exception_transformer: exception_transformer,
211
- lib_name: lib_name,
212
- service_address: service_address,
213
- service_port: service_port,
214
- lib_version: lib_version
215
- }.select { |_, v| v != nil }
216
- Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
217
- end
218
- end
219
-
220
- module Event
221
- ##
222
- # A service handles client event report.
223
- #
224
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
225
- # Provides the means for authenticating requests made by the client. This parameter can
226
- # be many types.
227
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
228
- # authenticating requests made by this client.
229
- # A `String` will be treated as the path to the keyfile to be used for the construction of
230
- # credentials for this client.
231
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
232
- # credentials for this client.
233
- # A `GRPC::Core::Channel` will be used to make calls through.
234
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
235
- # should already be composed with a `GRPC::Core::CallCredentials` object.
236
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
237
- # metadata for requests, generally, to give OAuth credentials.
238
- # @param scopes [Array<String>]
239
- # The OAuth scopes for this service. This parameter is ignored if
240
- # an updater_proc is supplied.
241
- # @param client_config [Hash]
242
- # A Hash for call options for each method. See
243
- # Google::Gax#construct_settings for the structure of
244
- # this data. Falls back to the default config if not specified
245
- # or the specified config is missing data points.
246
- # @param timeout [Numeric]
247
- # The default timeout, in seconds, for calls made through this client.
248
- # @param metadata [Hash]
249
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
250
- # @param service_address [String]
251
- # Override for the service hostname, or `nil` to leave as the default.
252
- # @param service_port [Integer]
253
- # Override for the service port, or `nil` to leave as the default.
254
- # @param exception_transformer [Proc]
255
- # An optional proc that intercepts any exceptions raised during an API call to inject
256
- # custom error handling.
257
- def self.new \
258
- credentials: nil,
259
- scopes: nil,
260
- client_config: nil,
261
- timeout: nil,
262
- metadata: nil,
263
- service_address: nil,
264
- service_port: nil,
265
- exception_transformer: nil,
266
- lib_name: nil,
267
- lib_version: nil
268
- kwargs = {
269
- credentials: credentials,
270
- scopes: scopes,
271
- client_config: client_config,
272
- timeout: timeout,
273
- metadata: metadata,
274
- exception_transformer: exception_transformer,
275
- lib_name: lib_name,
276
- service_address: service_address,
277
- service_port: service_port,
278
- lib_version: lib_version
279
- }.select { |_, v| v != nil }
280
- Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
281
- end
282
- end
283
-
284
- module ApplicationService
285
- ##
286
- # A service that handles application management, including CRUD and
287
- # enumeration.
288
- #
289
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
290
- # Provides the means for authenticating requests made by the client. This parameter can
291
- # be many types.
292
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
293
- # authenticating requests made by this client.
294
- # A `String` will be treated as the path to the keyfile to be used for the construction of
295
- # credentials for this client.
296
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
297
- # credentials for this client.
298
- # A `GRPC::Core::Channel` will be used to make calls through.
299
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
300
- # should already be composed with a `GRPC::Core::CallCredentials` object.
301
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
302
- # metadata for requests, generally, to give OAuth credentials.
303
- # @param scopes [Array<String>]
304
- # The OAuth scopes for this service. This parameter is ignored if
305
- # an updater_proc is supplied.
306
- # @param client_config [Hash]
307
- # A Hash for call options for each method. See
308
- # Google::Gax#construct_settings for the structure of
309
- # this data. Falls back to the default config if not specified
310
- # or the specified config is missing data points.
311
- # @param timeout [Numeric]
312
- # The default timeout, in seconds, for calls made through this client.
313
- # @param metadata [Hash]
314
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
315
- # @param service_address [String]
316
- # Override for the service hostname, or `nil` to leave as the default.
317
- # @param service_port [Integer]
318
- # Override for the service port, or `nil` to leave as the default.
319
- # @param exception_transformer [Proc]
320
- # An optional proc that intercepts any exceptions raised during an API call to inject
321
- # custom error handling.
322
- def self.new \
323
- credentials: nil,
324
- scopes: nil,
325
- client_config: nil,
326
- timeout: nil,
327
- metadata: nil,
328
- service_address: nil,
329
- service_port: nil,
330
- exception_transformer: nil,
331
- lib_name: nil,
332
- lib_version: nil
333
- kwargs = {
334
- credentials: credentials,
335
- scopes: scopes,
336
- client_config: client_config,
337
- timeout: timeout,
338
- metadata: metadata,
339
- exception_transformer: exception_transformer,
340
- lib_name: lib_name,
341
- service_address: service_address,
342
- service_port: service_port,
343
- lib_version: lib_version
344
- }.select { |_, v| v != nil }
345
- Google::Cloud::Talent::V4beta1::ApplicationServiceClient.new(**kwargs)
346
- end
347
- end
348
-
349
- module CompanyService
350
- ##
351
- # A service that handles company management, including CRUD and enumeration.
352
- #
353
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
354
- # Provides the means for authenticating requests made by the client. This parameter can
355
- # be many types.
356
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
357
- # authenticating requests made by this client.
358
- # A `String` will be treated as the path to the keyfile to be used for the construction of
359
- # credentials for this client.
360
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
361
- # credentials for this client.
362
- # A `GRPC::Core::Channel` will be used to make calls through.
363
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
364
- # should already be composed with a `GRPC::Core::CallCredentials` object.
365
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
366
- # metadata for requests, generally, to give OAuth credentials.
367
- # @param scopes [Array<String>]
368
- # The OAuth scopes for this service. This parameter is ignored if
369
- # an updater_proc is supplied.
370
- # @param client_config [Hash]
371
- # A Hash for call options for each method. See
372
- # Google::Gax#construct_settings for the structure of
373
- # this data. Falls back to the default config if not specified
374
- # or the specified config is missing data points.
375
- # @param timeout [Numeric]
376
- # The default timeout, in seconds, for calls made through this client.
377
- # @param metadata [Hash]
378
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
379
- # @param service_address [String]
380
- # Override for the service hostname, or `nil` to leave as the default.
381
- # @param service_port [Integer]
382
- # Override for the service port, or `nil` to leave as the default.
383
- # @param exception_transformer [Proc]
384
- # An optional proc that intercepts any exceptions raised during an API call to inject
385
- # custom error handling.
386
- def self.new \
387
- credentials: nil,
388
- scopes: nil,
389
- client_config: nil,
390
- timeout: nil,
391
- metadata: nil,
392
- service_address: nil,
393
- service_port: nil,
394
- exception_transformer: nil,
395
- lib_name: nil,
396
- lib_version: nil
397
- kwargs = {
398
- credentials: credentials,
399
- scopes: scopes,
400
- client_config: client_config,
401
- timeout: timeout,
402
- metadata: metadata,
403
- exception_transformer: exception_transformer,
404
- lib_name: lib_name,
405
- service_address: service_address,
406
- service_port: service_port,
407
- lib_version: lib_version
408
- }.select { |_, v| v != nil }
409
- Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
410
- end
411
- end
412
-
413
- module JobService
414
- ##
415
- # A service handles job management, including job CRUD, enumeration and search.
416
- #
417
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
418
- # Provides the means for authenticating requests made by the client. This parameter can
419
- # be many types.
420
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
421
- # authenticating requests made by this client.
422
- # A `String` will be treated as the path to the keyfile to be used for the construction of
423
- # credentials for this client.
424
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
425
- # credentials for this client.
426
- # A `GRPC::Core::Channel` will be used to make calls through.
427
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
428
- # should already be composed with a `GRPC::Core::CallCredentials` object.
429
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
430
- # metadata for requests, generally, to give OAuth credentials.
431
- # @param scopes [Array<String>]
432
- # The OAuth scopes for this service. This parameter is ignored if
433
- # an updater_proc is supplied.
434
- # @param client_config [Hash]
435
- # A Hash for call options for each method. See
436
- # Google::Gax#construct_settings for the structure of
437
- # this data. Falls back to the default config if not specified
438
- # or the specified config is missing data points.
439
- # @param timeout [Numeric]
440
- # The default timeout, in seconds, for calls made through this client.
441
- # @param metadata [Hash]
442
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
443
- # @param service_address [String]
444
- # Override for the service hostname, or `nil` to leave as the default.
445
- # @param service_port [Integer]
446
- # Override for the service port, or `nil` to leave as the default.
447
- # @param exception_transformer [Proc]
448
- # An optional proc that intercepts any exceptions raised during an API call to inject
449
- # custom error handling.
450
- def self.new \
451
- credentials: nil,
452
- scopes: nil,
453
- client_config: nil,
454
- timeout: nil,
455
- metadata: nil,
456
- service_address: nil,
457
- service_port: nil,
458
- exception_transformer: nil,
459
- lib_name: nil,
460
- lib_version: nil
461
- kwargs = {
462
- credentials: credentials,
463
- scopes: scopes,
464
- client_config: client_config,
465
- timeout: timeout,
466
- metadata: metadata,
467
- exception_transformer: exception_transformer,
468
- lib_name: lib_name,
469
- service_address: service_address,
470
- service_port: service_port,
471
- lib_version: lib_version
472
- }.select { |_, v| v != nil }
473
- Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
474
- end
475
- end
476
-
477
- module Completion
478
- ##
479
- # A service handles auto completion.
480
- #
481
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
482
- # Provides the means for authenticating requests made by the client. This parameter can
483
- # be many types.
484
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
485
- # authenticating requests made by this client.
486
- # A `String` will be treated as the path to the keyfile to be used for the construction of
487
- # credentials for this client.
488
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
489
- # credentials for this client.
490
- # A `GRPC::Core::Channel` will be used to make calls through.
491
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
492
- # should already be composed with a `GRPC::Core::CallCredentials` object.
493
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
494
- # metadata for requests, generally, to give OAuth credentials.
495
- # @param scopes [Array<String>]
496
- # The OAuth scopes for this service. This parameter is ignored if
497
- # an updater_proc is supplied.
498
- # @param client_config [Hash]
499
- # A Hash for call options for each method. See
500
- # Google::Gax#construct_settings for the structure of
501
- # this data. Falls back to the default config if not specified
502
- # or the specified config is missing data points.
503
- # @param timeout [Numeric]
504
- # The default timeout, in seconds, for calls made through this client.
505
- # @param metadata [Hash]
506
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
507
- # @param service_address [String]
508
- # Override for the service hostname, or `nil` to leave as the default.
509
- # @param service_port [Integer]
510
- # Override for the service port, or `nil` to leave as the default.
511
- # @param exception_transformer [Proc]
512
- # An optional proc that intercepts any exceptions raised during an API call to inject
513
- # custom error handling.
514
- def self.new \
515
- credentials: nil,
516
- scopes: nil,
517
- client_config: nil,
518
- timeout: nil,
519
- metadata: nil,
520
- service_address: nil,
521
- service_port: nil,
522
- exception_transformer: nil,
523
- lib_name: nil,
524
- lib_version: nil
525
- kwargs = {
526
- credentials: credentials,
527
- scopes: scopes,
528
- client_config: client_config,
529
- timeout: timeout,
530
- metadata: metadata,
531
- exception_transformer: exception_transformer,
532
- lib_name: lib_name,
533
- service_address: service_address,
534
- service_port: service_port,
535
- lib_version: lib_version
536
- }.select { |_, v| v != nil }
537
- Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
538
- end
539
- end
540
- end
541
- end
542
- end
543
- end