google-cloud-talent-v4beta1 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/talent/v4beta1.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +133 -128
- data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +17 -17
- data/lib/google/cloud/talent/v4beta1/company_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +135 -130
- data/lib/google/cloud/talent/v4beta1/company_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/completion.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +69 -64
- data/lib/google/cloud/talent/v4beta1/completion/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/paths.rb +8 -8
- data/lib/google/cloud/talent/v4beta1/event_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +62 -57
- data/lib/google/cloud/talent/v4beta1/event_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/job_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +329 -324
- data/lib/google/cloud/talent/v4beta1/job_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +109 -103
- data/lib/google/cloud/talent/v4beta1/job_service/paths.rb +13 -13
- data/lib/google/cloud/talent/v4beta1/profile_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +185 -180
- data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/tenant_service.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +133 -128
- data/lib/google/cloud/talent/v4beta1/tenant_service/credentials.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service/paths.rb +3 -3
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/talent/v4beta1/application.rb +18 -18
- data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +27 -27
- data/proto_docs/google/cloud/talent/v4beta1/common.rb +167 -167
- data/proto_docs/google/cloud/talent/v4beta1/company.rb +21 -21
- data/proto_docs/google/cloud/talent/v4beta1/company_service.rb +29 -29
- data/proto_docs/google/cloud/talent/v4beta1/completion_service.rb +28 -28
- data/proto_docs/google/cloud/talent/v4beta1/event.rb +30 -30
- data/proto_docs/google/cloud/talent/v4beta1/event_service.rb +4 -4
- data/proto_docs/google/cloud/talent/v4beta1/filters.rb +198 -198
- data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +14 -14
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +83 -83
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +163 -163
- data/proto_docs/google/cloud/talent/v4beta1/profile.rb +202 -202
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +82 -82
- data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +8 -8
- data/proto_docs/google/cloud/talent/v4beta1/tenant_service.rb +27 -27
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/date.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- data/proto_docs/google/type/money.rb +5 -5
- data/proto_docs/google/type/postal_address.rb +13 -13
- data/proto_docs/google/type/timeofday.rb +7 -7
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -44,24 +44,24 @@ module Google
|
|
44
44
|
# @param project [String]
|
45
45
|
# @param company [String]
|
46
46
|
#
|
47
|
-
# @return [String]
|
47
|
+
# @return [::String]
|
48
48
|
def company_path **args
|
49
49
|
resources = {
|
50
50
|
"company:project:tenant" => (proc do |project:, tenant:, company:|
|
51
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
52
|
-
raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
51
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
52
|
+
raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
53
53
|
|
54
54
|
"projects/#{project}/tenants/#{tenant}/companies/#{company}"
|
55
55
|
end),
|
56
56
|
"company:project" => (proc do |project:, company:|
|
57
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
58
|
|
59
59
|
"projects/#{project}/companies/#{company}"
|
60
60
|
end)
|
61
61
|
}
|
62
62
|
|
63
63
|
resource = resources[args.keys.sort.join(":")]
|
64
|
-
raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
64
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
65
65
|
resource.call(**args)
|
66
66
|
end
|
67
67
|
|
@@ -85,24 +85,24 @@ module Google
|
|
85
85
|
# @param project [String]
|
86
86
|
# @param job [String]
|
87
87
|
#
|
88
|
-
# @return [String]
|
88
|
+
# @return [::String]
|
89
89
|
def job_path **args
|
90
90
|
resources = {
|
91
91
|
"job:project:tenant" => (proc do |project:, tenant:, job:|
|
92
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
-
raise ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"
|
94
94
|
|
95
95
|
"projects/#{project}/tenants/#{tenant}/jobs/#{job}"
|
96
96
|
end),
|
97
97
|
"job:project" => (proc do |project:, job:|
|
98
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
99
|
|
100
100
|
"projects/#{project}/jobs/#{job}"
|
101
101
|
end)
|
102
102
|
}
|
103
103
|
|
104
104
|
resource = resources[args.keys.sort.join(":")]
|
105
|
-
raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
105
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
106
106
|
resource.call(**args)
|
107
107
|
end
|
108
108
|
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
#
|
116
116
|
# @param project [String]
|
117
117
|
#
|
118
|
-
# @return [String]
|
118
|
+
# @return [::String]
|
119
119
|
def project_path project:
|
120
120
|
"projects/#{project}"
|
121
121
|
end
|
@@ -130,9 +130,9 @@ module Google
|
|
130
130
|
# @param project [String]
|
131
131
|
# @param tenant [String]
|
132
132
|
#
|
133
|
-
# @return [String]
|
133
|
+
# @return [::String]
|
134
134
|
def tenant_path project:, tenant:
|
135
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
135
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
136
136
|
|
137
137
|
"projects/#{project}/tenants/#{tenant}"
|
138
138
|
end
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
# To load this service and instantiate a client:
|
38
38
|
#
|
39
39
|
# require "google/cloud/talent/v4beta1/profile_service"
|
40
|
-
# client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
40
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
41
41
|
#
|
42
42
|
module ProfileService
|
43
43
|
end
|
@@ -39,15 +39,15 @@ module Google
|
|
39
39
|
##
|
40
40
|
# Configure the ProfileService Client class.
|
41
41
|
#
|
42
|
-
# See {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
42
|
+
# See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
45
|
# ## Example
|
46
46
|
#
|
47
47
|
# To modify the configuration for all ProfileService clients:
|
48
48
|
#
|
49
|
-
# Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
50
|
-
# config.timeout =
|
49
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
51
|
# end
|
52
52
|
#
|
53
53
|
# @yield [config] Configure the Client client.
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
110
110
|
# should be made on {Client.configure}.
|
111
111
|
#
|
112
|
-
# See {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
112
|
+
# See {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration}
|
113
113
|
# for a description of the configuration fields.
|
114
114
|
#
|
115
115
|
# @yield [config] Configure the Client client.
|
@@ -130,13 +130,13 @@ module Google
|
|
130
130
|
# To create a new ProfileService client with the default
|
131
131
|
# configuration:
|
132
132
|
#
|
133
|
-
# client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
133
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new
|
134
134
|
#
|
135
135
|
# To create a new ProfileService client with a custom
|
136
136
|
# configuration:
|
137
137
|
#
|
138
|
-
# client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
139
|
-
# config.timeout =
|
138
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
139
|
+
# config.timeout = 10.0
|
140
140
|
# end
|
141
141
|
#
|
142
142
|
# @yield [config] Configure the ProfileService client.
|
@@ -161,10 +161,11 @@ module Google
|
|
161
161
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
162
162
|
credentials = Credentials.new credentials, scope: @config.scope
|
163
163
|
end
|
164
|
-
@quota_project_id =
|
164
|
+
@quota_project_id = @config.quota_project
|
165
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
165
166
|
|
166
|
-
@profile_service_stub = Gapic::ServiceStub.new(
|
167
|
-
Google::Cloud::Talent::V4beta1::ProfileService::Stub,
|
167
|
+
@profile_service_stub = ::Gapic::ServiceStub.new(
|
168
|
+
::Google::Cloud::Talent::V4beta1::ProfileService::Stub,
|
168
169
|
credentials: credentials,
|
169
170
|
endpoint: @config.endpoint,
|
170
171
|
channel_args: @config.channel_args,
|
@@ -179,12 +180,12 @@ module Google
|
|
179
180
|
#
|
180
181
|
# @overload list_profiles(request, options = nil)
|
181
182
|
# Pass arguments to `list_profiles` via a request object, either of type
|
182
|
-
# {Google::Cloud::Talent::V4beta1::ListProfilesRequest} or an equivalent Hash.
|
183
|
+
# {::Google::Cloud::Talent::V4beta1::ListProfilesRequest} or an equivalent Hash.
|
183
184
|
#
|
184
|
-
# @param request [Google::Cloud::Talent::V4beta1::ListProfilesRequest, Hash]
|
185
|
+
# @param request [::Google::Cloud::Talent::V4beta1::ListProfilesRequest, ::Hash]
|
185
186
|
# A request object representing the call parameters. Required. To specify no
|
186
187
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
187
|
-
# @param options [Gapic::CallOptions, Hash]
|
188
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
188
189
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
189
190
|
#
|
190
191
|
# @overload list_profiles(parent: nil, filter: nil, page_token: nil, page_size: nil, read_mask: nil)
|
@@ -192,12 +193,12 @@ module Google
|
|
192
193
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
193
194
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
194
195
|
#
|
195
|
-
# @param parent [String]
|
196
|
+
# @param parent [::String]
|
196
197
|
# Required. The resource name of the tenant under which the profile is created.
|
197
198
|
#
|
198
199
|
# The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
|
199
200
|
# "projects/foo/tenants/bar".
|
200
|
-
# @param filter [String]
|
201
|
+
# @param filter [::String]
|
201
202
|
# The filter string specifies the profiles to be enumerated.
|
202
203
|
#
|
203
204
|
# Supported operator: =, AND
|
@@ -215,16 +216,16 @@ module Google
|
|
215
216
|
#
|
216
217
|
# * externalId = "externalId-1"
|
217
218
|
# * groupId = "groupId-1"
|
218
|
-
# @param page_token [String]
|
219
|
+
# @param page_token [::String]
|
219
220
|
# The token that specifies the current offset (that is, starting result).
|
220
221
|
#
|
221
|
-
# Please set the value to {Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse.next_page_token} to
|
222
|
+
# Please set the value to {::Google::Cloud::Talent::V4beta1::ListProfilesResponse#next_page_token ListProfilesResponse.next_page_token} to
|
222
223
|
# continue the list.
|
223
|
-
# @param page_size [Integer]
|
224
|
+
# @param page_size [::Integer]
|
224
225
|
# The maximum number of profiles to be returned, at most 100.
|
225
226
|
#
|
226
227
|
# Default is 100 unless a positive number smaller than 100 is specified.
|
227
|
-
# @param read_mask [Google::Protobuf::FieldMask, Hash]
|
228
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
228
229
|
# A field mask to specify the profile fields to be listed in response.
|
229
230
|
# All fields are listed if it is unset.
|
230
231
|
#
|
@@ -233,26 +234,26 @@ module Google
|
|
233
234
|
# * name
|
234
235
|
#
|
235
236
|
# @yield [response, operation] Access the result along with the RPC operation
|
236
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
237
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
237
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Profile>]
|
238
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
238
239
|
#
|
239
|
-
# @return [Gapic::PagedEnumerable
|
240
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Profile>]
|
240
241
|
#
|
241
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
242
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
242
243
|
#
|
243
244
|
def list_profiles request, options = nil
|
244
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
245
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
245
246
|
|
246
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::ListProfilesRequest
|
247
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListProfilesRequest
|
247
248
|
|
248
249
|
# Converts hash and nil to an options object
|
249
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
250
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
250
251
|
|
251
252
|
# Customize the options with defaults
|
252
253
|
metadata = @config.rpcs.list_profiles.metadata.to_h
|
253
254
|
|
254
255
|
# Set x-goog-api-client and x-goog-user-project headers
|
255
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
256
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
256
257
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
257
258
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
258
259
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -270,12 +271,12 @@ module Google
|
|
270
271
|
retry_policy: @config.retry_policy
|
271
272
|
|
272
273
|
@profile_service_stub.call_rpc :list_profiles, request, options: options do |response, operation|
|
273
|
-
response = Gapic::PagedEnumerable.new @profile_service_stub, :list_profiles, request, response, operation, options
|
274
|
+
response = ::Gapic::PagedEnumerable.new @profile_service_stub, :list_profiles, request, response, operation, options
|
274
275
|
yield response, operation if block_given?
|
275
276
|
return response
|
276
277
|
end
|
277
|
-
rescue GRPC::BadStatus => e
|
278
|
-
raise Google::Cloud::Error.from_error(e)
|
278
|
+
rescue ::GRPC::BadStatus => e
|
279
|
+
raise ::Google::Cloud::Error.from_error(e)
|
279
280
|
end
|
280
281
|
|
281
282
|
##
|
@@ -283,12 +284,12 @@ module Google
|
|
283
284
|
#
|
284
285
|
# @overload create_profile(request, options = nil)
|
285
286
|
# Pass arguments to `create_profile` via a request object, either of type
|
286
|
-
# {Google::Cloud::Talent::V4beta1::CreateProfileRequest} or an equivalent Hash.
|
287
|
+
# {::Google::Cloud::Talent::V4beta1::CreateProfileRequest} or an equivalent Hash.
|
287
288
|
#
|
288
|
-
# @param request [Google::Cloud::Talent::V4beta1::CreateProfileRequest, Hash]
|
289
|
+
# @param request [::Google::Cloud::Talent::V4beta1::CreateProfileRequest, ::Hash]
|
289
290
|
# A request object representing the call parameters. Required. To specify no
|
290
291
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
291
|
-
# @param options [Gapic::CallOptions, Hash]
|
292
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
292
293
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
293
294
|
#
|
294
295
|
# @overload create_profile(parent: nil, profile: nil)
|
@@ -296,35 +297,35 @@ module Google
|
|
296
297
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
297
298
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
298
299
|
#
|
299
|
-
# @param parent [String]
|
300
|
+
# @param parent [::String]
|
300
301
|
# Required. The name of the tenant this profile belongs to.
|
301
302
|
#
|
302
303
|
# The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
|
303
304
|
# "projects/foo/tenants/bar".
|
304
|
-
# @param profile [Google::Cloud::Talent::V4beta1::Profile, Hash]
|
305
|
+
# @param profile [::Google::Cloud::Talent::V4beta1::Profile, ::Hash]
|
305
306
|
# Required. The profile to be created.
|
306
307
|
#
|
307
308
|
# @yield [response, operation] Access the result along with the RPC operation
|
308
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
|
309
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
309
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
|
310
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
310
311
|
#
|
311
|
-
# @return [Google::Cloud::Talent::V4beta1::Profile]
|
312
|
+
# @return [::Google::Cloud::Talent::V4beta1::Profile]
|
312
313
|
#
|
313
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
314
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
314
315
|
#
|
315
316
|
def create_profile request, options = nil
|
316
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
317
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
317
318
|
|
318
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::CreateProfileRequest
|
319
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateProfileRequest
|
319
320
|
|
320
321
|
# Converts hash and nil to an options object
|
321
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
322
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
322
323
|
|
323
324
|
# Customize the options with defaults
|
324
325
|
metadata = @config.rpcs.create_profile.metadata.to_h
|
325
326
|
|
326
327
|
# Set x-goog-api-client and x-goog-user-project headers
|
327
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
328
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
328
329
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
329
330
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
330
331
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -345,8 +346,8 @@ module Google
|
|
345
346
|
yield response, operation if block_given?
|
346
347
|
return response
|
347
348
|
end
|
348
|
-
rescue GRPC::BadStatus => e
|
349
|
-
raise Google::Cloud::Error.from_error(e)
|
349
|
+
rescue ::GRPC::BadStatus => e
|
350
|
+
raise ::Google::Cloud::Error.from_error(e)
|
350
351
|
end
|
351
352
|
|
352
353
|
##
|
@@ -354,12 +355,12 @@ module Google
|
|
354
355
|
#
|
355
356
|
# @overload get_profile(request, options = nil)
|
356
357
|
# Pass arguments to `get_profile` via a request object, either of type
|
357
|
-
# {Google::Cloud::Talent::V4beta1::GetProfileRequest} or an equivalent Hash.
|
358
|
+
# {::Google::Cloud::Talent::V4beta1::GetProfileRequest} or an equivalent Hash.
|
358
359
|
#
|
359
|
-
# @param request [Google::Cloud::Talent::V4beta1::GetProfileRequest, Hash]
|
360
|
+
# @param request [::Google::Cloud::Talent::V4beta1::GetProfileRequest, ::Hash]
|
360
361
|
# A request object representing the call parameters. Required. To specify no
|
361
362
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
362
|
-
# @param options [Gapic::CallOptions, Hash]
|
363
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
363
364
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
364
365
|
#
|
365
366
|
# @overload get_profile(name: nil)
|
@@ -367,7 +368,7 @@ module Google
|
|
367
368
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
368
369
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
369
370
|
#
|
370
|
-
# @param name [String]
|
371
|
+
# @param name [::String]
|
371
372
|
# Required. Resource name of the profile to get.
|
372
373
|
#
|
373
374
|
# The format is
|
@@ -375,26 +376,26 @@ module Google
|
|
375
376
|
# example, "projects/foo/tenants/bar/profiles/baz".
|
376
377
|
#
|
377
378
|
# @yield [response, operation] Access the result along with the RPC operation
|
378
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
|
379
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
379
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
|
380
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
380
381
|
#
|
381
|
-
# @return [Google::Cloud::Talent::V4beta1::Profile]
|
382
|
+
# @return [::Google::Cloud::Talent::V4beta1::Profile]
|
382
383
|
#
|
383
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
384
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
384
385
|
#
|
385
386
|
def get_profile request, options = nil
|
386
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
387
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
387
388
|
|
388
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::GetProfileRequest
|
389
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetProfileRequest
|
389
390
|
|
390
391
|
# Converts hash and nil to an options object
|
391
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
392
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
392
393
|
|
393
394
|
# Customize the options with defaults
|
394
395
|
metadata = @config.rpcs.get_profile.metadata.to_h
|
395
396
|
|
396
397
|
# Set x-goog-api-client and x-goog-user-project headers
|
397
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
398
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
398
399
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
399
400
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
400
401
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -415,8 +416,8 @@ module Google
|
|
415
416
|
yield response, operation if block_given?
|
416
417
|
return response
|
417
418
|
end
|
418
|
-
rescue GRPC::BadStatus => e
|
419
|
-
raise Google::Cloud::Error.from_error(e)
|
419
|
+
rescue ::GRPC::BadStatus => e
|
420
|
+
raise ::Google::Cloud::Error.from_error(e)
|
420
421
|
end
|
421
422
|
|
422
423
|
##
|
@@ -424,12 +425,12 @@ module Google
|
|
424
425
|
#
|
425
426
|
# @overload update_profile(request, options = nil)
|
426
427
|
# Pass arguments to `update_profile` via a request object, either of type
|
427
|
-
# {Google::Cloud::Talent::V4beta1::UpdateProfileRequest} or an equivalent Hash.
|
428
|
+
# {::Google::Cloud::Talent::V4beta1::UpdateProfileRequest} or an equivalent Hash.
|
428
429
|
#
|
429
|
-
# @param request [Google::Cloud::Talent::V4beta1::UpdateProfileRequest, Hash]
|
430
|
+
# @param request [::Google::Cloud::Talent::V4beta1::UpdateProfileRequest, ::Hash]
|
430
431
|
# A request object representing the call parameters. Required. To specify no
|
431
432
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
432
|
-
# @param options [Gapic::CallOptions, Hash]
|
433
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
433
434
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
434
435
|
#
|
435
436
|
# @overload update_profile(profile: nil, update_mask: nil)
|
@@ -437,34 +438,34 @@ module Google
|
|
437
438
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
438
439
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
439
440
|
#
|
440
|
-
# @param profile [Google::Cloud::Talent::V4beta1::Profile, Hash]
|
441
|
+
# @param profile [::Google::Cloud::Talent::V4beta1::Profile, ::Hash]
|
441
442
|
# Required. Profile to be updated.
|
442
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
443
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
443
444
|
# A field mask to specify the profile fields to update.
|
444
445
|
#
|
445
446
|
# A full update is performed if it is unset.
|
446
447
|
#
|
447
448
|
# @yield [response, operation] Access the result along with the RPC operation
|
448
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::Profile]
|
449
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
449
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::Profile]
|
450
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
450
451
|
#
|
451
|
-
# @return [Google::Cloud::Talent::V4beta1::Profile]
|
452
|
+
# @return [::Google::Cloud::Talent::V4beta1::Profile]
|
452
453
|
#
|
453
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
454
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
454
455
|
#
|
455
456
|
def update_profile request, options = nil
|
456
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
457
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
458
|
|
458
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::UpdateProfileRequest
|
459
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateProfileRequest
|
459
460
|
|
460
461
|
# Converts hash and nil to an options object
|
461
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
462
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
462
463
|
|
463
464
|
# Customize the options with defaults
|
464
465
|
metadata = @config.rpcs.update_profile.metadata.to_h
|
465
466
|
|
466
467
|
# Set x-goog-api-client and x-goog-user-project headers
|
467
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
468
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
468
469
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
469
470
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
470
471
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -485,8 +486,8 @@ module Google
|
|
485
486
|
yield response, operation if block_given?
|
486
487
|
return response
|
487
488
|
end
|
488
|
-
rescue GRPC::BadStatus => e
|
489
|
-
raise Google::Cloud::Error.from_error(e)
|
489
|
+
rescue ::GRPC::BadStatus => e
|
490
|
+
raise ::Google::Cloud::Error.from_error(e)
|
490
491
|
end
|
491
492
|
|
492
493
|
##
|
@@ -496,12 +497,12 @@ module Google
|
|
496
497
|
#
|
497
498
|
# @overload delete_profile(request, options = nil)
|
498
499
|
# Pass arguments to `delete_profile` via a request object, either of type
|
499
|
-
# {Google::Cloud::Talent::V4beta1::DeleteProfileRequest} or an equivalent Hash.
|
500
|
+
# {::Google::Cloud::Talent::V4beta1::DeleteProfileRequest} or an equivalent Hash.
|
500
501
|
#
|
501
|
-
# @param request [Google::Cloud::Talent::V4beta1::DeleteProfileRequest, Hash]
|
502
|
+
# @param request [::Google::Cloud::Talent::V4beta1::DeleteProfileRequest, ::Hash]
|
502
503
|
# A request object representing the call parameters. Required. To specify no
|
503
504
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
504
|
-
# @param options [Gapic::CallOptions, Hash]
|
505
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
505
506
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
506
507
|
#
|
507
508
|
# @overload delete_profile(name: nil)
|
@@ -509,7 +510,7 @@ module Google
|
|
509
510
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
510
511
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
511
512
|
#
|
512
|
-
# @param name [String]
|
513
|
+
# @param name [::String]
|
513
514
|
# Required. Resource name of the profile to be deleted.
|
514
515
|
#
|
515
516
|
# The format is
|
@@ -517,26 +518,26 @@ module Google
|
|
517
518
|
# example, "projects/foo/tenants/bar/profiles/baz".
|
518
519
|
#
|
519
520
|
# @yield [response, operation] Access the result along with the RPC operation
|
520
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
521
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
521
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
522
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
522
523
|
#
|
523
|
-
# @return [Google::Protobuf::Empty]
|
524
|
+
# @return [::Google::Protobuf::Empty]
|
524
525
|
#
|
525
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
526
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
526
527
|
#
|
527
528
|
def delete_profile request, options = nil
|
528
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
529
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
529
530
|
|
530
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::DeleteProfileRequest
|
531
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteProfileRequest
|
531
532
|
|
532
533
|
# Converts hash and nil to an options object
|
533
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
534
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
534
535
|
|
535
536
|
# Customize the options with defaults
|
536
537
|
metadata = @config.rpcs.delete_profile.metadata.to_h
|
537
538
|
|
538
539
|
# Set x-goog-api-client and x-goog-user-project headers
|
539
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
540
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
540
541
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
541
542
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
542
543
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -557,8 +558,8 @@ module Google
|
|
557
558
|
yield response, operation if block_given?
|
558
559
|
return response
|
559
560
|
end
|
560
|
-
rescue GRPC::BadStatus => e
|
561
|
-
raise Google::Cloud::Error.from_error(e)
|
561
|
+
rescue ::GRPC::BadStatus => e
|
562
|
+
raise ::Google::Cloud::Error.from_error(e)
|
562
563
|
end
|
563
564
|
|
564
565
|
##
|
@@ -567,16 +568,16 @@ module Google
|
|
567
568
|
# For example, search by raw queries "software engineer in Mountain View" or
|
568
569
|
# search by structured filters (location filter, education filter, etc.).
|
569
570
|
#
|
570
|
-
# See {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} for more information.
|
571
|
+
# See {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} for more information.
|
571
572
|
#
|
572
573
|
# @overload search_profiles(request, options = nil)
|
573
574
|
# Pass arguments to `search_profiles` via a request object, either of type
|
574
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest} or an equivalent Hash.
|
575
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest} or an equivalent Hash.
|
575
576
|
#
|
576
|
-
# @param request [Google::Cloud::Talent::V4beta1::SearchProfilesRequest, Hash]
|
577
|
+
# @param request [::Google::Cloud::Talent::V4beta1::SearchProfilesRequest, ::Hash]
|
577
578
|
# A request object representing the call parameters. Required. To specify no
|
578
579
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
579
|
-
# @param options [Gapic::CallOptions, Hash]
|
580
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
580
581
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
581
582
|
#
|
582
583
|
# @overload search_profiles(parent: nil, request_metadata: nil, profile_query: nil, page_size: nil, page_token: nil, offset: nil, disable_spell_check: nil, order_by: nil, case_sensitive_sort: nil, histogram_queries: nil, result_set_id: nil, strict_keywords_search: nil)
|
@@ -584,45 +585,45 @@ module Google
|
|
584
585
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
585
586
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
586
587
|
#
|
587
|
-
# @param parent [String]
|
588
|
+
# @param parent [::String]
|
588
589
|
# Required. The resource name of the tenant to search within.
|
589
590
|
#
|
590
591
|
# The format is "projects/\\{project_id}/tenants/\\{tenant_id}". For example,
|
591
592
|
# "projects/foo/tenants/bar".
|
592
|
-
# @param request_metadata [Google::Cloud::Talent::V4beta1::RequestMetadata, Hash]
|
593
|
+
# @param request_metadata [::Google::Cloud::Talent::V4beta1::RequestMetadata, ::Hash]
|
593
594
|
# Required. The meta information collected about the profile search user. This is used
|
594
595
|
# to improve the search quality of the service. These values are provided by
|
595
596
|
# users, and must be precise and consistent.
|
596
|
-
# @param profile_query [Google::Cloud::Talent::V4beta1::ProfileQuery, Hash]
|
597
|
-
# Search query to execute. See {Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
598
|
-
# @param page_size [Integer]
|
597
|
+
# @param profile_query [::Google::Cloud::Talent::V4beta1::ProfileQuery, ::Hash]
|
598
|
+
# Search query to execute. See {::Google::Cloud::Talent::V4beta1::ProfileQuery ProfileQuery} for more details.
|
599
|
+
# @param page_size [::Integer]
|
599
600
|
# A limit on the number of profiles returned in the search results.
|
600
601
|
# A value above the default value 10 can increase search response time.
|
601
602
|
#
|
602
603
|
# The maximum value allowed is 100. Otherwise an error is thrown.
|
603
|
-
# @param page_token [String]
|
604
|
+
# @param page_token [::String]
|
604
605
|
# The pageToken, similar to offset enables users of the API to paginate
|
605
606
|
# through the search results. To retrieve the first page of results, set the
|
606
607
|
# pageToken to empty. The search response includes a
|
607
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken} field that can be
|
608
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse#next_page_token nextPageToken} field that can be
|
608
609
|
# used to populate the pageToken field for the next page of results. Using
|
609
610
|
# pageToken instead of offset increases the performance of the API,
|
610
611
|
# especially compared to larger offset values.
|
611
|
-
# @param offset [Integer]
|
612
|
+
# @param offset [::Integer]
|
612
613
|
# An integer that specifies the current offset (that is, starting result) in
|
613
|
-
# search results. This field is only considered if {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
|
614
|
+
# search results. This field is only considered if {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token} is unset.
|
614
615
|
#
|
615
616
|
# The maximum allowed value is 5000. Otherwise an error is thrown.
|
616
617
|
#
|
617
618
|
# For example, 0 means to search from the first profile, and 10 means to
|
618
619
|
# search from the 11th profile. This can be used for pagination, for example
|
619
620
|
# pageSize = 10 and offset = 10 means to search from the second page.
|
620
|
-
# @param disable_spell_check [Boolean]
|
621
|
+
# @param disable_spell_check [::Boolean]
|
621
622
|
# This flag controls the spell-check feature. If `false`, the
|
622
623
|
# service attempts to correct a misspelled query.
|
623
624
|
#
|
624
625
|
# For example, "enginee" is corrected to "engineer".
|
625
|
-
# @param order_by [String]
|
626
|
+
# @param order_by [::String]
|
626
627
|
# The criteria that determines how search results are sorted.
|
627
628
|
# Defaults is "relevance desc" if no value is specified.
|
628
629
|
#
|
@@ -630,25 +631,25 @@ module Google
|
|
630
631
|
#
|
631
632
|
# * "relevance desc": By descending relevance, as determined by the API
|
632
633
|
# algorithms.
|
633
|
-
# * "update_date desc": Sort by {Google::Cloud::Talent::V4beta1::Profile#update_time Profile.update_time} in descending order
|
634
|
+
# * "update_date desc": Sort by {::Google::Cloud::Talent::V4beta1::Profile#update_time Profile.update_time} in descending order
|
634
635
|
# (recently updated profiles first).
|
635
|
-
# * "create_date desc": Sort by {Google::Cloud::Talent::V4beta1::Profile#create_time Profile.create_time} in descending order
|
636
|
+
# * "create_date desc": Sort by {::Google::Cloud::Talent::V4beta1::Profile#create_time Profile.create_time} in descending order
|
636
637
|
# (recently created profiles first).
|
637
|
-
# * "first_name": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name} in
|
638
|
+
# * "first_name": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name} in
|
638
639
|
# ascending order.
|
639
|
-
# * "first_name desc": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name}
|
640
|
+
# * "first_name desc": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#given_name PersonName.PersonStructuredName.given_name}
|
640
641
|
# in descending order.
|
641
|
-
# * "last_name": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name} in
|
642
|
+
# * "last_name": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name} in
|
642
643
|
# ascending order.
|
643
|
-
# * "last_name desc": Sort by {Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name}
|
644
|
+
# * "last_name desc": Sort by {::Google::Cloud::Talent::V4beta1::PersonName::PersonStructuredName#family_name PersonName.PersonStructuredName.family_name}
|
644
645
|
# in ascending order.
|
645
|
-
# @param case_sensitive_sort [Boolean]
|
646
|
+
# @param case_sensitive_sort [::Boolean]
|
646
647
|
# When sort by field is based on alphabetical order, sort values case
|
647
648
|
# sensitively (based on ASCII) when the value is set to true. Default value
|
648
649
|
# is case in-sensitive sort (false).
|
649
|
-
# @param histogram_queries [Array
|
650
|
+
# @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
|
650
651
|
# A list of expressions specifies histogram requests against matching
|
651
|
-
# profiles for {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
652
|
+
# profiles for {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest}.
|
652
653
|
#
|
653
654
|
# The expression syntax looks like a function definition with parameters.
|
654
655
|
#
|
@@ -700,13 +701,13 @@ module Google
|
|
700
701
|
# * experience_in_months: experience in months. 0 means 0 month to 1 month
|
701
702
|
# (exclusive).
|
702
703
|
# * application_date: The application date specifies application start dates.
|
703
|
-
# See {Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
|
704
|
+
# See {::Google::Cloud::Talent::V4beta1::ApplicationDateFilter ApplicationDateFilter} for more details.
|
704
705
|
# * application_outcome_notes: The application outcome reason specifies the
|
705
706
|
# reasons behind the outcome of the job application.
|
706
|
-
# See {Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
|
707
|
+
# See {::Google::Cloud::Talent::V4beta1::ApplicationOutcomeNotesFilter ApplicationOutcomeNotesFilter} for more details.
|
707
708
|
# * application_job_title: The application job title specifies the job
|
708
709
|
# applied for in the application.
|
709
|
-
# See {Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
|
710
|
+
# See {::Google::Cloud::Talent::V4beta1::ApplicationJobFilter ApplicationJobFilter} for more details.
|
710
711
|
# * hirable_status: Hirable status specifies the profile's hirable status.
|
711
712
|
# * string_custom_attribute: String custom attributes. Values can be accessed
|
712
713
|
# via square bracket notation like string_custom_attribute["key1"].
|
@@ -721,28 +722,28 @@ module Google
|
|
721
722
|
# * count(string_custom_attribute["assigned_recruiter"])
|
722
723
|
# * count(numeric_custom_attribute["favorite_number"],
|
723
724
|
# [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
|
724
|
-
# @param result_set_id [String]
|
725
|
+
# @param result_set_id [::String]
|
725
726
|
# An id that uniquely identifies the result set of a
|
726
|
-
# {Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles} call. The id should be
|
727
|
+
# {::Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles} call. The id should be
|
727
728
|
# retrieved from the
|
728
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} message returned from a previous
|
729
|
-
# invocation of {Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles}.
|
729
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} message returned from a previous
|
730
|
+
# invocation of {::Google::Cloud::Talent::V4beta1::ProfileService::Client#search_profiles SearchProfiles}.
|
730
731
|
#
|
731
732
|
# A result set is an ordered list of search results.
|
732
733
|
#
|
733
734
|
# If this field is not set, a new result set is computed based on the
|
734
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query}. A new {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} is returned as a handle to
|
735
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query}. A new {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} is returned as a handle to
|
735
736
|
# access this result set.
|
736
737
|
#
|
737
738
|
# If this field is set, the service will ignore the resource and
|
738
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query} values, and simply retrieve a page of results from the
|
739
|
-
# corresponding result set. In this case, one and only one of {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
|
740
|
-
# or {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#offset offset} must be set.
|
741
|
-
#
|
742
|
-
# A typical use case is to invoke {Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} without this
|
743
|
-
# field, then use the resulting {Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} in
|
744
|
-
# {Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} to page through the results.
|
745
|
-
# @param strict_keywords_search [Boolean]
|
739
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#profile_query profile_query} values, and simply retrieve a page of results from the
|
740
|
+
# corresponding result set. In this case, one and only one of {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#page_token page_token}
|
741
|
+
# or {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#offset offset} must be set.
|
742
|
+
#
|
743
|
+
# A typical use case is to invoke {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest SearchProfilesRequest} without this
|
744
|
+
# field, then use the resulting {::Google::Cloud::Talent::V4beta1::SearchProfilesRequest#result_set_id result_set_id} in
|
745
|
+
# {::Google::Cloud::Talent::V4beta1::SearchProfilesResponse SearchProfilesResponse} to page through the results.
|
746
|
+
# @param strict_keywords_search [::Boolean]
|
746
747
|
# This flag is used to indicate whether the service will attempt to
|
747
748
|
# understand synonyms and terms related to the search query or treat the
|
748
749
|
# query "as is" when it generates a set of results. By default this flag is
|
@@ -758,26 +759,26 @@ module Google
|
|
758
759
|
# longer boolean strings.
|
759
760
|
#
|
760
761
|
# @yield [response, operation] Access the result along with the RPC operation
|
761
|
-
# @yieldparam response [Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
|
762
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
762
|
+
# @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
|
763
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
763
764
|
#
|
764
|
-
# @return [Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
|
765
|
+
# @return [::Google::Cloud::Talent::V4beta1::SearchProfilesResponse]
|
765
766
|
#
|
766
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
767
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
767
768
|
#
|
768
769
|
def search_profiles request, options = nil
|
769
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
770
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
770
771
|
|
771
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Talent::V4beta1::SearchProfilesRequest
|
772
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchProfilesRequest
|
772
773
|
|
773
774
|
# Converts hash and nil to an options object
|
774
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
775
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
775
776
|
|
776
777
|
# Customize the options with defaults
|
777
778
|
metadata = @config.rpcs.search_profiles.metadata.to_h
|
778
779
|
|
779
780
|
# Set x-goog-api-client and x-goog-user-project headers
|
780
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
781
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
781
782
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
782
783
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
783
784
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -798,8 +799,8 @@ module Google
|
|
798
799
|
yield response, operation if block_given?
|
799
800
|
return response
|
800
801
|
end
|
801
|
-
rescue GRPC::BadStatus => e
|
802
|
-
raise Google::Cloud::Error.from_error(e)
|
802
|
+
rescue ::GRPC::BadStatus => e
|
803
|
+
raise ::Google::Cloud::Error.from_error(e)
|
803
804
|
end
|
804
805
|
|
805
806
|
##
|
@@ -809,7 +810,7 @@ module Google
|
|
809
810
|
# providing control over timeouts, retry behavior, logging, transport
|
810
811
|
# parameters, and other low-level controls. Certain parameters can also be
|
811
812
|
# applied individually to specific RPCs. See
|
812
|
-
# {Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration::Rpcs}
|
813
|
+
# {::Google::Cloud::Talent::V4beta1::ProfileService::Client::Configuration::Rpcs}
|
813
814
|
# for a list of RPCs that can be configured independently.
|
814
815
|
#
|
815
816
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -820,22 +821,22 @@ module Google
|
|
820
821
|
# To modify the global config, setting the timeout for list_profiles
|
821
822
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
822
823
|
#
|
823
|
-
# Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
824
|
-
# config.timeout =
|
825
|
-
# config.rpcs.list_profiles.timeout =
|
824
|
+
# ::Google::Cloud::Talent::V4beta1::ProfileService::Client.configure do |config|
|
825
|
+
# config.timeout = 10.0
|
826
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
826
827
|
# end
|
827
828
|
#
|
828
829
|
# To apply the above configuration only to a new client:
|
829
830
|
#
|
830
|
-
# client = Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
831
|
-
# config.timeout =
|
832
|
-
# config.rpcs.list_profiles.timeout =
|
831
|
+
# client = ::Google::Cloud::Talent::V4beta1::ProfileService::Client.new do |config|
|
832
|
+
# config.timeout = 10.0
|
833
|
+
# config.rpcs.list_profiles.timeout = 20.0
|
833
834
|
# end
|
834
835
|
#
|
835
836
|
# @!attribute [rw] endpoint
|
836
837
|
# The hostname or hostname:port of the service endpoint.
|
837
838
|
# Defaults to `"jobs.googleapis.com"`.
|
838
|
-
# @return [String]
|
839
|
+
# @return [::String]
|
839
840
|
# @!attribute [rw] credentials
|
840
841
|
# Credentials to send with calls. You may provide any of the following types:
|
841
842
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -847,29 +848,29 @@ module Google
|
|
847
848
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
848
849
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
849
850
|
# * (`nil`) indicating no credentials
|
850
|
-
# @return [Object]
|
851
|
+
# @return [::Object]
|
851
852
|
# @!attribute [rw] scope
|
852
853
|
# The OAuth scopes
|
853
|
-
# @return [Array
|
854
|
+
# @return [::Array<::String>]
|
854
855
|
# @!attribute [rw] lib_name
|
855
856
|
# The library name as recorded in instrumentation and logging
|
856
|
-
# @return [String]
|
857
|
+
# @return [::String]
|
857
858
|
# @!attribute [rw] lib_version
|
858
859
|
# The library version as recorded in instrumentation and logging
|
859
|
-
# @return [String]
|
860
|
+
# @return [::String]
|
860
861
|
# @!attribute [rw] channel_args
|
861
862
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
862
863
|
# `GRPC::Core::Channel` object is provided as the credential.
|
863
|
-
# @return [Hash]
|
864
|
+
# @return [::Hash]
|
864
865
|
# @!attribute [rw] interceptors
|
865
866
|
# An array of interceptors that are run before calls are executed.
|
866
|
-
# @return [Array
|
867
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
867
868
|
# @!attribute [rw] timeout
|
868
|
-
# The call timeout in
|
869
|
-
# @return [Numeric]
|
869
|
+
# The call timeout in seconds.
|
870
|
+
# @return [::Numeric]
|
870
871
|
# @!attribute [rw] metadata
|
871
872
|
# Additional gRPC headers to be sent with the call.
|
872
|
-
# @return [Hash{Symbol
|
873
|
+
# @return [::Hash{::Symbol=>::String}]
|
873
874
|
# @!attribute [rw] retry_policy
|
874
875
|
# The retry policy. The value is a hash with the following keys:
|
875
876
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -877,25 +878,29 @@ module Google
|
|
877
878
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
878
879
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
879
880
|
# trigger a retry.
|
880
|
-
# @return [Hash]
|
881
|
+
# @return [::Hash]
|
882
|
+
# @!attribute [rw] quota_project
|
883
|
+
# A separate project against which to charge quota.
|
884
|
+
# @return [::String]
|
881
885
|
#
|
882
886
|
class Configuration
|
883
|
-
extend Gapic::Config
|
887
|
+
extend ::Gapic::Config
|
884
888
|
|
885
|
-
config_attr :endpoint,
|
886
|
-
config_attr :credentials,
|
889
|
+
config_attr :endpoint, "jobs.googleapis.com", ::String
|
890
|
+
config_attr :credentials, nil do |value|
|
887
891
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
888
892
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
889
893
|
allowed.any? { |klass| klass === value }
|
890
894
|
end
|
891
|
-
config_attr :scope,
|
892
|
-
config_attr :lib_name,
|
893
|
-
config_attr :lib_version,
|
894
|
-
config_attr(:channel_args,
|
895
|
-
config_attr :interceptors,
|
896
|
-
config_attr :timeout,
|
897
|
-
config_attr :metadata,
|
898
|
-
config_attr :retry_policy,
|
895
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
896
|
+
config_attr :lib_name, nil, ::String, nil
|
897
|
+
config_attr :lib_version, nil, ::String, nil
|
898
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
899
|
+
config_attr :interceptors, nil, ::Array, nil
|
900
|
+
config_attr :timeout, nil, ::Numeric, nil
|
901
|
+
config_attr :metadata, nil, ::Hash, nil
|
902
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
903
|
+
config_attr :quota_project, nil, ::String, nil
|
899
904
|
|
900
905
|
# @private
|
901
906
|
def initialize parent_config = nil
|
@@ -911,7 +916,7 @@ module Google
|
|
911
916
|
def rpcs
|
912
917
|
@rpcs ||= begin
|
913
918
|
parent_rpcs = nil
|
914
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
919
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
915
920
|
Rpcs.new parent_rpcs
|
916
921
|
end
|
917
922
|
end
|
@@ -936,49 +941,49 @@ module Google
|
|
936
941
|
class Rpcs
|
937
942
|
##
|
938
943
|
# RPC-specific configuration for `list_profiles`
|
939
|
-
# @return [Gapic::Config::Method]
|
944
|
+
# @return [::Gapic::Config::Method]
|
940
945
|
#
|
941
946
|
attr_reader :list_profiles
|
942
947
|
##
|
943
948
|
# RPC-specific configuration for `create_profile`
|
944
|
-
# @return [Gapic::Config::Method]
|
949
|
+
# @return [::Gapic::Config::Method]
|
945
950
|
#
|
946
951
|
attr_reader :create_profile
|
947
952
|
##
|
948
953
|
# RPC-specific configuration for `get_profile`
|
949
|
-
# @return [Gapic::Config::Method]
|
954
|
+
# @return [::Gapic::Config::Method]
|
950
955
|
#
|
951
956
|
attr_reader :get_profile
|
952
957
|
##
|
953
958
|
# RPC-specific configuration for `update_profile`
|
954
|
-
# @return [Gapic::Config::Method]
|
959
|
+
# @return [::Gapic::Config::Method]
|
955
960
|
#
|
956
961
|
attr_reader :update_profile
|
957
962
|
##
|
958
963
|
# RPC-specific configuration for `delete_profile`
|
959
|
-
# @return [Gapic::Config::Method]
|
964
|
+
# @return [::Gapic::Config::Method]
|
960
965
|
#
|
961
966
|
attr_reader :delete_profile
|
962
967
|
##
|
963
968
|
# RPC-specific configuration for `search_profiles`
|
964
|
-
# @return [Gapic::Config::Method]
|
969
|
+
# @return [::Gapic::Config::Method]
|
965
970
|
#
|
966
971
|
attr_reader :search_profiles
|
967
972
|
|
968
973
|
# @private
|
969
974
|
def initialize parent_rpcs = nil
|
970
975
|
list_profiles_config = parent_rpcs&.list_profiles if parent_rpcs&.respond_to? :list_profiles
|
971
|
-
@list_profiles = Gapic::Config::Method.new list_profiles_config
|
976
|
+
@list_profiles = ::Gapic::Config::Method.new list_profiles_config
|
972
977
|
create_profile_config = parent_rpcs&.create_profile if parent_rpcs&.respond_to? :create_profile
|
973
|
-
@create_profile = Gapic::Config::Method.new create_profile_config
|
978
|
+
@create_profile = ::Gapic::Config::Method.new create_profile_config
|
974
979
|
get_profile_config = parent_rpcs&.get_profile if parent_rpcs&.respond_to? :get_profile
|
975
|
-
@get_profile = Gapic::Config::Method.new get_profile_config
|
980
|
+
@get_profile = ::Gapic::Config::Method.new get_profile_config
|
976
981
|
update_profile_config = parent_rpcs&.update_profile if parent_rpcs&.respond_to? :update_profile
|
977
|
-
@update_profile = Gapic::Config::Method.new update_profile_config
|
982
|
+
@update_profile = ::Gapic::Config::Method.new update_profile_config
|
978
983
|
delete_profile_config = parent_rpcs&.delete_profile if parent_rpcs&.respond_to? :delete_profile
|
979
|
-
@delete_profile = Gapic::Config::Method.new delete_profile_config
|
984
|
+
@delete_profile = ::Gapic::Config::Method.new delete_profile_config
|
980
985
|
search_profiles_config = parent_rpcs&.search_profiles if parent_rpcs&.respond_to? :search_profiles
|
981
|
-
@search_profiles = Gapic::Config::Method.new search_profiles_config
|
986
|
+
@search_profiles = ::Gapic::Config::Method.new search_profiles_config
|
982
987
|
|
983
988
|
yield self if block_given?
|
984
989
|
end
|