source: vendor/google/apiclient-services/src/CloudTalentSolution.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 13.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for CloudTalentSolution (v4).
24 *
25 * <p>
26 * Cloud Talent Solution provides the capability to create, read, update, and
27 * delete job postings, as well as search jobs based on keywords and filters.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/talent-solution/job-search/docs/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudTalentSolution extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41 /** Manage job postings. */
42 const JOBS =
43 "https://www.googleapis.com/auth/jobs";
44
45 public $projects_operations;
46 public $projects_tenants;
47 public $projects_tenants_clientEvents;
48 public $projects_tenants_companies;
49 public $projects_tenants_jobs;
50 public $rootUrlTemplate;
51
52 /**
53 * Constructs the internal representation of the CloudTalentSolution service.
54 *
55 * @param Client|array $clientOrConfig The client used to deliver requests, or a
56 * config array to pass to a new Client instance.
57 * @param string $rootUrl The root URL used for requests to the service.
58 */
59 public function __construct($clientOrConfig = [], $rootUrl = null)
60 {
61 parent::__construct($clientOrConfig);
62 $this->rootUrl = $rootUrl ?: 'https://jobs.googleapis.com/';
63 $this->rootUrlTemplate = $rootUrl ?: 'https://jobs.UNIVERSE_DOMAIN/';
64 $this->servicePath = '';
65 $this->batchPath = 'batch';
66 $this->version = 'v4';
67 $this->serviceName = 'jobs';
68
69 $this->projects_operations = new CloudTalentSolution\Resource\ProjectsOperations(
70 $this,
71 $this->serviceName,
72 'operations',
73 [
74 'methods' => [
75 'get' => [
76 'path' => 'v4/{+name}',
77 'httpMethod' => 'GET',
78 'parameters' => [
79 'name' => [
80 'location' => 'path',
81 'type' => 'string',
82 'required' => true,
83 ],
84 ],
85 ],
86 ]
87 ]
88 );
89 $this->projects_tenants = new CloudTalentSolution\Resource\ProjectsTenants(
90 $this,
91 $this->serviceName,
92 'tenants',
93 [
94 'methods' => [
95 'completeQuery' => [
96 'path' => 'v4/{+tenant}:completeQuery',
97 'httpMethod' => 'GET',
98 'parameters' => [
99 'tenant' => [
100 'location' => 'path',
101 'type' => 'string',
102 'required' => true,
103 ],
104 'company' => [
105 'location' => 'query',
106 'type' => 'string',
107 ],
108 'languageCodes' => [
109 'location' => 'query',
110 'type' => 'string',
111 'repeated' => true,
112 ],
113 'pageSize' => [
114 'location' => 'query',
115 'type' => 'integer',
116 ],
117 'query' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 'scope' => [
122 'location' => 'query',
123 'type' => 'string',
124 ],
125 'type' => [
126 'location' => 'query',
127 'type' => 'string',
128 ],
129 ],
130 ],'create' => [
131 'path' => 'v4/{+parent}/tenants',
132 'httpMethod' => 'POST',
133 'parameters' => [
134 'parent' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 ],
140 ],'delete' => [
141 'path' => 'v4/{+name}',
142 'httpMethod' => 'DELETE',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 ],
150 ],'get' => [
151 'path' => 'v4/{+name}',
152 'httpMethod' => 'GET',
153 'parameters' => [
154 'name' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 ],
160 ],'list' => [
161 'path' => 'v4/{+parent}/tenants',
162 'httpMethod' => 'GET',
163 'parameters' => [
164 'parent' => [
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ],
169 'pageSize' => [
170 'location' => 'query',
171 'type' => 'integer',
172 ],
173 'pageToken' => [
174 'location' => 'query',
175 'type' => 'string',
176 ],
177 ],
178 ],'patch' => [
179 'path' => 'v4/{+name}',
180 'httpMethod' => 'PATCH',
181 'parameters' => [
182 'name' => [
183 'location' => 'path',
184 'type' => 'string',
185 'required' => true,
186 ],
187 'updateMask' => [
188 'location' => 'query',
189 'type' => 'string',
190 ],
191 ],
192 ],
193 ]
194 ]
195 );
196 $this->projects_tenants_clientEvents = new CloudTalentSolution\Resource\ProjectsTenantsClientEvents(
197 $this,
198 $this->serviceName,
199 'clientEvents',
200 [
201 'methods' => [
202 'create' => [
203 'path' => 'v4/{+parent}/clientEvents',
204 'httpMethod' => 'POST',
205 'parameters' => [
206 'parent' => [
207 'location' => 'path',
208 'type' => 'string',
209 'required' => true,
210 ],
211 ],
212 ],
213 ]
214 ]
215 );
216 $this->projects_tenants_companies = new CloudTalentSolution\Resource\ProjectsTenantsCompanies(
217 $this,
218 $this->serviceName,
219 'companies',
220 [
221 'methods' => [
222 'create' => [
223 'path' => 'v4/{+parent}/companies',
224 'httpMethod' => 'POST',
225 'parameters' => [
226 'parent' => [
227 'location' => 'path',
228 'type' => 'string',
229 'required' => true,
230 ],
231 ],
232 ],'delete' => [
233 'path' => 'v4/{+name}',
234 'httpMethod' => 'DELETE',
235 'parameters' => [
236 'name' => [
237 'location' => 'path',
238 'type' => 'string',
239 'required' => true,
240 ],
241 ],
242 ],'get' => [
243 'path' => 'v4/{+name}',
244 'httpMethod' => 'GET',
245 'parameters' => [
246 'name' => [
247 'location' => 'path',
248 'type' => 'string',
249 'required' => true,
250 ],
251 ],
252 ],'list' => [
253 'path' => 'v4/{+parent}/companies',
254 'httpMethod' => 'GET',
255 'parameters' => [
256 'parent' => [
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ],
261 'pageSize' => [
262 'location' => 'query',
263 'type' => 'integer',
264 ],
265 'pageToken' => [
266 'location' => 'query',
267 'type' => 'string',
268 ],
269 'requireOpenJobs' => [
270 'location' => 'query',
271 'type' => 'boolean',
272 ],
273 ],
274 ],'patch' => [
275 'path' => 'v4/{+name}',
276 'httpMethod' => 'PATCH',
277 'parameters' => [
278 'name' => [
279 'location' => 'path',
280 'type' => 'string',
281 'required' => true,
282 ],
283 'updateMask' => [
284 'location' => 'query',
285 'type' => 'string',
286 ],
287 ],
288 ],
289 ]
290 ]
291 );
292 $this->projects_tenants_jobs = new CloudTalentSolution\Resource\ProjectsTenantsJobs(
293 $this,
294 $this->serviceName,
295 'jobs',
296 [
297 'methods' => [
298 'batchCreate' => [
299 'path' => 'v4/{+parent}/jobs:batchCreate',
300 'httpMethod' => 'POST',
301 'parameters' => [
302 'parent' => [
303 'location' => 'path',
304 'type' => 'string',
305 'required' => true,
306 ],
307 ],
308 ],'batchDelete' => [
309 'path' => 'v4/{+parent}/jobs:batchDelete',
310 'httpMethod' => 'POST',
311 'parameters' => [
312 'parent' => [
313 'location' => 'path',
314 'type' => 'string',
315 'required' => true,
316 ],
317 ],
318 ],'batchUpdate' => [
319 'path' => 'v4/{+parent}/jobs:batchUpdate',
320 'httpMethod' => 'POST',
321 'parameters' => [
322 'parent' => [
323 'location' => 'path',
324 'type' => 'string',
325 'required' => true,
326 ],
327 ],
328 ],'create' => [
329 'path' => 'v4/{+parent}/jobs',
330 'httpMethod' => 'POST',
331 'parameters' => [
332 'parent' => [
333 'location' => 'path',
334 'type' => 'string',
335 'required' => true,
336 ],
337 ],
338 ],'delete' => [
339 'path' => 'v4/{+name}',
340 'httpMethod' => 'DELETE',
341 'parameters' => [
342 'name' => [
343 'location' => 'path',
344 'type' => 'string',
345 'required' => true,
346 ],
347 ],
348 ],'get' => [
349 'path' => 'v4/{+name}',
350 'httpMethod' => 'GET',
351 'parameters' => [
352 'name' => [
353 'location' => 'path',
354 'type' => 'string',
355 'required' => true,
356 ],
357 ],
358 ],'list' => [
359 'path' => 'v4/{+parent}/jobs',
360 'httpMethod' => 'GET',
361 'parameters' => [
362 'parent' => [
363 'location' => 'path',
364 'type' => 'string',
365 'required' => true,
366 ],
367 'filter' => [
368 'location' => 'query',
369 'type' => 'string',
370 ],
371 'jobView' => [
372 'location' => 'query',
373 'type' => 'string',
374 ],
375 'pageSize' => [
376 'location' => 'query',
377 'type' => 'integer',
378 ],
379 'pageToken' => [
380 'location' => 'query',
381 'type' => 'string',
382 ],
383 ],
384 ],'patch' => [
385 'path' => 'v4/{+name}',
386 'httpMethod' => 'PATCH',
387 'parameters' => [
388 'name' => [
389 'location' => 'path',
390 'type' => 'string',
391 'required' => true,
392 ],
393 'updateMask' => [
394 'location' => 'query',
395 'type' => 'string',
396 ],
397 ],
398 ],'search' => [
399 'path' => 'v4/{+parent}/jobs:search',
400 'httpMethod' => 'POST',
401 'parameters' => [
402 'parent' => [
403 'location' => 'path',
404 'type' => 'string',
405 'required' => true,
406 ],
407 ],
408 ],'searchForAlert' => [
409 'path' => 'v4/{+parent}/jobs:searchForAlert',
410 'httpMethod' => 'POST',
411 'parameters' => [
412 'parent' => [
413 'location' => 'path',
414 'type' => 'string',
415 'required' => true,
416 ],
417 ],
418 ],
419 ]
420 ]
421 );
422 }
423}
424
425// Adding a class alias for backwards compatibility with the previous class name.
426class_alias(CloudTalentSolution::class, 'Google_Service_CloudTalentSolution');
Note: See TracBrowser for help on using the repository browser.