google-cloud-talent 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -1
- data/lib/google/cloud/talent/version.rb +1 -1
- data/lib/google/cloud/talent.rb +180 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a43114840748a4fb1697d3d057aa8e305ab8057ba17f77c6a63a98847eed640a
|
4
|
+
data.tar.gz: 4416910f4f09194c7601b6bfd2a54092521f0c0e0b0fb38ca4ed78283fcad973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e0646cbb6a141c0ad4b21ba16596b5e1193356ad3812cc344c0bd3d3285c9783823c40a2ffa15401d9953fa2010b63af0d90b186f24e87a7a07a1f2b884c7e
|
7
|
+
data.tar.gz: 68f75cfbe0147e1e0d94ca687b26f5b43f38af9ecddde56ef4b5c502f62b04dd63b654b78a8dba9a8036088ccc9aaaddc113d91c0aeee67eaf6c65b621c7fee5
|
data/README.md
CHANGED
@@ -43,9 +43,40 @@ and includes substantial interface changes. Existing code written for earlier
|
|
43
43
|
versions of this library will likely require updates to use this version.
|
44
44
|
See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
45
45
|
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
Debug logging also requires that the versioned clients for this service be
|
72
|
+
sufficiently recent, released after about Dec 10, 2024. If logging is not
|
73
|
+
working, try updating the versioned clients in your bundle or installed gems:
|
74
|
+
[google-cloud-talent-v4](https://cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest),
|
75
|
+
[google-cloud-talent-v4beta1](https://cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest).
|
76
|
+
|
46
77
|
## Supported Ruby Versions
|
47
78
|
|
48
|
-
This library is supported on Ruby
|
79
|
+
This library is supported on Ruby 3.0+.
|
49
80
|
|
50
81
|
Google provides official support for Ruby versions that are actively supported
|
51
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
data/lib/google/cloud/talent.rb
CHANGED
@@ -58,6 +58,11 @@ module Google
|
|
58
58
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
59
|
# the `transport` parameter.
|
60
60
|
#
|
61
|
+
# Raises an exception if the currently installed versioned client gem for the
|
62
|
+
# given API version does not support the given transport of the CompanyService service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::Talent.company_service_available?}.
|
65
|
+
#
|
61
66
|
# ## About CompanyService
|
62
67
|
#
|
63
68
|
# A service that handles company management, including CRUD and enumeration.
|
@@ -79,6 +84,37 @@ module Google
|
|
79
84
|
service_module.const_get(:Client).new(&block)
|
80
85
|
end
|
81
86
|
|
87
|
+
##
|
88
|
+
# Determines whether the CompanyService service is supported by the current client.
|
89
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Talent.company_service}.
|
90
|
+
# If false, that method will raise an exception. This could happen if the given
|
91
|
+
# API version does not exist or does not support the CompanyService service,
|
92
|
+
# or if the versioned client gem needs an update to support the CompanyService service.
|
93
|
+
#
|
94
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
95
|
+
# Defaults to `:v4`.
|
96
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
97
|
+
# @return [boolean] Whether the service is available.
|
98
|
+
#
|
99
|
+
def self.company_service_available? version: :v4, transport: :grpc
|
100
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
101
|
+
package_name = Google::Cloud::Talent
|
102
|
+
.constants
|
103
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
104
|
+
.first
|
105
|
+
return false unless package_name
|
106
|
+
service_module = Google::Cloud::Talent.const_get package_name
|
107
|
+
return false unless service_module.const_defined? :CompanyService
|
108
|
+
service_module = service_module.const_get :CompanyService
|
109
|
+
if transport == :rest
|
110
|
+
return false unless service_module.const_defined? :Rest
|
111
|
+
service_module = service_module.const_get :Rest
|
112
|
+
end
|
113
|
+
service_module.const_defined? :Client
|
114
|
+
rescue ::LoadError
|
115
|
+
false
|
116
|
+
end
|
117
|
+
|
82
118
|
##
|
83
119
|
# Create a new client object for Completion.
|
84
120
|
#
|
@@ -92,6 +128,11 @@ module Google
|
|
92
128
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
93
129
|
# the `transport` parameter.
|
94
130
|
#
|
131
|
+
# Raises an exception if the currently installed versioned client gem for the
|
132
|
+
# given API version does not support the given transport of the Completion service.
|
133
|
+
# You can determine whether the method will succeed by calling
|
134
|
+
# {Google::Cloud::Talent.completion_available?}.
|
135
|
+
#
|
95
136
|
# ## About Completion
|
96
137
|
#
|
97
138
|
# A service handles auto completion.
|
@@ -113,6 +154,37 @@ module Google
|
|
113
154
|
service_module.const_get(:Client).new(&block)
|
114
155
|
end
|
115
156
|
|
157
|
+
##
|
158
|
+
# Determines whether the Completion service is supported by the current client.
|
159
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Talent.completion}.
|
160
|
+
# If false, that method will raise an exception. This could happen if the given
|
161
|
+
# API version does not exist or does not support the Completion service,
|
162
|
+
# or if the versioned client gem needs an update to support the Completion service.
|
163
|
+
#
|
164
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
165
|
+
# Defaults to `:v4`.
|
166
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
167
|
+
# @return [boolean] Whether the service is available.
|
168
|
+
#
|
169
|
+
def self.completion_available? version: :v4, transport: :grpc
|
170
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
171
|
+
package_name = Google::Cloud::Talent
|
172
|
+
.constants
|
173
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
174
|
+
.first
|
175
|
+
return false unless package_name
|
176
|
+
service_module = Google::Cloud::Talent.const_get package_name
|
177
|
+
return false unless service_module.const_defined? :Completion
|
178
|
+
service_module = service_module.const_get :Completion
|
179
|
+
if transport == :rest
|
180
|
+
return false unless service_module.const_defined? :Rest
|
181
|
+
service_module = service_module.const_get :Rest
|
182
|
+
end
|
183
|
+
service_module.const_defined? :Client
|
184
|
+
rescue ::LoadError
|
185
|
+
false
|
186
|
+
end
|
187
|
+
|
116
188
|
##
|
117
189
|
# Create a new client object for EventService.
|
118
190
|
#
|
@@ -126,6 +198,11 @@ module Google
|
|
126
198
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
127
199
|
# the `transport` parameter.
|
128
200
|
#
|
201
|
+
# Raises an exception if the currently installed versioned client gem for the
|
202
|
+
# given API version does not support the given transport of the EventService service.
|
203
|
+
# You can determine whether the method will succeed by calling
|
204
|
+
# {Google::Cloud::Talent.event_service_available?}.
|
205
|
+
#
|
129
206
|
# ## About EventService
|
130
207
|
#
|
131
208
|
# A service handles client event report.
|
@@ -147,6 +224,37 @@ module Google
|
|
147
224
|
service_module.const_get(:Client).new(&block)
|
148
225
|
end
|
149
226
|
|
227
|
+
##
|
228
|
+
# Determines whether the EventService service is supported by the current client.
|
229
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Talent.event_service}.
|
230
|
+
# If false, that method will raise an exception. This could happen if the given
|
231
|
+
# API version does not exist or does not support the EventService service,
|
232
|
+
# or if the versioned client gem needs an update to support the EventService service.
|
233
|
+
#
|
234
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
235
|
+
# Defaults to `:v4`.
|
236
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
237
|
+
# @return [boolean] Whether the service is available.
|
238
|
+
#
|
239
|
+
def self.event_service_available? version: :v4, transport: :grpc
|
240
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
241
|
+
package_name = Google::Cloud::Talent
|
242
|
+
.constants
|
243
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
244
|
+
.first
|
245
|
+
return false unless package_name
|
246
|
+
service_module = Google::Cloud::Talent.const_get package_name
|
247
|
+
return false unless service_module.const_defined? :EventService
|
248
|
+
service_module = service_module.const_get :EventService
|
249
|
+
if transport == :rest
|
250
|
+
return false unless service_module.const_defined? :Rest
|
251
|
+
service_module = service_module.const_get :Rest
|
252
|
+
end
|
253
|
+
service_module.const_defined? :Client
|
254
|
+
rescue ::LoadError
|
255
|
+
false
|
256
|
+
end
|
257
|
+
|
150
258
|
##
|
151
259
|
# Create a new client object for JobService.
|
152
260
|
#
|
@@ -160,6 +268,11 @@ module Google
|
|
160
268
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
161
269
|
# the `transport` parameter.
|
162
270
|
#
|
271
|
+
# Raises an exception if the currently installed versioned client gem for the
|
272
|
+
# given API version does not support the given transport of the JobService service.
|
273
|
+
# You can determine whether the method will succeed by calling
|
274
|
+
# {Google::Cloud::Talent.job_service_available?}.
|
275
|
+
#
|
163
276
|
# ## About JobService
|
164
277
|
#
|
165
278
|
# A service handles job management, including job CRUD, enumeration and search.
|
@@ -181,6 +294,37 @@ module Google
|
|
181
294
|
service_module.const_get(:Client).new(&block)
|
182
295
|
end
|
183
296
|
|
297
|
+
##
|
298
|
+
# Determines whether the JobService service is supported by the current client.
|
299
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Talent.job_service}.
|
300
|
+
# If false, that method will raise an exception. This could happen if the given
|
301
|
+
# API version does not exist or does not support the JobService service,
|
302
|
+
# or if the versioned client gem needs an update to support the JobService service.
|
303
|
+
#
|
304
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
305
|
+
# Defaults to `:v4`.
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
|
+
# @return [boolean] Whether the service is available.
|
308
|
+
#
|
309
|
+
def self.job_service_available? version: :v4, transport: :grpc
|
310
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
311
|
+
package_name = Google::Cloud::Talent
|
312
|
+
.constants
|
313
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
314
|
+
.first
|
315
|
+
return false unless package_name
|
316
|
+
service_module = Google::Cloud::Talent.const_get package_name
|
317
|
+
return false unless service_module.const_defined? :JobService
|
318
|
+
service_module = service_module.const_get :JobService
|
319
|
+
if transport == :rest
|
320
|
+
return false unless service_module.const_defined? :Rest
|
321
|
+
service_module = service_module.const_get :Rest
|
322
|
+
end
|
323
|
+
service_module.const_defined? :Client
|
324
|
+
rescue ::LoadError
|
325
|
+
false
|
326
|
+
end
|
327
|
+
|
184
328
|
##
|
185
329
|
# Create a new client object for TenantService.
|
186
330
|
#
|
@@ -194,6 +338,11 @@ module Google
|
|
194
338
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
195
339
|
# the `transport` parameter.
|
196
340
|
#
|
341
|
+
# Raises an exception if the currently installed versioned client gem for the
|
342
|
+
# given API version does not support the given transport of the TenantService service.
|
343
|
+
# You can determine whether the method will succeed by calling
|
344
|
+
# {Google::Cloud::Talent.tenant_service_available?}.
|
345
|
+
#
|
197
346
|
# ## About TenantService
|
198
347
|
#
|
199
348
|
# A service that handles tenant management, including CRUD and enumeration.
|
@@ -215,6 +364,37 @@ module Google
|
|
215
364
|
service_module.const_get(:Client).new(&block)
|
216
365
|
end
|
217
366
|
|
367
|
+
##
|
368
|
+
# Determines whether the TenantService service is supported by the current client.
|
369
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Talent.tenant_service}.
|
370
|
+
# If false, that method will raise an exception. This could happen if the given
|
371
|
+
# API version does not exist or does not support the TenantService service,
|
372
|
+
# or if the versioned client gem needs an update to support the TenantService service.
|
373
|
+
#
|
374
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
375
|
+
# Defaults to `:v4`.
|
376
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
377
|
+
# @return [boolean] Whether the service is available.
|
378
|
+
#
|
379
|
+
def self.tenant_service_available? version: :v4, transport: :grpc
|
380
|
+
require "google/cloud/talent/#{version.to_s.downcase}"
|
381
|
+
package_name = Google::Cloud::Talent
|
382
|
+
.constants
|
383
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
384
|
+
.first
|
385
|
+
return false unless package_name
|
386
|
+
service_module = Google::Cloud::Talent.const_get package_name
|
387
|
+
return false unless service_module.const_defined? :TenantService
|
388
|
+
service_module = service_module.const_get :TenantService
|
389
|
+
if transport == :rest
|
390
|
+
return false unless service_module.const_defined? :Rest
|
391
|
+
service_module = service_module.const_get :Rest
|
392
|
+
end
|
393
|
+
service_module.const_defined? :Client
|
394
|
+
rescue ::LoadError
|
395
|
+
false
|
396
|
+
end
|
397
|
+
|
218
398
|
##
|
219
399
|
# Configure the google-cloud-talent library.
|
220
400
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-talent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-cloud-core
|
@@ -86,7 +85,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
86
85
|
licenses:
|
87
86
|
- Apache-2.0
|
88
87
|
metadata: {}
|
89
|
-
post_install_message:
|
90
88
|
rdoc_options: []
|
91
89
|
require_paths:
|
92
90
|
- lib
|
@@ -94,15 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
92
|
requirements:
|
95
93
|
- - ">="
|
96
94
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
95
|
+
version: '3.0'
|
98
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
97
|
requirements:
|
100
98
|
- - ">="
|
101
99
|
- !ruby/object:Gem::Version
|
102
100
|
version: '0'
|
103
101
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
105
|
-
signing_key:
|
102
|
+
rubygems_version: 3.6.2
|
106
103
|
specification_version: 4
|
107
104
|
summary: API Client library for the Cloud Talent Solution API
|
108
105
|
test_files: []
|