google-cloud-talent 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/talent.rb +1 -1
  4. data/lib/google/cloud/talent/v4beta1.rb +1 -1
  5. data/lib/google/cloud/talent/v4beta1/application_pb.rb +1 -1
  6. data/lib/google/cloud/talent/v4beta1/application_service_client.rb +3 -0
  7. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +1 -2
  8. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +3 -0
  9. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +1 -2
  10. data/lib/google/cloud/talent/v4beta1/completion_client.rb +3 -0
  11. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -2
  12. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +3 -7
  13. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +8 -17
  14. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +4 -6
  15. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -49
  16. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +3 -0
  17. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -2
  18. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +3 -4
  19. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +1 -2
  20. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +3 -49
  21. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +1 -2
  22. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +3 -0
  23. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +1 -2
  24. data/lib/google/cloud/talent/version.rb +1 -1
  25. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7657642f620446e92e8f61c4b17f094327059d2402659cb8d9b06923dc2a8c3a
4
- data.tar.gz: d0622f63ee3f39f7e83b2bcb270a303f6b2f3b6c010ced63c9b284012128fac3
3
+ metadata.gz: '08d410697a04c74aa2abb667aa95502deacdf21eb310e5592ebe67b0a607b93c'
4
+ data.tar.gz: 26630b08efbba14e0275bdea7aa27963b88dd3a08ba1492f3b20c977ee6bb408
5
5
  SHA512:
6
- metadata.gz: 0d3804382ee71bdccbc1d6102c6167b0ff8d53106fe2507d8f2533612ace4517402ca7067ee030625b313aad06a4f11d66a77fd285327bce4c3e44a21f9028ee
7
- data.tar.gz: 77508f2a7653913b9edb72aa4581a231da8c2cf7a0f50a5eeda42ff6c0ea8f1de086f853c12dbf1c069c3cbd348aa7953bdc9d8a638eca4fbbf530a5caa4a80d
6
+ metadata.gz: 5ec1c90e97685547e0b58992508bff60b8896f8170cfb2f1d43c17163cb06fdc21371bed9c5b83575c04871ad8524644d8b355689928f7c3c8c5d5613f01fab5
7
+ data.tar.gz: 9c8e6bdb13c9042c756c5be2e74f900eac284e2d1f5e04a23bfffba00674ed192a8dc42dba91a8f102ca711998c8511c40260cf7007332f5b2f897ac3653f08e
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Cloud Talent Solution API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Talent Solution API
2
2
 
3
3
  [Cloud Talent Solution API][Product Documentation]:
4
4
  Cloud Talent Solution provides the capability to create, read, update, and
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Talent Solution API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud Talent Solution API
25
25
  #
26
26
  # [Cloud Talent Solution API][Product Documentation]:
27
27
  # Cloud Talent Solution provides the capability to create, read, update, and
@@ -30,7 +30,7 @@ module Google
30
30
  # rubocop:disable LineLength
31
31
 
32
32
  ##
33
- # # Ruby Client for Cloud Talent Solution API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
33
+ # # Ruby Client for Cloud Talent Solution API
34
34
  #
35
35
  # [Cloud Talent Solution API][Product Documentation]:
36
36
  # Cloud Talent Solution provides the capability to create, read, update, and
@@ -4,13 +4,13 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/annotations_pb'
7
8
  require 'google/api/field_behavior_pb'
8
9
  require 'google/api/resource_pb'
9
10
  require 'google/cloud/talent/v4beta1/common_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
  require 'google/protobuf/wrappers_pb'
12
13
  require 'google/type/date_pb'
13
- require 'google/api/annotations_pb'
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_message "google.cloud.talent.v4beta1.Application" do
16
16
  optional :name, :string, 1
@@ -187,6 +187,9 @@ module Google
187
187
  google_api_client.freeze
188
188
 
189
189
  headers = { :"x-goog-api-client" => google_api_client }
190
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
191
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
192
+ end
190
193
  headers.merge!(metadata) unless metadata.nil?
191
194
  client_config_file = Pathname.new(__dir__).join(
192
195
  "application_service_client_config.json"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/application_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -214,6 +214,9 @@ module Google
214
214
  google_api_client.freeze
215
215
 
216
216
  headers = { :"x-goog-api-client" => google_api_client }
217
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
218
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
219
+ end
217
220
  headers.merge!(metadata) unless metadata.nil?
218
221
  client_config_file = Pathname.new(__dir__).join(
219
222
  "company_service_client_config.json"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/company_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -205,6 +205,9 @@ module Google
205
205
  google_api_client.freeze
206
206
 
207
207
  headers = { :"x-goog-api-client" => google_api_client }
208
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
209
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
210
+ end
208
211
  headers.merge!(metadata) unless metadata.nil?
209
212
  client_config_file = Pathname.new(__dir__).join(
210
213
  "completion_client_config.json"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/completion_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -42,17 +42,13 @@ module Google
42
42
  # For example, "projects/foo/tenants/bar/profiles/baz".
43
43
  # @!attribute [rw] job
44
44
  # @return [String]
45
- # One of either a job or a company is required.
46
- #
47
- # Resource name of the job which the candidate applied for.
45
+ # Required. Resource name of the job which the candidate applied for.
48
46
  #
49
47
  # The format is
50
48
  # "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example,
51
49
  # "projects/foo/tenants/bar/jobs/baz".
52
50
  # @!attribute [rw] company
53
51
  # @return [String]
54
- # One of either a job or a company is required.
55
- #
56
52
  # Resource name of the company which the candidate applied for.
57
53
  #
58
54
  # The format is
@@ -63,8 +59,8 @@ module Google
63
59
  # The application date.
64
60
  # @!attribute [rw] stage
65
61
  # @return [Google::Cloud::Talent::V4beta1::Application::ApplicationStage]
66
- # Required. What is the most recent stage of the application (that is, new, screen,
67
- # send cv, hired, finished work)? This field is intentionally not
62
+ # Required. What is the most recent stage of the application (that is, new,
63
+ # screen, send cv, hired, finished work)? This field is intentionally not
68
64
  # comprehensive of every possible status, but instead, represents statuses
69
65
  # that would be used to indicate to the ML models good / bad matches.
70
66
  # @!attribute [rw] state
@@ -82,31 +82,22 @@ module Google
82
82
 
83
83
  # Suggest job titles for jobs autocomplete.
84
84
  #
85
- # For
86
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType::JOB_TITLE}
87
- # type, only open jobs with the same
88
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
89
- # are returned.
85
+ # For {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType::JOB_TITLE} type, only open jobs with the same
86
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes} are returned.
90
87
  JOB_TITLE = 1
91
88
 
92
89
  # Suggest company names for jobs autocomplete.
93
90
  #
94
- # For
95
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType::COMPANY_NAME}
96
- # type, only companies having open jobs with the same
97
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
98
- # are returned.
91
+ # For {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType::COMPANY_NAME} type,
92
+ # only companies having open jobs with the same {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes} are
93
+ # returned.
99
94
  COMPANY_NAME = 2
100
95
 
101
96
  # Suggest both job titles and company names for jobs autocomplete.
102
97
  #
103
- # For
104
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}
105
- # type, only open jobs with the same
106
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
107
- # or companies having open jobs with the same
108
- # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
109
- # are returned.
98
+ # For {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED} type, only open jobs with the same
99
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes} or companies having open jobs with the same
100
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes} are returned.
110
101
  COMBINED = 3
111
102
  end
112
103
  end
@@ -300,8 +300,6 @@ module Google
300
300
  #
301
301
  # The maximum allowed value is 5000. Otherwise an error is thrown.
302
302
  #
303
- # The maximum allowed value is 5000. Otherwise an error is thrown.
304
- #
305
303
  # For example, 0 means to return results starting from the first matching
306
304
  # job, and 10 means to return from the 11th job. This can be used for
307
305
  # pagination, (for example, pageSize = 10 and offset = 10 means to return
@@ -415,10 +413,10 @@ module Google
415
413
  # An error is thrown if not specified.
416
414
  # @!attribute [rw] ranking_expression
417
415
  # @return [String]
418
- # Required. Controls over how job documents get ranked on top of existing
419
- # relevance score (determined by API algorithm). A combination of the
420
- # ranking expression and relevance score is used to determine job's final
421
- # ranking position.
416
+ # Required. Controls over how job documents get ranked on top of existing relevance
417
+ # score (determined by API algorithm). A combination of the ranking
418
+ # expression and relevance score is used to determine job's final ranking
419
+ # position.
422
420
  #
423
421
  # The syntax for this expression is a subset of Google SQL syntax.
424
422
  #
@@ -105,55 +105,6 @@ module Google
105
105
  # A field mask to specify the profile fields to update.
106
106
  #
107
107
  # A full update is performed if it is unset.
108
- #
109
- # Valid values are:
110
- #
111
- # * external_id
112
- # * source
113
- # * source_types
114
- # * uri
115
- # * is_hirable
116
- # * create_time
117
- # * update_time
118
- # * candidate_update_time
119
- # * resume_update_time
120
- # * resume
121
- # * person_names
122
- # * addresses
123
- # * email_addresses
124
- # * phone_numbers
125
- # * personal_uris
126
- # * additional_contact_info
127
- # * employment_records
128
- # * education_records
129
- # * skills
130
- # * activities
131
- # * publications
132
- # * patents
133
- # * certifications
134
- # * recruiting_notes
135
- # * custom_attributes
136
- # * group_id
137
- # * external_system
138
- # * source_note
139
- # * primary_responsibilities
140
- # * citizenships
141
- # * work_authorizations
142
- # * employee_types
143
- # * language_code
144
- # * qualification_summary
145
- # * allowed_contact_types
146
- # * preferred_contact_types
147
- # * contact_availability
148
- # * language_fluencies
149
- # * work_preference
150
- # * industry_experiences
151
- # * work_environment_experiences
152
- # * work_availability
153
- # * security_clearances
154
- # * references
155
- # * assessments
156
- # * interviews
157
108
  class UpdateProfileRequest; end
158
109
 
159
110
  # Delete profile request.
@@ -169,6 +169,9 @@ module Google
169
169
  google_api_client.freeze
170
170
 
171
171
  headers = { :"x-goog-api-client" => google_api_client }
172
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
173
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
174
+ end
172
175
  headers.merge!(metadata) unless metadata.nil?
173
176
  client_config_file = Pathname.new(__dir__).join(
174
177
  "event_service_client_config.json"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/event_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -276,6 +276,9 @@ module Google
276
276
  google_api_client.freeze
277
277
 
278
278
  headers = { :"x-goog-api-client" => google_api_client }
279
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
280
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
281
+ end
279
282
  headers.merge!(metadata) unless metadata.nil?
280
283
  client_config_file = Pathname.new(__dir__).join(
281
284
  "job_service_client_config.json"
@@ -850,8 +853,6 @@ module Google
850
853
  #
851
854
  # The maximum allowed value is 5000. Otherwise an error is thrown.
852
855
  #
853
- # The maximum allowed value is 5000. Otherwise an error is thrown.
854
- #
855
856
  # For example, 0 means to return results starting from the first matching
856
857
  # job, and 10 means to return from the 11th job. This can be used for
857
858
  # pagination, (for example, pageSize = 10 and offset = 10 means to return
@@ -1170,8 +1171,6 @@ module Google
1170
1171
  #
1171
1172
  # The maximum allowed value is 5000. Otherwise an error is thrown.
1172
1173
  #
1173
- # The maximum allowed value is 5000. Otherwise an error is thrown.
1174
- #
1175
1174
  # For example, 0 means to return results starting from the first matching
1176
1175
  # job, and 10 means to return from the 11th job. This can be used for
1177
1176
  # pagination, (for example, pageSize = 10 and offset = 10 means to return
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/job_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -187,6 +187,9 @@ module Google
187
187
  google_api_client.freeze
188
188
 
189
189
  headers = { :"x-goog-api-client" => google_api_client }
190
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
191
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
192
+ end
190
193
  headers.merge!(metadata) unless metadata.nil?
191
194
  client_config_file = Pathname.new(__dir__).join(
192
195
  "profile_service_client_config.json"
@@ -445,55 +448,6 @@ module Google
445
448
  # A field mask to specify the profile fields to update.
446
449
  #
447
450
  # A full update is performed if it is unset.
448
- #
449
- # Valid values are:
450
- #
451
- # * external_id
452
- # * source
453
- # * source_types
454
- # * uri
455
- # * is_hirable
456
- # * create_time
457
- # * update_time
458
- # * candidate_update_time
459
- # * resume_update_time
460
- # * resume
461
- # * person_names
462
- # * addresses
463
- # * email_addresses
464
- # * phone_numbers
465
- # * personal_uris
466
- # * additional_contact_info
467
- # * employment_records
468
- # * education_records
469
- # * skills
470
- # * activities
471
- # * publications
472
- # * patents
473
- # * certifications
474
- # * recruiting_notes
475
- # * custom_attributes
476
- # * group_id
477
- # * external_system
478
- # * source_note
479
- # * primary_responsibilities
480
- # * citizenships
481
- # * work_authorizations
482
- # * employee_types
483
- # * language_code
484
- # * qualification_summary
485
- # * allowed_contact_types
486
- # * preferred_contact_types
487
- # * contact_availability
488
- # * language_fluencies
489
- # * work_preference
490
- # * industry_experiences
491
- # * work_environment_experiences
492
- # * work_availability
493
- # * security_clearances
494
- # * references
495
- # * assessments
496
- # * interviews
497
451
  # A hash of the same form as `Google::Protobuf::FieldMask`
498
452
  # can also be provided.
499
453
  # @param options [Google::Gax::CallOptions]
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/profile_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -178,6 +178,9 @@ module Google
178
178
  google_api_client.freeze
179
179
 
180
180
  headers = { :"x-goog-api-client" => google_api_client }
181
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
182
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
183
+ end
181
184
  headers.merge!(metadata) unless metadata.nil?
182
185
  client_config_file = Pathname.new(__dir__).join(
183
186
  "tenant_service_client_config.json"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/talent/v4beta1/tenant_service.proto for package 'google.cloud.talent.v4beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Talent
19
- VERSION = "0.8.3".freeze
19
+ VERSION = "0.9.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.8.3
4
+ version: 0.9.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: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax