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 Reports (reports_v1).
  20   *
  21   * <p>
  22   * Allows the administrators of Google Apps customers to fetch reports about the
  23   * usage, collaboration, security and risk for their users.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://developers.google.com/admin-sdk/reports/" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  #[AllowDynamicProperties]
  33  class Google_Service_Reports extends Google_Service
  34  {
  35    /** View audit reports of Google Apps for your domain. */
  36    const ADMIN_REPORTS_AUDIT_READONLY =
  37        "https://www.googleapis.com/auth/admin.reports.audit.readonly";
  38    /** View usage reports of Google Apps for your domain. */
  39    const ADMIN_REPORTS_USAGE_READONLY =
  40        "https://www.googleapis.com/auth/admin.reports.usage.readonly";
  41  
  42    public $activities;
  43    public $channels;
  44    public $customerUsageReports;
  45    public $userUsageReport;
  46    
  47  
  48    /**
  49     * Constructs the internal representation of the Reports service.
  50     *
  51     * @param Google_Client $client
  52     */
  53    public function __construct(Google_Client $client)
  54    {
  55      parent::__construct($client);
  56      $this->rootUrl = 'https://www.googleapis.com/';
  57      $this->servicePath = 'admin/reports/v1/';
  58      $this->version = 'reports_v1';
  59      $this->serviceName = 'admin';
  60  
  61      $this->activities = new Google_Service_Reports_Activities_Resource(
  62          $this,
  63          $this->serviceName,
  64          'activities',
  65          array(
  66            'methods' => array(
  67              'list' => array(
  68                'path' => 'activity/users/{userKey}/applications/{applicationName}',
  69                'httpMethod' => 'GET',
  70                'parameters' => array(
  71                  'userKey' => array(
  72                    'location' => 'path',
  73                    'type' => 'string',
  74                    'required' => true,
  75                  ),
  76                  'applicationName' => array(
  77                    'location' => 'path',
  78                    'type' => 'string',
  79                    'required' => true,
  80                  ),
  81                  'startTime' => array(
  82                    'location' => 'query',
  83                    'type' => 'string',
  84                  ),
  85                  'actorIpAddress' => array(
  86                    'location' => 'query',
  87                    'type' => 'string',
  88                  ),
  89                  'maxResults' => array(
  90                    'location' => 'query',
  91                    'type' => 'integer',
  92                  ),
  93                  'eventName' => array(
  94                    'location' => 'query',
  95                    'type' => 'string',
  96                  ),
  97                  'pageToken' => array(
  98                    'location' => 'query',
  99                    'type' => 'string',
 100                  ),
 101                  'filters' => array(
 102                    'location' => 'query',
 103                    'type' => 'string',
 104                  ),
 105                  'endTime' => array(
 106                    'location' => 'query',
 107                    'type' => 'string',
 108                  ),
 109                  'customerId' => array(
 110                    'location' => 'query',
 111                    'type' => 'string',
 112                  ),
 113                ),
 114              ),'watch' => array(
 115                'path' => 'activity/users/{userKey}/applications/{applicationName}/watch',
 116                'httpMethod' => 'POST',
 117                'parameters' => array(
 118                  'userKey' => array(
 119                    'location' => 'path',
 120                    'type' => 'string',
 121                    'required' => true,
 122                  ),
 123                  'applicationName' => array(
 124                    'location' => 'path',
 125                    'type' => 'string',
 126                    'required' => true,
 127                  ),
 128                  'startTime' => array(
 129                    'location' => 'query',
 130                    'type' => 'string',
 131                  ),
 132                  'actorIpAddress' => array(
 133                    'location' => 'query',
 134                    'type' => 'string',
 135                  ),
 136                  'maxResults' => array(
 137                    'location' => 'query',
 138                    'type' => 'integer',
 139                  ),
 140                  'eventName' => array(
 141                    'location' => 'query',
 142                    'type' => 'string',
 143                  ),
 144                  'pageToken' => array(
 145                    'location' => 'query',
 146                    'type' => 'string',
 147                  ),
 148                  'filters' => array(
 149                    'location' => 'query',
 150                    'type' => 'string',
 151                  ),
 152                  'endTime' => array(
 153                    'location' => 'query',
 154                    'type' => 'string',
 155                  ),
 156                  'customerId' => array(
 157                    'location' => 'query',
 158                    'type' => 'string',
 159                  ),
 160                ),
 161              ),
 162            )
 163          )
 164      );
 165      $this->channels = new Google_Service_Reports_Channels_Resource(
 166          $this,
 167          $this->serviceName,
 168          'channels',
 169          array(
 170            'methods' => array(
 171              'stop' => array(
 172                'path' => '/admin/reports_v1/channels/stop',
 173                'httpMethod' => 'POST',
 174                'parameters' => array(),
 175              ),
 176            )
 177          )
 178      );
 179      $this->customerUsageReports = new Google_Service_Reports_CustomerUsageReports_Resource(
 180          $this,
 181          $this->serviceName,
 182          'customerUsageReports',
 183          array(
 184            'methods' => array(
 185              'get' => array(
 186                'path' => 'usage/dates/{date}',
 187                'httpMethod' => 'GET',
 188                'parameters' => array(
 189                  'date' => array(
 190                    'location' => 'path',
 191                    'type' => 'string',
 192                    'required' => true,
 193                  ),
 194                  'pageToken' => array(
 195                    'location' => 'query',
 196                    'type' => 'string',
 197                  ),
 198                  'customerId' => array(
 199                    'location' => 'query',
 200                    'type' => 'string',
 201                  ),
 202                  'parameters' => array(
 203                    'location' => 'query',
 204                    'type' => 'string',
 205                  ),
 206                ),
 207              ),
 208            )
 209          )
 210      );
 211      $this->userUsageReport = new Google_Service_Reports_UserUsageReport_Resource(
 212          $this,
 213          $this->serviceName,
 214          'userUsageReport',
 215          array(
 216            'methods' => array(
 217              'get' => array(
 218                'path' => 'usage/users/{userKey}/dates/{date}',
 219                'httpMethod' => 'GET',
 220                'parameters' => array(
 221                  'userKey' => array(
 222                    'location' => 'path',
 223                    'type' => 'string',
 224                    'required' => true,
 225                  ),
 226                  'date' => array(
 227                    'location' => 'path',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                  'parameters' => array(
 232                    'location' => 'query',
 233                    'type' => 'string',
 234                  ),
 235                  'maxResults' => array(
 236                    'location' => 'query',
 237                    'type' => 'integer',
 238                  ),
 239                  'pageToken' => array(
 240                    'location' => 'query',
 241                    'type' => 'string',
 242                  ),
 243                  'filters' => array(
 244                    'location' => 'query',
 245                    'type' => 'string',
 246                  ),
 247                  'customerId' => array(
 248                    'location' => 'query',
 249                    'type' => 'string',
 250                  ),
 251                ),
 252              ),
 253            )
 254          )
 255      );
 256    }
 257  }
 258  
 259  
 260  /**
 261   * The "activities" collection of methods.
 262   * Typical usage is:
 263   *  <code>
 264   *   $adminService = new Google_Service_Reports(...);
 265   *   $activities = $adminService->activities;
 266   *  </code>
 267   */
 268  #[AllowDynamicProperties]
 269  class Google_Service_Reports_Activities_Resource extends Google_Service_Resource
 270  {
 271  
 272    /**
 273     * Retrieves a list of activities for a specific customer and application.
 274     * (activities.listActivities)
 275     *
 276     * @param string $userKey Represents the profile id or the user email for which
 277     * the data should be filtered. When 'all' is specified as the userKey, it
 278     * returns usageReports for all users.
 279     * @param string $applicationName Application name for which the events are to
 280     * be retrieved.
 281     * @param array $optParams Optional parameters.
 282     *
 283     * @opt_param string startTime Return events which occured at or after this
 284     * time.
 285     * @opt_param string actorIpAddress IP Address of host where the event was
 286     * performed. Supports both IPv4 and IPv6 addresses.
 287     * @opt_param int maxResults Number of activity records to be shown in each
 288     * page.
 289     * @opt_param string eventName Name of the event being queried.
 290     * @opt_param string pageToken Token to specify next page.
 291     * @opt_param string filters Event parameters in the form [parameter1
 292     * name][operator][parameter1 value],[parameter2 name][operator][parameter2
 293     * value],...
 294     * @opt_param string endTime Return events which occured at or before this time.
 295     * @opt_param string customerId Represents the customer for which the data is to
 296     * be fetched.
 297     * @return Google_Service_Reports_Activities
 298     */
 299    public function listActivities($userKey, $applicationName, $optParams = array())
 300    {
 301      $params = array('userKey' => $userKey, 'applicationName' => $applicationName);
 302      $params = array_merge($params, $optParams);
 303      return $this->call('list', array($params), "Google_Service_Reports_Activities");
 304    }
 305  
 306    /**
 307     * Push changes to activities (activities.watch)
 308     *
 309     * @param string $userKey Represents the profile id or the user email for which
 310     * the data should be filtered. When 'all' is specified as the userKey, it
 311     * returns usageReports for all users.
 312     * @param string $applicationName Application name for which the events are to
 313     * be retrieved.
 314     * @param Google_Channel $postBody
 315     * @param array $optParams Optional parameters.
 316     *
 317     * @opt_param string startTime Return events which occured at or after this
 318     * time.
 319     * @opt_param string actorIpAddress IP Address of host where the event was
 320     * performed. Supports both IPv4 and IPv6 addresses.
 321     * @opt_param int maxResults Number of activity records to be shown in each
 322     * page.
 323     * @opt_param string eventName Name of the event being queried.
 324     * @opt_param string pageToken Token to specify next page.
 325     * @opt_param string filters Event parameters in the form [parameter1
 326     * name][operator][parameter1 value],[parameter2 name][operator][parameter2
 327     * value],...
 328     * @opt_param string endTime Return events which occured at or before this time.
 329     * @opt_param string customerId Represents the customer for which the data is to
 330     * be fetched.
 331     * @return Google_Service_Reports_Channel
 332     */
 333    public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array())
 334    {
 335      $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody);
 336      $params = array_merge($params, $optParams);
 337      return $this->call('watch', array($params), "Google_Service_Reports_Channel");
 338    }
 339  }
 340  
 341  /**
 342   * The "channels" collection of methods.
 343   * Typical usage is:
 344   *  <code>
 345   *   $adminService = new Google_Service_Reports(...);
 346   *   $channels = $adminService->channels;
 347   *  </code>
 348   */
 349  #[AllowDynamicProperties]
 350  class Google_Service_Reports_Channels_Resource extends Google_Service_Resource
 351  {
 352  
 353    /**
 354     * Stop watching resources through this channel (channels.stop)
 355     *
 356     * @param Google_Channel $postBody
 357     * @param array $optParams Optional parameters.
 358     */
 359    public function stop(Google_Service_Reports_Channel $postBody, $optParams = array())
 360    {
 361      $params = array('postBody' => $postBody);
 362      $params = array_merge($params, $optParams);
 363      return $this->call('stop', array($params));
 364    }
 365  }
 366  
 367  /**
 368   * The "customerUsageReports" collection of methods.
 369   * Typical usage is:
 370   *  <code>
 371   *   $adminService = new Google_Service_Reports(...);
 372   *   $customerUsageReports = $adminService->customerUsageReports;
 373   *  </code>
 374   */
 375  #[AllowDynamicProperties]
 376  class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Service_Resource
 377  {
 378  
 379    /**
 380     * Retrieves a report which is a collection of properties / statistics for a
 381     * specific customer. (customerUsageReports.get)
 382     *
 383     * @param string $date Represents the date in yyyy-mm-dd format for which the
 384     * data is to be fetched.
 385     * @param array $optParams Optional parameters.
 386     *
 387     * @opt_param string pageToken Token to specify next page.
 388     * @opt_param string customerId Represents the customer for which the data is to
 389     * be fetched.
 390     * @opt_param string parameters Represents the application name, parameter name
 391     * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
 392     * @return Google_Service_Reports_UsageReports
 393     */
 394    public function get($date, $optParams = array())
 395    {
 396      $params = array('date' => $date);
 397      $params = array_merge($params, $optParams);
 398      return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
 399    }
 400  }
 401  
 402  /**
 403   * The "userUsageReport" collection of methods.
 404   * Typical usage is:
 405   *  <code>
 406   *   $adminService = new Google_Service_Reports(...);
 407   *   $userUsageReport = $adminService->userUsageReport;
 408   *  </code>
 409   */
 410  #[AllowDynamicProperties]
 411  class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Resource
 412  {
 413  
 414    /**
 415     * Retrieves a report which is a collection of properties / statistics for a set
 416     * of users. (userUsageReport.get)
 417     *
 418     * @param string $userKey Represents the profile id or the user email for which
 419     * the data should be filtered.
 420     * @param string $date Represents the date in yyyy-mm-dd format for which the
 421     * data is to be fetched.
 422     * @param array $optParams Optional parameters.
 423     *
 424     * @opt_param string parameters Represents the application name, parameter name
 425     * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
 426     * @opt_param string maxResults Maximum number of results to return. Maximum
 427     * allowed is 1000
 428     * @opt_param string pageToken Token to specify next page.
 429     * @opt_param string filters Represents the set of filters including parameter
 430     * operator value.
 431     * @opt_param string customerId Represents the customer for which the data is to
 432     * be fetched.
 433     * @return Google_Service_Reports_UsageReports
 434     */
 435    public function get($userKey, $date, $optParams = array())
 436    {
 437      $params = array('userKey' => $userKey, 'date' => $date);
 438      $params = array_merge($params, $optParams);
 439      return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
 440    }
 441  }
 442  
 443  
 444  
 445  
 446  #[AllowDynamicProperties]
 447  class Google_Service_Reports_Activities extends Google_Collection
 448  {
 449    protected $collection_key = 'items';
 450    protected $internal_gapi_mappings = array(
 451    );
 452    public $etag;
 453    protected $itemsType = 'Google_Service_Reports_Activity';
 454    protected $itemsDataType = 'array';
 455    public $kind;
 456    public $nextPageToken;
 457  
 458  
 459    public function setEtag($etag)
 460    {
 461      $this->etag = $etag;
 462    }
 463    public function getEtag()
 464    {
 465      return $this->etag;
 466    }
 467    public function setItems($items)
 468    {
 469      $this->items = $items;
 470    }
 471    public function getItems()
 472    {
 473      return $this->items;
 474    }
 475    public function setKind($kind)
 476    {
 477      $this->kind = $kind;
 478    }
 479    public function getKind()
 480    {
 481      return $this->kind;
 482    }
 483    public function setNextPageToken($nextPageToken)
 484    {
 485      $this->nextPageToken = $nextPageToken;
 486    }
 487    public function getNextPageToken()
 488    {
 489      return $this->nextPageToken;
 490    }
 491  }
 492  
 493  #[AllowDynamicProperties]
 494  class Google_Service_Reports_Activity extends Google_Collection
 495  {
 496    protected $collection_key = 'events';
 497    protected $internal_gapi_mappings = array(
 498    );
 499    protected $actorType = 'Google_Service_Reports_ActivityActor';
 500    protected $actorDataType = '';
 501    public $etag;
 502    protected $eventsType = 'Google_Service_Reports_ActivityEvents';
 503    protected $eventsDataType = 'array';
 504    protected $idType = 'Google_Service_Reports_ActivityId';
 505    protected $idDataType = '';
 506    public $ipAddress;
 507    public $kind;
 508    public $ownerDomain;
 509  
 510  
 511    public function setActor(Google_Service_Reports_ActivityActor $actor)
 512    {
 513      $this->actor = $actor;
 514    }
 515    public function getActor()
 516    {
 517      return $this->actor;
 518    }
 519    public function setEtag($etag)
 520    {
 521      $this->etag = $etag;
 522    }
 523    public function getEtag()
 524    {
 525      return $this->etag;
 526    }
 527    public function setEvents($events)
 528    {
 529      $this->events = $events;
 530    }
 531    public function getEvents()
 532    {
 533      return $this->events;
 534    }
 535    public function setId(Google_Service_Reports_ActivityId $id)
 536    {
 537      $this->id = $id;
 538    }
 539    public function getId()
 540    {
 541      return $this->id;
 542    }
 543    public function setIpAddress($ipAddress)
 544    {
 545      $this->ipAddress = $ipAddress;
 546    }
 547    public function getIpAddress()
 548    {
 549      return $this->ipAddress;
 550    }
 551    public function setKind($kind)
 552    {
 553      $this->kind = $kind;
 554    }
 555    public function getKind()
 556    {
 557      return $this->kind;
 558    }
 559    public function setOwnerDomain($ownerDomain)
 560    {
 561      $this->ownerDomain = $ownerDomain;
 562    }
 563    public function getOwnerDomain()
 564    {
 565      return $this->ownerDomain;
 566    }
 567  }
 568  
 569  #[AllowDynamicProperties]
 570  class Google_Service_Reports_ActivityActor extends Google_Model
 571  {
 572    protected $internal_gapi_mappings = array(
 573    );
 574    public $callerType;
 575    public $email;
 576    public $key;
 577    public $profileId;
 578  
 579  
 580    public function setCallerType($callerType)
 581    {
 582      $this->callerType = $callerType;
 583    }
 584    public function getCallerType()
 585    {
 586      return $this->callerType;
 587    }
 588    public function setEmail($email)
 589    {
 590      $this->email = $email;
 591    }
 592    public function getEmail()
 593    {
 594      return $this->email;
 595    }
 596    public function setKey($key)
 597    {
 598      $this->key = $key;
 599    }
 600    public function getKey()
 601    {
 602      return $this->key;
 603    }
 604    public function setProfileId($profileId)
 605    {
 606      $this->profileId = $profileId;
 607    }
 608    public function getProfileId()
 609    {
 610      return $this->profileId;
 611    }
 612  }
 613  
 614  #[AllowDynamicProperties]
 615  class Google_Service_Reports_ActivityEvents extends Google_Collection
 616  {
 617    protected $collection_key = 'parameters';
 618    protected $internal_gapi_mappings = array(
 619    );
 620    public $name;
 621    protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters';
 622    protected $parametersDataType = 'array';
 623    public $type;
 624  
 625  
 626    public function setName($name)
 627    {
 628      $this->name = $name;
 629    }
 630    public function getName()
 631    {
 632      return $this->name;
 633    }
 634    public function setParameters($parameters)
 635    {
 636      $this->parameters = $parameters;
 637    }
 638    public function getParameters()
 639    {
 640      return $this->parameters;
 641    }
 642    public function setType($type)
 643    {
 644      $this->type = $type;
 645    }
 646    public function getType()
 647    {
 648      return $this->type;
 649    }
 650  }
 651  
 652  #[AllowDynamicProperties]
 653  class Google_Service_Reports_ActivityEventsParameters extends Google_Collection
 654  {
 655    protected $collection_key = 'multiValue';
 656    protected $internal_gapi_mappings = array(
 657    );
 658    public $boolValue;
 659    public $intValue;
 660    public $multiIntValue;
 661    public $multiValue;
 662    public $name;
 663    public $value;
 664  
 665  
 666    public function setBoolValue($boolValue)
 667    {
 668      $this->boolValue = $boolValue;
 669    }
 670    public function getBoolValue()
 671    {
 672      return $this->boolValue;
 673    }
 674    public function setIntValue($intValue)
 675    {
 676      $this->intValue = $intValue;
 677    }
 678    public function getIntValue()
 679    {
 680      return $this->intValue;
 681    }
 682    public function setMultiIntValue($multiIntValue)
 683    {
 684      $this->multiIntValue = $multiIntValue;
 685    }
 686    public function getMultiIntValue()
 687    {
 688      return $this->multiIntValue;
 689    }
 690    public function setMultiValue($multiValue)
 691    {
 692      $this->multiValue = $multiValue;
 693    }
 694    public function getMultiValue()
 695    {
 696      return $this->multiValue;
 697    }
 698    public function setName($name)
 699    {
 700      $this->name = $name;
 701    }
 702    public function getName()
 703    {
 704      return $this->name;
 705    }
 706    public function setValue($value)
 707    {
 708      $this->value = $value;
 709    }
 710    public function getValue()
 711    {
 712      return $this->value;
 713    }
 714  }
 715  
 716  #[AllowDynamicProperties]
 717  class Google_Service_Reports_ActivityId extends Google_Model
 718  {
 719    protected $internal_gapi_mappings = array(
 720    );
 721    public $applicationName;
 722    public $customerId;
 723    public $time;
 724    public $uniqueQualifier;
 725  
 726  
 727    public function setApplicationName($applicationName)
 728    {
 729      $this->applicationName = $applicationName;
 730    }
 731    public function getApplicationName()
 732    {
 733      return $this->applicationName;
 734    }
 735    public function setCustomerId($customerId)
 736    {
 737      $this->customerId = $customerId;
 738    }
 739    public function getCustomerId()
 740    {
 741      return $this->customerId;
 742    }
 743    public function setTime($time)
 744    {
 745      $this->time = $time;
 746    }
 747    public function getTime()
 748    {
 749      return $this->time;
 750    }
 751    public function setUniqueQualifier($uniqueQualifier)
 752    {
 753      $this->uniqueQualifier = $uniqueQualifier;
 754    }
 755    public function getUniqueQualifier()
 756    {
 757      return $this->uniqueQualifier;
 758    }
 759  }
 760  
 761  #[AllowDynamicProperties]
 762  class Google_Service_Reports_Channel extends Google_Model
 763  {
 764    protected $internal_gapi_mappings = array(
 765    );
 766    public $address;
 767    public $expiration;
 768    public $id;
 769    public $kind;
 770    public $params;
 771    public $payload;
 772    public $resourceId;
 773    public $resourceUri;
 774    public $token;
 775    public $type;
 776  
 777  
 778    public function setAddress($address)
 779    {
 780      $this->address = $address;
 781    }
 782    public function getAddress()
 783    {
 784      return $this->address;
 785    }
 786    public function setExpiration($expiration)
 787    {
 788      $this->expiration = $expiration;
 789    }
 790    public function getExpiration()
 791    {
 792      return $this->expiration;
 793    }
 794    public function setId($id)
 795    {
 796      $this->id = $id;
 797    }
 798    public function getId()
 799    {
 800      return $this->id;
 801    }
 802    public function setKind($kind)
 803    {
 804      $this->kind = $kind;
 805    }
 806    public function getKind()
 807    {
 808      return $this->kind;
 809    }
 810    public function setParams($params)
 811    {
 812      $this->params = $params;
 813    }
 814    public function getParams()
 815    {
 816      return $this->params;
 817    }
 818    public function setPayload($payload)
 819    {
 820      $this->payload = $payload;
 821    }
 822    public function getPayload()
 823    {
 824      return $this->payload;
 825    }
 826    public function setResourceId($resourceId)
 827    {
 828      $this->resourceId = $resourceId;
 829    }
 830    public function getResourceId()
 831    {
 832      return $this->resourceId;
 833    }
 834    public function setResourceUri($resourceUri)
 835    {
 836      $this->resourceUri = $resourceUri;
 837    }
 838    public function getResourceUri()
 839    {
 840      return $this->resourceUri;
 841    }
 842    public function setToken($token)
 843    {
 844      $this->token = $token;
 845    }
 846    public function getToken()
 847    {
 848      return $this->token;
 849    }
 850    public function setType($type)
 851    {
 852      $this->type = $type;
 853    }
 854    public function getType()
 855    {
 856      return $this->type;
 857    }
 858  }
 859  
 860  #[AllowDynamicProperties]
 861  class Google_Service_Reports_ChannelParams extends Google_Model
 862  {
 863  }
 864  
 865  #[AllowDynamicProperties]
 866  class Google_Service_Reports_UsageReport extends Google_Collection
 867  {
 868    protected $collection_key = 'parameters';
 869    protected $internal_gapi_mappings = array(
 870    );
 871    public $date;
 872    protected $entityType = 'Google_Service_Reports_UsageReportEntity';
 873    protected $entityDataType = '';
 874    public $etag;
 875    public $kind;
 876    protected $parametersType = 'Google_Service_Reports_UsageReportParameters';
 877    protected $parametersDataType = 'array';
 878  
 879  
 880    public function setDate($date)
 881    {
 882      $this->date = $date;
 883    }
 884    public function getDate()
 885    {
 886      return $this->date;
 887    }
 888    public function setEntity(Google_Service_Reports_UsageReportEntity $entity)
 889    {
 890      $this->entity = $entity;
 891    }
 892    public function getEntity()
 893    {
 894      return $this->entity;
 895    }
 896    public function setEtag($etag)
 897    {
 898      $this->etag = $etag;
 899    }
 900    public function getEtag()
 901    {
 902      return $this->etag;
 903    }
 904    public function setKind($kind)
 905    {
 906      $this->kind = $kind;
 907    }
 908    public function getKind()
 909    {
 910      return $this->kind;
 911    }
 912    public function setParameters($parameters)
 913    {
 914      $this->parameters = $parameters;
 915    }
 916    public function getParameters()
 917    {
 918      return $this->parameters;
 919    }
 920  }
 921  
 922  #[AllowDynamicProperties]
 923  class Google_Service_Reports_UsageReportEntity extends Google_Model
 924  {
 925    protected $internal_gapi_mappings = array(
 926    );
 927    public $customerId;
 928    public $profileId;
 929    public $type;
 930    public $userEmail;
 931  
 932  
 933    public function setCustomerId($customerId)
 934    {
 935      $this->customerId = $customerId;
 936    }
 937    public function getCustomerId()
 938    {
 939      return $this->customerId;
 940    }
 941    public function setProfileId($profileId)
 942    {
 943      $this->profileId = $profileId;
 944    }
 945    public function getProfileId()
 946    {
 947      return $this->profileId;
 948    }
 949    public function setType($type)
 950    {
 951      $this->type = $type;
 952    }
 953    public function getType()
 954    {
 955      return $this->type;
 956    }
 957    public function setUserEmail($userEmail)
 958    {
 959      $this->userEmail = $userEmail;
 960    }
 961    public function getUserEmail()
 962    {
 963      return $this->userEmail;
 964    }
 965  }
 966  
 967  #[AllowDynamicProperties]
 968  class Google_Service_Reports_UsageReportParameters extends Google_Collection
 969  {
 970    protected $collection_key = 'msgValue';
 971    protected $internal_gapi_mappings = array(
 972    );
 973    public $boolValue;
 974    public $datetimeValue;
 975    public $intValue;
 976    public $msgValue;
 977    public $name;
 978    public $stringValue;
 979  
 980  
 981    public function setBoolValue($boolValue)
 982    {
 983      $this->boolValue = $boolValue;
 984    }
 985    public function getBoolValue()
 986    {
 987      return $this->boolValue;
 988    }
 989    public function setDatetimeValue($datetimeValue)
 990    {
 991      $this->datetimeValue = $datetimeValue;
 992    }
 993    public function getDatetimeValue()
 994    {
 995      return $this->datetimeValue;
 996    }
 997    public function setIntValue($intValue)
 998    {
 999      $this->intValue = $intValue;
1000    }
1001    public function getIntValue()
1002    {
1003      return $this->intValue;
1004    }
1005    public function setMsgValue($msgValue)
1006    {
1007      $this->msgValue = $msgValue;
1008    }
1009    public function getMsgValue()
1010    {
1011      return $this->msgValue;
1012    }
1013    public function setName($name)
1014    {
1015      $this->name = $name;
1016    }
1017    public function getName()
1018    {
1019      return $this->name;
1020    }
1021    public function setStringValue($stringValue)
1022    {
1023      $this->stringValue = $stringValue;
1024    }
1025    public function getStringValue()
1026    {
1027      return $this->stringValue;
1028    }
1029  }
1030  
1031  #[AllowDynamicProperties]
1032  class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model
1033  {
1034  }
1035  
1036  #[AllowDynamicProperties]
1037  class Google_Service_Reports_UsageReports extends Google_Collection
1038  {
1039    protected $collection_key = 'warnings';
1040    protected $internal_gapi_mappings = array(
1041    );
1042    public $etag;
1043    public $kind;
1044    public $nextPageToken;
1045    protected $usageReportsType = 'Google_Service_Reports_UsageReport';
1046    protected $usageReportsDataType = 'array';
1047    protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings';
1048    protected $warningsDataType = 'array';
1049  
1050  
1051    public function setEtag($etag)
1052    {
1053      $this->etag = $etag;
1054    }
1055    public function getEtag()
1056    {
1057      return $this->etag;
1058    }
1059    public function setKind($kind)
1060    {
1061      $this->kind = $kind;
1062    }
1063    public function getKind()
1064    {
1065      return $this->kind;
1066    }
1067    public function setNextPageToken($nextPageToken)
1068    {
1069      $this->nextPageToken = $nextPageToken;
1070    }
1071    public function getNextPageToken()
1072    {
1073      return $this->nextPageToken;
1074    }
1075    public function setUsageReports($usageReports)
1076    {
1077      $this->usageReports = $usageReports;
1078    }
1079    public function getUsageReports()
1080    {
1081      return $this->usageReports;
1082    }
1083    public function setWarnings($warnings)
1084    {
1085      $this->warnings = $warnings;
1086    }
1087    public function getWarnings()
1088    {
1089      return $this->warnings;
1090    }
1091  }
1092  
1093  #[AllowDynamicProperties]
1094  class Google_Service_Reports_UsageReportsWarnings extends Google_Collection
1095  {
1096    protected $collection_key = 'data';
1097    protected $internal_gapi_mappings = array(
1098    );
1099    public $code;
1100    protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData';
1101    protected $dataDataType = 'array';
1102    public $message;
1103  
1104  
1105    public function setCode($code)
1106    {
1107      $this->code = $code;
1108    }
1109    public function getCode()
1110    {
1111      return $this->code;
1112    }
1113    public function setData($data)
1114    {
1115      $this->data = $data;
1116    }
1117    public function getData()
1118    {
1119      return $this->data;
1120    }
1121    public function setMessage($message)
1122    {
1123      $this->message = $message;
1124    }
1125    public function getMessage()
1126    {
1127      return $this->message;
1128    }
1129  }
1130  
1131  #[AllowDynamicProperties]
1132  class Google_Service_Reports_UsageReportsWarningsData extends Google_Model
1133  {
1134    protected $internal_gapi_mappings = array(
1135    );
1136    public $key;
1137    public $value;
1138  
1139  
1140    public function setKey($key)
1141    {
1142      $this->key = $key;
1143    }
1144    public function getKey()
1145    {
1146      return $this->key;
1147    }
1148    public function setValue($value)
1149    {
1150      $this->value = $value;
1151    }
1152    public function getValue()
1153    {
1154      return $this->value;
1155    }
1156  }