Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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