source: vendor/google/apiclient-services/src/AndroidProvisioningPartner.php

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

Upload project files

  • Property mode set to 100644
File size: 14.6 KB
RevLine 
[e3d4e0a]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 AndroidProvisioningPartner (v1).
24 *
25 * <p>
26 * Automates Android zero-touch enrollment for device resellers, customers, and
27 * EMMs.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/zero-touch/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class AndroidProvisioningPartner extends \Google\Service
37{
38
39
40 public $customers;
41 public $customers_configurations;
42 public $customers_devices;
43 public $customers_dpcs;
44 public $operations;
45 public $partners_customers;
46 public $partners_devices;
47 public $partners_vendors;
48 public $partners_vendors_customers;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the AndroidProvisioningPartner
53 * 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://androiddeviceprovisioning.googleapis.com/';
63 $this->rootUrlTemplate = $rootUrl ?: 'https://androiddeviceprovisioning.UNIVERSE_DOMAIN/';
64 $this->servicePath = '';
65 $this->batchPath = 'batch';
66 $this->version = 'v1';
67 $this->serviceName = 'androiddeviceprovisioning';
68
69 $this->customers = new AndroidProvisioningPartner\Resource\Customers(
70 $this,
71 $this->serviceName,
72 'customers',
73 [
74 'methods' => [
75 'list' => [
76 'path' => 'v1/customers',
77 'httpMethod' => 'GET',
78 'parameters' => [
79 'pageSize' => [
80 'location' => 'query',
81 'type' => 'integer',
82 ],
83 'pageToken' => [
84 'location' => 'query',
85 'type' => 'string',
86 ],
87 ],
88 ],
89 ]
90 ]
91 );
92 $this->customers_configurations = new AndroidProvisioningPartner\Resource\CustomersConfigurations(
93 $this,
94 $this->serviceName,
95 'configurations',
96 [
97 'methods' => [
98 'create' => [
99 'path' => 'v1/{+parent}/configurations',
100 'httpMethod' => 'POST',
101 'parameters' => [
102 'parent' => [
103 'location' => 'path',
104 'type' => 'string',
105 'required' => true,
106 ],
107 ],
108 ],'delete' => [
109 'path' => 'v1/{+name}',
110 'httpMethod' => 'DELETE',
111 'parameters' => [
112 'name' => [
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ],
117 ],
118 ],'get' => [
119 'path' => 'v1/{+name}',
120 'httpMethod' => 'GET',
121 'parameters' => [
122 'name' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 ],
128 ],'list' => [
129 'path' => 'v1/{+parent}/configurations',
130 'httpMethod' => 'GET',
131 'parameters' => [
132 'parent' => [
133 'location' => 'path',
134 'type' => 'string',
135 'required' => true,
136 ],
137 ],
138 ],'patch' => [
139 'path' => 'v1/{+name}',
140 'httpMethod' => 'PATCH',
141 'parameters' => [
142 'name' => [
143 'location' => 'path',
144 'type' => 'string',
145 'required' => true,
146 ],
147 'updateMask' => [
148 'location' => 'query',
149 'type' => 'string',
150 ],
151 ],
152 ],
153 ]
154 ]
155 );
156 $this->customers_devices = new AndroidProvisioningPartner\Resource\CustomersDevices(
157 $this,
158 $this->serviceName,
159 'devices',
160 [
161 'methods' => [
162 'applyConfiguration' => [
163 'path' => 'v1/{+parent}/devices:applyConfiguration',
164 'httpMethod' => 'POST',
165 'parameters' => [
166 'parent' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 ],
172 ],'get' => [
173 'path' => 'v1/{+name}',
174 'httpMethod' => 'GET',
175 'parameters' => [
176 'name' => [
177 'location' => 'path',
178 'type' => 'string',
179 'required' => true,
180 ],
181 ],
182 ],'list' => [
183 'path' => 'v1/{+parent}/devices',
184 'httpMethod' => 'GET',
185 'parameters' => [
186 'parent' => [
187 'location' => 'path',
188 'type' => 'string',
189 'required' => true,
190 ],
191 'pageSize' => [
192 'location' => 'query',
193 'type' => 'string',
194 ],
195 'pageToken' => [
196 'location' => 'query',
197 'type' => 'string',
198 ],
199 ],
200 ],'removeConfiguration' => [
201 'path' => 'v1/{+parent}/devices:removeConfiguration',
202 'httpMethod' => 'POST',
203 'parameters' => [
204 'parent' => [
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ],
209 ],
210 ],'unclaim' => [
211 'path' => 'v1/{+parent}/devices:unclaim',
212 'httpMethod' => 'POST',
213 'parameters' => [
214 'parent' => [
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ],
219 ],
220 ],
221 ]
222 ]
223 );
224 $this->customers_dpcs = new AndroidProvisioningPartner\Resource\CustomersDpcs(
225 $this,
226 $this->serviceName,
227 'dpcs',
228 [
229 'methods' => [
230 'list' => [
231 'path' => 'v1/{+parent}/dpcs',
232 'httpMethod' => 'GET',
233 'parameters' => [
234 'parent' => [
235 'location' => 'path',
236 'type' => 'string',
237 'required' => true,
238 ],
239 ],
240 ],
241 ]
242 ]
243 );
244 $this->operations = new AndroidProvisioningPartner\Resource\Operations(
245 $this,
246 $this->serviceName,
247 'operations',
248 [
249 'methods' => [
250 'get' => [
251 'path' => 'v1/{+name}',
252 'httpMethod' => 'GET',
253 'parameters' => [
254 'name' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],
261 ]
262 ]
263 );
264 $this->partners_customers = new AndroidProvisioningPartner\Resource\PartnersCustomers(
265 $this,
266 $this->serviceName,
267 'customers',
268 [
269 'methods' => [
270 'create' => [
271 'path' => 'v1/{+parent}/customers',
272 'httpMethod' => 'POST',
273 'parameters' => [
274 'parent' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 ],
280 ],'list' => [
281 'path' => 'v1/partners/{+partnerId}/customers',
282 'httpMethod' => 'GET',
283 'parameters' => [
284 'partnerId' => [
285 'location' => 'path',
286 'type' => 'string',
287 'required' => true,
288 ],
289 'pageSize' => [
290 'location' => 'query',
291 'type' => 'integer',
292 ],
293 'pageToken' => [
294 'location' => 'query',
295 'type' => 'string',
296 ],
297 ],
298 ],
299 ]
300 ]
301 );
302 $this->partners_devices = new AndroidProvisioningPartner\Resource\PartnersDevices(
303 $this,
304 $this->serviceName,
305 'devices',
306 [
307 'methods' => [
308 'claim' => [
309 'path' => 'v1/partners/{+partnerId}/devices:claim',
310 'httpMethod' => 'POST',
311 'parameters' => [
312 'partnerId' => [
313 'location' => 'path',
314 'type' => 'string',
315 'required' => true,
316 ],
317 ],
318 ],'claimAsync' => [
319 'path' => 'v1/partners/{+partnerId}/devices:claimAsync',
320 'httpMethod' => 'POST',
321 'parameters' => [
322 'partnerId' => [
323 'location' => 'path',
324 'type' => 'string',
325 'required' => true,
326 ],
327 ],
328 ],'findByIdentifier' => [
329 'path' => 'v1/partners/{+partnerId}/devices:findByIdentifier',
330 'httpMethod' => 'POST',
331 'parameters' => [
332 'partnerId' => [
333 'location' => 'path',
334 'type' => 'string',
335 'required' => true,
336 ],
337 ],
338 ],'findByOwner' => [
339 'path' => 'v1/partners/{+partnerId}/devices:findByOwner',
340 'httpMethod' => 'POST',
341 'parameters' => [
342 'partnerId' => [
343 'location' => 'path',
344 'type' => 'string',
345 'required' => true,
346 ],
347 ],
348 ],'get' => [
349 'path' => 'v1/{+name}',
350 'httpMethod' => 'GET',
351 'parameters' => [
352 'name' => [
353 'location' => 'path',
354 'type' => 'string',
355 'required' => true,
356 ],
357 ],
358 ],'getSimLockState' => [
359 'path' => 'v1/partners/{+partnerId}/devices:getSimLockState',
360 'httpMethod' => 'POST',
361 'parameters' => [
362 'partnerId' => [
363 'location' => 'path',
364 'type' => 'string',
365 'required' => true,
366 ],
367 ],
368 ],'metadata' => [
369 'path' => 'v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata',
370 'httpMethod' => 'POST',
371 'parameters' => [
372 'metadataOwnerId' => [
373 'location' => 'path',
374 'type' => 'string',
375 'required' => true,
376 ],
377 'deviceId' => [
378 'location' => 'path',
379 'type' => 'string',
380 'required' => true,
381 ],
382 ],
383 ],'unclaim' => [
384 'path' => 'v1/partners/{+partnerId}/devices:unclaim',
385 'httpMethod' => 'POST',
386 'parameters' => [
387 'partnerId' => [
388 'location' => 'path',
389 'type' => 'string',
390 'required' => true,
391 ],
392 ],
393 ],'unclaimAsync' => [
394 'path' => 'v1/partners/{+partnerId}/devices:unclaimAsync',
395 'httpMethod' => 'POST',
396 'parameters' => [
397 'partnerId' => [
398 'location' => 'path',
399 'type' => 'string',
400 'required' => true,
401 ],
402 ],
403 ],'updateMetadataAsync' => [
404 'path' => 'v1/partners/{+partnerId}/devices:updateMetadataAsync',
405 'httpMethod' => 'POST',
406 'parameters' => [
407 'partnerId' => [
408 'location' => 'path',
409 'type' => 'string',
410 'required' => true,
411 ],
412 ],
413 ],
414 ]
415 ]
416 );
417 $this->partners_vendors = new AndroidProvisioningPartner\Resource\PartnersVendors(
418 $this,
419 $this->serviceName,
420 'vendors',
421 [
422 'methods' => [
423 'list' => [
424 'path' => 'v1/{+parent}/vendors',
425 'httpMethod' => 'GET',
426 'parameters' => [
427 'parent' => [
428 'location' => 'path',
429 'type' => 'string',
430 'required' => true,
431 ],
432 'pageSize' => [
433 'location' => 'query',
434 'type' => 'integer',
435 ],
436 'pageToken' => [
437 'location' => 'query',
438 'type' => 'string',
439 ],
440 ],
441 ],
442 ]
443 ]
444 );
445 $this->partners_vendors_customers = new AndroidProvisioningPartner\Resource\PartnersVendorsCustomers(
446 $this,
447 $this->serviceName,
448 'customers',
449 [
450 'methods' => [
451 'list' => [
452 'path' => 'v1/{+parent}/customers',
453 'httpMethod' => 'GET',
454 'parameters' => [
455 'parent' => [
456 'location' => 'path',
457 'type' => 'string',
458 'required' => true,
459 ],
460 'pageSize' => [
461 'location' => 'query',
462 'type' => 'integer',
463 ],
464 'pageToken' => [
465 'location' => 'query',
466 'type' => 'string',
467 ],
468 ],
469 ],
470 ]
471 ]
472 );
473 }
474}
475
476// Adding a class alias for backwards compatibility with the previous class name.
477class_alias(AndroidProvisioningPartner::class, 'Google_Service_AndroidProvisioningPartner');
Note: See TracBrowser for help on using the repository browser.