* Copyright 2010 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
* 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
* Service definition for Logging (v1beta3).
* Google Cloud Logging API lets you create logs, ingest log entries, and manage
* For more information about this service, see the API
* <a href="" target="_blank">Documentation</a>
class Google_Service_Logging extends UDP_Google_Service
/** View and manage your data across Google Cloud Platform services. */
"https://www.googleapis.com/auth/cloud-platform";
public $projects_logServices;
public $projects_logServices_indexes;
public $projects_logServices_sinks;
public $projects_logs_entries;
public $projects_logs_sinks;
* Constructs the internal representation of the Logging service.
* @param Google_Client $client
public function __construct(UDP_Google_Client $client)
parent::__construct($client);
$this->version = 'v1beta3';
$this->serviceName = 'logging';
$this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource(
'path' => 'v1beta3/projects/{projectsId}/logServices',
$this->projects_logServices_indexes = new Google_Service_Logging_ProjectsLogServicesIndexes_Resource(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes',
'logServicesId' => array(
$this->projects_logServices_sinks = new Google_Service_Logging_ProjectsLogServicesSinks_Resource(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks',
'logServicesId' => array(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
'httpMethod' => 'DELETE',
'logServicesId' => array(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
'logServicesId' => array(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks',
'logServicesId' => array(
'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
'logServicesId' => array(
$this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource(
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}',
'httpMethod' => 'DELETE',
'path' => 'v1beta3/projects/{projectsId}/logs',
'serviceIndexPrefix' => array(
$this->projects_logs_entries = new Google_Service_Logging_ProjectsLogsEntries_Resource(
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write',
$this->projects_logs_sinks = new Google_Service_Logging_ProjectsLogsSinks_Resource(
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks',
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
'httpMethod' => 'DELETE',
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks',
'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
* The "projects" collection of methods.
* $loggingService = new Google_Service_Logging(...);
* $projects = $loggingService->projects;
class Google_Service_Logging_Projects_Resource extends UDP_Google_Service_Resource
* The "logServices" collection of methods.
* $loggingService = new Google_Service_Logging(...);
* $logServices = $loggingService->logServices;
class Google_Service_Logging_ProjectsLogServices_Resource extends UDP_Google_Service_Resource
* Lists log services associated with log entries ingested for a project.
* (logServices.listProjectsLogServices)
* @param string $projectsId Part of `projectName`. The project resource whose
* services are to be listed.
* @param array $optParams Optional parameters.
* @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
* prior `ListLogServices` operation. If `pageToken` is supplied, then the other
* fields of this request are ignored, and instead the previous
* `ListLogServices` operation is continued.
* @opt_param string log The name of the log resource whose services are to be
* listed. log for which to list services. When empty, all services are listed.
* @opt_param int pageSize The maximum number of `LogService` objects to return
* @return Google_Service_Logging_ListLogServicesResponse
public function listProjectsLogServices($projectsId, $optParams = array())
$params = array('projectsId' => $projectsId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Logging_ListLogServicesResponse");
* The "indexes" collection of methods.
* $loggingService = new Google_Service_Logging(...);
* $indexes = $loggingService->indexes;
class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends UDP_Google_Service_Resource
* Lists log service indexes associated with a log service.
* (indexes.listProjectsLogServicesIndexes)
* @param string $projectsId Part of `serviceName`. A log service resource of
* the form `/projects/logServices`. The service indexes of the log service are
* returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`.
* @param string $logServicesId Part of `serviceName`. See documentation of
* @param array $optParams Optional parameters.
* @opt_param string log A log resource like
* `/projects/project_id/logs/log_name`, identifying the log for which to list
* @opt_param int pageSize The maximum number of log service index resources to
* return in one operation.
* @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
* prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the
* other fields of this request are ignored, and instead the previous
* `ListLogServiceIndexes` operation is continued.
* @opt_param int depth A limit to the number of levels of the index hierarchy
* that are expanded. If `depth` is 0, it defaults to the level specified by the
* prefix field (the number of slash separators). The default empty prefix
* implies a `depth` of 1. It is an error for `depth` to be any non-zero value
* less than the number of components in `indexPrefix`.
* @opt_param string indexPrefix Restricts the indexes returned to be those with