Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 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 AndroidEnterprise (v1).
  20   *
  21   * <p>
  22   * Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
  23   * for Work users.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://developers.google.com/play/enterprise" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  class Google_Service_AndroidEnterprise extends Google_Service
  33  {
  34    /** Manage corporate Android devices. */
  35    const ANDROIDENTERPRISE =
  36        "https://www.googleapis.com/auth/androidenterprise";
  37  
  38    public $collections;
  39    public $collectionviewers;
  40    public $devices;
  41    public $enterprises;
  42    public $entitlements;
  43    public $grouplicenses;
  44    public $grouplicenseusers;
  45    public $installs;
  46    public $permissions;
  47    public $products;
  48    public $users;
  49    
  50  
  51    /**
  52     * Constructs the internal representation of the AndroidEnterprise service.
  53     *
  54     * @param Google_Client $client
  55     */
  56    public function __construct(Google_Client $client)
  57    {
  58      parent::__construct($client);
  59      $this->rootUrl = 'https://www.googleapis.com/';
  60      $this->servicePath = 'androidenterprise/v1/';
  61      $this->version = 'v1';
  62      $this->serviceName = 'androidenterprise';
  63  
  64      $this->collections = new Google_Service_AndroidEnterprise_Collections_Resource(
  65          $this,
  66          $this->serviceName,
  67          'collections',
  68          array(
  69            'methods' => array(
  70              'delete' => array(
  71                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}',
  72                'httpMethod' => 'DELETE',
  73                'parameters' => array(
  74                  'enterpriseId' => array(
  75                    'location' => 'path',
  76                    'type' => 'string',
  77                    'required' => true,
  78                  ),
  79                  'collectionId' => array(
  80                    'location' => 'path',
  81                    'type' => 'string',
  82                    'required' => true,
  83                  ),
  84                ),
  85              ),'get' => array(
  86                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}',
  87                'httpMethod' => 'GET',
  88                'parameters' => array(
  89                  'enterpriseId' => array(
  90                    'location' => 'path',
  91                    'type' => 'string',
  92                    'required' => true,
  93                  ),
  94                  'collectionId' => array(
  95                    'location' => 'path',
  96                    'type' => 'string',
  97                    'required' => true,
  98                  ),
  99                ),
 100              ),'insert' => array(
 101                'path' => 'enterprises/{enterpriseId}/collections',
 102                'httpMethod' => 'POST',
 103                'parameters' => array(
 104                  'enterpriseId' => array(
 105                    'location' => 'path',
 106                    'type' => 'string',
 107                    'required' => true,
 108                  ),
 109                ),
 110              ),'list' => array(
 111                'path' => 'enterprises/{enterpriseId}/collections',
 112                'httpMethod' => 'GET',
 113                'parameters' => array(
 114                  'enterpriseId' => array(
 115                    'location' => 'path',
 116                    'type' => 'string',
 117                    'required' => true,
 118                  ),
 119                ),
 120              ),'patch' => array(
 121                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}',
 122                'httpMethod' => 'PATCH',
 123                'parameters' => array(
 124                  'enterpriseId' => array(
 125                    'location' => 'path',
 126                    'type' => 'string',
 127                    'required' => true,
 128                  ),
 129                  'collectionId' => array(
 130                    'location' => 'path',
 131                    'type' => 'string',
 132                    'required' => true,
 133                  ),
 134                ),
 135              ),'update' => array(
 136                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}',
 137                'httpMethod' => 'PUT',
 138                'parameters' => array(
 139                  'enterpriseId' => array(
 140                    'location' => 'path',
 141                    'type' => 'string',
 142                    'required' => true,
 143                  ),
 144                  'collectionId' => array(
 145                    'location' => 'path',
 146                    'type' => 'string',
 147                    'required' => true,
 148                  ),
 149                ),
 150              ),
 151            )
 152          )
 153      );
 154      $this->collectionviewers = new Google_Service_AndroidEnterprise_Collectionviewers_Resource(
 155          $this,
 156          $this->serviceName,
 157          'collectionviewers',
 158          array(
 159            'methods' => array(
 160              'delete' => array(
 161                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}',
 162                'httpMethod' => 'DELETE',
 163                'parameters' => array(
 164                  'enterpriseId' => array(
 165                    'location' => 'path',
 166                    'type' => 'string',
 167                    'required' => true,
 168                  ),
 169                  'collectionId' => array(
 170                    'location' => 'path',
 171                    'type' => 'string',
 172                    'required' => true,
 173                  ),
 174                  'userId' => array(
 175                    'location' => 'path',
 176                    'type' => 'string',
 177                    'required' => true,
 178                  ),
 179                ),
 180              ),'get' => array(
 181                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}',
 182                'httpMethod' => 'GET',
 183                'parameters' => array(
 184                  'enterpriseId' => array(
 185                    'location' => 'path',
 186                    'type' => 'string',
 187                    'required' => true,
 188                  ),
 189                  'collectionId' => array(
 190                    'location' => 'path',
 191                    'type' => 'string',
 192                    'required' => true,
 193                  ),
 194                  'userId' => array(
 195                    'location' => 'path',
 196                    'type' => 'string',
 197                    'required' => true,
 198                  ),
 199                ),
 200              ),'list' => array(
 201                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users',
 202                'httpMethod' => 'GET',
 203                'parameters' => array(
 204                  'enterpriseId' => array(
 205                    'location' => 'path',
 206                    'type' => 'string',
 207                    'required' => true,
 208                  ),
 209                  'collectionId' => array(
 210                    'location' => 'path',
 211                    'type' => 'string',
 212                    'required' => true,
 213                  ),
 214                ),
 215              ),'patch' => array(
 216                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}',
 217                'httpMethod' => 'PATCH',
 218                'parameters' => array(
 219                  'enterpriseId' => array(
 220                    'location' => 'path',
 221                    'type' => 'string',
 222                    'required' => true,
 223                  ),
 224                  'collectionId' => array(
 225                    'location' => 'path',
 226                    'type' => 'string',
 227                    'required' => true,
 228                  ),
 229                  'userId' => array(
 230                    'location' => 'path',
 231                    'type' => 'string',
 232                    'required' => true,
 233                  ),
 234                ),
 235              ),'update' => array(
 236                'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}',
 237                'httpMethod' => 'PUT',
 238                'parameters' => array(
 239                  'enterpriseId' => array(
 240                    'location' => 'path',
 241                    'type' => 'string',
 242                    'required' => true,
 243                  ),
 244                  'collectionId' => array(
 245                    'location' => 'path',
 246                    'type' => 'string',
 247                    'required' => true,
 248                  ),
 249                  'userId' => array(
 250                    'location' => 'path',
 251                    'type' => 'string',
 252                    'required' => true,
 253                  ),
 254                ),
 255              ),
 256            )
 257          )
 258      );
 259      $this->devices = new Google_Service_AndroidEnterprise_Devices_Resource(
 260          $this,
 261          $this->serviceName,
 262          'devices',
 263          array(
 264            'methods' => array(
 265              'get' => array(
 266                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}',
 267                'httpMethod' => 'GET',
 268                'parameters' => array(
 269                  'enterpriseId' => array(
 270                    'location' => 'path',
 271                    'type' => 'string',
 272                    'required' => true,
 273                  ),
 274                  'userId' => array(
 275                    'location' => 'path',
 276                    'type' => 'string',
 277                    'required' => true,
 278                  ),
 279                  'deviceId' => array(
 280                    'location' => 'path',
 281                    'type' => 'string',
 282                    'required' => true,
 283                  ),
 284                ),
 285              ),'getState' => array(
 286                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state',
 287                'httpMethod' => 'GET',
 288                'parameters' => array(
 289                  'enterpriseId' => array(
 290                    'location' => 'path',
 291                    'type' => 'string',
 292                    'required' => true,
 293                  ),
 294                  'userId' => array(
 295                    'location' => 'path',
 296                    'type' => 'string',
 297                    'required' => true,
 298                  ),
 299                  'deviceId' => array(
 300                    'location' => 'path',
 301                    'type' => 'string',
 302                    'required' => true,
 303                  ),
 304                ),
 305              ),'list' => array(
 306                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices',
 307                'httpMethod' => 'GET',
 308                'parameters' => array(
 309                  'enterpriseId' => array(
 310                    'location' => 'path',
 311                    'type' => 'string',
 312                    'required' => true,
 313                  ),
 314                  'userId' => array(
 315                    'location' => 'path',
 316                    'type' => 'string',
 317                    'required' => true,
 318                  ),
 319                ),
 320              ),'setState' => array(
 321                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state',
 322                'httpMethod' => 'PUT',
 323                'parameters' => array(
 324                  'enterpriseId' => array(
 325                    'location' => 'path',
 326                    'type' => 'string',
 327                    'required' => true,
 328                  ),
 329                  'userId' => array(
 330                    'location' => 'path',
 331                    'type' => 'string',
 332                    'required' => true,
 333                  ),
 334                  'deviceId' => array(
 335                    'location' => 'path',
 336                    'type' => 'string',
 337                    'required' => true,
 338                  ),
 339                ),
 340              ),
 341            )
 342          )
 343      );
 344      $this->enterprises = new Google_Service_AndroidEnterprise_Enterprises_Resource(
 345          $this,
 346          $this->serviceName,
 347          'enterprises',
 348          array(
 349            'methods' => array(
 350              'delete' => array(
 351                'path' => 'enterprises/{enterpriseId}',
 352                'httpMethod' => 'DELETE',
 353                'parameters' => array(
 354                  'enterpriseId' => array(
 355                    'location' => 'path',
 356                    'type' => 'string',
 357                    'required' => true,
 358                  ),
 359                ),
 360              ),'enroll' => array(
 361                'path' => 'enterprises/enroll',
 362                'httpMethod' => 'POST',
 363                'parameters' => array(
 364                  'token' => array(
 365                    'location' => 'query',
 366                    'type' => 'string',
 367                    'required' => true,
 368                  ),
 369                ),
 370              ),'get' => array(
 371                'path' => 'enterprises/{enterpriseId}',
 372                'httpMethod' => 'GET',
 373                'parameters' => array(
 374                  'enterpriseId' => array(
 375                    'location' => 'path',
 376                    'type' => 'string',
 377                    'required' => true,
 378                  ),
 379                ),
 380              ),'insert' => array(
 381                'path' => 'enterprises',
 382                'httpMethod' => 'POST',
 383                'parameters' => array(
 384                  'token' => array(
 385                    'location' => 'query',
 386                    'type' => 'string',
 387                    'required' => true,
 388                  ),
 389                ),
 390              ),'list' => array(
 391                'path' => 'enterprises',
 392                'httpMethod' => 'GET',
 393                'parameters' => array(
 394                  'domain' => array(
 395                    'location' => 'query',
 396                    'type' => 'string',
 397                    'required' => true,
 398                  ),
 399                ),
 400              ),'sendTestPushNotification' => array(
 401                'path' => 'enterprises/{enterpriseId}/sendTestPushNotification',
 402                'httpMethod' => 'POST',
 403                'parameters' => array(
 404                  'enterpriseId' => array(
 405                    'location' => 'path',
 406                    'type' => 'string',
 407                    'required' => true,
 408                  ),
 409                ),
 410              ),'setAccount' => array(
 411                'path' => 'enterprises/{enterpriseId}/account',
 412                'httpMethod' => 'PUT',
 413                'parameters' => array(
 414                  'enterpriseId' => array(
 415                    'location' => 'path',
 416                    'type' => 'string',
 417                    'required' => true,
 418                  ),
 419                ),
 420              ),'unenroll' => array(
 421                'path' => 'enterprises/{enterpriseId}/unenroll',
 422                'httpMethod' => 'POST',
 423                'parameters' => array(
 424                  'enterpriseId' => array(
 425                    'location' => 'path',
 426                    'type' => 'string',
 427                    'required' => true,
 428                  ),
 429                ),
 430              ),
 431            )
 432          )
 433      );
 434      $this->entitlements = new Google_Service_AndroidEnterprise_Entitlements_Resource(
 435          $this,
 436          $this->serviceName,
 437          'entitlements',
 438          array(
 439            'methods' => array(
 440              'delete' => array(
 441                'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
 442                'httpMethod' => 'DELETE',
 443                'parameters' => array(
 444                  'enterpriseId' => array(
 445                    'location' => 'path',
 446                    'type' => 'string',
 447                    'required' => true,
 448                  ),
 449                  'userId' => array(
 450                    'location' => 'path',
 451                    'type' => 'string',
 452                    'required' => true,
 453                  ),
 454                  'entitlementId' => array(
 455                    'location' => 'path',
 456                    'type' => 'string',
 457                    'required' => true,
 458                  ),
 459                ),
 460              ),'get' => array(
 461                'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
 462                'httpMethod' => 'GET',
 463                'parameters' => array(
 464                  'enterpriseId' => array(
 465                    'location' => 'path',
 466                    'type' => 'string',
 467                    'required' => true,
 468                  ),
 469                  'userId' => array(
 470                    'location' => 'path',
 471                    'type' => 'string',
 472                    'required' => true,
 473                  ),
 474                  'entitlementId' => array(
 475                    'location' => 'path',
 476                    'type' => 'string',
 477                    'required' => true,
 478                  ),
 479                ),
 480              ),'list' => array(
 481                'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements',
 482                'httpMethod' => 'GET',
 483                'parameters' => array(
 484                  'enterpriseId' => array(
 485                    'location' => 'path',
 486                    'type' => 'string',
 487                    'required' => true,
 488                  ),
 489                  'userId' => array(
 490                    'location' => 'path',
 491                    'type' => 'string',
 492                    'required' => true,
 493                  ),
 494                ),
 495              ),'patch' => array(
 496                'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
 497                'httpMethod' => 'PATCH',
 498                'parameters' => array(
 499                  'enterpriseId' => array(
 500                    'location' => 'path',
 501                    'type' => 'string',
 502                    'required' => true,
 503                  ),
 504                  'userId' => array(
 505                    'location' => 'path',
 506                    'type' => 'string',
 507                    'required' => true,
 508                  ),
 509                  'entitlementId' => array(
 510                    'location' => 'path',
 511                    'type' => 'string',
 512                    'required' => true,
 513                  ),
 514                  'install' => array(
 515                    'location' => 'query',
 516                    'type' => 'boolean',
 517                  ),
 518                ),
 519              ),'update' => array(
 520                'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
 521                'httpMethod' => 'PUT',
 522                'parameters' => array(
 523                  'enterpriseId' => array(
 524                    'location' => 'path',
 525                    'type' => 'string',
 526                    'required' => true,
 527                  ),
 528                  'userId' => array(
 529                    'location' => 'path',
 530                    'type' => 'string',
 531                    'required' => true,
 532                  ),
 533                  'entitlementId' => array(
 534                    'location' => 'path',
 535                    'type' => 'string',
 536                    'required' => true,
 537                  ),
 538                  'install' => array(
 539                    'location' => 'query',
 540                    'type' => 'boolean',
 541                  ),
 542                ),
 543              ),
 544            )
 545          )
 546      );
 547      $this->grouplicenses = new Google_Service_AndroidEnterprise_Grouplicenses_Resource(
 548          $this,
 549          $this->serviceName,
 550          'grouplicenses',
 551          array(
 552            'methods' => array(
 553              'get' => array(
 554                'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}',
 555                'httpMethod' => 'GET',
 556                'parameters' => array(
 557                  'enterpriseId' => array(
 558                    'location' => 'path',
 559                    'type' => 'string',
 560                    'required' => true,
 561                  ),
 562                  'groupLicenseId' => array(
 563                    'location' => 'path',
 564                    'type' => 'string',
 565                    'required' => true,
 566                  ),
 567                ),
 568              ),'list' => array(
 569                'path' => 'enterprises/{enterpriseId}/groupLicenses',
 570                'httpMethod' => 'GET',
 571                'parameters' => array(
 572                  'enterpriseId' => array(
 573                    'location' => 'path',
 574                    'type' => 'string',
 575                    'required' => true,
 576                  ),
 577                ),
 578              ),
 579            )
 580          )
 581      );
 582      $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Grouplicenseusers_Resource(
 583          $this,
 584          $this->serviceName,
 585          'grouplicenseusers',
 586          array(
 587            'methods' => array(
 588              'list' => array(
 589                'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users',
 590                'httpMethod' => 'GET',
 591                'parameters' => array(
 592                  'enterpriseId' => array(
 593                    'location' => 'path',
 594                    'type' => 'string',
 595                    'required' => true,
 596                  ),
 597                  'groupLicenseId' => array(
 598                    'location' => 'path',
 599                    'type' => 'string',
 600                    'required' => true,
 601                  ),
 602                ),
 603              ),
 604            )
 605          )
 606      );
 607      $this->installs = new Google_Service_AndroidEnterprise_Installs_Resource(
 608          $this,
 609          $this->serviceName,
 610          'installs',
 611          array(
 612            'methods' => array(
 613              'delete' => array(
 614                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
 615                'httpMethod' => 'DELETE',
 616                'parameters' => array(
 617                  'enterpriseId' => array(
 618                    'location' => 'path',
 619                    'type' => 'string',
 620                    'required' => true,
 621                  ),
 622                  'userId' => array(
 623                    'location' => 'path',
 624                    'type' => 'string',
 625                    'required' => true,
 626                  ),
 627                  'deviceId' => array(
 628                    'location' => 'path',
 629                    'type' => 'string',
 630                    'required' => true,
 631                  ),
 632                  'installId' => array(
 633                    'location' => 'path',
 634                    'type' => 'string',
 635                    'required' => true,
 636                  ),
 637                ),
 638              ),'get' => array(
 639                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
 640                'httpMethod' => 'GET',
 641                'parameters' => array(
 642                  'enterpriseId' => array(
 643                    'location' => 'path',
 644                    'type' => 'string',
 645                    'required' => true,
 646                  ),
 647                  'userId' => array(
 648                    'location' => 'path',
 649                    'type' => 'string',
 650                    'required' => true,
 651                  ),
 652                  'deviceId' => array(
 653                    'location' => 'path',
 654                    'type' => 'string',
 655                    'required' => true,
 656                  ),
 657                  'installId' => array(
 658                    'location' => 'path',
 659                    'type' => 'string',
 660                    'required' => true,
 661                  ),
 662                ),
 663              ),'list' => array(
 664                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs',
 665                'httpMethod' => 'GET',
 666                'parameters' => array(
 667                  'enterpriseId' => array(
 668                    'location' => 'path',
 669                    'type' => 'string',
 670                    'required' => true,
 671                  ),
 672                  'userId' => array(
 673                    'location' => 'path',
 674                    'type' => 'string',
 675                    'required' => true,
 676                  ),
 677                  'deviceId' => array(
 678                    'location' => 'path',
 679                    'type' => 'string',
 680                    'required' => true,
 681                  ),
 682                ),
 683              ),'patch' => array(
 684                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
 685                'httpMethod' => 'PATCH',
 686                'parameters' => array(
 687                  'enterpriseId' => array(
 688                    'location' => 'path',
 689                    'type' => 'string',
 690                    'required' => true,
 691                  ),
 692                  'userId' => array(
 693                    'location' => 'path',
 694                    'type' => 'string',
 695                    'required' => true,
 696                  ),
 697                  'deviceId' => array(
 698                    'location' => 'path',
 699                    'type' => 'string',
 700                    'required' => true,
 701                  ),
 702                  'installId' => array(
 703                    'location' => 'path',
 704                    'type' => 'string',
 705                    'required' => true,
 706                  ),
 707                ),
 708              ),'update' => array(
 709                'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
 710                'httpMethod' => 'PUT',
 711                'parameters' => array(
 712                  'enterpriseId' => array(
 713                    'location' => 'path',
 714                    'type' => 'string',
 715                    'required' => true,
 716                  ),
 717                  'userId' => array(
 718                    'location' => 'path',
 719                    'type' => 'string',
 720                    'required' => true,
 721                  ),
 722                  'deviceId' => array(
 723                    'location' => 'path',
 724                    'type' => 'string',
 725                    'required' => true,
 726                  ),
 727                  'installId' => array(
 728                    'location' => 'path',
 729                    'type' => 'string',
 730                    'required' => true,
 731                  ),
 732                ),
 733              ),
 734            )
 735          )
 736      );
 737      $this->permissions = new Google_Service_AndroidEnterprise_Permissions_Resource(
 738          $this,
 739          $this->serviceName,
 740          'permissions',
 741          array(
 742            'methods' => array(
 743              'get' => array(
 744                'path' => 'permissions/{permissionId}',
 745                'httpMethod' => 'GET',
 746                'parameters' => array(
 747                  'permissionId' => array(
 748                    'location' => 'path',
 749                    'type' => 'string',
 750                    'required' => true,
 751                  ),
 752                  'language' => array(
 753                    'location' => 'query',
 754                    'type' => 'string',
 755                  ),
 756                ),
 757              ),
 758            )
 759          )
 760      );
 761      $this->products = new Google_Service_AndroidEnterprise_Products_Resource(
 762          $this,
 763          $this->serviceName,
 764          'products',
 765          array(
 766            'methods' => array(
 767              'approve' => array(
 768                'path' => 'enterprises/{enterpriseId}/products/{productId}/approve',
 769                'httpMethod' => 'POST',
 770                'parameters' => array(
 771                  'enterpriseId' => array(
 772                    'location' => 'path',
 773                    'type' => 'string',
 774                    'required' => true,
 775                  ),
 776                  'productId' => array(
 777                    'location' => 'path',
 778                    'type' => 'string',
 779                    'required' => true,
 780                  ),
 781                ),
 782              ),'generateApprovalUrl' => array(
 783                'path' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl',
 784                'httpMethod' => 'POST',
 785                'parameters' => array(
 786                  'enterpriseId' => array(
 787                    'location' => 'path',
 788                    'type' => 'string',
 789                    'required' => true,
 790                  ),
 791                  'productId' => array(
 792                    'location' => 'path',
 793                    'type' => 'string',
 794                    'required' => true,
 795                  ),
 796                  'languageCode' => array(
 797                    'location' => 'query',
 798                    'type' => 'string',
 799                  ),
 800                ),
 801              ),'get' => array(
 802                'path' => 'enterprises/{enterpriseId}/products/{productId}',
 803                'httpMethod' => 'GET',
 804                'parameters' => array(
 805                  'enterpriseId' => array(
 806                    'location' => 'path',
 807                    'type' => 'string',
 808                    'required' => true,
 809                  ),
 810                  'productId' => array(
 811                    'location' => 'path',
 812                    'type' => 'string',
 813                    'required' => true,
 814                  ),
 815                  'language' => array(
 816                    'location' => 'query',
 817                    'type' => 'string',
 818                  ),
 819                ),
 820              ),'getAppRestrictionsSchema' => array(
 821                'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema',
 822                'httpMethod' => 'GET',
 823                'parameters' => array(
 824                  'enterpriseId' => array(
 825                    'location' => 'path',
 826                    'type' => 'string',
 827                    'required' => true,
 828                  ),
 829                  'productId' => array(
 830                    'location' => 'path',
 831                    'type' => 'string',
 832                    'required' => true,
 833                  ),
 834                  'language' => array(
 835                    'location' => 'query',
 836                    'type' => 'string',
 837                  ),
 838                ),
 839              ),'getPermissions' => array(
 840                'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions',
 841                'httpMethod' => 'GET',
 842                'parameters' => array(
 843                  'enterpriseId' => array(
 844                    'location' => 'path',
 845                    'type' => 'string',
 846                    'required' => true,
 847                  ),
 848                  'productId' => array(
 849                    'location' => 'path',
 850                    'type' => 'string',
 851                    'required' => true,
 852                  ),
 853                ),
 854              ),'updatePermissions' => array(
 855                'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions',
 856                'httpMethod' => 'PUT',
 857                'parameters' => array(
 858                  'enterpriseId' => array(
 859                    'location' => 'path',
 860                    'type' => 'string',
 861                    'required' => true,
 862                  ),
 863                  'productId' => array(
 864                    'location' => 'path',
 865                    'type' => 'string',
 866                    'required' => true,
 867                  ),
 868                ),
 869              ),
 870            )
 871          )
 872      );
 873      $this->users = new Google_Service_AndroidEnterprise_Users_Resource(
 874          $this,
 875          $this->serviceName,
 876          'users',
 877          array(
 878            'methods' => array(
 879              'generateToken' => array(
 880                'path' => 'enterprises/{enterpriseId}/users/{userId}/token',
 881                'httpMethod' => 'POST',
 882                'parameters' => array(
 883                  'enterpriseId' => array(
 884                    'location' => 'path',
 885                    'type' => 'string',
 886                    'required' => true,
 887                  ),
 888                  'userId' => array(
 889                    'location' => 'path',
 890                    'type' => 'string',
 891                    'required' => true,
 892                  ),
 893                ),
 894              ),'get' => array(
 895                'path' => 'enterprises/{enterpriseId}/users/{userId}',
 896                'httpMethod' => 'GET',
 897                'parameters' => array(
 898                  'enterpriseId' => array(
 899                    'location' => 'path',
 900                    'type' => 'string',
 901                    'required' => true,
 902                  ),
 903                  'userId' => array(
 904                    'location' => 'path',
 905                    'type' => 'string',
 906                    'required' => true,
 907                  ),
 908                ),
 909              ),'getAvailableProductSet' => array(
 910                'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet',
 911                'httpMethod' => 'GET',
 912                'parameters' => array(
 913                  'enterpriseId' => array(
 914                    'location' => 'path',
 915                    'type' => 'string',
 916                    'required' => true,
 917                  ),
 918                  'userId' => array(
 919                    'location' => 'path',
 920                    'type' => 'string',
 921                    'required' => true,
 922                  ),
 923                ),
 924              ),'list' => array(
 925                'path' => 'enterprises/{enterpriseId}/users',
 926                'httpMethod' => 'GET',
 927                'parameters' => array(
 928                  'enterpriseId' => array(
 929                    'location' => 'path',
 930                    'type' => 'string',
 931                    'required' => true,
 932                  ),
 933                  'email' => array(
 934                    'location' => 'query',
 935                    'type' => 'string',
 936                    'required' => true,
 937                  ),
 938                ),
 939              ),'revokeToken' => array(
 940                'path' => 'enterprises/{enterpriseId}/users/{userId}/token',
 941                'httpMethod' => 'DELETE',
 942                'parameters' => array(
 943                  'enterpriseId' => array(
 944                    'location' => 'path',
 945                    'type' => 'string',
 946                    'required' => true,
 947                  ),
 948                  'userId' => array(
 949                    'location' => 'path',
 950                    'type' => 'string',
 951                    'required' => true,
 952                  ),
 953                ),
 954              ),'setAvailableProductSet' => array(
 955                'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet',
 956                'httpMethod' => 'PUT',
 957                'parameters' => array(
 958                  'enterpriseId' => array(
 959                    'location' => 'path',
 960                    'type' => 'string',
 961                    'required' => true,
 962                  ),
 963                  'userId' => array(
 964                    'location' => 'path',
 965                    'type' => 'string',
 966                    'required' => true,
 967                  ),
 968                ),
 969              ),
 970            )
 971          )
 972      );
 973    }
 974  }
 975  
 976  
 977  /**
 978   * The "collections" collection of methods.
 979   * Typical usage is:
 980   *  <code>
 981   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
 982   *   $collections = $androidenterpriseService->collections;
 983   *  </code>
 984   */
 985  class Google_Service_AndroidEnterprise_Collections_Resource extends Google_Service_Resource
 986  {
 987  
 988    /**
 989     * Deletes a collection. (collections.delete)
 990     *
 991     * @param string $enterpriseId The ID of the enterprise.
 992     * @param string $collectionId The ID of the collection.
 993     * @param array $optParams Optional parameters.
 994     */
 995    public function delete($enterpriseId, $collectionId, $optParams = array())
 996    {
 997      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
 998      $params = array_merge($params, $optParams);
 999      return $this->call('delete', array($params));
1000    }
1001  
1002    /**
1003     * Retrieves the details of a collection. (collections.get)
1004     *
1005     * @param string $enterpriseId The ID of the enterprise.
1006     * @param string $collectionId The ID of the collection.
1007     * @param array $optParams Optional parameters.
1008     * @return Google_Service_AndroidEnterprise_Collection
1009     */
1010    public function get($enterpriseId, $collectionId, $optParams = array())
1011    {
1012      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
1013      $params = array_merge($params, $optParams);
1014      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection");
1015    }
1016  
1017    /**
1018     * Creates a new collection. (collections.insert)
1019     *
1020     * @param string $enterpriseId The ID of the enterprise.
1021     * @param Google_Collection $postBody
1022     * @param array $optParams Optional parameters.
1023     * @return Google_Service_AndroidEnterprise_Collection
1024     */
1025    public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
1026    {
1027      $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
1028      $params = array_merge($params, $optParams);
1029      return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection");
1030    }
1031  
1032    /**
1033     * Retrieves the IDs of all the collections for an enterprise.
1034     * (collections.listCollections)
1035     *
1036     * @param string $enterpriseId The ID of the enterprise.
1037     * @param array $optParams Optional parameters.
1038     * @return Google_Service_AndroidEnterprise_CollectionsListResponse
1039     */
1040    public function listCollections($enterpriseId, $optParams = array())
1041    {
1042      $params = array('enterpriseId' => $enterpriseId);
1043      $params = array_merge($params, $optParams);
1044      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse");
1045    }
1046  
1047    /**
1048     * Updates a collection. This method supports patch semantics.
1049     * (collections.patch)
1050     *
1051     * @param string $enterpriseId The ID of the enterprise.
1052     * @param string $collectionId The ID of the collection.
1053     * @param Google_Collection $postBody
1054     * @param array $optParams Optional parameters.
1055     * @return Google_Service_AndroidEnterprise_Collection
1056     */
1057    public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
1058    {
1059      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
1060      $params = array_merge($params, $optParams);
1061      return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection");
1062    }
1063  
1064    /**
1065     * Updates a collection. (collections.update)
1066     *
1067     * @param string $enterpriseId The ID of the enterprise.
1068     * @param string $collectionId The ID of the collection.
1069     * @param Google_Collection $postBody
1070     * @param array $optParams Optional parameters.
1071     * @return Google_Service_AndroidEnterprise_Collection
1072     */
1073    public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
1074    {
1075      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
1076      $params = array_merge($params, $optParams);
1077      return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection");
1078    }
1079  }
1080  
1081  /**
1082   * The "collectionviewers" collection of methods.
1083   * Typical usage is:
1084   *  <code>
1085   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1086   *   $collectionviewers = $androidenterpriseService->collectionviewers;
1087   *  </code>
1088   */
1089  class Google_Service_AndroidEnterprise_Collectionviewers_Resource extends Google_Service_Resource
1090  {
1091  
1092    /**
1093     * Removes the user from the list of those specifically allowed to see the
1094     * collection. If the collection's visibility is set to viewersOnly then only
1095     * such users will see the collection. (collectionviewers.delete)
1096     *
1097     * @param string $enterpriseId The ID of the enterprise.
1098     * @param string $collectionId The ID of the collection.
1099     * @param string $userId The ID of the user.
1100     * @param array $optParams Optional parameters.
1101     */
1102    public function delete($enterpriseId, $collectionId, $userId, $optParams = array())
1103    {
1104      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
1105      $params = array_merge($params, $optParams);
1106      return $this->call('delete', array($params));
1107    }
1108  
1109    /**
1110     * Retrieves the ID of the user if they have been specifically allowed to see
1111     * the collection. If the collection's visibility is set to viewersOnly then
1112     * only these users will see the collection. (collectionviewers.get)
1113     *
1114     * @param string $enterpriseId The ID of the enterprise.
1115     * @param string $collectionId The ID of the collection.
1116     * @param string $userId The ID of the user.
1117     * @param array $optParams Optional parameters.
1118     * @return Google_Service_AndroidEnterprise_User
1119     */
1120    public function get($enterpriseId, $collectionId, $userId, $optParams = array())
1121    {
1122      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
1123      $params = array_merge($params, $optParams);
1124      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
1125    }
1126  
1127    /**
1128     * Retrieves the IDs of the users who have been specifically allowed to see the
1129     * collection. If the collection's visibility is set to viewersOnly then only
1130     * these users will see the collection.
1131     * (collectionviewers.listCollectionviewers)
1132     *
1133     * @param string $enterpriseId The ID of the enterprise.
1134     * @param string $collectionId The ID of the collection.
1135     * @param array $optParams Optional parameters.
1136     * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse
1137     */
1138    public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array())
1139    {
1140      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
1141      $params = array_merge($params, $optParams);
1142      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse");
1143    }
1144  
1145    /**
1146     * Adds the user to the list of those specifically allowed to see the
1147     * collection. If the collection's visibility is set to viewersOnly then only
1148     * such users will see the collection. This method supports patch semantics.
1149     * (collectionviewers.patch)
1150     *
1151     * @param string $enterpriseId The ID of the enterprise.
1152     * @param string $collectionId The ID of the collection.
1153     * @param string $userId The ID of the user.
1154     * @param Google_User $postBody
1155     * @param array $optParams Optional parameters.
1156     * @return Google_Service_AndroidEnterprise_User
1157     */
1158    public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
1159    {
1160      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
1161      $params = array_merge($params, $optParams);
1162      return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User");
1163    }
1164  
1165    /**
1166     * Adds the user to the list of those specifically allowed to see the
1167     * collection. If the collection's visibility is set to viewersOnly then only
1168     * such users will see the collection. (collectionviewers.update)
1169     *
1170     * @param string $enterpriseId The ID of the enterprise.
1171     * @param string $collectionId The ID of the collection.
1172     * @param string $userId The ID of the user.
1173     * @param Google_User $postBody
1174     * @param array $optParams Optional parameters.
1175     * @return Google_Service_AndroidEnterprise_User
1176     */
1177    public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
1178    {
1179      $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
1180      $params = array_merge($params, $optParams);
1181      return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User");
1182    }
1183  }
1184  
1185  /**
1186   * The "devices" collection of methods.
1187   * Typical usage is:
1188   *  <code>
1189   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1190   *   $devices = $androidenterpriseService->devices;
1191   *  </code>
1192   */
1193  class Google_Service_AndroidEnterprise_Devices_Resource extends Google_Service_Resource
1194  {
1195  
1196    /**
1197     * Retrieves the details of a device. (devices.get)
1198     *
1199     * @param string $enterpriseId The ID of the enterprise.
1200     * @param string $userId The ID of the user.
1201     * @param string $deviceId The ID of the device.
1202     * @param array $optParams Optional parameters.
1203     * @return Google_Service_AndroidEnterprise_Device
1204     */
1205    public function get($enterpriseId, $userId, $deviceId, $optParams = array())
1206    {
1207      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
1208      $params = array_merge($params, $optParams);
1209      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device");
1210    }
1211  
1212    /**
1213     * Retrieves whether a device is enabled or disabled for access by the user to
1214     * Google services. The device state takes effect only if enforcing EMM policies
1215     * on Android devices is enabled in the Google Admin Console. Otherwise, the
1216     * device state is ignored and all devices are allowed access to Google
1217     * services. (devices.getState)
1218     *
1219     * @param string $enterpriseId The ID of the enterprise.
1220     * @param string $userId The ID of the user.
1221     * @param string $deviceId The ID of the device.
1222     * @param array $optParams Optional parameters.
1223     * @return Google_Service_AndroidEnterprise_DeviceState
1224     */
1225    public function getState($enterpriseId, $userId, $deviceId, $optParams = array())
1226    {
1227      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
1228      $params = array_merge($params, $optParams);
1229      return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
1230    }
1231  
1232    /**
1233     * Retrieves the IDs of all of a user's devices. (devices.listDevices)
1234     *
1235     * @param string $enterpriseId The ID of the enterprise.
1236     * @param string $userId The ID of the user.
1237     * @param array $optParams Optional parameters.
1238     * @return Google_Service_AndroidEnterprise_DevicesListResponse
1239     */
1240    public function listDevices($enterpriseId, $userId, $optParams = array())
1241    {
1242      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1243      $params = array_merge($params, $optParams);
1244      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse");
1245    }
1246  
1247    /**
1248     * Sets whether a device is enabled or disabled for access by the user to Google
1249     * services. The device state takes effect only if enforcing EMM policies on
1250     * Android devices is enabled in the Google Admin Console. Otherwise, the device
1251     * state is ignored and all devices are allowed access to Google services.
1252     * (devices.setState)
1253     *
1254     * @param string $enterpriseId The ID of the enterprise.
1255     * @param string $userId The ID of the user.
1256     * @param string $deviceId The ID of the device.
1257     * @param Google_DeviceState $postBody
1258     * @param array $optParams Optional parameters.
1259     * @return Google_Service_AndroidEnterprise_DeviceState
1260     */
1261    public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array())
1262    {
1263      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1264      $params = array_merge($params, $optParams);
1265      return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
1266    }
1267  }
1268  
1269  /**
1270   * The "enterprises" collection of methods.
1271   * Typical usage is:
1272   *  <code>
1273   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1274   *   $enterprises = $androidenterpriseService->enterprises;
1275   *  </code>
1276   */
1277  class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Service_Resource
1278  {
1279  
1280    /**
1281     * Deletes the binding between the MDM and enterprise. This is now deprecated;
1282     * use this to unenroll customers that were previously enrolled with the
1283     * 'insert' call, then enroll them again with the 'enroll' call.
1284     * (enterprises.delete)
1285     *
1286     * @param string $enterpriseId The ID of the enterprise.
1287     * @param array $optParams Optional parameters.
1288     */
1289    public function delete($enterpriseId, $optParams = array())
1290    {
1291      $params = array('enterpriseId' => $enterpriseId);
1292      $params = array_merge($params, $optParams);
1293      return $this->call('delete', array($params));
1294    }
1295  
1296    /**
1297     * Enrolls an enterprise with the calling MDM. (enterprises.enroll)
1298     *
1299     * @param string $token The token provided by the enterprise to register the
1300     * MDM.
1301     * @param Google_Enterprise $postBody
1302     * @param array $optParams Optional parameters.
1303     * @return Google_Service_AndroidEnterprise_Enterprise
1304     */
1305    public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
1306    {
1307      $params = array('token' => $token, 'postBody' => $postBody);
1308      $params = array_merge($params, $optParams);
1309      return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise");
1310    }
1311  
1312    /**
1313     * Retrieves the name and domain of an enterprise. (enterprises.get)
1314     *
1315     * @param string $enterpriseId The ID of the enterprise.
1316     * @param array $optParams Optional parameters.
1317     * @return Google_Service_AndroidEnterprise_Enterprise
1318     */
1319    public function get($enterpriseId, $optParams = array())
1320    {
1321      $params = array('enterpriseId' => $enterpriseId);
1322      $params = array_merge($params, $optParams);
1323      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise");
1324    }
1325  
1326    /**
1327     * Establishes the binding between the MDM and an enterprise. This is now
1328     * deprecated; use enroll instead. (enterprises.insert)
1329     *
1330     * @param string $token The token provided by the enterprise to register the
1331     * MDM.
1332     * @param Google_Enterprise $postBody
1333     * @param array $optParams Optional parameters.
1334     * @return Google_Service_AndroidEnterprise_Enterprise
1335     */
1336    public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
1337    {
1338      $params = array('token' => $token, 'postBody' => $postBody);
1339      $params = array_merge($params, $optParams);
1340      return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise");
1341    }
1342  
1343    /**
1344     * Looks up an enterprise by domain name. (enterprises.listEnterprises)
1345     *
1346     * @param string $domain The exact primary domain name of the enterprise to look
1347     * up.
1348     * @param array $optParams Optional parameters.
1349     * @return Google_Service_AndroidEnterprise_EnterprisesListResponse
1350     */
1351    public function listEnterprises($domain, $optParams = array())
1352    {
1353      $params = array('domain' => $domain);
1354      $params = array_merge($params, $optParams);
1355      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse");
1356    }
1357  
1358    /**
1359     * Sends a test push notification to validate the MDM integration with the
1360     * Google Cloud Pub/Sub service for this enterprise.
1361     * (enterprises.sendTestPushNotification)
1362     *
1363     * @param string $enterpriseId The ID of the enterprise.
1364     * @param array $optParams Optional parameters.
1365     * @return Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse
1366     */
1367    public function sendTestPushNotification($enterpriseId, $optParams = array())
1368    {
1369      $params = array('enterpriseId' => $enterpriseId);
1370      $params = array_merge($params, $optParams);
1371      return $this->call('sendTestPushNotification', array($params), "Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse");
1372    }
1373  
1374    /**
1375     * Set the account that will be used to authenticate to the API as the
1376     * enterprise. (enterprises.setAccount)
1377     *
1378     * @param string $enterpriseId The ID of the enterprise.
1379     * @param Google_EnterpriseAccount $postBody
1380     * @param array $optParams Optional parameters.
1381     * @return Google_Service_AndroidEnterprise_EnterpriseAccount
1382     */
1383    public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array())
1384    {
1385      $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
1386      $params = array_merge($params, $optParams);
1387      return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount");
1388    }
1389  
1390    /**
1391     * Unenrolls an enterprise from the calling MDM. (enterprises.unenroll)
1392     *
1393     * @param string $enterpriseId The ID of the enterprise.
1394     * @param array $optParams Optional parameters.
1395     */
1396    public function unenroll($enterpriseId, $optParams = array())
1397    {
1398      $params = array('enterpriseId' => $enterpriseId);
1399      $params = array_merge($params, $optParams);
1400      return $this->call('unenroll', array($params));
1401    }
1402  }
1403  
1404  /**
1405   * The "entitlements" collection of methods.
1406   * Typical usage is:
1407   *  <code>
1408   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1409   *   $entitlements = $androidenterpriseService->entitlements;
1410   *  </code>
1411   */
1412  class Google_Service_AndroidEnterprise_Entitlements_Resource extends Google_Service_Resource
1413  {
1414  
1415    /**
1416     * Removes an entitlement to an app for a user and uninstalls it.
1417     * (entitlements.delete)
1418     *
1419     * @param string $enterpriseId The ID of the enterprise.
1420     * @param string $userId The ID of the user.
1421     * @param string $entitlementId The ID of the entitlement, e.g.
1422     * "app:com.google.android.gm".
1423     * @param array $optParams Optional parameters.
1424     */
1425    public function delete($enterpriseId, $userId, $entitlementId, $optParams = array())
1426    {
1427      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
1428      $params = array_merge($params, $optParams);
1429      return $this->call('delete', array($params));
1430    }
1431  
1432    /**
1433     * Retrieves details of an entitlement. (entitlements.get)
1434     *
1435     * @param string $enterpriseId The ID of the enterprise.
1436     * @param string $userId The ID of the user.
1437     * @param string $entitlementId The ID of the entitlement, e.g.
1438     * "app:com.google.android.gm".
1439     * @param array $optParams Optional parameters.
1440     * @return Google_Service_AndroidEnterprise_Entitlement
1441     */
1442    public function get($enterpriseId, $userId, $entitlementId, $optParams = array())
1443    {
1444      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
1445      $params = array_merge($params, $optParams);
1446      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement");
1447    }
1448  
1449    /**
1450     * List of all entitlements for the specified user. Only the ID is set.
1451     * (entitlements.listEntitlements)
1452     *
1453     * @param string $enterpriseId The ID of the enterprise.
1454     * @param string $userId The ID of the user.
1455     * @param array $optParams Optional parameters.
1456     * @return Google_Service_AndroidEnterprise_EntitlementsListResponse
1457     */
1458    public function listEntitlements($enterpriseId, $userId, $optParams = array())
1459    {
1460      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1461      $params = array_merge($params, $optParams);
1462      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse");
1463    }
1464  
1465    /**
1466     * Adds or updates an entitlement to an app for a user. This method supports
1467     * patch semantics. (entitlements.patch)
1468     *
1469     * @param string $enterpriseId The ID of the enterprise.
1470     * @param string $userId The ID of the user.
1471     * @param string $entitlementId The ID of the entitlement, e.g.
1472     * "app:com.google.android.gm".
1473     * @param Google_Entitlement $postBody
1474     * @param array $optParams Optional parameters.
1475     *
1476     * @opt_param bool install Set to true to also install the product on all the
1477     * user's devices where possible. Failure to install on one or more devices will
1478     * not prevent this operation from returning successfully, as long as the
1479     * entitlement was successfully assigned to the user.
1480     * @return Google_Service_AndroidEnterprise_Entitlement
1481     */
1482    public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
1483    {
1484      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
1485      $params = array_merge($params, $optParams);
1486      return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement");
1487    }
1488  
1489    /**
1490     * Adds or updates an entitlement to an app for a user. (entitlements.update)
1491     *
1492     * @param string $enterpriseId The ID of the enterprise.
1493     * @param string $userId The ID of the user.
1494     * @param string $entitlementId The ID of the entitlement, e.g.
1495     * "app:com.google.android.gm".
1496     * @param Google_Entitlement $postBody
1497     * @param array $optParams Optional parameters.
1498     *
1499     * @opt_param bool install Set to true to also install the product on all the
1500     * user's devices where possible. Failure to install on one or more devices will
1501     * not prevent this operation from returning successfully, as long as the
1502     * entitlement was successfully assigned to the user.
1503     * @return Google_Service_AndroidEnterprise_Entitlement
1504     */
1505    public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
1506    {
1507      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
1508      $params = array_merge($params, $optParams);
1509      return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement");
1510    }
1511  }
1512  
1513  /**
1514   * The "grouplicenses" collection of methods.
1515   * Typical usage is:
1516   *  <code>
1517   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1518   *   $grouplicenses = $androidenterpriseService->grouplicenses;
1519   *  </code>
1520   */
1521  class Google_Service_AndroidEnterprise_Grouplicenses_Resource extends Google_Service_Resource
1522  {
1523  
1524    /**
1525     * Retrieves details of an enterprise's group license for a product.
1526     * (grouplicenses.get)
1527     *
1528     * @param string $enterpriseId The ID of the enterprise.
1529     * @param string $groupLicenseId The ID of the product the group license is for,
1530     * e.g. "app:com.google.android.gm".
1531     * @param array $optParams Optional parameters.
1532     * @return Google_Service_AndroidEnterprise_GroupLicense
1533     */
1534    public function get($enterpriseId, $groupLicenseId, $optParams = array())
1535    {
1536      $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
1537      $params = array_merge($params, $optParams);
1538      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense");
1539    }
1540  
1541    /**
1542     * Retrieves IDs of all products for which the enterprise has a group license.
1543     * (grouplicenses.listGrouplicenses)
1544     *
1545     * @param string $enterpriseId The ID of the enterprise.
1546     * @param array $optParams Optional parameters.
1547     * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse
1548     */
1549    public function listGrouplicenses($enterpriseId, $optParams = array())
1550    {
1551      $params = array('enterpriseId' => $enterpriseId);
1552      $params = array_merge($params, $optParams);
1553      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse");
1554    }
1555  }
1556  
1557  /**
1558   * The "grouplicenseusers" collection of methods.
1559   * Typical usage is:
1560   *  <code>
1561   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1562   *   $grouplicenseusers = $androidenterpriseService->grouplicenseusers;
1563   *  </code>
1564   */
1565  class Google_Service_AndroidEnterprise_Grouplicenseusers_Resource extends Google_Service_Resource
1566  {
1567  
1568    /**
1569     * Retrieves the IDs of the users who have been granted entitlements under the
1570     * license. (grouplicenseusers.listGrouplicenseusers)
1571     *
1572     * @param string $enterpriseId The ID of the enterprise.
1573     * @param string $groupLicenseId The ID of the product the group license is for,
1574     * e.g. "app:com.google.android.gm".
1575     * @param array $optParams Optional parameters.
1576     * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse
1577     */
1578    public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array())
1579    {
1580      $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
1581      $params = array_merge($params, $optParams);
1582      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse");
1583    }
1584  }
1585  
1586  /**
1587   * The "installs" collection of methods.
1588   * Typical usage is:
1589   *  <code>
1590   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1591   *   $installs = $androidenterpriseService->installs;
1592   *  </code>
1593   */
1594  class Google_Service_AndroidEnterprise_Installs_Resource extends Google_Service_Resource
1595  {
1596  
1597    /**
1598     * Requests to remove an app from a device. A call to get or list will still
1599     * show the app as installed on the device until it is actually removed.
1600     * (installs.delete)
1601     *
1602     * @param string $enterpriseId The ID of the enterprise.
1603     * @param string $userId The ID of the user.
1604     * @param string $deviceId The Android ID of the device.
1605     * @param string $installId The ID of the product represented by the install,
1606     * e.g. "app:com.google.android.gm".
1607     * @param array $optParams Optional parameters.
1608     */
1609    public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
1610    {
1611      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
1612      $params = array_merge($params, $optParams);
1613      return $this->call('delete', array($params));
1614    }
1615  
1616    /**
1617     * Retrieves details of an installation of an app on a device. (installs.get)
1618     *
1619     * @param string $enterpriseId The ID of the enterprise.
1620     * @param string $userId The ID of the user.
1621     * @param string $deviceId The Android ID of the device.
1622     * @param string $installId The ID of the product represented by the install,
1623     * e.g. "app:com.google.android.gm".
1624     * @param array $optParams Optional parameters.
1625     * @return Google_Service_AndroidEnterprise_Install
1626     */
1627    public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
1628    {
1629      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
1630      $params = array_merge($params, $optParams);
1631      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install");
1632    }
1633  
1634    /**
1635     * Retrieves the details of all apps installed on the specified device.
1636     * (installs.listInstalls)
1637     *
1638     * @param string $enterpriseId The ID of the enterprise.
1639     * @param string $userId The ID of the user.
1640     * @param string $deviceId The Android ID of the device.
1641     * @param array $optParams Optional parameters.
1642     * @return Google_Service_AndroidEnterprise_InstallsListResponse
1643     */
1644    public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array())
1645    {
1646      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
1647      $params = array_merge($params, $optParams);
1648      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse");
1649    }
1650  
1651    /**
1652     * Requests to install the latest version of an app to a device. If the app is
1653     * already installed then it is updated to the latest version if necessary. This
1654     * method supports patch semantics. (installs.patch)
1655     *
1656     * @param string $enterpriseId The ID of the enterprise.
1657     * @param string $userId The ID of the user.
1658     * @param string $deviceId The Android ID of the device.
1659     * @param string $installId The ID of the product represented by the install,
1660     * e.g. "app:com.google.android.gm".
1661     * @param Google_Install $postBody
1662     * @param array $optParams Optional parameters.
1663     * @return Google_Service_AndroidEnterprise_Install
1664     */
1665    public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
1666    {
1667      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
1668      $params = array_merge($params, $optParams);
1669      return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install");
1670    }
1671  
1672    /**
1673     * Requests to install the latest version of an app to a device. If the app is
1674     * already installed then it is updated to the latest version if necessary.
1675     * (installs.update)
1676     *
1677     * @param string $enterpriseId The ID of the enterprise.
1678     * @param string $userId The ID of the user.
1679     * @param string $deviceId The Android ID of the device.
1680     * @param string $installId The ID of the product represented by the install,
1681     * e.g. "app:com.google.android.gm".
1682     * @param Google_Install $postBody
1683     * @param array $optParams Optional parameters.
1684     * @return Google_Service_AndroidEnterprise_Install
1685     */
1686    public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
1687    {
1688      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
1689      $params = array_merge($params, $optParams);
1690      return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install");
1691    }
1692  }
1693  
1694  /**
1695   * The "permissions" collection of methods.
1696   * Typical usage is:
1697   *  <code>
1698   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1699   *   $permissions = $androidenterpriseService->permissions;
1700   *  </code>
1701   */
1702  class Google_Service_AndroidEnterprise_Permissions_Resource extends Google_Service_Resource
1703  {
1704  
1705    /**
1706     * Retrieves details of an Android app permission for display to an enterprise
1707     * admin. (permissions.get)
1708     *
1709     * @param string $permissionId The ID of the permission.
1710     * @param array $optParams Optional parameters.
1711     *
1712     * @opt_param string language The BCP47 tag for the user's preferred language
1713     * (e.g. "en-US", "de")
1714     * @return Google_Service_AndroidEnterprise_Permission
1715     */
1716    public function get($permissionId, $optParams = array())
1717    {
1718      $params = array('permissionId' => $permissionId);
1719      $params = array_merge($params, $optParams);
1720      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission");
1721    }
1722  }
1723  
1724  /**
1725   * The "products" collection of methods.
1726   * Typical usage is:
1727   *  <code>
1728   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1729   *   $products = $androidenterpriseService->products;
1730   *  </code>
1731   */
1732  class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource
1733  {
1734  
1735    /**
1736     * Approves the specified product (and the relevant app permissions, if any).
1737     * (products.approve)
1738     *
1739     * @param string $enterpriseId The ID of the enterprise.
1740     * @param string $productId The ID of the product.
1741     * @param Google_ProductsApproveRequest $postBody
1742     * @param array $optParams Optional parameters.
1743     */
1744    public function approve($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody, $optParams = array())
1745    {
1746      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody);
1747      $params = array_merge($params, $optParams);
1748      return $this->call('approve', array($params));
1749    }
1750  
1751    /**
1752     * Generates a URL that can be rendered in an iframe to display the permissions
1753     * (if any) of a product. An enterprise admin must view these permissions and
1754     * accept them on behalf of their organization in order to approve that product.
1755     *
1756     * Admins should accept the displayed permissions by interacting with a separate
1757     * UI element in the EMM console, which in turn should trigger the use of this
1758     * URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1759     * approve the product. This URL can only be used to display permissions for up
1760     * to 1 day. (products.generateApprovalUrl)
1761     *
1762     * @param string $enterpriseId The ID of the enterprise.
1763     * @param string $productId The ID of the product.
1764     * @param array $optParams Optional parameters.
1765     *
1766     * @opt_param string languageCode The BCP 47 language code used for permission
1767     * names and descriptions in the returned iframe, for instance "en-US".
1768     * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse
1769     */
1770    public function generateApprovalUrl($enterpriseId, $productId, $optParams = array())
1771    {
1772      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
1773      $params = array_merge($params, $optParams);
1774      return $this->call('generateApprovalUrl', array($params), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse");
1775    }
1776  
1777    /**
1778     * Retrieves details of a product for display to an enterprise admin.
1779     * (products.get)
1780     *
1781     * @param string $enterpriseId The ID of the enterprise.
1782     * @param string $productId The ID of the product, e.g.
1783     * "app:com.google.android.gm".
1784     * @param array $optParams Optional parameters.
1785     *
1786     * @opt_param string language The BCP47 tag for the user's preferred language
1787     * (e.g. "en-US", "de").
1788     * @return Google_Service_AndroidEnterprise_Product
1789     */
1790    public function get($enterpriseId, $productId, $optParams = array())
1791    {
1792      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
1793      $params = array_merge($params, $optParams);
1794      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product");
1795    }
1796  
1797    /**
1798     * Retrieves the schema defining app restrictions configurable for this product.
1799     * All products have a schema, but this may be empty if no app restrictions are
1800     * defined. (products.getAppRestrictionsSchema)
1801     *
1802     * @param string $enterpriseId The ID of the enterprise.
1803     * @param string $productId The ID of the product.
1804     * @param array $optParams Optional parameters.
1805     *
1806     * @opt_param string language The BCP47 tag for the user's preferred language
1807     * (e.g. "en-US", "de").
1808     * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema
1809     */
1810    public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array())
1811    {
1812      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
1813      $params = array_merge($params, $optParams);
1814      return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema");
1815    }
1816  
1817    /**
1818     * Retrieves the Android app permissions required by this app.
1819     * (products.getPermissions)
1820     *
1821     * @param string $enterpriseId The ID of the enterprise.
1822     * @param string $productId The ID of the product.
1823     * @param array $optParams Optional parameters.
1824     * @return Google_Service_AndroidEnterprise_ProductPermissions
1825     */
1826    public function getPermissions($enterpriseId, $productId, $optParams = array())
1827    {
1828      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
1829      $params = array_merge($params, $optParams);
1830      return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions");
1831    }
1832  
1833    /**
1834     * Updates the set of Android app permissions for this app that have been
1835     * accepted by the enterprise. (products.updatePermissions)
1836     *
1837     * @param string $enterpriseId The ID of the enterprise.
1838     * @param string $productId The ID of the product.
1839     * @param Google_ProductPermissions $postBody
1840     * @param array $optParams Optional parameters.
1841     * @return Google_Service_AndroidEnterprise_ProductPermissions
1842     */
1843    public function updatePermissions($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductPermissions $postBody, $optParams = array())
1844    {
1845      $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody);
1846      $params = array_merge($params, $optParams);
1847      return $this->call('updatePermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions");
1848    }
1849  }
1850  
1851  /**
1852   * The "users" collection of methods.
1853   * Typical usage is:
1854   *  <code>
1855   *   $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
1856   *   $users = $androidenterpriseService->users;
1857   *  </code>
1858   */
1859  class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Resource
1860  {
1861  
1862    /**
1863     * Generates a token (activation code) to allow this user to configure their
1864     * work account in the Android Setup Wizard. Revokes any previously generated
1865     * token. (users.generateToken)
1866     *
1867     * @param string $enterpriseId The ID of the enterprise.
1868     * @param string $userId The ID of the user.
1869     * @param array $optParams Optional parameters.
1870     * @return Google_Service_AndroidEnterprise_UserToken
1871     */
1872    public function generateToken($enterpriseId, $userId, $optParams = array())
1873    {
1874      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1875      $params = array_merge($params, $optParams);
1876      return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken");
1877    }
1878  
1879    /**
1880     * Retrieves a user's details. (users.get)
1881     *
1882     * @param string $enterpriseId The ID of the enterprise.
1883     * @param string $userId The ID of the user.
1884     * @param array $optParams Optional parameters.
1885     * @return Google_Service_AndroidEnterprise_User
1886     */
1887    public function get($enterpriseId, $userId, $optParams = array())
1888    {
1889      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1890      $params = array_merge($params, $optParams);
1891      return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
1892    }
1893  
1894    /**
1895     * Retrieves the set of products a user is entitled to access.
1896     * (users.getAvailableProductSet)
1897     *
1898     * @param string $enterpriseId The ID of the enterprise.
1899     * @param string $userId The ID of the user.
1900     * @param array $optParams Optional parameters.
1901     * @return Google_Service_AndroidEnterprise_ProductSet
1902     */
1903    public function getAvailableProductSet($enterpriseId, $userId, $optParams = array())
1904    {
1905      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1906      $params = array_merge($params, $optParams);
1907      return $this->call('getAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet");
1908    }
1909  
1910    /**
1911     * Looks up a user by email address. (users.listUsers)
1912     *
1913     * @param string $enterpriseId The ID of the enterprise.
1914     * @param string $email The exact primary email address of the user to look up.
1915     * @param array $optParams Optional parameters.
1916     * @return Google_Service_AndroidEnterprise_UsersListResponse
1917     */
1918    public function listUsers($enterpriseId, $email, $optParams = array())
1919    {
1920      $params = array('enterpriseId' => $enterpriseId, 'email' => $email);
1921      $params = array_merge($params, $optParams);
1922      return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse");
1923    }
1924  
1925    /**
1926     * Revokes a previously generated token (activation code) for the user.
1927     * (users.revokeToken)
1928     *
1929     * @param string $enterpriseId The ID of the enterprise.
1930     * @param string $userId The ID of the user.
1931     * @param array $optParams Optional parameters.
1932     */
1933    public function revokeToken($enterpriseId, $userId, $optParams = array())
1934    {
1935      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
1936      $params = array_merge($params, $optParams);
1937      return $this->call('revokeToken', array($params));
1938    }
1939  
1940    /**
1941     * Modifies the set of products a user is entitled to access.
1942     * (users.setAvailableProductSet)
1943     *
1944     * @param string $enterpriseId The ID of the enterprise.
1945     * @param string $userId The ID of the user.
1946     * @param Google_ProductSet $postBody
1947     * @param array $optParams Optional parameters.
1948     * @return Google_Service_AndroidEnterprise_ProductSet
1949     */
1950    public function setAvailableProductSet($enterpriseId, $userId, Google_Service_AndroidEnterprise_ProductSet $postBody, $optParams = array())
1951    {
1952      $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody);
1953      $params = array_merge($params, $optParams);
1954      return $this->call('setAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet");
1955    }
1956  }
1957  
1958  
1959  
1960  
1961  class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection
1962  {
1963    protected $collection_key = 'restrictions';
1964    protected $internal_gapi_mappings = array(
1965    );
1966    public $kind;
1967    protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction';
1968    protected $restrictionsDataType = 'array';
1969  
1970  
1971    public function setKind($kind)
1972    {
1973      $this->kind = $kind;
1974    }
1975    public function getKind()
1976    {
1977      return $this->kind;
1978    }
1979    public function setRestrictions($restrictions)
1980    {
1981      $this->restrictions = $restrictions;
1982    }
1983    public function getRestrictions()
1984    {
1985      return $this->restrictions;
1986    }
1987  }
1988  
1989  class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection
1990  {
1991    protected $collection_key = 'entryValue';
1992    protected $internal_gapi_mappings = array(
1993    );
1994    protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue';
1995    protected $defaultValueDataType = '';
1996    public $description;
1997    public $entry;
1998    public $entryValue;
1999    public $key;
2000    public $restrictionType;
2001    public $title;
2002  
2003  
2004    public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue)
2005    {
2006      $this->defaultValue = $defaultValue;
2007    }
2008    public function getDefaultValue()
2009    {
2010      return $this->defaultValue;
2011    }
2012    public function setDescription($description)
2013    {
2014      $this->description = $description;
2015    }
2016    public function getDescription()
2017    {
2018      return $this->description;
2019    }
2020    public function setEntry($entry)
2021    {
2022      $this->entry = $entry;
2023    }
2024    public function getEntry()
2025    {
2026      return $this->entry;
2027    }
2028    public function setEntryValue($entryValue)
2029    {
2030      $this->entryValue = $entryValue;
2031    }
2032    public function getEntryValue()
2033    {
2034      return $this->entryValue;
2035    }
2036    public function setKey($key)
2037    {
2038      $this->key = $key;
2039    }
2040    public function getKey()
2041    {
2042      return $this->key;
2043    }
2044    public function setRestrictionType($restrictionType)
2045    {
2046      $this->restrictionType = $restrictionType;
2047    }
2048    public function getRestrictionType()
2049    {
2050      return $this->restrictionType;
2051    }
2052    public function setTitle($title)
2053    {
2054      $this->title = $title;
2055    }
2056    public function getTitle()
2057    {
2058      return $this->title;
2059    }
2060  }
2061  
2062  class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection
2063  {
2064    protected $collection_key = 'valueMultiselect';
2065    protected $internal_gapi_mappings = array(
2066    );
2067    public $type;
2068    public $valueBool;
2069    public $valueInteger;
2070    public $valueMultiselect;
2071    public $valueString;
2072  
2073  
2074    public function setType($type)
2075    {
2076      $this->type = $type;
2077    }
2078    public function getType()
2079    {
2080      return $this->type;
2081    }
2082    public function setValueBool($valueBool)
2083    {
2084      $this->valueBool = $valueBool;
2085    }
2086    public function getValueBool()
2087    {
2088      return $this->valueBool;
2089    }
2090    public function setValueInteger($valueInteger)
2091    {
2092      $this->valueInteger = $valueInteger;
2093    }
2094    public function getValueInteger()
2095    {
2096      return $this->valueInteger;
2097    }
2098    public function setValueMultiselect($valueMultiselect)
2099    {
2100      $this->valueMultiselect = $valueMultiselect;
2101    }
2102    public function getValueMultiselect()
2103    {
2104      return $this->valueMultiselect;
2105    }
2106    public function setValueString($valueString)
2107    {
2108      $this->valueString = $valueString;
2109    }
2110    public function getValueString()
2111    {
2112      return $this->valueString;
2113    }
2114  }
2115  
2116  class Google_Service_AndroidEnterprise_AppVersion extends Google_Model
2117  {
2118    protected $internal_gapi_mappings = array(
2119    );
2120    public $versionCode;
2121    public $versionString;
2122  
2123  
2124    public function setVersionCode($versionCode)
2125    {
2126      $this->versionCode = $versionCode;
2127    }
2128    public function getVersionCode()
2129    {
2130      return $this->versionCode;
2131    }
2132    public function setVersionString($versionString)
2133    {
2134      $this->versionString = $versionString;
2135    }
2136    public function getVersionString()
2137    {
2138      return $this->versionString;
2139    }
2140  }
2141  
2142  class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model
2143  {
2144    protected $internal_gapi_mappings = array(
2145    );
2146    public $approvalUrl;
2147    public $kind;
2148  
2149  
2150    public function setApprovalUrl($approvalUrl)
2151    {
2152      $this->approvalUrl = $approvalUrl;
2153    }
2154    public function getApprovalUrl()
2155    {
2156      return $this->approvalUrl;
2157    }
2158    public function setKind($kind)
2159    {
2160      $this->kind = $kind;
2161    }
2162    public function getKind()
2163    {
2164      return $this->kind;
2165    }
2166  }
2167  
2168  class Google_Service_AndroidEnterprise_Collection extends Google_Collection
2169  {
2170    protected $collection_key = 'productId';
2171    protected $internal_gapi_mappings = array(
2172    );
2173    public $collectionId;
2174    public $kind;
2175    public $name;
2176    public $productId;
2177    public $visibility;
2178  
2179  
2180    public function setCollectionId($collectionId)
2181    {
2182      $this->collectionId = $collectionId;
2183    }
2184    public function getCollectionId()
2185    {
2186      return $this->collectionId;
2187    }
2188    public function setKind($kind)
2189    {
2190      $this->kind = $kind;
2191    }
2192    public function getKind()
2193    {
2194      return $this->kind;
2195    }
2196    public function setName($name)
2197    {
2198      $this->name = $name;
2199    }
2200    public function getName()
2201    {
2202      return $this->name;
2203    }
2204    public function setProductId($productId)
2205    {
2206      $this->productId = $productId;
2207    }
2208    public function getProductId()
2209    {
2210      return $this->productId;
2211    }
2212    public function setVisibility($visibility)
2213    {
2214      $this->visibility = $visibility;
2215    }
2216    public function getVisibility()
2217    {
2218      return $this->visibility;
2219    }
2220  }
2221  
2222  class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection
2223  {
2224    protected $collection_key = 'user';
2225    protected $internal_gapi_mappings = array(
2226    );
2227    public $kind;
2228    protected $userType = 'Google_Service_AndroidEnterprise_User';
2229    protected $userDataType = 'array';
2230  
2231  
2232    public function setKind($kind)
2233    {
2234      $this->kind = $kind;
2235    }
2236    public function getKind()
2237    {
2238      return $this->kind;
2239    }
2240    public function setUser($user)
2241    {
2242      $this->user = $user;
2243    }
2244    public function getUser()
2245    {
2246      return $this->user;
2247    }
2248  }
2249  
2250  class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection
2251  {
2252    protected $collection_key = 'collection';
2253    protected $internal_gapi_mappings = array(
2254    );
2255    protected $collectionType = 'Google_Service_AndroidEnterprise_Collection';
2256    protected $collectionDataType = 'array';
2257    public $kind;
2258  
2259  
2260    public function setCollection($collection)
2261    {
2262      $this->collection = $collection;
2263    }
2264    public function getCollection()
2265    {
2266      return $this->collection;
2267    }
2268    public function setKind($kind)
2269    {
2270      $this->kind = $kind;
2271    }
2272    public function getKind()
2273    {
2274      return $this->kind;
2275    }
2276  }
2277  
2278  class Google_Service_AndroidEnterprise_Device extends Google_Model
2279  {
2280    protected $internal_gapi_mappings = array(
2281    );
2282    public $androidId;
2283    public $kind;
2284    public $managementType;
2285  
2286  
2287    public function setAndroidId($androidId)
2288    {
2289      $this->androidId = $androidId;
2290    }
2291    public function getAndroidId()
2292    {
2293      return $this->androidId;
2294    }
2295    public function setKind($kind)
2296    {
2297      $this->kind = $kind;
2298    }
2299    public function getKind()
2300    {
2301      return $this->kind;
2302    }
2303    public function setManagementType($managementType)
2304    {
2305      $this->managementType = $managementType;
2306    }
2307    public function getManagementType()
2308    {
2309      return $this->managementType;
2310    }
2311  }
2312  
2313  class Google_Service_AndroidEnterprise_DeviceState extends Google_Model
2314  {
2315    protected $internal_gapi_mappings = array(
2316    );
2317    public $accountState;
2318    public $kind;
2319  
2320  
2321    public function setAccountState($accountState)
2322    {
2323      $this->accountState = $accountState;
2324    }
2325    public function getAccountState()
2326    {
2327      return $this->accountState;
2328    }
2329    public function setKind($kind)
2330    {
2331      $this->kind = $kind;
2332    }
2333    public function getKind()
2334    {
2335      return $this->kind;
2336    }
2337  }
2338  
2339  class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection
2340  {
2341    protected $collection_key = 'device';
2342    protected $internal_gapi_mappings = array(
2343    );
2344    protected $deviceType = 'Google_Service_AndroidEnterprise_Device';
2345    protected $deviceDataType = 'array';
2346    public $kind;
2347  
2348  
2349    public function setDevice($device)
2350    {
2351      $this->device = $device;
2352    }
2353    public function getDevice()
2354    {
2355      return $this->device;
2356    }
2357    public function setKind($kind)
2358    {
2359      $this->kind = $kind;
2360    }
2361    public function getKind()
2362    {
2363      return $this->kind;
2364    }
2365  }
2366  
2367  class Google_Service_AndroidEnterprise_Enterprise extends Google_Model
2368  {
2369    protected $internal_gapi_mappings = array(
2370    );
2371    public $id;
2372    public $kind;
2373    public $name;
2374    public $primaryDomain;
2375  
2376  
2377    public function setId($id)
2378    {
2379      $this->id = $id;
2380    }
2381    public function getId()
2382    {
2383      return $this->id;
2384    }
2385    public function setKind($kind)
2386    {
2387      $this->kind = $kind;
2388    }
2389    public function getKind()
2390    {
2391      return $this->kind;
2392    }
2393    public function setName($name)
2394    {
2395      $this->name = $name;
2396    }
2397    public function getName()
2398    {
2399      return $this->name;
2400    }
2401    public function setPrimaryDomain($primaryDomain)
2402    {
2403      $this->primaryDomain = $primaryDomain;
2404    }
2405    public function getPrimaryDomain()
2406    {
2407      return $this->primaryDomain;
2408    }
2409  }
2410  
2411  class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model
2412  {
2413    protected $internal_gapi_mappings = array(
2414    );
2415    public $accountEmail;
2416    public $kind;
2417  
2418  
2419    public function setAccountEmail($accountEmail)
2420    {
2421      $this->accountEmail = $accountEmail;
2422    }
2423    public function getAccountEmail()
2424    {
2425      return $this->accountEmail;
2426    }
2427    public function setKind($kind)
2428    {
2429      $this->kind = $kind;
2430    }
2431    public function getKind()
2432    {
2433      return $this->kind;
2434    }
2435  }
2436  
2437  class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection
2438  {
2439    protected $collection_key = 'enterprise';
2440    protected $internal_gapi_mappings = array(
2441    );
2442    protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise';
2443    protected $enterpriseDataType = 'array';
2444    public $kind;
2445  
2446  
2447    public function setEnterprise($enterprise)
2448    {
2449      $this->enterprise = $enterprise;
2450    }
2451    public function getEnterprise()
2452    {
2453      return $this->enterprise;
2454    }
2455    public function setKind($kind)
2456    {
2457      $this->kind = $kind;
2458    }
2459    public function getKind()
2460    {
2461      return $this->kind;
2462    }
2463  }
2464  
2465  class Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse extends Google_Model
2466  {
2467    protected $internal_gapi_mappings = array(
2468    );
2469    public $messageId;
2470    public $topicName;
2471  
2472  
2473    public function setMessageId($messageId)
2474    {
2475      $this->messageId = $messageId;
2476    }
2477    public function getMessageId()
2478    {
2479      return $this->messageId;
2480    }
2481    public function setTopicName($topicName)
2482    {
2483      $this->topicName = $topicName;
2484    }
2485    public function getTopicName()
2486    {
2487      return $this->topicName;
2488    }
2489  }
2490  
2491  class Google_Service_AndroidEnterprise_Entitlement extends Google_Model
2492  {
2493    protected $internal_gapi_mappings = array(
2494    );
2495    public $kind;
2496    public $productId;
2497    public $reason;
2498  
2499  
2500    public function setKind($kind)
2501    {
2502      $this->kind = $kind;
2503    }
2504    public function getKind()
2505    {
2506      return $this->kind;
2507    }
2508    public function setProductId($productId)
2509    {
2510      $this->productId = $productId;
2511    }
2512    public function getProductId()
2513    {
2514      return $this->productId;
2515    }
2516    public function setReason($reason)
2517    {
2518      $this->reason = $reason;
2519    }
2520    public function getReason()
2521    {
2522      return $this->reason;
2523    }
2524  }
2525  
2526  class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection
2527  {
2528    protected $collection_key = 'entitlement';
2529    protected $internal_gapi_mappings = array(
2530    );
2531    protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement';
2532    protected $entitlementDataType = 'array';
2533    public $kind;
2534  
2535  
2536    public function setEntitlement($entitlement)
2537    {
2538      $this->entitlement = $entitlement;
2539    }
2540    public function getEntitlement()
2541    {
2542      return $this->entitlement;
2543    }
2544    public function setKind($kind)
2545    {
2546      $this->kind = $kind;
2547    }
2548    public function getKind()
2549    {
2550      return $this->kind;
2551    }
2552  }
2553  
2554  class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model
2555  {
2556    protected $internal_gapi_mappings = array(
2557    );
2558    public $acquisitionKind;
2559    public $approval;
2560    public $kind;
2561    public $numProvisioned;
2562    public $numPurchased;
2563    public $productId;
2564  
2565  
2566    public function setAcquisitionKind($acquisitionKind)
2567    {
2568      $this->acquisitionKind = $acquisitionKind;
2569    }
2570    public function getAcquisitionKind()
2571    {
2572      return $this->acquisitionKind;
2573    }
2574    public function setApproval($approval)
2575    {
2576      $this->approval = $approval;
2577    }
2578    public function getApproval()
2579    {
2580      return $this->approval;
2581    }
2582    public function setKind($kind)
2583    {
2584      $this->kind = $kind;
2585    }
2586    public function getKind()
2587    {
2588      return $this->kind;
2589    }
2590    public function setNumProvisioned($numProvisioned)
2591    {
2592      $this->numProvisioned = $numProvisioned;
2593    }
2594    public function getNumProvisioned()
2595    {
2596      return $this->numProvisioned;
2597    }
2598    public function setNumPurchased($numPurchased)
2599    {
2600      $this->numPurchased = $numPurchased;
2601    }
2602    public function getNumPurchased()
2603    {
2604      return $this->numPurchased;
2605    }
2606    public function setProductId($productId)
2607    {
2608      $this->productId = $productId;
2609    }
2610    public function getProductId()
2611    {
2612      return $this->productId;
2613    }
2614  }
2615  
2616  class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection
2617  {
2618    protected $collection_key = 'user';
2619    protected $internal_gapi_mappings = array(
2620    );
2621    public $kind;
2622    protected $userType = 'Google_Service_AndroidEnterprise_User';
2623    protected $userDataType = 'array';
2624  
2625  
2626    public function setKind($kind)
2627    {
2628      $this->kind = $kind;
2629    }
2630    public function getKind()
2631    {
2632      return $this->kind;
2633    }
2634    public function setUser($user)
2635    {
2636      $this->user = $user;
2637    }
2638    public function getUser()
2639    {
2640      return $this->user;
2641    }
2642  }
2643  
2644  class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection
2645  {
2646    protected $collection_key = 'groupLicense';
2647    protected $internal_gapi_mappings = array(
2648    );
2649    protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense';
2650    protected $groupLicenseDataType = 'array';
2651    public $kind;
2652  
2653  
2654    public function setGroupLicense($groupLicense)
2655    {
2656      $this->groupLicense = $groupLicense;
2657    }
2658    public function getGroupLicense()
2659    {
2660      return $this->groupLicense;
2661    }
2662    public function setKind($kind)
2663    {
2664      $this->kind = $kind;
2665    }
2666    public function getKind()
2667    {
2668      return $this->kind;
2669    }
2670  }
2671  
2672  class Google_Service_AndroidEnterprise_Install extends Google_Model
2673  {
2674    protected $internal_gapi_mappings = array(
2675    );
2676    public $installState;
2677    public $kind;
2678    public $productId;
2679    public $versionCode;
2680  
2681  
2682    public function setInstallState($installState)
2683    {
2684      $this->installState = $installState;
2685    }
2686    public function getInstallState()
2687    {
2688      return $this->installState;
2689    }
2690    public function setKind($kind)
2691    {
2692      $this->kind = $kind;
2693    }
2694    public function getKind()
2695    {
2696      return $this->kind;
2697    }
2698    public function setProductId($productId)
2699    {
2700      $this->productId = $productId;
2701    }
2702    public function getProductId()
2703    {
2704      return $this->productId;
2705    }
2706    public function setVersionCode($versionCode)
2707    {
2708      $this->versionCode = $versionCode;
2709    }
2710    public function getVersionCode()
2711    {
2712      return $this->versionCode;
2713    }
2714  }
2715  
2716  class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection
2717  {
2718    protected $collection_key = 'install';
2719    protected $internal_gapi_mappings = array(
2720    );
2721    protected $installType = 'Google_Service_AndroidEnterprise_Install';
2722    protected $installDataType = 'array';
2723    public $kind;
2724  
2725  
2726    public function setInstall($install)
2727    {
2728      $this->install = $install;
2729    }
2730    public function getInstall()
2731    {
2732      return $this->install;
2733    }
2734    public function setKind($kind)
2735    {
2736      $this->kind = $kind;
2737    }
2738    public function getKind()
2739    {
2740      return $this->kind;
2741    }
2742  }
2743  
2744  class Google_Service_AndroidEnterprise_Permission extends Google_Model
2745  {
2746    protected $internal_gapi_mappings = array(
2747    );
2748    public $description;
2749    public $kind;
2750    public $name;
2751    public $permissionId;
2752  
2753  
2754    public function setDescription($description)
2755    {
2756      $this->description = $description;
2757    }
2758    public function getDescription()
2759    {
2760      return $this->description;
2761    }
2762    public function setKind($kind)
2763    {
2764      $this->kind = $kind;
2765    }
2766    public function getKind()
2767    {
2768      return $this->kind;
2769    }
2770    public function setName($name)
2771    {
2772      $this->name = $name;
2773    }
2774    public function getName()
2775    {
2776      return $this->name;
2777    }
2778    public function setPermissionId($permissionId)
2779    {
2780      $this->permissionId = $permissionId;
2781    }
2782    public function getPermissionId()
2783    {
2784      return $this->permissionId;
2785    }
2786  }
2787  
2788  class Google_Service_AndroidEnterprise_Product extends Google_Collection
2789  {
2790    protected $collection_key = 'appVersion';
2791    protected $internal_gapi_mappings = array(
2792    );
2793    protected $appVersionType = 'Google_Service_AndroidEnterprise_AppVersion';
2794    protected $appVersionDataType = 'array';
2795    public $authorName;
2796    public $detailsUrl;
2797    public $distributionChannel;
2798    public $iconUrl;
2799    public $kind;
2800    public $productId;
2801    public $requiresContainerApp;
2802    public $title;
2803    public $workDetailsUrl;
2804  
2805  
2806    public function setAppVersion($appVersion)
2807    {
2808      $this->appVersion = $appVersion;
2809    }
2810    public function getAppVersion()
2811    {
2812      return $this->appVersion;
2813    }
2814    public function setAuthorName($authorName)
2815    {
2816      $this->authorName = $authorName;
2817    }
2818    public function getAuthorName()
2819    {
2820      return $this->authorName;
2821    }
2822    public function setDetailsUrl($detailsUrl)
2823    {
2824      $this->detailsUrl = $detailsUrl;
2825    }
2826    public function getDetailsUrl()
2827    {
2828      return $this->detailsUrl;
2829    }
2830    public function setDistributionChannel($distributionChannel)
2831    {
2832      $this->distributionChannel = $distributionChannel;
2833    }
2834    public function getDistributionChannel()
2835    {
2836      return $this->distributionChannel;
2837    }
2838    public function setIconUrl($iconUrl)
2839    {
2840      $this->iconUrl = $iconUrl;
2841    }
2842    public function getIconUrl()
2843    {
2844      return $this->iconUrl;
2845    }
2846    public function setKind($kind)
2847    {
2848      $this->kind = $kind;
2849    }
2850    public function getKind()
2851    {
2852      return $this->kind;
2853    }
2854    public function setProductId($productId)
2855    {
2856      $this->productId = $productId;
2857    }
2858    public function getProductId()
2859    {
2860      return $this->productId;
2861    }
2862    public function setRequiresContainerApp($requiresContainerApp)
2863    {
2864      $this->requiresContainerApp = $requiresContainerApp;
2865    }
2866    public function getRequiresContainerApp()
2867    {
2868      return $this->requiresContainerApp;
2869    }
2870    public function setTitle($title)
2871    {
2872      $this->title = $title;
2873    }
2874    public function getTitle()
2875    {
2876      return $this->title;
2877    }
2878    public function setWorkDetailsUrl($workDetailsUrl)
2879    {
2880      $this->workDetailsUrl = $workDetailsUrl;
2881    }
2882    public function getWorkDetailsUrl()
2883    {
2884      return $this->workDetailsUrl;
2885    }
2886  }
2887  
2888  class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model
2889  {
2890    protected $internal_gapi_mappings = array(
2891    );
2892    public $permissionId;
2893    public $state;
2894  
2895  
2896    public function setPermissionId($permissionId)
2897    {
2898      $this->permissionId = $permissionId;
2899    }
2900    public function getPermissionId()
2901    {
2902      return $this->permissionId;
2903    }
2904    public function setState($state)
2905    {
2906      $this->state = $state;
2907    }
2908    public function getState()
2909    {
2910      return $this->state;
2911    }
2912  }
2913  
2914  class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection
2915  {
2916    protected $collection_key = 'permission';
2917    protected $internal_gapi_mappings = array(
2918    );
2919    public $kind;
2920    protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission';
2921    protected $permissionDataType = 'array';
2922    public $productId;
2923  
2924  
2925    public function setKind($kind)
2926    {
2927      $this->kind = $kind;
2928    }
2929    public function getKind()
2930    {
2931      return $this->kind;
2932    }
2933    public function setPermission($permission)
2934    {
2935      $this->permission = $permission;
2936    }
2937    public function getPermission()
2938    {
2939      return $this->permission;
2940    }
2941    public function setProductId($productId)
2942    {
2943      $this->productId = $productId;
2944    }
2945    public function getProductId()
2946    {
2947      return $this->productId;
2948    }
2949  }
2950  
2951  class Google_Service_AndroidEnterprise_ProductSet extends Google_Collection
2952  {
2953    protected $collection_key = 'productId';
2954    protected $internal_gapi_mappings = array(
2955    );
2956    public $kind;
2957    public $productId;
2958  
2959  
2960    public function setKind($kind)
2961    {
2962      $this->kind = $kind;
2963    }
2964    public function getKind()
2965    {
2966      return $this->kind;
2967    }
2968    public function setProductId($productId)
2969    {
2970      $this->productId = $productId;
2971    }
2972    public function getProductId()
2973    {
2974      return $this->productId;
2975    }
2976  }
2977  
2978  class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model
2979  {
2980    protected $internal_gapi_mappings = array(
2981    );
2982    protected $approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo';
2983    protected $approvalUrlInfoDataType = '';
2984  
2985  
2986    public function setApprovalUrlInfo(Google_Service_AndroidEnterprise_ApprovalUrlInfo $approvalUrlInfo)
2987    {
2988      $this->approvalUrlInfo = $approvalUrlInfo;
2989    }
2990    public function getApprovalUrlInfo()
2991    {
2992      return $this->approvalUrlInfo;
2993    }
2994  }
2995  
2996  class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model
2997  {
2998    protected $internal_gapi_mappings = array(
2999    );
3000    public $url;
3001  
3002  
3003    public function setUrl($url)
3004    {
3005      $this->url = $url;
3006    }
3007    public function getUrl()
3008    {
3009      return $this->url;
3010    }
3011  }
3012  
3013  class Google_Service_AndroidEnterprise_User extends Google_Model
3014  {
3015    protected $internal_gapi_mappings = array(
3016    );
3017    public $id;
3018    public $kind;
3019    public $primaryEmail;
3020  
3021  
3022    public function setId($id)
3023    {
3024      $this->id = $id;
3025    }
3026    public function getId()
3027    {
3028      return $this->id;
3029    }
3030    public function setKind($kind)
3031    {
3032      $this->kind = $kind;
3033    }
3034    public function getKind()
3035    {
3036      return $this->kind;
3037    }
3038    public function setPrimaryEmail($primaryEmail)
3039    {
3040      $this->primaryEmail = $primaryEmail;
3041    }
3042    public function getPrimaryEmail()
3043    {
3044      return $this->primaryEmail;
3045    }
3046  }
3047  
3048  class Google_Service_AndroidEnterprise_UserToken extends Google_Model
3049  {
3050    protected $internal_gapi_mappings = array(
3051    );
3052    public $kind;
3053    public $token;
3054    public $userId;
3055  
3056  
3057    public function setKind($kind)
3058    {
3059      $this->kind = $kind;
3060    }
3061    public function getKind()
3062    {
3063      return $this->kind;
3064    }
3065    public function setToken($token)
3066    {
3067      $this->token = $token;
3068    }
3069    public function getToken()
3070    {
3071      return $this->token;
3072    }
3073    public function setUserId($userId)
3074    {
3075      $this->userId = $userId;
3076    }
3077    public function getUserId()
3078    {
3079      return $this->userId;
3080    }
3081  }
3082  
3083  class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection
3084  {
3085    protected $collection_key = 'user';
3086    protected $internal_gapi_mappings = array(
3087    );
3088    public $kind;
3089    protected $userType = 'Google_Service_AndroidEnterprise_User';
3090    protected $userDataType = 'array';
3091  
3092  
3093    public function setKind($kind)
3094    {
3095      $this->kind = $kind;
3096    }
3097    public function getKind()
3098    {
3099      return $this->kind;
3100    }
3101    public function setUser($user)
3102    {
3103      $this->user = $user;
3104    }
3105    public function getUser()
3106    {
3107      return $this->user;
3108    }
3109  }