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
@@ -5,7 +5,6 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
-
require 'google/cloud/talent/v4beta1/batch_pb'
|
9
8
|
require 'google/cloud/talent/v4beta1/common_pb'
|
10
9
|
require 'google/cloud/talent/v4beta1/filters_pb'
|
11
10
|
require 'google/cloud/talent/v4beta1/histogram_pb'
|
@@ -57,26 +57,22 @@ module Google
|
|
57
57
|
rpc :ListJobs, ListJobsRequest, ListJobsResponse
|
58
58
|
# Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
|
59
59
|
rpc :BatchDeleteJobs, BatchDeleteJobsRequest, Google::Protobuf::Empty
|
60
|
-
# Searches for jobs using the provided
|
61
|
-
# [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
60
|
+
# Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
62
61
|
#
|
63
|
-
# This call constrains the
|
64
|
-
#
|
65
|
-
#
|
66
|
-
# search against.
|
62
|
+
# This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
|
63
|
+
# present in the database, and only returns jobs that the caller has
|
64
|
+
# permission to search against.
|
67
65
|
rpc :SearchJobs, SearchJobsRequest, SearchJobsResponse
|
68
|
-
# Searches for jobs using the provided
|
69
|
-
# [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
66
|
+
# Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
|
70
67
|
#
|
71
68
|
# This API call is intended for the use case of targeting passive job
|
72
69
|
# seekers (for example, job seekers who have signed up to receive email
|
73
70
|
# alerts about potential job opportunities), and has different algorithmic
|
74
71
|
# adjustments that are targeted to passive job seekers.
|
75
72
|
#
|
76
|
-
# This call constrains the
|
77
|
-
#
|
78
|
-
#
|
79
|
-
# against.
|
73
|
+
# This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
|
74
|
+
# present in the database, and only returns jobs the caller has
|
75
|
+
# permission to search against.
|
80
76
|
rpc :SearchJobsForAlert, SearchJobsRequest, SearchJobsResponse
|
81
77
|
end
|
82
78
|
|
@@ -7,6 +7,8 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/cloud/talent/v4beta1/common_pb'
|
9
9
|
require 'google/cloud/talent/v4beta1/job_pb'
|
10
|
+
require 'google/protobuf/duration_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
13
|
require 'google/protobuf/wrappers_pb'
|
12
14
|
require 'google/type/date_pb'
|
@@ -35,8 +37,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
37
|
repeated :publications, :message, 21, "google.cloud.talent.v4beta1.Publication"
|
36
38
|
repeated :patents, :message, 22, "google.cloud.talent.v4beta1.Patent"
|
37
39
|
repeated :certifications, :message, 23, "google.cloud.talent.v4beta1.Certification"
|
38
|
-
repeated :
|
39
|
-
repeated :
|
40
|
+
repeated :applications, :string, 47
|
41
|
+
repeated :assignments, :string, 48
|
40
42
|
map :custom_attributes, :string, :message, 26, "google.cloud.talent.v4beta1.CustomAttribute"
|
41
43
|
optional :processed, :bool, 27
|
42
44
|
optional :keyword_snippet, :string, 28
|
@@ -57,7 +59,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
59
|
end
|
58
60
|
add_message "google.cloud.talent.v4beta1.Address" do
|
59
61
|
optional :usage, :enum, 1, "google.cloud.talent.v4beta1.ContactInfoUsage"
|
60
|
-
optional :
|
62
|
+
optional :current, :message, 4, "google.protobuf.BoolValue"
|
61
63
|
oneof :address do
|
62
64
|
optional :unstructured_address, :string, 2
|
63
65
|
optional :structured_address, :message, 3, "google.type.PostalAddress"
|
@@ -101,7 +103,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
101
103
|
optional :address, :message, 5, "google.cloud.talent.v4beta1.Address"
|
102
104
|
optional :job_title, :string, 6
|
103
105
|
optional :job_description, :string, 7
|
104
|
-
optional :
|
106
|
+
optional :is_supervisor, :message, 8, "google.protobuf.BoolValue"
|
105
107
|
optional :is_self_employed, :message, 9, "google.protobuf.BoolValue"
|
106
108
|
optional :is_current, :message, 10, "google.protobuf.BoolValue"
|
107
109
|
optional :job_title_snippet, :string, 11
|
@@ -128,21 +130,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
128
130
|
optional :degree_name, :string, 2
|
129
131
|
repeated :fields_of_study, :string, 3
|
130
132
|
end
|
131
|
-
add_message "google.cloud.talent.v4beta1.Skill" do
|
132
|
-
optional :display_name, :string, 1
|
133
|
-
optional :last_used_date, :message, 2, "google.type.Date"
|
134
|
-
optional :level, :enum, 3, "google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel"
|
135
|
-
optional :context, :string, 4
|
136
|
-
optional :skill_name_snippet, :string, 5
|
137
|
-
end
|
138
|
-
add_enum "google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel" do
|
139
|
-
value :SKILL_PROFICIENCY_LEVEL_UNSPECIFIED, 0
|
140
|
-
value :FUNDAMENTAL_AWARENESS, 1
|
141
|
-
value :NOVICE, 2
|
142
|
-
value :INTERMEDIATE, 3
|
143
|
-
value :ADVANCED, 4
|
144
|
-
value :EXPERT, 5
|
145
|
-
end
|
146
133
|
add_message "google.cloud.talent.v4beta1.Activity" do
|
147
134
|
optional :display_name, :string, 1
|
148
135
|
optional :description, :string, 2
|
@@ -177,45 +164,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
177
164
|
optional :patent_description, :string, 8
|
178
165
|
repeated :skills_used, :message, 9, "google.cloud.talent.v4beta1.Skill"
|
179
166
|
end
|
180
|
-
add_message "google.cloud.talent.v4beta1.JobApplication" do
|
181
|
-
optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
|
182
|
-
optional :application_id, :string, 2
|
183
|
-
optional :application_date, :message, 3, "google.type.Date"
|
184
|
-
optional :last_stage, :string, 4
|
185
|
-
optional :state, :enum, 5, "google.cloud.talent.v4beta1.JobApplication.ApplicationStatus"
|
186
|
-
optional :average_interview_score, :double, 6
|
187
|
-
optional :interview_score_scale_id, :string, 7
|
188
|
-
optional :number_of_interviews, :int32, 8
|
189
|
-
optional :is_employee_referred, :message, 9, "google.protobuf.BoolValue"
|
190
|
-
optional :update_time, :message, 10, "google.protobuf.Timestamp"
|
191
|
-
optional :outcome_reason, :string, 11
|
192
|
-
optional :outcome_positiveness, :double, 12
|
193
|
-
optional :is_match, :message, 13, "google.protobuf.BoolValue"
|
194
|
-
optional :job_title_snippet, :string, 14
|
195
|
-
end
|
196
|
-
add_enum "google.cloud.talent.v4beta1.JobApplication.ApplicationStatus" do
|
197
|
-
value :APPLICATION_STATUS_UNSPECIFIED, 0
|
198
|
-
value :OFFER_EXTENDED, 1
|
199
|
-
value :REJECTED_BY_CANDIDATE, 2
|
200
|
-
value :ACTIVE, 3
|
201
|
-
value :REJECTED_BY_EMPLOYER, 4
|
202
|
-
value :HIRED_PENDING_DATE, 5
|
203
|
-
value :HIRED_STARTED, 6
|
204
|
-
value :PROSPECTED, 7
|
205
|
-
end
|
206
|
-
add_message "google.cloud.talent.v4beta1.Certification" do
|
207
|
-
optional :display_name, :string, 1
|
208
|
-
optional :acquire_date, :message, 2, "google.type.Date"
|
209
|
-
optional :expire_date, :message, 3, "google.type.Date"
|
210
|
-
optional :authority, :string, 4
|
211
|
-
optional :description, :string, 5
|
212
|
-
end
|
213
|
-
add_message "google.cloud.talent.v4beta1.RecruitingNote" do
|
214
|
-
optional :note, :string, 1
|
215
|
-
optional :commenter, :string, 2
|
216
|
-
optional :create_date, :message, 3, "google.type.Date"
|
217
|
-
optional :type, :string, 4
|
218
|
-
end
|
219
167
|
end
|
220
168
|
|
221
169
|
module Google
|
@@ -234,15 +182,9 @@ module Google
|
|
234
182
|
EmploymentRecord = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EmploymentRecord").msgclass
|
235
183
|
EducationRecord = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EducationRecord").msgclass
|
236
184
|
Degree = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Degree").msgclass
|
237
|
-
Skill = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Skill").msgclass
|
238
|
-
Skill::SkillProficiencyLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel").enummodule
|
239
185
|
Activity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Activity").msgclass
|
240
186
|
Publication = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Publication").msgclass
|
241
187
|
Patent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Patent").msgclass
|
242
|
-
JobApplication = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobApplication").msgclass
|
243
|
-
JobApplication::ApplicationStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobApplication.ApplicationStatus").enummodule
|
244
|
-
Certification = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.Certification").msgclass
|
245
|
-
RecruitingNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.RecruitingNote").msgclass
|
246
188
|
end
|
247
189
|
end
|
248
190
|
end
|
@@ -73,28 +73,17 @@ module Google
|
|
73
73
|
].freeze
|
74
74
|
|
75
75
|
|
76
|
-
TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
77
|
-
"projects/{project}/tenants/{tenant}"
|
78
|
-
)
|
79
|
-
|
80
|
-
private_constant :TENANT_PATH_TEMPLATE
|
81
|
-
|
82
76
|
PROFILE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
83
77
|
"projects/{project}/tenants/{tenant}/profiles/{profile}"
|
84
78
|
)
|
85
79
|
|
86
80
|
private_constant :PROFILE_PATH_TEMPLATE
|
87
81
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
TENANT_PATH_TEMPLATE.render(
|
94
|
-
:"project" => project,
|
95
|
-
:"tenant" => tenant
|
96
|
-
)
|
97
|
-
end
|
82
|
+
TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
83
|
+
"projects/{project}/tenants/{tenant}"
|
84
|
+
)
|
85
|
+
|
86
|
+
private_constant :TENANT_PATH_TEMPLATE
|
98
87
|
|
99
88
|
# Returns a fully-qualified profile resource name string.
|
100
89
|
# @param project [String]
|
@@ -109,6 +98,17 @@ module Google
|
|
109
98
|
)
|
110
99
|
end
|
111
100
|
|
101
|
+
# Returns a fully-qualified tenant resource name string.
|
102
|
+
# @param project [String]
|
103
|
+
# @param tenant [String]
|
104
|
+
# @return [String]
|
105
|
+
def self.tenant_path project, tenant
|
106
|
+
TENANT_PATH_TEMPLATE.render(
|
107
|
+
:"project" => project,
|
108
|
+
:"tenant" => tenant
|
109
|
+
)
|
110
|
+
end
|
111
|
+
|
112
112
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
113
113
|
# Provides the means for authenticating requests made by the client. This parameter can
|
114
114
|
# be many types.
|
@@ -215,32 +215,50 @@ module Google
|
|
215
215
|
@list_profiles = Google::Gax.create_api_call(
|
216
216
|
@profile_service_stub.method(:list_profiles),
|
217
217
|
defaults["list_profiles"],
|
218
|
-
exception_transformer: exception_transformer
|
218
|
+
exception_transformer: exception_transformer,
|
219
|
+
params_extractor: proc do |request|
|
220
|
+
{'parent' => request.parent}
|
221
|
+
end
|
219
222
|
)
|
220
223
|
@create_profile = Google::Gax.create_api_call(
|
221
224
|
@profile_service_stub.method(:create_profile),
|
222
225
|
defaults["create_profile"],
|
223
|
-
exception_transformer: exception_transformer
|
226
|
+
exception_transformer: exception_transformer,
|
227
|
+
params_extractor: proc do |request|
|
228
|
+
{'parent' => request.parent}
|
229
|
+
end
|
224
230
|
)
|
225
231
|
@get_profile = Google::Gax.create_api_call(
|
226
232
|
@profile_service_stub.method(:get_profile),
|
227
233
|
defaults["get_profile"],
|
228
|
-
exception_transformer: exception_transformer
|
234
|
+
exception_transformer: exception_transformer,
|
235
|
+
params_extractor: proc do |request|
|
236
|
+
{'name' => request.name}
|
237
|
+
end
|
229
238
|
)
|
230
239
|
@update_profile = Google::Gax.create_api_call(
|
231
240
|
@profile_service_stub.method(:update_profile),
|
232
241
|
defaults["update_profile"],
|
233
|
-
exception_transformer: exception_transformer
|
242
|
+
exception_transformer: exception_transformer,
|
243
|
+
params_extractor: proc do |request|
|
244
|
+
{'profile.name' => request.profile.name}
|
245
|
+
end
|
234
246
|
)
|
235
247
|
@delete_profile = Google::Gax.create_api_call(
|
236
248
|
@profile_service_stub.method(:delete_profile),
|
237
249
|
defaults["delete_profile"],
|
238
|
-
exception_transformer: exception_transformer
|
250
|
+
exception_transformer: exception_transformer,
|
251
|
+
params_extractor: proc do |request|
|
252
|
+
{'name' => request.name}
|
253
|
+
end
|
239
254
|
)
|
240
255
|
@search_profiles = Google::Gax.create_api_call(
|
241
256
|
@profile_service_stub.method(:search_profiles),
|
242
257
|
defaults["search_profiles"],
|
243
|
-
exception_transformer: exception_transformer
|
258
|
+
exception_transformer: exception_transformer,
|
259
|
+
params_extractor: proc do |request|
|
260
|
+
{'parent' => request.parent}
|
261
|
+
end
|
244
262
|
)
|
245
263
|
end
|
246
264
|
|
@@ -261,7 +279,7 @@ module Google
|
|
261
279
|
# parameter does not affect the return value. If page streaming is
|
262
280
|
# performed per-page, this determines the maximum number of
|
263
281
|
# resources in a page.
|
264
|
-
# @param
|
282
|
+
# @param read_mask [Google::Protobuf::FieldMask | Hash]
|
265
283
|
# Optional.
|
266
284
|
#
|
267
285
|
# A field mask to specify the profile fields to be listed in response.
|
@@ -287,16 +305,16 @@ module Google
|
|
287
305
|
# @example
|
288
306
|
# require "google/cloud/talent"
|
289
307
|
#
|
290
|
-
#
|
308
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
291
309
|
# formatted_parent = Google::Cloud::Talent::V4beta1::ProfileServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
292
310
|
#
|
293
311
|
# # Iterate over all results.
|
294
|
-
#
|
312
|
+
# profile_client.list_profiles(formatted_parent).each do |element|
|
295
313
|
# # Process element.
|
296
314
|
# end
|
297
315
|
#
|
298
316
|
# # Or iterate over results one page at a time.
|
299
|
-
#
|
317
|
+
# profile_client.list_profiles(formatted_parent).each_page do |page|
|
300
318
|
# # Process each page at a time.
|
301
319
|
# page.each do |element|
|
302
320
|
# # Process element.
|
@@ -306,13 +324,13 @@ module Google
|
|
306
324
|
def list_profiles \
|
307
325
|
parent,
|
308
326
|
page_size: nil,
|
309
|
-
|
327
|
+
read_mask: nil,
|
310
328
|
options: nil,
|
311
329
|
&block
|
312
330
|
req = {
|
313
331
|
parent: parent,
|
314
332
|
page_size: page_size,
|
315
|
-
|
333
|
+
read_mask: read_mask
|
316
334
|
}.delete_if { |_, v| v.nil? }
|
317
335
|
req = Google::Gax::to_proto(req, Google::Cloud::Talent::V4beta1::ListProfilesRequest)
|
318
336
|
@list_profiles.call(req, options, &block)
|
@@ -344,12 +362,12 @@ module Google
|
|
344
362
|
# @example
|
345
363
|
# require "google/cloud/talent"
|
346
364
|
#
|
347
|
-
#
|
365
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
348
366
|
# formatted_parent = Google::Cloud::Talent::V4beta1::ProfileServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
349
367
|
#
|
350
368
|
# # TODO: Initialize `profile`:
|
351
369
|
# profile = {}
|
352
|
-
# response =
|
370
|
+
# response = profile_client.create_profile(formatted_parent, profile)
|
353
371
|
|
354
372
|
def create_profile \
|
355
373
|
parent,
|
@@ -385,9 +403,9 @@ module Google
|
|
385
403
|
# @example
|
386
404
|
# require "google/cloud/talent"
|
387
405
|
#
|
388
|
-
#
|
406
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
389
407
|
# formatted_name = Google::Cloud::Talent::V4beta1::ProfileServiceClient.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]")
|
390
|
-
# response =
|
408
|
+
# response = profile_client.get_profile(formatted_name)
|
391
409
|
|
392
410
|
def get_profile \
|
393
411
|
name,
|
@@ -437,9 +455,9 @@ module Google
|
|
437
455
|
# * publications
|
438
456
|
# * patents
|
439
457
|
# * certifications
|
440
|
-
# * jobApplications
|
441
458
|
# * recruitingNotes
|
442
459
|
# * customAttributes
|
460
|
+
# * groupId
|
443
461
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
444
462
|
# can also be provided.
|
445
463
|
# @param options [Google::Gax::CallOptions]
|
@@ -453,11 +471,11 @@ module Google
|
|
453
471
|
# @example
|
454
472
|
# require "google/cloud/talent"
|
455
473
|
#
|
456
|
-
#
|
474
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
457
475
|
#
|
458
476
|
# # TODO: Initialize `profile`:
|
459
477
|
# profile = {}
|
460
|
-
# response =
|
478
|
+
# response = profile_client.update_profile(profile)
|
461
479
|
|
462
480
|
def update_profile \
|
463
481
|
profile,
|
@@ -473,6 +491,8 @@ module Google
|
|
473
491
|
end
|
474
492
|
|
475
493
|
# Deletes the specified profile.
|
494
|
+
# Prerequisite: The profile has no associated applications or assignments
|
495
|
+
# associated.
|
476
496
|
#
|
477
497
|
# @param name [String]
|
478
498
|
# Required.
|
@@ -492,9 +512,9 @@ module Google
|
|
492
512
|
# @example
|
493
513
|
# require "google/cloud/talent"
|
494
514
|
#
|
495
|
-
#
|
515
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
496
516
|
# formatted_name = Google::Cloud::Talent::V4beta1::ProfileServiceClient.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]")
|
497
|
-
#
|
517
|
+
# profile_client.delete_profile(formatted_name)
|
498
518
|
|
499
519
|
def delete_profile \
|
500
520
|
name,
|
@@ -513,9 +533,7 @@ module Google
|
|
513
533
|
# For example, search by raw queries "software engineer in Mountain View" or
|
514
534
|
# search by structured filters (location filter, education filter, etc.).
|
515
535
|
#
|
516
|
-
# See
|
517
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}
|
518
|
-
# for more information.
|
536
|
+
# See {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} for more information.
|
519
537
|
#
|
520
538
|
# @param parent [String]
|
521
539
|
# Required.
|
@@ -535,8 +553,7 @@ module Google
|
|
535
553
|
# @param profile_query [Google::Cloud::Talent::V4beta1::ProfileQuery | Hash]
|
536
554
|
# Optional.
|
537
555
|
#
|
538
|
-
# Search query to execute. See
|
539
|
-
# {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
556
|
+
# Search query to execute. See {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
540
557
|
# A hash of the same form as `Google::Cloud::Talent::V4beta1::ProfileQuery`
|
541
558
|
# can also be provided.
|
542
559
|
# @param page_size [Integer]
|
@@ -549,9 +566,7 @@ module Google
|
|
549
566
|
# Optional.
|
550
567
|
#
|
551
568
|
# An integer that specifies the current offset (that is, starting result) in
|
552
|
-
# search results. This field is only considered if
|
553
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
|
554
|
-
# is unset.
|
569
|
+
# search results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
|
555
570
|
#
|
556
571
|
# The maximum allowed value is 5000. Otherwise an error is thrown.
|
557
572
|
#
|
@@ -597,8 +612,7 @@ module Google
|
|
597
612
|
# Optional.
|
598
613
|
#
|
599
614
|
# A list of expressions specifies histogram requests against matching
|
600
|
-
# profiles for
|
601
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
615
|
+
# profiles for {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
602
616
|
#
|
603
617
|
# The expression syntax looks like a function definition with optional
|
604
618
|
# parameters.
|
@@ -646,34 +660,24 @@ module Google
|
|
646
660
|
# * institution: The school name. For example, "MIT",
|
647
661
|
# "University of California, Berkeley"
|
648
662
|
# * degree: Highest education degree in ISCED code. Each value in degree
|
649
|
-
# covers specific level of education, without any expansion to upper nor
|
663
|
+
# covers a specific level of education, without any expansion to upper nor
|
650
664
|
# lower levels of education degree.
|
651
665
|
# * experience_in_months: experience in months. 0 means 0 month to 1 month
|
652
666
|
# (exclusive).
|
653
667
|
# * application_date: The application date specifies application start dates.
|
654
|
-
# See
|
655
|
-
#
|
656
|
-
#
|
657
|
-
#
|
658
|
-
# outcome reasons of job application.
|
659
|
-
# See
|
660
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationOutcomeReasonFilter ApplicationOutcomeReasonFilter}
|
661
|
-
# for more details.
|
668
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
|
669
|
+
# * application_outcome_notes: The application outcome reason specifies the
|
670
|
+
# reasons behind the outcome of the job application.
|
671
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
|
662
672
|
# * application_last_stage: The application last stage specifies the last
|
663
673
|
# stage of job application.
|
664
|
-
# See
|
665
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationLastStageFilter ApplicationLastStageFilter}
|
666
|
-
# for more details.
|
674
|
+
# See {ApplicationLastStageFilter} for more details.
|
667
675
|
# * application_job_title: The application job title specifies the job
|
668
676
|
# applied for in the application.
|
669
|
-
# See
|
670
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter}
|
671
|
-
# for more details.
|
677
|
+
# See {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
|
672
678
|
# * application_status: The application status specifies the status of job
|
673
679
|
# application.
|
674
|
-
# See
|
675
|
-
# {Google::Cloud::Talent::V4beta1::ApplicationStatusFilter ApplicationStatusFilter}
|
676
|
-
# for more details.
|
680
|
+
# See {ApplicationStatusFilter} for more details.
|
677
681
|
# * hirable_status: Hirable status specifies the profile's hirable status.
|
678
682
|
# * string_custom_attribute: String custom attributes. Values can be accessed
|
679
683
|
# via square bracket notation like string_custom_attribute["key1"].
|
@@ -705,19 +709,19 @@ module Google
|
|
705
709
|
# @example
|
706
710
|
# require "google/cloud/talent"
|
707
711
|
#
|
708
|
-
#
|
712
|
+
# profile_client = Google::Cloud::Talent::ProfileService.new(version: :v4beta1)
|
709
713
|
# formatted_parent = Google::Cloud::Talent::V4beta1::ProfileServiceClient.tenant_path("[PROJECT]", "[TENANT]")
|
710
714
|
#
|
711
715
|
# # TODO: Initialize `request_metadata`:
|
712
716
|
# request_metadata = {}
|
713
717
|
#
|
714
718
|
# # Iterate over all results.
|
715
|
-
#
|
719
|
+
# profile_client.search_profiles(formatted_parent, request_metadata).each do |element|
|
716
720
|
# # Process element.
|
717
721
|
# end
|
718
722
|
#
|
719
723
|
# # Or iterate over results one page at a time.
|
720
|
-
#
|
724
|
+
# profile_client.search_profiles(formatted_parent, request_metadata).each_page do |page|
|
721
725
|
# # Process each page at a time.
|
722
726
|
# page.each do |element|
|
723
727
|
# # Process element.
|