[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> Reports.php (source)

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1