google-cloud-talent 0.1.0 → 0.2.0
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/.yardopts +2 -0
- data/AUTHENTICATION.md +199 -0
- data/lib/google/cloud/talent.rb +20 -19
- data/lib/google/cloud/talent/v4beta1.rb +22 -21
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +62 -0
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +492 -0
- data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +51 -0
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +56 -0
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +47 -1
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +83 -55
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +62 -42
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +189 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +121 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +189 -94
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +12 -10
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +29 -20
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +26 -30
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +16 -55
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +9 -1
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +74 -164
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +2 -5
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +58 -86
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +109 -137
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +76 -375
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +21 -38
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +1 -3
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +3 -7
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +18 -26
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +14 -10
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +2 -3
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -9
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +26 -13
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +8 -20
- data/lib/google/cloud/talent/v4beta1/helpers.rb +44 -10
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +3 -2
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +229 -204
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -1
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +8 -12
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +6 -64
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +72 -68
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +34 -23
- metadata +11 -4
@@ -16,7 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
optional :parent, :string, 1
|
17
17
|
optional :page_token, :string, 2
|
18
18
|
optional :page_size, :int32, 3
|
19
|
-
optional :
|
19
|
+
optional :read_mask, :message, 4, "google.protobuf.FieldMask"
|
20
20
|
end
|
21
21
|
add_message "google.cloud.talent.v4beta1.ListProfilesResponse" do
|
22
22
|
repeated :profiles, :message, 1, "google.cloud.talent.v4beta1.Profile"
|
@@ -45,15 +45,15 @@ module Google
|
|
45
45
|
# Updates the specified profile and returns the updated result.
|
46
46
|
rpc :UpdateProfile, UpdateProfileRequest, Profile
|
47
47
|
# Deletes the specified profile.
|
48
|
+
# Prerequisite: The profile has no associated applications or assignments
|
49
|
+
# associated.
|
48
50
|
rpc :DeleteProfile, DeleteProfileRequest, Google::Protobuf::Empty
|
49
51
|
# Searches for profiles within a tenant.
|
50
52
|
#
|
51
53
|
# For example, search by raw queries "software engineer in Mountain View" or
|
52
54
|
# search by structured filters (location filter, education filter, etc.).
|
53
55
|
#
|
54
|
-
# See
|
55
|
-
# [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
|
56
|
-
# for more information.
|
56
|
+
# See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information.
|
57
57
|
rpc :SearchProfiles, SearchProfilesRequest, SearchProfilesResponse
|
58
58
|
end
|
59
59
|
|
@@ -264,12 +264,12 @@ module Google
|
|
264
264
|
# @example
|
265
265
|
# require "google/cloud/talent"
|
266
266
|
#
|
267
|
-
#
|
267
|
+
# resume_client = Google::Cloud::Talent::Resume.new(version: :v4beta1)
|
268
268
|
# formatted_parent = Google::Cloud::Talent::V4beta1::ResumeServiceClient.project_path("[PROJECT]")
|
269
269
|
#
|
270
270
|
# # TODO: Initialize `resume`:
|
271
271
|
# resume = ''
|
272
|
-
# response =
|
272
|
+
# response = resume_client.parse_resume(formatted_parent, resume)
|
273
273
|
|
274
274
|
def parse_resume \
|
275
275
|
parent,
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/talent/v4beta1/common_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.talent.v4beta1.Tenant" do
|
11
11
|
optional :name, :string, 1
|
@@ -206,27 +206,42 @@ module Google
|
|
206
206
|
@create_tenant = Google::Gax.create_api_call(
|
207
207
|
@tenant_service_stub.method(:create_tenant),
|
208
208
|
defaults["create_tenant"],
|
209
|
-
exception_transformer: exception_transformer
|
209
|
+
exception_transformer: exception_transformer,
|
210
|
+
params_extractor: proc do |request|
|
211
|
+
{'parent' => request.parent}
|
212
|
+
end
|
210
213
|
)
|
211
214
|
@get_tenant = Google::Gax.create_api_call(
|
212
215
|
@tenant_service_stub.method(:get_tenant),
|
213
216
|
defaults["get_tenant"],
|
214
|
-
exception_transformer: exception_transformer
|
217
|
+
exception_transformer: exception_transformer,
|
218
|
+
params_extractor: proc do |request|
|
219
|
+
{'name' => request.name}
|
220
|
+
end
|
215
221
|
)
|
216
222
|
@update_tenant = Google::Gax.create_api_call(
|
217
223
|
@tenant_service_stub.method(:update_tenant),
|
218
224
|
defaults["update_tenant"],
|
219
|
-
exception_transformer: exception_transformer
|
225
|
+
exception_transformer: exception_transformer,
|
226
|
+
params_extractor: proc do |request|
|
227
|
+
{'tenant.name' => request.tenant.name}
|
228
|
+
end
|
220
229
|
)
|
221
230
|
@delete_tenant = Google::Gax.create_api_call(
|
222
231
|
@tenant_service_stub.method(:delete_tenant),
|
223
232
|
defaults["delete_tenant"],
|
224
|
-
exception_transformer: exception_transformer
|
233
|
+
exception_transformer: exception_transformer,
|
234
|
+
params_extractor: proc do |request|
|
235
|
+
{'name' => request.name}
|
236
|
+
end
|
225
237
|
)
|
226
238
|
@list_tenants = Google::Gax.create_api_call(
|
227
239
|
@tenant_service_stub.method(:list_tenants),
|
228
240
|
defaults["list_tenants"],
|
229
|
-
exception_transformer: exception_transformer
|
241
|
+
exception_transformer: exception_transformer,
|
242
|
+
params_extractor: proc do |request|
|
243
|
+
{'parent' => request.parent}
|
244
|
+
end
|
230
245
|
)
|
231
246
|
end
|
232
247
|
|
@@ -258,12 +273,12 @@ module Google
|
|
258
273
|
# @example
|
259
274
|
# require "google/cloud/talent"
|
260
275
|
#
|
261
|
-
#
|
276
|
+
# tenant_client = Google::Cloud::Talent::TenantService.new(version: :v4beta1)
|
262
277
|
# formatted_parent = Google::Cloud::Talent::V4beta1::TenantServiceClient.project_path("[PROJECT]")
|
263
278
|
#
|
264
279
|
# # TODO: Initialize `tenant`:
|
265
280
|
# tenant = {}
|
266
|
-
# response =
|
281
|
+
# response = tenant_client.create_tenant(formatted_parent, tenant)
|
267
282
|
|
268
283
|
def create_tenant \
|
269
284
|
parent,
|
@@ -298,9 +313,9 @@ module Google
|
|
298
313
|
# @example
|
299
314
|
# require "google/cloud/talent"
|
300
315
|
#
|
301
|
-
#
|
316
|
+
# tenant_client = Google::Cloud::Talent::TenantService.new(version: :v4beta1)
|
302
317
|
# formatted_name = Google::Cloud::Talent::V4beta1::TenantServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
303
|
-
# response =
|
318
|
+
# response = tenant_client.get_tenant(formatted_name)
|
304
319
|
|
305
320
|
def get_tenant \
|
306
321
|
name,
|
@@ -325,15 +340,11 @@ module Google
|
|
325
340
|
# Optional but strongly recommended for the best service
|
326
341
|
# experience.
|
327
342
|
#
|
328
|
-
# If
|
329
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#
|
330
|
-
# is provided, only the specified fields in
|
331
|
-
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are
|
332
|
-
# updated. Otherwise all the fields are updated.
|
343
|
+
# If {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#update_mask update_mask} is provided, only the specified fields in
|
344
|
+
# {Google::Cloud::Talent::V4beta1::UpdateTenantRequest#tenant tenant} are updated. Otherwise all the fields are updated.
|
333
345
|
#
|
334
346
|
# A field mask to specify the tenant fields to be updated. Only
|
335
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are
|
336
|
-
# supported.
|
347
|
+
# top level fields of {Google::Cloud::Talent::V4beta1::Tenant Tenant} are supported.
|
337
348
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
338
349
|
# can also be provided.
|
339
350
|
# @param options [Google::Gax::CallOptions]
|
@@ -347,11 +358,11 @@ module Google
|
|
347
358
|
# @example
|
348
359
|
# require "google/cloud/talent"
|
349
360
|
#
|
350
|
-
#
|
361
|
+
# tenant_client = Google::Cloud::Talent::TenantService.new(version: :v4beta1)
|
351
362
|
#
|
352
363
|
# # TODO: Initialize `tenant`:
|
353
364
|
# tenant = {}
|
354
|
-
# response =
|
365
|
+
# response = tenant_client.update_tenant(tenant)
|
355
366
|
|
356
367
|
def update_tenant \
|
357
368
|
tenant,
|
@@ -385,9 +396,9 @@ module Google
|
|
385
396
|
# @example
|
386
397
|
# require "google/cloud/talent"
|
387
398
|
#
|
388
|
-
#
|
399
|
+
# tenant_client = Google::Cloud::Talent::TenantService.new(version: :v4beta1)
|
389
400
|
# formatted_name = Google::Cloud::Talent::V4beta1::TenantServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
390
|
-
#
|
401
|
+
# tenant_client.delete_tenant(formatted_name)
|
391
402
|
|
392
403
|
def delete_tenant \
|
393
404
|
name,
|
@@ -431,16 +442,16 @@ module Google
|
|
431
442
|
# @example
|
432
443
|
# require "google/cloud/talent"
|
433
444
|
#
|
434
|
-
#
|
445
|
+
# tenant_client = Google::Cloud::Talent::TenantService.new(version: :v4beta1)
|
435
446
|
# formatted_parent = Google::Cloud::Talent::V4beta1::TenantServiceClient.project_path("[PROJECT]")
|
436
447
|
#
|
437
448
|
# # Iterate over all results.
|
438
|
-
#
|
449
|
+
# tenant_client.list_tenants(formatted_parent).each do |element|
|
439
450
|
# # Process element.
|
440
451
|
# end
|
441
452
|
#
|
442
453
|
# # Or iterate over results one page at a time.
|
443
|
-
#
|
454
|
+
# tenant_client.list_tenants(formatted_parent).each_page do |page|
|
444
455
|
# # Process each page at a time.
|
445
456
|
# page.each do |element|
|
446
457
|
# # Process element.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-talent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -102,10 +102,16 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".yardopts"
|
105
|
+
- AUTHENTICATION.md
|
105
106
|
- LICENSE
|
106
107
|
- README.md
|
107
108
|
- lib/google/cloud/talent.rb
|
108
109
|
- lib/google/cloud/talent/v4beta1.rb
|
110
|
+
- lib/google/cloud/talent/v4beta1/application_pb.rb
|
111
|
+
- lib/google/cloud/talent/v4beta1/application_service_client.rb
|
112
|
+
- lib/google/cloud/talent/v4beta1/application_service_client_config.json
|
113
|
+
- lib/google/cloud/talent/v4beta1/application_service_pb.rb
|
114
|
+
- lib/google/cloud/talent/v4beta1/application_service_services_pb.rb
|
109
115
|
- lib/google/cloud/talent/v4beta1/batch_pb.rb
|
110
116
|
- lib/google/cloud/talent/v4beta1/common_pb.rb
|
111
117
|
- lib/google/cloud/talent/v4beta1/company_pb.rb
|
@@ -118,6 +124,8 @@ files:
|
|
118
124
|
- lib/google/cloud/talent/v4beta1/completion_service_pb.rb
|
119
125
|
- lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb
|
120
126
|
- lib/google/cloud/talent/v4beta1/credentials.rb
|
127
|
+
- lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb
|
128
|
+
- lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb
|
121
129
|
- lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb
|
122
130
|
- lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb
|
123
131
|
- lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb
|
@@ -189,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
197
|
- !ruby/object:Gem::Version
|
190
198
|
version: '0'
|
191
199
|
requirements: []
|
192
|
-
|
193
|
-
rubygems_version: 2.7.6
|
200
|
+
rubygems_version: 3.0.3
|
194
201
|
signing_key:
|
195
202
|
specification_version: 4
|
196
203
|
summary: API Client library for Cloud Talent Solution API
|