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