* Writes log entries and manages your Stackdriver Logging configuration. The * table entries below are presented in alphabetical order, not in order of * common use. For explanations of the concepts found in the table entries, read * the Stackdriver Logging documentation.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Google_Service_Logging extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View your data across Google Cloud Platform services. */ const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; /** Administrate log data for your projects. */ const LOGGING_ADMIN = "https://www.googleapis.com/auth/logging.admin"; /** View log data for your projects. */ const LOGGING_READ = "https://www.googleapis.com/auth/logging.read"; /** Submit log data for your projects. */ const LOGGING_WRITE = "https://www.googleapis.com/auth/logging.write"; public $billingAccounts_exclusions; public $billingAccounts_logs; public $billingAccounts_sinks; public $entries; public $exclusions; public $folders_exclusions; public $folders_logs; public $folders_sinks; public $logs; public $monitoredResourceDescriptors; public $organizations_exclusions; public $organizations_logs; public $organizations_sinks; public $projects_exclusions; public $projects_logs; public $projects_metrics; public $projects_sinks; public $sinks; /** * Constructs the internal representation of the Logging service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://logging.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'logging'; $this->billingAccounts_exclusions = new Google_Service_Logging_Resource_BillingAccountsExclusions( $this, $this->serviceName, 'exclusions', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->billingAccounts_logs = new Google_Service_Logging_Resource_BillingAccountsLogs( $this, $this->serviceName, 'logs', array( 'methods' => array( 'delete' => array( 'path' => 'v2/{+logName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'logName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/logs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->billingAccounts_sinks = new Google_Service_Logging_Resource_BillingAccountsSinks( $this, $this->serviceName, 'sinks', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'delete' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'GET', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PATCH', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PUT', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->entries = new Google_Service_Logging_Resource_Entries( $this, $this->serviceName, 'entries', array( 'methods' => array( 'list' => array( 'path' => 'v2/entries:list', 'httpMethod' => 'POST', 'parameters' => array(), ),'write' => array( 'path' => 'v2/entries:write', 'httpMethod' => 'POST', 'parameters' => array(), ), ) ) ); $this->exclusions = new Google_Service_Logging_Resource_Exclusions( $this, $this->serviceName, 'exclusions', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->folders_exclusions = new Google_Service_Logging_Resource_FoldersExclusions( $this, $this->serviceName, 'exclusions', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->folders_logs = new Google_Service_Logging_Resource_FoldersLogs( $this, $this->serviceName, 'logs', array( 'methods' => array( 'delete' => array( 'path' => 'v2/{+logName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'logName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/logs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->folders_sinks = new Google_Service_Logging_Resource_FoldersSinks( $this, $this->serviceName, 'sinks', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'delete' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'GET', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PATCH', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PUT', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->logs = new Google_Service_Logging_Resource_Logs( $this, $this->serviceName, 'logs', array( 'methods' => array( 'delete' => array( 'path' => 'v2/{+logName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'logName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/logs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->monitoredResourceDescriptors = new Google_Service_Logging_Resource_MonitoredResourceDescriptors( $this, $this->serviceName, 'monitoredResourceDescriptors', array( 'methods' => array( 'list' => array( 'path' => 'v2/monitoredResourceDescriptors', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->organizations_exclusions = new Google_Service_Logging_Resource_OrganizationsExclusions( $this, $this->serviceName, 'exclusions', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->organizations_logs = new Google_Service_Logging_Resource_OrganizationsLogs( $this, $this->serviceName, 'logs', array( 'methods' => array( 'delete' => array( 'path' => 'v2/{+logName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'logName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/logs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->organizations_sinks = new Google_Service_Logging_Resource_OrganizationsSinks( $this, $this->serviceName, 'sinks', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'delete' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'GET', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PATCH', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PUT', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_exclusions = new Google_Service_Logging_Resource_ProjectsExclusions( $this, $this->serviceName, 'exclusions', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/exclusions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_logs = new Google_Service_Logging_Resource_ProjectsLogs( $this, $this->serviceName, 'logs', array( 'methods' => array( 'delete' => array( 'path' => 'v2/{+logName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'logName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/logs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->projects_metrics = new Google_Service_Logging_Resource_ProjectsMetrics( $this, $this->serviceName, 'metrics', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/metrics', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+metricName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'metricName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+metricName}', 'httpMethod' => 'GET', 'parameters' => array( 'metricName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/metrics', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'update' => array( 'path' => 'v2/{+metricName}', 'httpMethod' => 'PUT', 'parameters' => array( 'metricName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_sinks = new Google_Service_Logging_Resource_ProjectsSinks( $this, $this->serviceName, 'sinks', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'delete' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'GET', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PATCH', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PUT', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->sinks = new Google_Service_Logging_Resource_Sinks( $this, $this->serviceName, 'sinks', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), ), ),'delete' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'DELETE', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'GET', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/sinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', 'httpMethod' => 'PUT', 'parameters' => array( 'sinkName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'uniqueWriterIdentity' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }