Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_HttpRequest extends Google_Model
{
public $cacheFillBytes;
public $cacheHit;
public $cacheLookup;
public $cacheValidatedWithOriginServer;
public $latency;
public $referer;
public $remoteIp;
public $requestMethod;
public $requestSize;
public $requestUrl;
public $responseSize;
public $serverIp;
public $status;
public $userAgent;
public function setCacheFillBytes($cacheFillBytes)
{
$this->cacheFillBytes = $cacheFillBytes;
}
public function getCacheFillBytes()
{
return $this->cacheFillBytes;
}
public function setCacheHit($cacheHit)
{
$this->cacheHit = $cacheHit;
}
public function getCacheHit()
{
return $this->cacheHit;
}
public function setCacheLookup($cacheLookup)
{
$this->cacheLookup = $cacheLookup;
}
public function getCacheLookup()
{
return $this->cacheLookup;
}
public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
{
$this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
}
public function getCacheValidatedWithOriginServer()
{
return $this->cacheValidatedWithOriginServer;
}
public function setLatency($latency)
{
$this->latency = $latency;
}
public function getLatency()
{
return $this->latency;
}
public function setReferer($referer)
{
$this->referer = $referer;
}
public function getReferer()
{
return $this->referer;
}
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
public function getRemoteIp()
{
return $this->remoteIp;
}
public function setRequestMethod($requestMethod)
{
$this->requestMethod = $requestMethod;
}
public function getRequestMethod()
{
return $this->requestMethod;
}
public function setRequestSize($requestSize)
{
$this->requestSize = $requestSize;
}
public function getRequestSize()
{
return $this->requestSize;
}
public function setRequestUrl($requestUrl)
{
$this->requestUrl = $requestUrl;
}
public function getRequestUrl()
{
return $this->requestUrl;
}
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
public function getResponseSize()
{
return $this->responseSize;
}
public function setServerIp($serverIp)
{
$this->serverIp = $serverIp;
}
public function getServerIp()
{
return $this->serverIp;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
public function getUserAgent()
{
return $this->userAgent;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LabelDescriptor extends Google_Model
{
public $description;
public $key;
public $valueType;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setKey($key)
{
$this->key = $key;
}
public function getKey()
{
return $this->key;
}
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
public function getValueType()
{
return $this->valueType;
}
}

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListLogEntriesRequest extends Google_Collection
{
protected $collection_key = 'resourceNames';
public $filter;
public $orderBy;
public $pageSize;
public $pageToken;
public $projectIds;
public $resourceNames;
public function setFilter($filter)
{
$this->filter = $filter;
}
public function getFilter()
{
return $this->filter;
}
public function setOrderBy($orderBy)
{
$this->orderBy = $orderBy;
}
public function getOrderBy()
{
return $this->orderBy;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
public function getPageToken()
{
return $this->pageToken;
}
public function setProjectIds($projectIds)
{
$this->projectIds = $projectIds;
}
public function getProjectIds()
{
return $this->projectIds;
}
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
public function getResourceNames()
{
return $this->resourceNames;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection
{
protected $collection_key = 'entries';
protected $entriesType = 'Google_Service_Logging_LogEntry';
protected $entriesDataType = 'array';
public $nextPageToken;
public function setEntries($entries)
{
$this->entries = $entries;
}
public function getEntries()
{
return $this->entries;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection
{
protected $collection_key = 'metrics';
protected $metricsType = 'Google_Service_Logging_LogMetric';
protected $metricsDataType = 'array';
public $nextPageToken;
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
public function getMetrics()
{
return $this->metrics;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListLogsResponse extends Google_Collection
{
protected $collection_key = 'logNames';
public $logNames;
public $nextPageToken;
public function setLogNames($logNames)
{
$this->logNames = $logNames;
}
public function getLogNames()
{
return $this->logNames;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListMonitoredResourceDescriptorsResponse extends Google_Collection
{
protected $collection_key = 'resourceDescriptors';
public $nextPageToken;
protected $resourceDescriptorsType = 'Google_Service_Logging_MonitoredResourceDescriptor';
protected $resourceDescriptorsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setResourceDescriptors($resourceDescriptors)
{
$this->resourceDescriptors = $resourceDescriptors;
}
public function getResourceDescriptors()
{
return $this->resourceDescriptors;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_ListSinksResponse extends Google_Collection
{
protected $collection_key = 'sinks';
public $nextPageToken;
protected $sinksType = 'Google_Service_Logging_LogSink';
protected $sinksDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setSinks($sinks)
{
$this->sinks = $sinks;
}
public function getSinks()
{
return $this->sinks;
}
}

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogEntry extends Google_Model
{
protected $httpRequestType = 'Google_Service_Logging_HttpRequest';
protected $httpRequestDataType = '';
public $insertId;
public $jsonPayload;
public $labels;
public $logName;
protected $operationType = 'Google_Service_Logging_LogEntryOperation';
protected $operationDataType = '';
public $protoPayload;
protected $resourceType = 'Google_Service_Logging_MonitoredResource';
protected $resourceDataType = '';
public $severity;
protected $sourceLocationType = 'Google_Service_Logging_LogEntrySourceLocation';
protected $sourceLocationDataType = '';
public $textPayload;
public $timestamp;
public $trace;
public function setHttpRequest(Google_Service_Logging_HttpRequest $httpRequest)
{
$this->httpRequest = $httpRequest;
}
public function getHttpRequest()
{
return $this->httpRequest;
}
public function setInsertId($insertId)
{
$this->insertId = $insertId;
}
public function getInsertId()
{
return $this->insertId;
}
public function setJsonPayload($jsonPayload)
{
$this->jsonPayload = $jsonPayload;
}
public function getJsonPayload()
{
return $this->jsonPayload;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setLogName($logName)
{
$this->logName = $logName;
}
public function getLogName()
{
return $this->logName;
}
public function setOperation(Google_Service_Logging_LogEntryOperation $operation)
{
$this->operation = $operation;
}
public function getOperation()
{
return $this->operation;
}
public function setProtoPayload($protoPayload)
{
$this->protoPayload = $protoPayload;
}
public function getProtoPayload()
{
return $this->protoPayload;
}
public function setResource(Google_Service_Logging_MonitoredResource $resource)
{
$this->resource = $resource;
}
public function getResource()
{
return $this->resource;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
public function setSourceLocation(Google_Service_Logging_LogEntrySourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
public function getSourceLocation()
{
return $this->sourceLocation;
}
public function setTextPayload($textPayload)
{
$this->textPayload = $textPayload;
}
public function getTextPayload()
{
return $this->textPayload;
}
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setTrace($trace)
{
$this->trace = $trace;
}
public function getTrace()
{
return $this->trace;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogEntryOperation extends Google_Model
{
public $first;
public $id;
public $last;
public $producer;
public function setFirst($first)
{
$this->first = $first;
}
public function getFirst()
{
return $this->first;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setLast($last)
{
$this->last = $last;
}
public function getLast()
{
return $this->last;
}
public function setProducer($producer)
{
$this->producer = $producer;
}
public function getProducer()
{
return $this->producer;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogEntrySourceLocation extends Google_Model
{
public $file;
public $function;
public $line;
public function setFile($file)
{
$this->file = $file;
}
public function getFile()
{
return $this->file;
}
public function setFunction($function)
{
$this->function = $function;
}
public function getFunction()
{
return $this->function;
}
public function setLine($line)
{
$this->line = $line;
}
public function getLine()
{
return $this->line;
}
}

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogLine extends Google_Model
{
public $logMessage;
public $severity;
protected $sourceLocationType = 'Google_Service_Logging_SourceLocation';
protected $sourceLocationDataType = '';
public $time;
public function setLogMessage($logMessage)
{
$this->logMessage = $logMessage;
}
public function getLogMessage()
{
return $this->logMessage;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
public function getSourceLocation()
{
return $this->sourceLocation;
}
public function setTime($time)
{
$this->time = $time;
}
public function getTime()
{
return $this->time;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogMetric extends Google_Model
{
public $description;
public $filter;
public $name;
public $version;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setFilter($filter)
{
$this->filter = $filter;
}
public function getFilter()
{
return $this->filter;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setVersion($version)
{
$this->version = $version;
}
public function getVersion()
{
return $this->version;
}
}

View File

@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LogSink extends Google_Model
{
public $destination;
public $endTime;
public $filter;
public $name;
public $outputVersionFormat;
public $startTime;
public $writerIdentity;
public function setDestination($destination)
{
$this->destination = $destination;
}
public function getDestination()
{
return $this->destination;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setFilter($filter)
{
$this->filter = $filter;
}
public function getFilter()
{
return $this->filter;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setOutputVersionFormat($outputVersionFormat)
{
$this->outputVersionFormat = $outputVersionFormat;
}
public function getOutputVersionFormat()
{
return $this->outputVersionFormat;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setWriterIdentity($writerIdentity)
{
$this->writerIdentity = $writerIdentity;
}
public function getWriterIdentity()
{
return $this->writerIdentity;
}
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_LoggingEmpty extends Google_Model
{
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_MonitoredResource extends Google_Model
{
public $labels;
public $type;
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_MonitoredResourceDescriptor extends Google_Collection
{
protected $collection_key = 'labels';
public $description;
public $displayName;
protected $labelsType = 'Google_Service_Logging_LabelDescriptor';
protected $labelsDataType = 'array';
public $name;
public $type;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,312 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_RequestLog extends Google_Collection
{
protected $collection_key = 'sourceReference';
public $appEngineRelease;
public $appId;
public $cost;
public $endTime;
public $finished;
public $first;
public $host;
public $httpVersion;
public $instanceId;
public $instanceIndex;
public $ip;
public $latency;
protected $lineType = 'Google_Service_Logging_LogLine';
protected $lineDataType = 'array';
public $megaCycles;
public $method;
public $moduleId;
public $nickname;
public $pendingTime;
public $referrer;
public $requestId;
public $resource;
public $responseSize;
protected $sourceReferenceType = 'Google_Service_Logging_SourceReference';
protected $sourceReferenceDataType = 'array';
public $startTime;
public $status;
public $taskName;
public $taskQueueName;
public $traceId;
public $urlMapEntry;
public $userAgent;
public $versionId;
public $wasLoadingRequest;
public function setAppEngineRelease($appEngineRelease)
{
$this->appEngineRelease = $appEngineRelease;
}
public function getAppEngineRelease()
{
return $this->appEngineRelease;
}
public function setAppId($appId)
{
$this->appId = $appId;
}
public function getAppId()
{
return $this->appId;
}
public function setCost($cost)
{
$this->cost = $cost;
}
public function getCost()
{
return $this->cost;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setFinished($finished)
{
$this->finished = $finished;
}
public function getFinished()
{
return $this->finished;
}
public function setFirst($first)
{
$this->first = $first;
}
public function getFirst()
{
return $this->first;
}
public function setHost($host)
{
$this->host = $host;
}
public function getHost()
{
return $this->host;
}
public function setHttpVersion($httpVersion)
{
$this->httpVersion = $httpVersion;
}
public function getHttpVersion()
{
return $this->httpVersion;
}
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
public function getInstanceId()
{
return $this->instanceId;
}
public function setInstanceIndex($instanceIndex)
{
$this->instanceIndex = $instanceIndex;
}
public function getInstanceIndex()
{
return $this->instanceIndex;
}
public function setIp($ip)
{
$this->ip = $ip;
}
public function getIp()
{
return $this->ip;
}
public function setLatency($latency)
{
$this->latency = $latency;
}
public function getLatency()
{
return $this->latency;
}
public function setLine($line)
{
$this->line = $line;
}
public function getLine()
{
return $this->line;
}
public function setMegaCycles($megaCycles)
{
$this->megaCycles = $megaCycles;
}
public function getMegaCycles()
{
return $this->megaCycles;
}
public function setMethod($method)
{
$this->method = $method;
}
public function getMethod()
{
return $this->method;
}
public function setModuleId($moduleId)
{
$this->moduleId = $moduleId;
}
public function getModuleId()
{
return $this->moduleId;
}
public function setNickname($nickname)
{
$this->nickname = $nickname;
}
public function getNickname()
{
return $this->nickname;
}
public function setPendingTime($pendingTime)
{
$this->pendingTime = $pendingTime;
}
public function getPendingTime()
{
return $this->pendingTime;
}
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
public function getReferrer()
{
return $this->referrer;
}
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
public function getRequestId()
{
return $this->requestId;
}
public function setResource($resource)
{
$this->resource = $resource;
}
public function getResource()
{
return $this->resource;
}
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
public function getResponseSize()
{
return $this->responseSize;
}
public function setSourceReference($sourceReference)
{
$this->sourceReference = $sourceReference;
}
public function getSourceReference()
{
return $this->sourceReference;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setTaskName($taskName)
{
$this->taskName = $taskName;
}
public function getTaskName()
{
return $this->taskName;
}
public function setTaskQueueName($taskQueueName)
{
$this->taskQueueName = $taskQueueName;
}
public function getTaskQueueName()
{
return $this->taskQueueName;
}
public function setTraceId($traceId)
{
$this->traceId = $traceId;
}
public function getTraceId()
{
return $this->traceId;
}
public function setUrlMapEntry($urlMapEntry)
{
$this->urlMapEntry = $urlMapEntry;
}
public function getUrlMapEntry()
{
return $this->urlMapEntry;
}
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
public function getUserAgent()
{
return $this->userAgent;
}
public function setVersionId($versionId)
{
$this->versionId = $versionId;
}
public function getVersionId()
{
return $this->versionId;
}
public function setWasLoadingRequest($wasLoadingRequest)
{
$this->wasLoadingRequest = $wasLoadingRequest;
}
public function getWasLoadingRequest()
{
return $this->wasLoadingRequest;
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "billingAccounts" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $billingAccounts = $loggingService->billingAccounts;
* </code>
*/
class Google_Service_Logging_Resource_BillingAccounts extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $logs = $loggingService->logs;
* </code>
*/
class Google_Service_Logging_Resource_BillingAccountsLogs extends Google_Service_Resource
{
/**
* Deletes all the log entries in a log. The log reappears if it receives new
* entries. Log entries written shortly before the delete operation might not be
* deleted. (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* "projects/[PROJECT_ID]/logs/[LOG_ID]"
* "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
* "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
* example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
* /cloudresourcemanager.googleapis.com%2Factivity". For more information about
* log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($logName, $optParams = array())
{
$params = array('logName' => $logName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listBillingAccountsLogs)
*
* @param string $parent Required. The resource name that owns the logs:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListLogsResponse
*/
public function listBillingAccountsLogs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
}
}

View File

@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $sinks = $loggingService->sinks;
* </code>
*/
class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Service_Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export of newly-ingested log entries begins immediately, unless the current
* time is outside the sink's start and end times or the sink's writer_identity
* is not permitted to write to the destination. A sink can export log entries
* only from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
* "projects/my-logging-project", "organizations/123456789".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Stackdriver Logging before the addition of writer identities to this API.
* The sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a unique
* service account used only for exports from the new sink. For more
* information, see writer_identity in LogSink.
* @return Google_Service_Logging_LogSink
*/
public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Logging_LogSink");
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogSink
*/
public function get($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Logging_LogSink");
}
/**
* Lists sinks. (sinks.listBillingAccountsSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListSinksResponse
*/
public function listBillingAccountsSinks($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
}
/**
* Updates a sink. If the named sink doesn't exist, then this method is
* identical to sinks.create. If the named sink does exist, then this method
* replaces the following fields in the existing sink with values from the new
* sink: destination, filter, output_version_format, start_time, and end_time.
* The updated filter might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a unique service account. It is an error if the old value is true
* and the new value is false.
* @return Google_Service_Logging_LogSink
*/
public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('sinkName' => $sinkName, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Logging_LogSink");
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "entries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $entries = $loggingService->entries;
* </code>
*/
class Google_Service_Logging_Resource_Entries extends Google_Service_Resource
{
/**
* Lists log entries. Use this method to retrieve log entries from Stackdriver
* Logging. For ways to export log entries, see Exporting Logs.
* (entries.listEntries)
*
* @param Google_Service_Logging_ListLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_ListLogEntriesResponse
*/
public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse");
}
/**
* Writes log entries to Stackdriver Logging. (entries.write)
*
* @param Google_Service_Logging_WriteLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_WriteLogEntriesResponse
*/
public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $folders = $loggingService->folders;
* </code>
*/
class Google_Service_Logging_Resource_Folders extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $logs = $loggingService->logs;
* </code>
*/
class Google_Service_Logging_Resource_FoldersLogs extends Google_Service_Resource
{
/**
* Deletes all the log entries in a log. The log reappears if it receives new
* entries. Log entries written shortly before the delete operation might not be
* deleted. (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* "projects/[PROJECT_ID]/logs/[LOG_ID]"
* "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
* "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
* example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
* /cloudresourcemanager.googleapis.com%2Factivity". For more information about
* log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($logName, $optParams = array())
{
$params = array('logName' => $logName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listFoldersLogs)
*
* @param string $parent Required. The resource name that owns the logs:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListLogsResponse
*/
public function listFoldersLogs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
}
}

View File

@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $sinks = $loggingService->sinks;
* </code>
*/
class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export of newly-ingested log entries begins immediately, unless the current
* time is outside the sink's start and end times or the sink's writer_identity
* is not permitted to write to the destination. A sink can export log entries
* only from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
* "projects/my-logging-project", "organizations/123456789".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Stackdriver Logging before the addition of writer identities to this API.
* The sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a unique
* service account used only for exports from the new sink. For more
* information, see writer_identity in LogSink.
* @return Google_Service_Logging_LogSink
*/
public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Logging_LogSink");
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogSink
*/
public function get($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Logging_LogSink");
}
/**
* Lists sinks. (sinks.listFoldersSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListSinksResponse
*/
public function listFoldersSinks($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
}
/**
* Updates a sink. If the named sink doesn't exist, then this method is
* identical to sinks.create. If the named sink does exist, then this method
* replaces the following fields in the existing sink with values from the new
* sink: destination, filter, output_version_format, start_time, and end_time.
* The updated filter might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a unique service account. It is an error if the old value is true
* and the new value is false.
* @return Google_Service_Logging_LogSink
*/
public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('sinkName' => $sinkName, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Logging_LogSink");
}
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "monitoredResourceDescriptors" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $monitoredResourceDescriptors = $loggingService->monitoredResourceDescriptors;
* </code>
*/
class Google_Service_Logging_Resource_MonitoredResourceDescriptors extends Google_Service_Resource
{
/**
* Lists the descriptors for monitored resource types used by Stackdriver
* Logging. (monitoredResourceDescriptors.listMonitoredResourceDescriptors)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return Google_Service_Logging_ListMonitoredResourceDescriptorsResponse
*/
public function listMonitoredResourceDescriptors($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListMonitoredResourceDescriptorsResponse");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $organizations = $loggingService->organizations;
* </code>
*/
class Google_Service_Logging_Resource_Organizations extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $logs = $loggingService->logs;
* </code>
*/
class Google_Service_Logging_Resource_OrganizationsLogs extends Google_Service_Resource
{
/**
* Deletes all the log entries in a log. The log reappears if it receives new
* entries. Log entries written shortly before the delete operation might not be
* deleted. (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* "projects/[PROJECT_ID]/logs/[LOG_ID]"
* "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
* "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
* example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
* /cloudresourcemanager.googleapis.com%2Factivity". For more information about
* log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($logName, $optParams = array())
{
$params = array('logName' => $logName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listOrganizationsLogs)
*
* @param string $parent Required. The resource name that owns the logs:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListLogsResponse
*/
public function listOrganizationsLogs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
}
}

View File

@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $sinks = $loggingService->sinks;
* </code>
*/
class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export of newly-ingested log entries begins immediately, unless the current
* time is outside the sink's start and end times or the sink's writer_identity
* is not permitted to write to the destination. A sink can export log entries
* only from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
* "projects/my-logging-project", "organizations/123456789".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Stackdriver Logging before the addition of writer identities to this API.
* The sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a unique
* service account used only for exports from the new sink. For more
* information, see writer_identity in LogSink.
* @return Google_Service_Logging_LogSink
*/
public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Logging_LogSink");
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogSink
*/
public function get($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Logging_LogSink");
}
/**
* Lists sinks. (sinks.listOrganizationsSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListSinksResponse
*/
public function listOrganizationsSinks($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
}
/**
* Updates a sink. If the named sink doesn't exist, then this method is
* identical to sinks.create. If the named sink does exist, then this method
* replaces the following fields in the existing sink with values from the new
* sink: destination, filter, output_version_format, start_time, and end_time.
* The updated filter might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a unique service account. It is an error if the old value is true
* and the new value is false.
* @return Google_Service_Logging_LogSink
*/
public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('sinkName' => $sinkName, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Logging_LogSink");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $projects = $loggingService->projects;
* </code>
*/
class Google_Service_Logging_Resource_Projects extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $logs = $loggingService->logs;
* </code>
*/
class Google_Service_Logging_Resource_ProjectsLogs extends Google_Service_Resource
{
/**
* Deletes all the log entries in a log. The log reappears if it receives new
* entries. Log entries written shortly before the delete operation might not be
* deleted. (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* "projects/[PROJECT_ID]/logs/[LOG_ID]"
* "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
* "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
* example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
* /cloudresourcemanager.googleapis.com%2Factivity". For more information about
* log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($logName, $optParams = array())
{
$params = array('logName' => $logName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listProjectsLogs)
*
* @param string $parent Required. The resource name that owns the logs:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return Google_Service_Logging_ListLogsResponse
*/
public function listProjectsLogs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
}
}

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "metrics" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $metrics = $loggingService->metrics;
* </code>
*/
class Google_Service_Logging_Resource_ProjectsMetrics extends Google_Service_Resource
{
/**
* Creates a logs-based metric. (metrics.create)
*
* @param string $parent The resource name of the project in which to create the
* metric: "projects/[PROJECT_ID]" The new metric must be provided in the
* request.
* @param Google_Service_Logging_LogMetric $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogMetric
*/
public function create($parent, Google_Service_Logging_LogMetric $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Logging_LogMetric");
}
/**
* Deletes a logs-based metric. (metrics.delete)
*
* @param string $metricName The resource name of the metric to delete:
* "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($metricName, $optParams = array())
{
$params = array('metricName' => $metricName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Gets a logs-based metric. (metrics.get)
*
* @param string $metricName The resource name of the desired metric:
* "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogMetric
*/
public function get($metricName, $optParams = array())
{
$params = array('metricName' => $metricName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Logging_LogMetric");
}
/**
* Lists logs-based metrics. (metrics.listProjectsMetrics)
*
* @param string $parent Required. The name of the project containing the
* metrics: "projects/[PROJECT_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListLogMetricsResponse
*/
public function listProjectsMetrics($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse");
}
/**
* Creates or updates a logs-based metric. (metrics.update)
*
* @param string $metricName The resource name of the metric to update:
* "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be
* provided in the request and it's name field must be the same as [METRIC_ID]
* If the metric does not exist in [PROJECT_ID], then a new metric is created.
* @param Google_Service_Logging_LogMetric $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogMetric
*/
public function update($metricName, Google_Service_Logging_LogMetric $postBody, $optParams = array())
{
$params = array('metricName' => $metricName, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Logging_LogMetric");
}
}

View File

@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google_Service_Logging(...);
* $sinks = $loggingService->sinks;
* </code>
*/
class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export of newly-ingested log entries begins immediately, unless the current
* time is outside the sink's start and end times or the sink's writer_identity
* is not permitted to write to the destination. A sink can export log entries
* only from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
* "projects/my-logging-project", "organizations/123456789".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Stackdriver Logging before the addition of writer identities to this API.
* The sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a unique
* service account used only for exports from the new sink. For more
* information, see writer_identity in LogSink.
* @return Google_Service_Logging_LogSink
*/
public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Logging_LogSink");
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LoggingEmpty
*/
public function delete($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param array $optParams Optional parameters.
* @return Google_Service_Logging_LogSink
*/
public function get($sinkName, $optParams = array())
{
$params = array('sinkName' => $sinkName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Logging_LogSink");
}
/**
* Lists sinks. (sinks.listProjectsSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken in the response indicates that more results might be available.
* @return Google_Service_Logging_ListSinksResponse
*/
public function listProjectsSinks($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
}
/**
* Updates a sink. If the named sink doesn't exist, then this method is
* identical to sinks.create. If the named sink does exist, then this method
* replaces the following fields in the existing sink with values from the new
* sink: destination, filter, output_version_format, start_time, and end_time.
* The updated filter might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
* /my-sink-id".
* @param Google_Service_Logging_LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a unique service account. It is an error if the old value is true
* and the new value is false.
* @return Google_Service_Logging_LogSink
*/
public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
{
$params = array('sinkName' => $sinkName, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Logging_LogSink");
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_SourceLocation extends Google_Model
{
public $file;
public $functionName;
public $line;
public function setFile($file)
{
$this->file = $file;
}
public function getFile()
{
return $this->file;
}
public function setFunctionName($functionName)
{
$this->functionName = $functionName;
}
public function getFunctionName()
{
return $this->functionName;
}
public function setLine($line)
{
$this->line = $line;
}
public function getLine()
{
return $this->line;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_SourceReference extends Google_Model
{
public $repository;
public $revisionId;
public function setRepository($repository)
{
$this->repository = $repository;
}
public function getRepository()
{
return $this->repository;
}
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
public function getRevisionId()
{
return $this->revisionId;
}
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_Status extends Google_Collection
{
protected $collection_key = 'details';
public $code;
public $details;
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setDetails($details)
{
$this->details = $details;
}
public function getDetails()
{
return $this->details;
}
public function setMessage($message)
{
$this->message = $message;
}
public function getMessage()
{
return $this->message;
}
}

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection
{
protected $collection_key = 'entries';
protected $entriesType = 'Google_Service_Logging_LogEntry';
protected $entriesDataType = 'array';
public $labels;
public $logName;
public $partialSuccess;
protected $resourceType = 'Google_Service_Logging_MonitoredResource';
protected $resourceDataType = '';
public function setEntries($entries)
{
$this->entries = $entries;
}
public function getEntries()
{
return $this->entries;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setLogName($logName)
{
$this->logName = $logName;
}
public function getLogName()
{
return $this->logName;
}
public function setPartialSuccess($partialSuccess)
{
$this->partialSuccess = $partialSuccess;
}
public function getPartialSuccess()
{
return $this->partialSuccess;
}
public function setResource(Google_Service_Logging_MonitoredResource $resource)
{
$this->resource = $resource;
}
public function getResource()
{
return $this->resource;
}
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model
{
}