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