google-api-client 0.24.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +41 -0
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  7. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  8. data/generated/google/apis/calendar_v3.rb +10 -1
  9. data/generated/google/apis/classroom_v1.rb +1 -1
  10. data/generated/google/apis/classroom_v1/classes.rb +18 -15
  11. data/generated/google/apis/cloudkms_v1.rb +3 -6
  12. data/generated/google/apis/cloudkms_v1/service.rb +2 -5
  13. data/generated/google/apis/compute_alpha.rb +1 -1
  14. data/generated/google/apis/compute_alpha/classes.rb +156 -144
  15. data/generated/google/apis/compute_alpha/representations.rb +66 -66
  16. data/generated/google/apis/compute_alpha/service.rb +7 -7
  17. data/generated/google/apis/compute_beta.rb +1 -1
  18. data/generated/google/apis/compute_beta/classes.rb +221 -10
  19. data/generated/google/apis/compute_beta/representations.rb +111 -2
  20. data/generated/google/apis/compute_beta/service.rb +39 -3
  21. data/generated/google/apis/compute_v1.rb +1 -1
  22. data/generated/google/apis/compute_v1/service.rb +3 -3
  23. data/generated/google/apis/container_v1.rb +1 -1
  24. data/generated/google/apis/container_v1/classes.rb +56 -0
  25. data/generated/google/apis/container_v1/representations.rb +19 -0
  26. data/generated/google/apis/container_v1beta1.rb +1 -1
  27. data/generated/google/apis/container_v1beta1/classes.rb +9 -6
  28. data/generated/google/apis/content_v2.rb +1 -1
  29. data/generated/google/apis/content_v2/classes.rb +76 -5
  30. data/generated/google/apis/content_v2/representations.rb +42 -0
  31. data/generated/google/apis/content_v2/service.rb +40 -0
  32. data/generated/google/apis/content_v2sandbox.rb +1 -1
  33. data/generated/google/apis/content_v2sandbox/classes.rb +70 -0
  34. data/generated/google/apis/content_v2sandbox/representations.rb +42 -0
  35. data/generated/google/apis/content_v2sandbox/service.rb +40 -0
  36. data/generated/google/apis/dataproc_v1.rb +1 -1
  37. data/generated/google/apis/dataproc_v1/classes.rb +1 -1
  38. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  39. data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -1
  40. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  41. data/generated/google/apis/dataproc_v1beta2/service.rb +8 -2
  42. data/generated/google/apis/dialogflow_v2.rb +1 -1
  43. data/generated/google/apis/dialogflow_v2/classes.rb +23 -17
  44. data/generated/google/apis/dialogflow_v2/service.rb +9 -8
  45. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  46. data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -17
  47. data/generated/google/apis/dialogflow_v2beta1/service.rb +9 -8
  48. data/generated/google/apis/dlp_v2.rb +1 -1
  49. data/generated/google/apis/dlp_v2/classes.rb +178 -21
  50. data/generated/google/apis/dlp_v2/representations.rb +68 -0
  51. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  52. data/generated/google/apis/firestore_v1beta2/classes.rb +102 -0
  53. data/generated/google/apis/firestore_v1beta2/representations.rb +47 -0
  54. data/generated/google/apis/firestore_v1beta2/service.rb +144 -0
  55. data/generated/google/apis/games_v1.rb +1 -1
  56. data/generated/google/apis/games_v1/service.rb +8 -2
  57. data/generated/google/apis/genomics_v1.rb +1 -1
  58. data/generated/google/apis/genomics_v1/service.rb +18 -7
  59. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  60. data/generated/google/apis/genomics_v1alpha2/service.rb +18 -7
  61. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  62. data/generated/google/apis/genomics_v2alpha1/service.rb +21 -7
  63. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  64. data/generated/google/apis/iamcredentials_v1/service.rb +2 -2
  65. data/generated/google/apis/indexing_v3.rb +4 -1
  66. data/generated/google/apis/jobs_v2.rb +1 -1
  67. data/generated/google/apis/jobs_v2/classes.rb +35 -35
  68. data/generated/google/apis/jobs_v3.rb +1 -1
  69. data/generated/google/apis/jobs_v3p1beta1.rb +38 -0
  70. data/generated/google/apis/jobs_v3p1beta1/classes.rb +2910 -0
  71. data/generated/google/apis/jobs_v3p1beta1/representations.rb +966 -0
  72. data/generated/google/apis/jobs_v3p1beta1/service.rb +692 -0
  73. data/generated/google/apis/kgsearch_v1.rb +1 -1
  74. data/generated/google/apis/logging_v2.rb +1 -1
  75. data/generated/google/apis/logging_v2/service.rb +9 -9
  76. data/generated/google/apis/logging_v2beta1.rb +1 -1
  77. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  78. data/generated/google/apis/ml_v1.rb +1 -1
  79. data/generated/google/apis/ml_v1/classes.rb +10 -3
  80. data/generated/google/apis/ml_v1/representations.rb +1 -0
  81. data/generated/google/apis/monitoring_v3.rb +1 -1
  82. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  83. data/generated/google/apis/people_v1.rb +1 -1
  84. data/generated/google/apis/people_v1/classes.rb +4 -3
  85. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  86. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -242
  87. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -60
  88. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  89. data/generated/google/apis/servicecontrol_v1/classes.rb +4 -4
  90. data/generated/google/apis/serviceusage_v1.rb +1 -1
  91. data/generated/google/apis/serviceusage_v1/classes.rb +3 -242
  92. data/generated/google/apis/serviceusage_v1/representations.rb +0 -60
  93. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  94. data/generated/google/apis/serviceusage_v1beta1/classes.rb +4 -242
  95. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -60
  96. data/generated/google/apis/spanner_v1.rb +1 -1
  97. data/generated/google/apis/spanner_v1/service.rb +11 -10
  98. data/generated/google/apis/speech_v1.rb +1 -1
  99. data/generated/google/apis/speech_v1/classes.rb +11 -8
  100. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  101. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  102. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -21
  103. data/generated/google/apis/testing_v1.rb +1 -1
  104. data/generated/google/apis/testing_v1/classes.rb +26 -16
  105. data/generated/google/apis/testing_v1/representations.rb +1 -0
  106. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  107. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -7
  108. data/lib/google/apis/version.rb +1 -1
  109. metadata +6 -2
@@ -0,0 +1,692 @@
1
+ # Copyright 2015 Google Inc.
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 JobsV3p1beta1
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_v3p1beta1'
30
+ #
31
+ # Jobs = Google::Apis::JobsV3p1beta1 # 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
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Completes the specified prefix with keyword suggestions.
52
+ # Intended for use by a job search auto-complete search box.
53
+ # @param [String] name
54
+ # Required.
55
+ # Resource name of project the completion is performed within.
56
+ # The format is "projects/`project_id`", for example,
57
+ # "projects/api-test-project".
58
+ # @param [String] company_name
59
+ # Optional.
60
+ # If provided, restricts completion to specified company.
61
+ # The format is "projects/`project_id`/companies/`company_id`", for example,
62
+ # "projects/api-test-project/companies/foo".
63
+ # @param [String] language_code
64
+ # Required.
65
+ # The language of the query. This is
66
+ # the BCP-47 language code, such as "en-US" or "sr-Latn".
67
+ # For more information, see
68
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
69
+ # For CompletionType.JOB_TITLE type, only open jobs with same
70
+ # language_code are returned.
71
+ # For CompletionType.COMPANY_NAME type,
72
+ # only companies having open jobs with same language_code are
73
+ # returned.
74
+ # For CompletionType.COMBINED type, only open jobs with same
75
+ # language_code or companies having open jobs with same
76
+ # language_code are returned.
77
+ # The maximum number of allowed characters is 255.
78
+ # @param [Fixnum] page_size
79
+ # Required.
80
+ # Completion result count.
81
+ # The maximum allowed page size is 10.
82
+ # @param [String] query
83
+ # Required.
84
+ # The query used to generate suggestions.
85
+ # The maximum number of allowed characters is 255.
86
+ # @param [String] scope
87
+ # Optional.
88
+ # The scope of the completion. The defaults is CompletionScope.PUBLIC.
89
+ # @param [String] type
90
+ # Optional.
91
+ # The completion topic. The default is CompletionType.COMBINED.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::CompleteQueryResponse] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::JobsV3p1beta1::CompleteQueryResponse]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def complete_project(name, company_name: nil, language_code: nil, page_size: nil, query: nil, scope: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'v3p1beta1/{+name}:complete', options)
111
+ command.response_representation = Google::Apis::JobsV3p1beta1::CompleteQueryResponse::Representation
112
+ command.response_class = Google::Apis::JobsV3p1beta1::CompleteQueryResponse
113
+ command.params['name'] = name unless name.nil?
114
+ command.query['companyName'] = company_name unless company_name.nil?
115
+ command.query['languageCode'] = language_code unless language_code.nil?
116
+ command.query['pageSize'] = page_size unless page_size.nil?
117
+ command.query['query'] = query unless query.nil?
118
+ command.query['scope'] = scope unless scope.nil?
119
+ command.query['type'] = type unless type.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Report events issued when end user interacts with customer's application
126
+ # that uses Cloud Talent Solution. You may inspect the created events in
127
+ # [self service
128
+ # tools](https://console.cloud.google.com/talent-solution/overview).
129
+ # [Learn
130
+ # more](https://cloud.google.com/talent-solution/job-search/docs/management-
131
+ # tools)
132
+ # about self service tools.
133
+ # @param [String] parent
134
+ # Parent project name.
135
+ # @param [Google::Apis::JobsV3p1beta1::CreateClientEventRequest] create_client_event_request_object
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::ClientEvent] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::JobsV3p1beta1::ClientEvent]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def create_client_event(parent, create_client_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/clientEvents', options)
155
+ command.request_representation = Google::Apis::JobsV3p1beta1::CreateClientEventRequest::Representation
156
+ command.request_object = create_client_event_request_object
157
+ command.response_representation = Google::Apis::JobsV3p1beta1::ClientEvent::Representation
158
+ command.response_class = Google::Apis::JobsV3p1beta1::ClientEvent
159
+ command.params['parent'] = parent unless parent.nil?
160
+ command.query['fields'] = fields unless fields.nil?
161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
+ execute_or_queue_command(command, &block)
163
+ end
164
+
165
+ # Creates a new company entity.
166
+ # @param [String] parent
167
+ # Required.
168
+ # Resource name of the project under which the company is created.
169
+ # The format is "projects/`project_id`", for example,
170
+ # "projects/api-test-project".
171
+ # @param [Google::Apis::JobsV3p1beta1::CreateCompanyRequest] create_company_request_object
172
+ # @param [String] fields
173
+ # Selector specifying which fields to include in a partial response.
174
+ # @param [String] quota_user
175
+ # Available to use for quota purposes for server-side applications. Can be any
176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Company] parsed result object
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [Google::Apis::JobsV3p1beta1::Company]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def create_company(parent, create_company_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/companies', options)
191
+ command.request_representation = Google::Apis::JobsV3p1beta1::CreateCompanyRequest::Representation
192
+ command.request_object = create_company_request_object
193
+ command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
194
+ command.response_class = Google::Apis::JobsV3p1beta1::Company
195
+ command.params['parent'] = parent unless parent.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ execute_or_queue_command(command, &block)
199
+ end
200
+
201
+ # Deletes specified company.
202
+ # @param [String] name
203
+ # Required.
204
+ # The resource name of the company to be deleted.
205
+ # The format is "projects/`project_id`/companies/`company_id`", for example,
206
+ # "projects/api-test-project/companies/foo".
207
+ # @param [String] fields
208
+ # Selector specifying which fields to include in a partial response.
209
+ # @param [String] quota_user
210
+ # Available to use for quota purposes for server-side applications. Can be any
211
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
212
+ # @param [Google::Apis::RequestOptions] options
213
+ # Request-specific options
214
+ #
215
+ # @yield [result, err] Result & error if block supplied
216
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Empty] parsed result object
217
+ # @yieldparam err [StandardError] error object if request failed
218
+ #
219
+ # @return [Google::Apis::JobsV3p1beta1::Empty]
220
+ #
221
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
222
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
223
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
224
+ def delete_project_company(name, fields: nil, quota_user: nil, options: nil, &block)
225
+ command = make_simple_command(:delete, 'v3p1beta1/{+name}', options)
226
+ command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
227
+ command.response_class = Google::Apis::JobsV3p1beta1::Empty
228
+ command.params['name'] = name unless name.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Retrieves specified company.
235
+ # @param [String] name
236
+ # Required.
237
+ # The resource name of the company to be retrieved.
238
+ # The format is "projects/`project_id`/companies/`company_id`", for example,
239
+ # "projects/api-test-project/companies/foo".
240
+ # @param [String] fields
241
+ # Selector specifying which fields to include in a partial response.
242
+ # @param [String] quota_user
243
+ # Available to use for quota purposes for server-side applications. Can be any
244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
245
+ # @param [Google::Apis::RequestOptions] options
246
+ # Request-specific options
247
+ #
248
+ # @yield [result, err] Result & error if block supplied
249
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Company] parsed result object
250
+ # @yieldparam err [StandardError] error object if request failed
251
+ #
252
+ # @return [Google::Apis::JobsV3p1beta1::Company]
253
+ #
254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
257
+ def get_project_company(name, fields: nil, quota_user: nil, options: nil, &block)
258
+ command = make_simple_command(:get, 'v3p1beta1/{+name}', options)
259
+ command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
260
+ command.response_class = Google::Apis::JobsV3p1beta1::Company
261
+ command.params['name'] = name unless name.nil?
262
+ command.query['fields'] = fields unless fields.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ execute_or_queue_command(command, &block)
265
+ end
266
+
267
+ # Lists all companies associated with the service account.
268
+ # @param [String] parent
269
+ # Required.
270
+ # Resource name of the project under which the company is created.
271
+ # The format is "projects/`project_id`", for example,
272
+ # "projects/api-test-project".
273
+ # @param [Fixnum] page_size
274
+ # Optional.
275
+ # The maximum number of companies to be returned, at most 100.
276
+ # Default is 100 if a non-positive number is provided.
277
+ # @param [String] page_token
278
+ # Optional.
279
+ # The starting indicator from which to return results.
280
+ # @param [Boolean] require_open_jobs
281
+ # Optional.
282
+ # Set to true if the companies requested must have open jobs.
283
+ # Defaults to false.
284
+ # If true, at most page_size of companies are fetched, among which
285
+ # only those with open jobs are returned.
286
+ # @param [String] fields
287
+ # Selector specifying which fields to include in a partial response.
288
+ # @param [String] quota_user
289
+ # Available to use for quota purposes for server-side applications. Can be any
290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
291
+ # @param [Google::Apis::RequestOptions] options
292
+ # Request-specific options
293
+ #
294
+ # @yield [result, err] Result & error if block supplied
295
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::ListCompaniesResponse] parsed result object
296
+ # @yieldparam err [StandardError] error object if request failed
297
+ #
298
+ # @return [Google::Apis::JobsV3p1beta1::ListCompaniesResponse]
299
+ #
300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
303
+ def list_project_companies(parent, page_size: nil, page_token: nil, require_open_jobs: nil, fields: nil, quota_user: nil, options: nil, &block)
304
+ command = make_simple_command(:get, 'v3p1beta1/{+parent}/companies', options)
305
+ command.response_representation = Google::Apis::JobsV3p1beta1::ListCompaniesResponse::Representation
306
+ command.response_class = Google::Apis::JobsV3p1beta1::ListCompaniesResponse
307
+ command.params['parent'] = parent unless parent.nil?
308
+ command.query['pageSize'] = page_size unless page_size.nil?
309
+ command.query['pageToken'] = page_token unless page_token.nil?
310
+ command.query['requireOpenJobs'] = require_open_jobs unless require_open_jobs.nil?
311
+ command.query['fields'] = fields unless fields.nil?
312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
313
+ execute_or_queue_command(command, &block)
314
+ end
315
+
316
+ # Updates specified company. Company names can't be updated. To update a
317
+ # company name, delete the company and all jobs associated with it, and only
318
+ # then re-create them.
319
+ # @param [String] name
320
+ # Required during company update.
321
+ # The resource name for a company. This is generated by the service when a
322
+ # company is created.
323
+ # The format is "projects/`project_id`/companies/`company_id`", for example,
324
+ # "projects/api-test-project/companies/foo".
325
+ # @param [Google::Apis::JobsV3p1beta1::UpdateCompanyRequest] update_company_request_object
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Company] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::JobsV3p1beta1::Company]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def patch_project_company(name, update_company_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:patch, 'v3p1beta1/{+name}', options)
345
+ command.request_representation = Google::Apis::JobsV3p1beta1::UpdateCompanyRequest::Representation
346
+ command.request_object = update_company_request_object
347
+ command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
348
+ command.response_class = Google::Apis::JobsV3p1beta1::Company
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Deletes a list of Jobs by filter.
356
+ # @param [String] parent
357
+ # Required.
358
+ # The resource name of the project under which the job is created.
359
+ # The format is "projects/`project_id`", for example,
360
+ # "projects/api-test-project".
361
+ # @param [Google::Apis::JobsV3p1beta1::BatchDeleteJobsRequest] batch_delete_jobs_request_object
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # @param [Google::Apis::RequestOptions] options
368
+ # Request-specific options
369
+ #
370
+ # @yield [result, err] Result & error if block supplied
371
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Empty] parsed result object
372
+ # @yieldparam err [StandardError] error object if request failed
373
+ #
374
+ # @return [Google::Apis::JobsV3p1beta1::Empty]
375
+ #
376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
379
+ def batch_delete_jobs(parent, batch_delete_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
380
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:batchDelete', options)
381
+ command.request_representation = Google::Apis::JobsV3p1beta1::BatchDeleteJobsRequest::Representation
382
+ command.request_object = batch_delete_jobs_request_object
383
+ command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
384
+ command.response_class = Google::Apis::JobsV3p1beta1::Empty
385
+ command.params['parent'] = parent unless parent.nil?
386
+ command.query['fields'] = fields unless fields.nil?
387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
388
+ execute_or_queue_command(command, &block)
389
+ end
390
+
391
+ # Creates a new job.
392
+ # Typically, the job becomes searchable within 10 seconds, but it may take
393
+ # up to 5 minutes.
394
+ # @param [String] parent
395
+ # Required.
396
+ # The resource name of the project under which the job is created.
397
+ # The format is "projects/`project_id`", for example,
398
+ # "projects/api-test-project".
399
+ # @param [Google::Apis::JobsV3p1beta1::CreateJobRequest] create_job_request_object
400
+ # @param [String] fields
401
+ # Selector specifying which fields to include in a partial response.
402
+ # @param [String] quota_user
403
+ # Available to use for quota purposes for server-side applications. Can be any
404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
405
+ # @param [Google::Apis::RequestOptions] options
406
+ # Request-specific options
407
+ #
408
+ # @yield [result, err] Result & error if block supplied
409
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Job] parsed result object
410
+ # @yieldparam err [StandardError] error object if request failed
411
+ #
412
+ # @return [Google::Apis::JobsV3p1beta1::Job]
413
+ #
414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
417
+ def create_job(parent, create_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
418
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs', options)
419
+ command.request_representation = Google::Apis::JobsV3p1beta1::CreateJobRequest::Representation
420
+ command.request_object = create_job_request_object
421
+ command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
422
+ command.response_class = Google::Apis::JobsV3p1beta1::Job
423
+ command.params['parent'] = parent unless parent.nil?
424
+ command.query['fields'] = fields unless fields.nil?
425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
426
+ execute_or_queue_command(command, &block)
427
+ end
428
+
429
+ # Deletes the specified job.
430
+ # Typically, the job becomes unsearchable within 10 seconds, but it may take
431
+ # up to 5 minutes.
432
+ # @param [String] name
433
+ # Required.
434
+ # The resource name of the job to be deleted.
435
+ # The format is "projects/`project_id`/jobs/`job_id`",
436
+ # for example, "projects/api-test-project/jobs/1234".
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Empty] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::JobsV3p1beta1::Empty]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def delete_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
455
+ command = make_simple_command(:delete, 'v3p1beta1/{+name}', options)
456
+ command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
457
+ command.response_class = Google::Apis::JobsV3p1beta1::Empty
458
+ command.params['name'] = name unless name.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Retrieves the specified job, whose status is OPEN or recently EXPIRED
465
+ # within the last 90 days.
466
+ # @param [String] name
467
+ # Required.
468
+ # The resource name of the job to retrieve.
469
+ # The format is "projects/`project_id`/jobs/`job_id`",
470
+ # for example, "projects/api-test-project/jobs/1234".
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # @param [Google::Apis::RequestOptions] options
477
+ # Request-specific options
478
+ #
479
+ # @yield [result, err] Result & error if block supplied
480
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Job] parsed result object
481
+ # @yieldparam err [StandardError] error object if request failed
482
+ #
483
+ # @return [Google::Apis::JobsV3p1beta1::Job]
484
+ #
485
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
486
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
487
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
488
+ def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
489
+ command = make_simple_command(:get, 'v3p1beta1/{+name}', options)
490
+ command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
491
+ command.response_class = Google::Apis::JobsV3p1beta1::Job
492
+ command.params['name'] = name unless name.nil?
493
+ command.query['fields'] = fields unless fields.nil?
494
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
495
+ execute_or_queue_command(command, &block)
496
+ end
497
+
498
+ # Lists jobs by filter.
499
+ # @param [String] parent
500
+ # Required.
501
+ # The resource name of the project under which the job is created.
502
+ # The format is "projects/`project_id`", for example,
503
+ # "projects/api-test-project".
504
+ # @param [String] filter
505
+ # Required.
506
+ # The filter string specifies the jobs to be enumerated.
507
+ # Supported operator: =, AND
508
+ # The fields eligible for filtering are:
509
+ # * `companyName` (Required)
510
+ # * `requisitionId` (Optional)
511
+ # Sample Query:
512
+ # * companyName = "projects/api-test-project/companies/123"
513
+ # * companyName = "projects/api-test-project/companies/123" AND requisitionId
514
+ # = "req-1"
515
+ # @param [String] job_view
516
+ # Optional.
517
+ # The desired job attributes returned for jobs in the
518
+ # search response. Defaults to JobView.JOB_VIEW_FULL if no value is
519
+ # specified.
520
+ # @param [Fixnum] page_size
521
+ # Optional.
522
+ # The maximum number of jobs to be returned per page of results.
523
+ # If job_view is set to JobView.JOB_VIEW_ID_ONLY, the maximum allowed
524
+ # page size is 1000. Otherwise, the maximum allowed page size is 100.
525
+ # Default is 100 if empty or a number < 1 is specified.
526
+ # @param [String] page_token
527
+ # Optional.
528
+ # The starting point of a query result.
529
+ # @param [String] fields
530
+ # Selector specifying which fields to include in a partial response.
531
+ # @param [String] quota_user
532
+ # Available to use for quota purposes for server-side applications. Can be any
533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
534
+ # @param [Google::Apis::RequestOptions] options
535
+ # Request-specific options
536
+ #
537
+ # @yield [result, err] Result & error if block supplied
538
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::ListJobsResponse] parsed result object
539
+ # @yieldparam err [StandardError] error object if request failed
540
+ #
541
+ # @return [Google::Apis::JobsV3p1beta1::ListJobsResponse]
542
+ #
543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
546
+ def list_project_jobs(parent, filter: nil, job_view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
547
+ command = make_simple_command(:get, 'v3p1beta1/{+parent}/jobs', options)
548
+ command.response_representation = Google::Apis::JobsV3p1beta1::ListJobsResponse::Representation
549
+ command.response_class = Google::Apis::JobsV3p1beta1::ListJobsResponse
550
+ command.params['parent'] = parent unless parent.nil?
551
+ command.query['filter'] = filter unless filter.nil?
552
+ command.query['jobView'] = job_view unless job_view.nil?
553
+ command.query['pageSize'] = page_size unless page_size.nil?
554
+ command.query['pageToken'] = page_token unless page_token.nil?
555
+ command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
+ execute_or_queue_command(command, &block)
558
+ end
559
+
560
+ # Updates specified job.
561
+ # Typically, updated contents become visible in search results within 10
562
+ # seconds, but it may take up to 5 minutes.
563
+ # @param [String] name
564
+ # Required during job update.
565
+ # The resource name for the job. This is generated by the service when a
566
+ # job is created.
567
+ # The format is "projects/`project_id`/jobs/`job_id`",
568
+ # for example, "projects/api-test-project/jobs/1234".
569
+ # Use of this field in job queries and API calls is preferred over the use of
570
+ # requisition_id since this value is unique.
571
+ # @param [Google::Apis::JobsV3p1beta1::UpdateJobRequest] update_job_request_object
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
574
+ # @param [String] quota_user
575
+ # Available to use for quota purposes for server-side applications. Can be any
576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
577
+ # @param [Google::Apis::RequestOptions] options
578
+ # Request-specific options
579
+ #
580
+ # @yield [result, err] Result & error if block supplied
581
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::Job] parsed result object
582
+ # @yieldparam err [StandardError] error object if request failed
583
+ #
584
+ # @return [Google::Apis::JobsV3p1beta1::Job]
585
+ #
586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
589
+ def patch_project_job(name, update_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:patch, 'v3p1beta1/{+name}', options)
591
+ command.request_representation = Google::Apis::JobsV3p1beta1::UpdateJobRequest::Representation
592
+ command.request_object = update_job_request_object
593
+ command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
594
+ command.response_class = Google::Apis::JobsV3p1beta1::Job
595
+ command.params['name'] = name unless name.nil?
596
+ command.query['fields'] = fields unless fields.nil?
597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
598
+ execute_or_queue_command(command, &block)
599
+ end
600
+
601
+ # Searches for jobs using the provided SearchJobsRequest.
602
+ # This call constrains the visibility of jobs
603
+ # present in the database, and only returns jobs that the caller has
604
+ # permission to search against.
605
+ # @param [String] parent
606
+ # Required.
607
+ # The resource name of the project to search within.
608
+ # The format is "projects/`project_id`", for example,
609
+ # "projects/api-test-project".
610
+ # @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_request_object
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::SearchJobsResponse] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::JobsV3p1beta1::SearchJobsResponse]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def search_jobs(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:search', options)
630
+ command.request_representation = Google::Apis::JobsV3p1beta1::SearchJobsRequest::Representation
631
+ command.request_object = search_jobs_request_object
632
+ command.response_representation = Google::Apis::JobsV3p1beta1::SearchJobsResponse::Representation
633
+ command.response_class = Google::Apis::JobsV3p1beta1::SearchJobsResponse
634
+ command.params['parent'] = parent unless parent.nil?
635
+ command.query['fields'] = fields unless fields.nil?
636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
637
+ execute_or_queue_command(command, &block)
638
+ end
639
+
640
+ # Searches for jobs using the provided SearchJobsRequest.
641
+ # This API call is intended for the use case of targeting passive job
642
+ # seekers (for example, job seekers who have signed up to receive email
643
+ # alerts about potential job opportunities), and has different algorithmic
644
+ # adjustments that are targeted to passive job seekers.
645
+ # This call constrains the visibility of jobs
646
+ # present in the database, and only returns jobs the caller has
647
+ # permission to search against.
648
+ # @param [String] parent
649
+ # Required.
650
+ # The resource name of the project to search within.
651
+ # The format is "projects/`project_id`", for example,
652
+ # "projects/api-test-project".
653
+ # @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_request_object
654
+ # @param [String] fields
655
+ # Selector specifying which fields to include in a partial response.
656
+ # @param [String] quota_user
657
+ # Available to use for quota purposes for server-side applications. Can be any
658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
659
+ # @param [Google::Apis::RequestOptions] options
660
+ # Request-specific options
661
+ #
662
+ # @yield [result, err] Result & error if block supplied
663
+ # @yieldparam result [Google::Apis::JobsV3p1beta1::SearchJobsResponse] parsed result object
664
+ # @yieldparam err [StandardError] error object if request failed
665
+ #
666
+ # @return [Google::Apis::JobsV3p1beta1::SearchJobsResponse]
667
+ #
668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
671
+ def search_project_job_for_alert(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
672
+ command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:searchForAlert', options)
673
+ command.request_representation = Google::Apis::JobsV3p1beta1::SearchJobsRequest::Representation
674
+ command.request_object = search_jobs_request_object
675
+ command.response_representation = Google::Apis::JobsV3p1beta1::SearchJobsResponse::Representation
676
+ command.response_class = Google::Apis::JobsV3p1beta1::SearchJobsResponse
677
+ command.params['parent'] = parent unless parent.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
683
+ protected
684
+
685
+ def apply_command_defaults(command)
686
+ command.query['key'] = key unless key.nil?
687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
688
+ end
689
+ end
690
+ end
691
+ end
692
+ end