Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

   1  <?php
   2  /*
   3   * Copyright 2010 Google Inc.
   4   *
   5   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   6   * use this file except in compliance with the License. You may obtain a copy of
   7   * the License at
   8   *
   9   * http://www.apache.org/licenses/LICENSE-2.0
  10   *
  11   * Unless required by applicable law or agreed to in writing, software
  12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14   * License for the specific language governing permissions and limitations under
  15   * the License.
  16   */
  17  
  18  /**
  19   * Service definition for Logging (v2beta1).
  20   *
  21   * <p>
  22   * Google Cloud Logging API lets you create logs, ingest log entries, and manage
  23   * log sinks.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  class Google_Service_Logging extends Google_Service
  33  {
  34  
  35  
  36  
  37    
  38  
  39    /**
  40     * Constructs the internal representation of the Logging service.
  41     *
  42     * @param Google_Client $client
  43     */
  44    public function __construct(Google_Client $client)
  45    {
  46      parent::__construct($client);
  47      $this->rootUrl = 'https://logging.googleapis.com/';
  48      $this->servicePath = '';
  49      $this->version = 'v2beta1';
  50      $this->serviceName = 'logging';
  51  
  52    }
  53  }
  54  
  55  
  56  
  57  
  58  
  59  class Google_Service_Logging_LogLine extends Google_Model
  60  {
  61    protected $internal_gapi_mappings = array(
  62    );
  63    public $logMessage;
  64    public $severity;
  65    protected $sourceLocationType = 'Google_Service_Logging_SourceLocation';
  66    protected $sourceLocationDataType = '';
  67    public $time;
  68  
  69  
  70    public function setLogMessage($logMessage)
  71    {
  72      $this->logMessage = $logMessage;
  73    }
  74    public function getLogMessage()
  75    {
  76      return $this->logMessage;
  77    }
  78    public function setSeverity($severity)
  79    {
  80      $this->severity = $severity;
  81    }
  82    public function getSeverity()
  83    {
  84      return $this->severity;
  85    }
  86    public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation)
  87    {
  88      $this->sourceLocation = $sourceLocation;
  89    }
  90    public function getSourceLocation()
  91    {
  92      return $this->sourceLocation;
  93    }
  94    public function setTime($time)
  95    {
  96      $this->time = $time;
  97    }
  98    public function getTime()
  99    {
 100      return $this->time;
 101    }
 102  }
 103  
 104  class Google_Service_Logging_RequestLog extends Google_Collection
 105  {
 106    protected $collection_key = 'sourceReference';
 107    protected $internal_gapi_mappings = array(
 108    );
 109    public $appEngineRelease;
 110    public $appId;
 111    public $cost;
 112    public $endTime;
 113    public $finished;
 114    public $host;
 115    public $httpVersion;
 116    public $instanceId;
 117    public $instanceIndex;
 118    public $ip;
 119    public $latency;
 120    protected $lineType = 'Google_Service_Logging_LogLine';
 121    protected $lineDataType = 'array';
 122    public $megaCycles;
 123    public $method;
 124    public $moduleId;
 125    public $nickname;
 126    public $pendingTime;
 127    public $referrer;
 128    public $requestId;
 129    public $resource;
 130    public $responseSize;
 131    protected $sourceReferenceType = 'Google_Service_Logging_SourceReference';
 132    protected $sourceReferenceDataType = 'array';
 133    public $startTime;
 134    public $status;
 135    public $taskName;
 136    public $taskQueueName;
 137    public $traceId;
 138    public $urlMapEntry;
 139    public $userAgent;
 140    public $versionId;
 141    public $wasLoadingRequest;
 142  
 143  
 144    public function setAppEngineRelease($appEngineRelease)
 145    {
 146      $this->appEngineRelease = $appEngineRelease;
 147    }
 148    public function getAppEngineRelease()
 149    {
 150      return $this->appEngineRelease;
 151    }
 152    public function setAppId($appId)
 153    {
 154      $this->appId = $appId;
 155    }
 156    public function getAppId()
 157    {
 158      return $this->appId;
 159    }
 160    public function setCost($cost)
 161    {
 162      $this->cost = $cost;
 163    }
 164    public function getCost()
 165    {
 166      return $this->cost;
 167    }
 168    public function setEndTime($endTime)
 169    {
 170      $this->endTime = $endTime;
 171    }
 172    public function getEndTime()
 173    {
 174      return $this->endTime;
 175    }
 176    public function setFinished($finished)
 177    {
 178      $this->finished = $finished;
 179    }
 180    public function getFinished()
 181    {
 182      return $this->finished;
 183    }
 184    public function setHost($host)
 185    {
 186      $this->host = $host;
 187    }
 188    public function getHost()
 189    {
 190      return $this->host;
 191    }
 192    public function setHttpVersion($httpVersion)
 193    {
 194      $this->httpVersion = $httpVersion;
 195    }
 196    public function getHttpVersion()
 197    {
 198      return $this->httpVersion;
 199    }
 200    public function setInstanceId($instanceId)
 201    {
 202      $this->instanceId = $instanceId;
 203    }
 204    public function getInstanceId()
 205    {
 206      return $this->instanceId;
 207    }
 208    public function setInstanceIndex($instanceIndex)
 209    {
 210      $this->instanceIndex = $instanceIndex;
 211    }
 212    public function getInstanceIndex()
 213    {
 214      return $this->instanceIndex;
 215    }
 216    public function setIp($ip)
 217    {
 218      $this->ip = $ip;
 219    }
 220    public function getIp()
 221    {
 222      return $this->ip;
 223    }
 224    public function setLatency($latency)
 225    {
 226      $this->latency = $latency;
 227    }
 228    public function getLatency()
 229    {
 230      return $this->latency;
 231    }
 232    public function setLine($line)
 233    {
 234      $this->line = $line;
 235    }
 236    public function getLine()
 237    {
 238      return $this->line;
 239    }
 240    public function setMegaCycles($megaCycles)
 241    {
 242      $this->megaCycles = $megaCycles;
 243    }
 244    public function getMegaCycles()
 245    {
 246      return $this->megaCycles;
 247    }
 248    public function setMethod($method)
 249    {
 250      $this->method = $method;
 251    }
 252    public function getMethod()
 253    {
 254      return $this->method;
 255    }
 256    public function setModuleId($moduleId)
 257    {
 258      $this->moduleId = $moduleId;
 259    }
 260    public function getModuleId()
 261    {
 262      return $this->moduleId;
 263    }
 264    public function setNickname($nickname)
 265    {
 266      $this->nickname = $nickname;
 267    }
 268    public function getNickname()
 269    {
 270      return $this->nickname;
 271    }
 272    public function setPendingTime($pendingTime)
 273    {
 274      $this->pendingTime = $pendingTime;
 275    }
 276    public function getPendingTime()
 277    {
 278      return $this->pendingTime;
 279    }
 280    public function setReferrer($referrer)
 281    {
 282      $this->referrer = $referrer;
 283    }
 284    public function getReferrer()
 285    {
 286      return $this->referrer;
 287    }
 288    public function setRequestId($requestId)
 289    {
 290      $this->requestId = $requestId;
 291    }
 292    public function getRequestId()
 293    {
 294      return $this->requestId;
 295    }
 296    public function setResource($resource)
 297    {
 298      $this->resource = $resource;
 299    }
 300    public function getResource()
 301    {
 302      return $this->resource;
 303    }
 304    public function setResponseSize($responseSize)
 305    {
 306      $this->responseSize = $responseSize;
 307    }
 308    public function getResponseSize()
 309    {
 310      return $this->responseSize;
 311    }
 312    public function setSourceReference($sourceReference)
 313    {
 314      $this->sourceReference = $sourceReference;
 315    }
 316    public function getSourceReference()
 317    {
 318      return $this->sourceReference;
 319    }
 320    public function setStartTime($startTime)
 321    {
 322      $this->startTime = $startTime;
 323    }
 324    public function getStartTime()
 325    {
 326      return $this->startTime;
 327    }
 328    public function setStatus($status)
 329    {
 330      $this->status = $status;
 331    }
 332    public function getStatus()
 333    {
 334      return $this->status;
 335    }
 336    public function setTaskName($taskName)
 337    {
 338      $this->taskName = $taskName;
 339    }
 340    public function getTaskName()
 341    {
 342      return $this->taskName;
 343    }
 344    public function setTaskQueueName($taskQueueName)
 345    {
 346      $this->taskQueueName = $taskQueueName;
 347    }
 348    public function getTaskQueueName()
 349    {
 350      return $this->taskQueueName;
 351    }
 352    public function setTraceId($traceId)
 353    {
 354      $this->traceId = $traceId;
 355    }
 356    public function getTraceId()
 357    {
 358      return $this->traceId;
 359    }
 360    public function setUrlMapEntry($urlMapEntry)
 361    {
 362      $this->urlMapEntry = $urlMapEntry;
 363    }
 364    public function getUrlMapEntry()
 365    {
 366      return $this->urlMapEntry;
 367    }
 368    public function setUserAgent($userAgent)
 369    {
 370      $this->userAgent = $userAgent;
 371    }
 372    public function getUserAgent()
 373    {
 374      return $this->userAgent;
 375    }
 376    public function setVersionId($versionId)
 377    {
 378      $this->versionId = $versionId;
 379    }
 380    public function getVersionId()
 381    {
 382      return $this->versionId;
 383    }
 384    public function setWasLoadingRequest($wasLoadingRequest)
 385    {
 386      $this->wasLoadingRequest = $wasLoadingRequest;
 387    }
 388    public function getWasLoadingRequest()
 389    {
 390      return $this->wasLoadingRequest;
 391    }
 392  }
 393  
 394  class Google_Service_Logging_SourceLocation extends Google_Model
 395  {
 396    protected $internal_gapi_mappings = array(
 397    );
 398    public $file;
 399    public $functionName;
 400    public $line;
 401  
 402  
 403    public function setFile($file)
 404    {
 405      $this->file = $file;
 406    }
 407    public function getFile()
 408    {
 409      return $this->file;
 410    }
 411    public function setFunctionName($functionName)
 412    {
 413      $this->functionName = $functionName;
 414    }
 415    public function getFunctionName()
 416    {
 417      return $this->functionName;
 418    }
 419    public function setLine($line)
 420    {
 421      $this->line = $line;
 422    }
 423    public function getLine()
 424    {
 425      return $this->line;
 426    }
 427  }
 428  
 429  class Google_Service_Logging_SourceReference extends Google_Model
 430  {
 431    protected $internal_gapi_mappings = array(
 432    );
 433    public $repository;
 434    public $revisionId;
 435  
 436  
 437    public function setRepository($repository)
 438    {
 439      $this->repository = $repository;
 440    }
 441    public function getRepository()
 442    {
 443      return $this->repository;
 444    }
 445    public function setRevisionId($revisionId)
 446    {
 447      $this->revisionId = $revisionId;
 448    }
 449    public function getRevisionId()
 450    {
 451      return $this->revisionId;
 452    }
 453  }