google-apis-jobs_v4 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,905 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module JobsV4
23
+ # Cloud Talent Solution API
24
+ #
25
+ # Cloud Talent Solution provides the capability to create, read, update, and
26
+ # delete job postings, as well as search jobs based on keywords and filters.
27
+ #
28
+ # @example
29
+ # require 'google/apis/jobs_v4'
30
+ #
31
+ # Jobs = Google::Apis::JobsV4 # Alias the module
32
+ # service = Jobs::CloudTalentSolutionService.new
33
+ #
34
+ # @see https://cloud.google.com/talent-solution/job-search/docs/
35
+ class CloudTalentSolutionService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://jobs.googleapis.com/', '',
48
+ client_name: 'google-apis-jobs_v4',
49
+ client_version: Google::Apis::JobsV4::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # Completes the specified prefix with keyword suggestions. Intended for use by a
54
+ # job search auto-complete search box.
55
+ # @param [String] tenant
56
+ # Required. Resource name of tenant the completion is performed within. The
57
+ # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/
58
+ # foo/tenants/bar".
59
+ # @param [String] company
60
+ # If provided, restricts completion to specified company. The format is "
61
+ # projects/`project_id`/tenants/`tenant_id`/companies/`company_id`", for example,
62
+ # "projects/foo/tenants/bar/companies/baz".
63
+ # @param [Array<String>, String] language_codes
64
+ # The list of languages of the query. This is the BCP-47 language code, such as "
65
+ # en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages]
66
+ # (https://tools.ietf.org/html/bcp47). The maximum number of allowed characters
67
+ # is 255.
68
+ # @param [Fixnum] page_size
69
+ # Required. Completion result count. The maximum allowed page size is 10.
70
+ # @param [String] query
71
+ # Required. The query used to generate suggestions. The maximum number of
72
+ # allowed characters is 255.
73
+ # @param [String] scope
74
+ # The scope of the completion. The defaults is CompletionScope.PUBLIC.
75
+ # @param [String] type
76
+ # The completion topic. The default is CompletionType.COMBINED.
77
+ # @param [String] fields
78
+ # Selector specifying which fields to include in a partial response.
79
+ # @param [String] quota_user
80
+ # Available to use for quota purposes for server-side applications. Can be any
81
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
82
+ # @param [Google::Apis::RequestOptions] options
83
+ # Request-specific options
84
+ #
85
+ # @yield [result, err] Result & error if block supplied
86
+ # @yieldparam result [Google::Apis::JobsV4::CompleteQueryResponse] parsed result object
87
+ # @yieldparam err [StandardError] error object if request failed
88
+ #
89
+ # @return [Google::Apis::JobsV4::CompleteQueryResponse]
90
+ #
91
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
92
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
93
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
94
+ def complete_project_tenant_query(tenant, company: nil, language_codes: nil, page_size: nil, query: nil, scope: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
95
+ command = make_simple_command(:get, 'v4/{+tenant}:completeQuery', options)
96
+ command.response_representation = Google::Apis::JobsV4::CompleteQueryResponse::Representation
97
+ command.response_class = Google::Apis::JobsV4::CompleteQueryResponse
98
+ command.params['tenant'] = tenant unless tenant.nil?
99
+ command.query['company'] = company unless company.nil?
100
+ command.query['languageCodes'] = language_codes unless language_codes.nil?
101
+ command.query['pageSize'] = page_size unless page_size.nil?
102
+ command.query['query'] = query unless query.nil?
103
+ command.query['scope'] = scope unless scope.nil?
104
+ command.query['type'] = type unless type.nil?
105
+ command.query['fields'] = fields unless fields.nil?
106
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
107
+ execute_or_queue_command(command, &block)
108
+ end
109
+
110
+ # Creates a new tenant entity.
111
+ # @param [String] parent
112
+ # Required. Resource name of the project under which the tenant is created. The
113
+ # format is "projects/`project_id`", for example, "projects/foo".
114
+ # @param [Google::Apis::JobsV4::Tenant] tenant_object
115
+ # @param [String] fields
116
+ # Selector specifying which fields to include in a partial response.
117
+ # @param [String] quota_user
118
+ # Available to use for quota purposes for server-side applications. Can be any
119
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
120
+ # @param [Google::Apis::RequestOptions] options
121
+ # Request-specific options
122
+ #
123
+ # @yield [result, err] Result & error if block supplied
124
+ # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object
125
+ # @yieldparam err [StandardError] error object if request failed
126
+ #
127
+ # @return [Google::Apis::JobsV4::Tenant]
128
+ #
129
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
130
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
131
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
132
+ def create_project_tenant(parent, tenant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
133
+ command = make_simple_command(:post, 'v4/{+parent}/tenants', options)
134
+ command.request_representation = Google::Apis::JobsV4::Tenant::Representation
135
+ command.request_object = tenant_object
136
+ command.response_representation = Google::Apis::JobsV4::Tenant::Representation
137
+ command.response_class = Google::Apis::JobsV4::Tenant
138
+ command.params['parent'] = parent unless parent.nil?
139
+ command.query['fields'] = fields unless fields.nil?
140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ execute_or_queue_command(command, &block)
142
+ end
143
+
144
+ # Deletes specified tenant.
145
+ # @param [String] name
146
+ # Required. The resource name of the tenant to be deleted. The format is "
147
+ # projects/`project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/
148
+ # bar".
149
+ # @param [String] fields
150
+ # Selector specifying which fields to include in a partial response.
151
+ # @param [String] quota_user
152
+ # Available to use for quota purposes for server-side applications. Can be any
153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
154
+ # @param [Google::Apis::RequestOptions] options
155
+ # Request-specific options
156
+ #
157
+ # @yield [result, err] Result & error if block supplied
158
+ # @yieldparam result [Google::Apis::JobsV4::Empty] parsed result object
159
+ # @yieldparam err [StandardError] error object if request failed
160
+ #
161
+ # @return [Google::Apis::JobsV4::Empty]
162
+ #
163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
166
+ def delete_project_tenant(name, fields: nil, quota_user: nil, options: nil, &block)
167
+ command = make_simple_command(:delete, 'v4/{+name}', options)
168
+ command.response_representation = Google::Apis::JobsV4::Empty::Representation
169
+ command.response_class = Google::Apis::JobsV4::Empty
170
+ command.params['name'] = name unless name.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Retrieves specified tenant.
177
+ # @param [String] name
178
+ # Required. The resource name of the tenant to be retrieved. The format is "
179
+ # projects/`project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/
180
+ # bar".
181
+ # @param [String] fields
182
+ # Selector specifying which fields to include in a partial response.
183
+ # @param [String] quota_user
184
+ # Available to use for quota purposes for server-side applications. Can be any
185
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
186
+ # @param [Google::Apis::RequestOptions] options
187
+ # Request-specific options
188
+ #
189
+ # @yield [result, err] Result & error if block supplied
190
+ # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object
191
+ # @yieldparam err [StandardError] error object if request failed
192
+ #
193
+ # @return [Google::Apis::JobsV4::Tenant]
194
+ #
195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
198
+ def get_project_tenant(name, fields: nil, quota_user: nil, options: nil, &block)
199
+ command = make_simple_command(:get, 'v4/{+name}', options)
200
+ command.response_representation = Google::Apis::JobsV4::Tenant::Representation
201
+ command.response_class = Google::Apis::JobsV4::Tenant
202
+ command.params['name'] = name unless name.nil?
203
+ command.query['fields'] = fields unless fields.nil?
204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Lists all tenants associated with the project.
209
+ # @param [String] parent
210
+ # Required. Resource name of the project under which the tenant is created. The
211
+ # format is "projects/`project_id`", for example, "projects/foo".
212
+ # @param [Fixnum] page_size
213
+ # The maximum number of tenants to be returned, at most 100. Default is 100 if a
214
+ # non-positive number is provided.
215
+ # @param [String] page_token
216
+ # The starting indicator from which to return results.
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::JobsV4::ListTenantsResponse] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::JobsV4::ListTenantsResponse]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def list_project_tenants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
235
+ command = make_simple_command(:get, 'v4/{+parent}/tenants', options)
236
+ command.response_representation = Google::Apis::JobsV4::ListTenantsResponse::Representation
237
+ command.response_class = Google::Apis::JobsV4::ListTenantsResponse
238
+ command.params['parent'] = parent unless parent.nil?
239
+ command.query['pageSize'] = page_size unless page_size.nil?
240
+ command.query['pageToken'] = page_token unless page_token.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
243
+ execute_or_queue_command(command, &block)
244
+ end
245
+
246
+ # Updates specified tenant.
247
+ # @param [String] name
248
+ # Required during tenant update. The resource name for a tenant. This is
249
+ # generated by the service when a tenant is created. The format is "projects/`
250
+ # project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/bar".
251
+ # @param [Google::Apis::JobsV4::Tenant] tenant_object
252
+ # @param [String] update_mask
253
+ # Strongly recommended for the best service experience. If update_mask is
254
+ # provided, only the specified fields in tenant are updated. Otherwise all the
255
+ # fields are updated. A field mask to specify the tenant fields to be updated.
256
+ # Only top level fields of Tenant are supported.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::JobsV4::Tenant]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def patch_project_tenant(name, tenant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:patch, 'v4/{+name}', options)
276
+ command.request_representation = Google::Apis::JobsV4::Tenant::Representation
277
+ command.request_object = tenant_object
278
+ command.response_representation = Google::Apis::JobsV4::Tenant::Representation
279
+ command.response_class = Google::Apis::JobsV4::Tenant
280
+ command.params['name'] = name unless name.nil?
281
+ command.query['updateMask'] = update_mask unless update_mask.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ # Report events issued when end user interacts with customer's application that
288
+ # uses Cloud Talent Solution. You may inspect the created events in [self
289
+ # service tools](https://console.cloud.google.com/talent-solution/overview). [
290
+ # Learn more](https://cloud.google.com/talent-solution/docs/management-tools)
291
+ # about self service tools.
292
+ # @param [String] parent
293
+ # Required. Resource name of the tenant under which the event is created. The
294
+ # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/
295
+ # foo/tenants/bar".
296
+ # @param [Google::Apis::JobsV4::ClientEvent] client_event_object
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
299
+ # @param [String] quota_user
300
+ # Available to use for quota purposes for server-side applications. Can be any
301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
302
+ # @param [Google::Apis::RequestOptions] options
303
+ # Request-specific options
304
+ #
305
+ # @yield [result, err] Result & error if block supplied
306
+ # @yieldparam result [Google::Apis::JobsV4::ClientEvent] parsed result object
307
+ # @yieldparam err [StandardError] error object if request failed
308
+ #
309
+ # @return [Google::Apis::JobsV4::ClientEvent]
310
+ #
311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
314
+ def create_project_tenant_client_event(parent, client_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
+ command = make_simple_command(:post, 'v4/{+parent}/clientEvents', options)
316
+ command.request_representation = Google::Apis::JobsV4::ClientEvent::Representation
317
+ command.request_object = client_event_object
318
+ command.response_representation = Google::Apis::JobsV4::ClientEvent::Representation
319
+ command.response_class = Google::Apis::JobsV4::ClientEvent
320
+ command.params['parent'] = parent unless parent.nil?
321
+ command.query['fields'] = fields unless fields.nil?
322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
323
+ execute_or_queue_command(command, &block)
324
+ end
325
+
326
+ # Creates a new company entity.
327
+ # @param [String] parent
328
+ # Required. Resource name of the tenant under which the company is created. The
329
+ # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/
330
+ # foo/tenants/bar".
331
+ # @param [Google::Apis::JobsV4::Company] company_object
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::JobsV4::Company]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def create_project_tenant_company(parent, company_object = nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:post, 'v4/{+parent}/companies', options)
351
+ command.request_representation = Google::Apis::JobsV4::Company::Representation
352
+ command.request_object = company_object
353
+ command.response_representation = Google::Apis::JobsV4::Company::Representation
354
+ command.response_class = Google::Apis::JobsV4::Company
355
+ command.params['parent'] = parent unless parent.nil?
356
+ command.query['fields'] = fields unless fields.nil?
357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
358
+ execute_or_queue_command(command, &block)
359
+ end
360
+
361
+ # Deletes specified company. Prerequisite: The company has no jobs associated
362
+ # with it.
363
+ # @param [String] name
364
+ # Required. The resource name of the company to be deleted. The format is "
365
+ # projects/`project_id`/tenants/`tenant_id`/companies/`company_id`", for example,
366
+ # "projects/foo/tenants/bar/companies/baz".
367
+ # @param [String] fields
368
+ # Selector specifying which fields to include in a partial response.
369
+ # @param [String] quota_user
370
+ # Available to use for quota purposes for server-side applications. Can be any
371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
372
+ # @param [Google::Apis::RequestOptions] options
373
+ # Request-specific options
374
+ #
375
+ # @yield [result, err] Result & error if block supplied
376
+ # @yieldparam result [Google::Apis::JobsV4::Empty] parsed result object
377
+ # @yieldparam err [StandardError] error object if request failed
378
+ #
379
+ # @return [Google::Apis::JobsV4::Empty]
380
+ #
381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
384
+ def delete_project_tenant_company(name, fields: nil, quota_user: nil, options: nil, &block)
385
+ command = make_simple_command(:delete, 'v4/{+name}', options)
386
+ command.response_representation = Google::Apis::JobsV4::Empty::Representation
387
+ command.response_class = Google::Apis::JobsV4::Empty
388
+ command.params['name'] = name unless name.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
+ execute_or_queue_command(command, &block)
392
+ end
393
+
394
+ # Retrieves specified company.
395
+ # @param [String] name
396
+ # Required. The resource name of the company to be retrieved. The format is "
397
+ # projects/`project_id`/tenants/`tenant_id`/companies/`company_id`", for example,
398
+ # "projects/api-test-project/tenants/foo/companies/bar".
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # @param [Google::Apis::RequestOptions] options
405
+ # Request-specific options
406
+ #
407
+ # @yield [result, err] Result & error if block supplied
408
+ # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [Google::Apis::JobsV4::Company]
412
+ #
413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
416
+ def get_project_tenant_company(name, fields: nil, quota_user: nil, options: nil, &block)
417
+ command = make_simple_command(:get, 'v4/{+name}', options)
418
+ command.response_representation = Google::Apis::JobsV4::Company::Representation
419
+ command.response_class = Google::Apis::JobsV4::Company
420
+ command.params['name'] = name unless name.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Lists all companies associated with the project.
427
+ # @param [String] parent
428
+ # Required. Resource name of the tenant under which the company is created. The
429
+ # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/
430
+ # foo/tenants/bar".
431
+ # @param [Fixnum] page_size
432
+ # The maximum number of companies to be returned, at most 100. Default is 100 if
433
+ # a non-positive number is provided.
434
+ # @param [String] page_token
435
+ # The starting indicator from which to return results.
436
+ # @param [Boolean] require_open_jobs
437
+ # Set to true if the companies requested must have open jobs. Defaults to false.
438
+ # If true, at most page_size of companies are fetched, among which only those
439
+ # with open jobs are returned.
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # Available to use for quota purposes for server-side applications. Can be any
444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::JobsV4::ListCompaniesResponse] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::JobsV4::ListCompaniesResponse]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def list_project_tenant_companies(parent, page_size: nil, page_token: nil, require_open_jobs: nil, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:get, 'v4/{+parent}/companies', options)
459
+ command.response_representation = Google::Apis::JobsV4::ListCompaniesResponse::Representation
460
+ command.response_class = Google::Apis::JobsV4::ListCompaniesResponse
461
+ command.params['parent'] = parent unless parent.nil?
462
+ command.query['pageSize'] = page_size unless page_size.nil?
463
+ command.query['pageToken'] = page_token unless page_token.nil?
464
+ command.query['requireOpenJobs'] = require_open_jobs unless require_open_jobs.nil?
465
+ command.query['fields'] = fields unless fields.nil?
466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
467
+ execute_or_queue_command(command, &block)
468
+ end
469
+
470
+ # Updates specified company.
471
+ # @param [String] name
472
+ # Required during company update. The resource name for a company. This is
473
+ # generated by the service when a company is created. The format is "projects/`
474
+ # project_id`/tenants/`tenant_id`/companies/`company_id`", for example, "
475
+ # projects/foo/tenants/bar/companies/baz".
476
+ # @param [Google::Apis::JobsV4::Company] company_object
477
+ # @param [String] update_mask
478
+ # Strongly recommended for the best service experience. If update_mask is
479
+ # provided, only the specified fields in company are updated. Otherwise all the
480
+ # fields are updated. A field mask to specify the company fields to be updated.
481
+ # Only top level fields of Company are supported.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # @param [Google::Apis::RequestOptions] options
488
+ # Request-specific options
489
+ #
490
+ # @yield [result, err] Result & error if block supplied
491
+ # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object
492
+ # @yieldparam err [StandardError] error object if request failed
493
+ #
494
+ # @return [Google::Apis::JobsV4::Company]
495
+ #
496
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
497
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
498
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
499
+ def patch_project_tenant_company(name, company_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
500
+ command = make_simple_command(:patch, 'v4/{+name}', options)
501
+ command.request_representation = Google::Apis::JobsV4::Company::Representation
502
+ command.request_object = company_object
503
+ command.response_representation = Google::Apis::JobsV4::Company::Representation
504
+ command.response_class = Google::Apis::JobsV4::Company
505
+ command.params['name'] = name unless name.nil?
506
+ command.query['updateMask'] = update_mask unless update_mask.nil?
507
+ command.query['fields'] = fields unless fields.nil?
508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
509
+ execute_or_queue_command(command, &block)
510
+ end
511
+
512
+ # Begins executing a batch create jobs operation.
513
+ # @param [String] parent
514
+ # Required. The resource name of the tenant under which the job is created. The
515
+ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/
516
+ # foo/tenants/bar".
517
+ # @param [Google::Apis::JobsV4::BatchCreateJobsRequest] batch_create_jobs_request_object
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # Available to use for quota purposes for server-side applications. Can be any
522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
523
+ # @param [Google::Apis::RequestOptions] options
524
+ # Request-specific options
525
+ #
526
+ # @yield [result, err] Result & error if block supplied
527
+ # @yieldparam result [Google::Apis::JobsV4::Operation] parsed result object
528
+ # @yieldparam err [StandardError] error object if request failed
529
+ #
530
+ # @return [Google::Apis::JobsV4::Operation]
531
+ #
532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
535
+ def batch_project_tenant_job_create(parent, batch_create_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:post, 'v4/{+parent}/jobs:batchCreate', options)
537
+ command.request_representation = Google::Apis::JobsV4::BatchCreateJobsRequest::Representation
538
+ command.request_object = batch_create_jobs_request_object
539
+ command.response_representation = Google::Apis::JobsV4::Operation::Representation
540
+ command.response_class = Google::Apis::JobsV4::Operation
541
+ command.params['parent'] = parent unless parent.nil?
542
+ command.query['fields'] = fields unless fields.nil?
543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
544
+ execute_or_queue_command(command, &block)
545
+ end
546
+
547
+ # Begins executing a batch delete jobs operation.
548
+ # @param [String] parent
549
+ # Required. The resource name of the tenant under which the job is created. The
550
+ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/
551
+ # foo/tenants/bar". The parent of all of the jobs specified in `names` must
552
+ # match this field.
553
+ # @param [Google::Apis::JobsV4::BatchDeleteJobsRequest] batch_delete_jobs_request_object
554
+ # @param [String] fields
555
+ # Selector specifying which fields to include in a partial response.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::JobsV4::Operation] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::JobsV4::Operation]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def batch_project_tenant_job_delete(parent, batch_delete_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
572
+ command = make_simple_command(:post, 'v4/{+parent}/jobs:batchDelete', options)
573
+ command.request_representation = Google::Apis::JobsV4::BatchDeleteJobsRequest::Representation
574
+ command.request_object = batch_delete_jobs_request_object
575
+ command.response_representation = Google::Apis::JobsV4::Operation::Representation
576
+ command.response_class = Google::Apis::JobsV4::Operation
577
+ command.params['parent'] = parent unless parent.nil?
578
+ command.query['fields'] = fields unless fields.nil?
579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ # Begins executing a batch update jobs operation.
584
+ # @param [String] parent
585
+ # Required. The resource name of the tenant under which the job is created. The
586
+ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/
587
+ # foo/tenants/bar".
588
+ # @param [Google::Apis::JobsV4::BatchUpdateJobsRequest] batch_update_jobs_request_object
589
+ # @param [String] fields
590
+ # Selector specifying which fields to include in a partial response.
591
+ # @param [String] quota_user
592
+ # Available to use for quota purposes for server-side applications. Can be any
593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
594
+ # @param [Google::Apis::RequestOptions] options
595
+ # Request-specific options
596
+ #
597
+ # @yield [result, err] Result & error if block supplied
598
+ # @yieldparam result [Google::Apis::JobsV4::Operation] parsed result object
599
+ # @yieldparam err [StandardError] error object if request failed
600
+ #
601
+ # @return [Google::Apis::JobsV4::Operation]
602
+ #
603
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
604
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
605
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
606
+ def batch_project_tenant_job_update(parent, batch_update_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
607
+ command = make_simple_command(:post, 'v4/{+parent}/jobs:batchUpdate', options)
608
+ command.request_representation = Google::Apis::JobsV4::BatchUpdateJobsRequest::Representation
609
+ command.request_object = batch_update_jobs_request_object
610
+ command.response_representation = Google::Apis::JobsV4::Operation::Representation
611
+ command.response_class = Google::Apis::JobsV4::Operation
612
+ command.params['parent'] = parent unless parent.nil?
613
+ command.query['fields'] = fields unless fields.nil?
614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
615
+ execute_or_queue_command(command, &block)
616
+ end
617
+
618
+ # Creates a new job. Typically, the job becomes searchable within 10 seconds,
619
+ # but it may take up to 5 minutes.
620
+ # @param [String] parent
621
+ # Required. The resource name of the tenant under which the job is created. The
622
+ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/
623
+ # foo/tenants/bar".
624
+ # @param [Google::Apis::JobsV4::Job] job_object
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::JobsV4::Job]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def create_project_tenant_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'v4/{+parent}/jobs', options)
644
+ command.request_representation = Google::Apis::JobsV4::Job::Representation
645
+ command.request_object = job_object
646
+ command.response_representation = Google::Apis::JobsV4::Job::Representation
647
+ command.response_class = Google::Apis::JobsV4::Job
648
+ command.params['parent'] = parent unless parent.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
654
+ # Deletes the specified job. Typically, the job becomes unsearchable within 10
655
+ # seconds, but it may take up to 5 minutes.
656
+ # @param [String] name
657
+ # Required. The resource name of the job to be deleted. The format is "projects/`
658
+ # project_id`/tenants/`tenant_id`/jobs/`job_id`". For example, "projects/foo/
659
+ # tenants/bar/jobs/baz".
660
+ # @param [String] fields
661
+ # Selector specifying which fields to include in a partial response.
662
+ # @param [String] quota_user
663
+ # Available to use for quota purposes for server-side applications. Can be any
664
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
665
+ # @param [Google::Apis::RequestOptions] options
666
+ # Request-specific options
667
+ #
668
+ # @yield [result, err] Result & error if block supplied
669
+ # @yieldparam result [Google::Apis::JobsV4::Empty] parsed result object
670
+ # @yieldparam err [StandardError] error object if request failed
671
+ #
672
+ # @return [Google::Apis::JobsV4::Empty]
673
+ #
674
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
675
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
676
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
677
+ def delete_project_tenant_job(name, fields: nil, quota_user: nil, options: nil, &block)
678
+ command = make_simple_command(:delete, 'v4/{+name}', options)
679
+ command.response_representation = Google::Apis::JobsV4::Empty::Representation
680
+ command.response_class = Google::Apis::JobsV4::Empty
681
+ command.params['name'] = name unless name.nil?
682
+ command.query['fields'] = fields unless fields.nil?
683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
684
+ execute_or_queue_command(command, &block)
685
+ end
686
+
687
+ # Retrieves the specified job, whose status is OPEN or recently EXPIRED within
688
+ # the last 90 days.
689
+ # @param [String] name
690
+ # Required. The resource name of the job to retrieve. The format is "projects/`
691
+ # project_id`/tenants/`tenant_id`/jobs/`job_id`". For example, "projects/foo/
692
+ # tenants/bar/jobs/baz".
693
+ # @param [String] fields
694
+ # Selector specifying which fields to include in a partial response.
695
+ # @param [String] quota_user
696
+ # Available to use for quota purposes for server-side applications. Can be any
697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
698
+ # @param [Google::Apis::RequestOptions] options
699
+ # Request-specific options
700
+ #
701
+ # @yield [result, err] Result & error if block supplied
702
+ # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object
703
+ # @yieldparam err [StandardError] error object if request failed
704
+ #
705
+ # @return [Google::Apis::JobsV4::Job]
706
+ #
707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
710
+ def get_project_tenant_job(name, fields: nil, quota_user: nil, options: nil, &block)
711
+ command = make_simple_command(:get, 'v4/{+name}', options)
712
+ command.response_representation = Google::Apis::JobsV4::Job::Representation
713
+ command.response_class = Google::Apis::JobsV4::Job
714
+ command.params['name'] = name unless name.nil?
715
+ command.query['fields'] = fields unless fields.nil?
716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
717
+ execute_or_queue_command(command, &block)
718
+ end
719
+
720
+ # Lists jobs by filter.
721
+ # @param [String] parent
722
+ # Required. The resource name of the tenant under which the job is created. The
723
+ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/
724
+ # foo/tenants/bar".
725
+ # @param [String] filter
726
+ # Required. The filter string specifies the jobs to be enumerated. Supported
727
+ # operator: =, AND The fields eligible for filtering are: * `companyName` (
728
+ # Required) * `requisitionId` * `status` Available values: OPEN, EXPIRED, ALL.
729
+ # Defaults to OPEN if no value is specified. Sample Query: * companyName = "
730
+ # projects/foo/tenants/bar/companies/baz" * companyName = "projects/foo/tenants/
731
+ # bar/companies/baz" AND requisitionId = "req-1" * companyName = "projects/foo/
732
+ # tenants/bar/companies/baz" AND status = "EXPIRED"
733
+ # @param [String] job_view
734
+ # The desired job attributes returned for jobs in the search response. Defaults
735
+ # to JobView.JOB_VIEW_FULL if no value is specified.
736
+ # @param [Fixnum] page_size
737
+ # The maximum number of jobs to be returned per page of results. If job_view is
738
+ # set to JobView.JOB_VIEW_ID_ONLY, the maximum allowed page size is 1000.
739
+ # Otherwise, the maximum allowed page size is 100. Default is 100 if empty or a
740
+ # number < 1 is specified.
741
+ # @param [String] page_token
742
+ # The starting point of a query result.
743
+ # @param [String] fields
744
+ # Selector specifying which fields to include in a partial response.
745
+ # @param [String] quota_user
746
+ # Available to use for quota purposes for server-side applications. Can be any
747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
748
+ # @param [Google::Apis::RequestOptions] options
749
+ # Request-specific options
750
+ #
751
+ # @yield [result, err] Result & error if block supplied
752
+ # @yieldparam result [Google::Apis::JobsV4::ListJobsResponse] parsed result object
753
+ # @yieldparam err [StandardError] error object if request failed
754
+ #
755
+ # @return [Google::Apis::JobsV4::ListJobsResponse]
756
+ #
757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
760
+ def list_project_tenant_jobs(parent, filter: nil, job_view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
761
+ command = make_simple_command(:get, 'v4/{+parent}/jobs', options)
762
+ command.response_representation = Google::Apis::JobsV4::ListJobsResponse::Representation
763
+ command.response_class = Google::Apis::JobsV4::ListJobsResponse
764
+ command.params['parent'] = parent unless parent.nil?
765
+ command.query['filter'] = filter unless filter.nil?
766
+ command.query['jobView'] = job_view unless job_view.nil?
767
+ command.query['pageSize'] = page_size unless page_size.nil?
768
+ command.query['pageToken'] = page_token unless page_token.nil?
769
+ command.query['fields'] = fields unless fields.nil?
770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
774
+ # Updates specified job. Typically, updated contents become visible in search
775
+ # results within 10 seconds, but it may take up to 5 minutes.
776
+ # @param [String] name
777
+ # Required during job update. The resource name for the job. This is generated
778
+ # by the service when a job is created. The format is "projects/`project_id`/
779
+ # tenants/`tenant_id`/jobs/`job_id`". For example, "projects/foo/tenants/bar/
780
+ # jobs/baz". Use of this field in job queries and API calls is preferred over
781
+ # the use of requisition_id since this value is unique.
782
+ # @param [Google::Apis::JobsV4::Job] job_object
783
+ # @param [String] update_mask
784
+ # Strongly recommended for the best service experience. If update_mask is
785
+ # provided, only the specified fields in job are updated. Otherwise all the
786
+ # fields are updated. A field mask to restrict the fields that are updated. Only
787
+ # top level fields of Job are supported.
788
+ # @param [String] fields
789
+ # Selector specifying which fields to include in a partial response.
790
+ # @param [String] quota_user
791
+ # Available to use for quota purposes for server-side applications. Can be any
792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
793
+ # @param [Google::Apis::RequestOptions] options
794
+ # Request-specific options
795
+ #
796
+ # @yield [result, err] Result & error if block supplied
797
+ # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object
798
+ # @yieldparam err [StandardError] error object if request failed
799
+ #
800
+ # @return [Google::Apis::JobsV4::Job]
801
+ #
802
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
803
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
804
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
805
+ def patch_project_tenant_job(name, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
806
+ command = make_simple_command(:patch, 'v4/{+name}', options)
807
+ command.request_representation = Google::Apis::JobsV4::Job::Representation
808
+ command.request_object = job_object
809
+ command.response_representation = Google::Apis::JobsV4::Job::Representation
810
+ command.response_class = Google::Apis::JobsV4::Job
811
+ command.params['name'] = name unless name.nil?
812
+ command.query['updateMask'] = update_mask unless update_mask.nil?
813
+ command.query['fields'] = fields unless fields.nil?
814
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
815
+ execute_or_queue_command(command, &block)
816
+ end
817
+
818
+ # Searches for jobs using the provided SearchJobsRequest. This call constrains
819
+ # the visibility of jobs present in the database, and only returns jobs that the
820
+ # caller has permission to search against.
821
+ # @param [String] parent
822
+ # Required. The resource name of the tenant to search within. The format is "
823
+ # projects/`project_id`/tenants/`tenant_id`". For example, "projects/foo/tenants/
824
+ # bar".
825
+ # @param [Google::Apis::JobsV4::SearchJobsRequest] search_jobs_request_object
826
+ # @param [String] fields
827
+ # Selector specifying which fields to include in a partial response.
828
+ # @param [String] quota_user
829
+ # Available to use for quota purposes for server-side applications. Can be any
830
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
831
+ # @param [Google::Apis::RequestOptions] options
832
+ # Request-specific options
833
+ #
834
+ # @yield [result, err] Result & error if block supplied
835
+ # @yieldparam result [Google::Apis::JobsV4::SearchJobsResponse] parsed result object
836
+ # @yieldparam err [StandardError] error object if request failed
837
+ #
838
+ # @return [Google::Apis::JobsV4::SearchJobsResponse]
839
+ #
840
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
841
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
842
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
843
+ def search_project_tenant_jobs(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
844
+ command = make_simple_command(:post, 'v4/{+parent}/jobs:search', options)
845
+ command.request_representation = Google::Apis::JobsV4::SearchJobsRequest::Representation
846
+ command.request_object = search_jobs_request_object
847
+ command.response_representation = Google::Apis::JobsV4::SearchJobsResponse::Representation
848
+ command.response_class = Google::Apis::JobsV4::SearchJobsResponse
849
+ command.params['parent'] = parent unless parent.nil?
850
+ command.query['fields'] = fields unless fields.nil?
851
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
852
+ execute_or_queue_command(command, &block)
853
+ end
854
+
855
+ # Searches for jobs using the provided SearchJobsRequest. This API call is
856
+ # intended for the use case of targeting passive job seekers (for example, job
857
+ # seekers who have signed up to receive email alerts about potential job
858
+ # opportunities), it has different algorithmic adjustments that are designed to
859
+ # specifically target passive job seekers. This call constrains the visibility
860
+ # of jobs present in the database, and only returns jobs the caller has
861
+ # permission to search against.
862
+ # @param [String] parent
863
+ # Required. The resource name of the tenant to search within. The format is "
864
+ # projects/`project_id`/tenants/`tenant_id`". For example, "projects/foo/tenants/
865
+ # bar".
866
+ # @param [Google::Apis::JobsV4::SearchJobsRequest] search_jobs_request_object
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::JobsV4::SearchJobsResponse] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::JobsV4::SearchJobsResponse]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def search_project_tenant_job_for_alert(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:post, 'v4/{+parent}/jobs:searchForAlert', options)
886
+ command.request_representation = Google::Apis::JobsV4::SearchJobsRequest::Representation
887
+ command.request_object = search_jobs_request_object
888
+ command.response_representation = Google::Apis::JobsV4::SearchJobsResponse::Representation
889
+ command.response_class = Google::Apis::JobsV4::SearchJobsResponse
890
+ command.params['parent'] = parent unless parent.nil?
891
+ command.query['fields'] = fields unless fields.nil?
892
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
893
+ execute_or_queue_command(command, &block)
894
+ end
895
+
896
+ protected
897
+
898
+ def apply_command_defaults(command)
899
+ command.query['key'] = key unless key.nil?
900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
901
+ end
902
+ end
903
+ end
904
+ end
905
+ end