Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class DeleteEventsResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteEventsResponse::class, 'Google_Service_Clouderrorreporting_DeleteEventsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ErrorContext extends \Google\Collection
{
protected $collection_key = 'sourceReferences';
protected $httpRequestType = HttpRequestContext::class;
protected $httpRequestDataType = '';
protected $reportLocationType = SourceLocation::class;
protected $reportLocationDataType = '';
protected $sourceReferencesType = SourceReference::class;
protected $sourceReferencesDataType = 'array';
/**
* @var string
*/
public $user;
/**
* @param HttpRequestContext
*/
public function setHttpRequest(HttpRequestContext $httpRequest)
{
$this->httpRequest = $httpRequest;
}
/**
* @return HttpRequestContext
*/
public function getHttpRequest()
{
return $this->httpRequest;
}
/**
* @param SourceLocation
*/
public function setReportLocation(SourceLocation $reportLocation)
{
$this->reportLocation = $reportLocation;
}
/**
* @return SourceLocation
*/
public function getReportLocation()
{
return $this->reportLocation;
}
/**
* @param SourceReference[]
*/
public function setSourceReferences($sourceReferences)
{
$this->sourceReferences = $sourceReferences;
}
/**
* @return SourceReference[]
*/
public function getSourceReferences()
{
return $this->sourceReferences;
}
/**
* @param string
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorContext::class, 'Google_Service_Clouderrorreporting_ErrorContext');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ErrorEvent extends \Google\Model
{
protected $contextType = ErrorContext::class;
protected $contextDataType = '';
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $message;
protected $serviceContextType = ServiceContext::class;
protected $serviceContextDataType = '';
/**
* @param ErrorContext
*/
public function setContext(ErrorContext $context)
{
$this->context = $context;
}
/**
* @return ErrorContext
*/
public function getContext()
{
return $this->context;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param ServiceContext
*/
public function setServiceContext(ServiceContext $serviceContext)
{
$this->serviceContext = $serviceContext;
}
/**
* @return ServiceContext
*/
public function getServiceContext()
{
return $this->serviceContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorEvent::class, 'Google_Service_Clouderrorreporting_ErrorEvent');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ErrorGroup extends \Google\Collection
{
protected $collection_key = 'trackingIssues';
/**
* @var string
*/
public $groupId;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $resolutionStatus;
protected $trackingIssuesType = TrackingIssue::class;
protected $trackingIssuesDataType = 'array';
/**
* @param string
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setResolutionStatus($resolutionStatus)
{
$this->resolutionStatus = $resolutionStatus;
}
/**
* @return string
*/
public function getResolutionStatus()
{
return $this->resolutionStatus;
}
/**
* @param TrackingIssue[]
*/
public function setTrackingIssues($trackingIssues)
{
$this->trackingIssues = $trackingIssues;
}
/**
* @return TrackingIssue[]
*/
public function getTrackingIssues()
{
return $this->trackingIssues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorGroup::class, 'Google_Service_Clouderrorreporting_ErrorGroup');

View File

@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ErrorGroupStats extends \Google\Collection
{
protected $collection_key = 'timedCounts';
protected $affectedServicesType = ServiceContext::class;
protected $affectedServicesDataType = 'array';
/**
* @var string
*/
public $affectedUsersCount;
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $firstSeenTime;
protected $groupType = ErrorGroup::class;
protected $groupDataType = '';
/**
* @var string
*/
public $lastSeenTime;
/**
* @var int
*/
public $numAffectedServices;
protected $representativeType = ErrorEvent::class;
protected $representativeDataType = '';
protected $timedCountsType = TimedCount::class;
protected $timedCountsDataType = 'array';
/**
* @param ServiceContext[]
*/
public function setAffectedServices($affectedServices)
{
$this->affectedServices = $affectedServices;
}
/**
* @return ServiceContext[]
*/
public function getAffectedServices()
{
return $this->affectedServices;
}
/**
* @param string
*/
public function setAffectedUsersCount($affectedUsersCount)
{
$this->affectedUsersCount = $affectedUsersCount;
}
/**
* @return string
*/
public function getAffectedUsersCount()
{
return $this->affectedUsersCount;
}
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setFirstSeenTime($firstSeenTime)
{
$this->firstSeenTime = $firstSeenTime;
}
/**
* @return string
*/
public function getFirstSeenTime()
{
return $this->firstSeenTime;
}
/**
* @param ErrorGroup
*/
public function setGroup(ErrorGroup $group)
{
$this->group = $group;
}
/**
* @return ErrorGroup
*/
public function getGroup()
{
return $this->group;
}
/**
* @param string
*/
public function setLastSeenTime($lastSeenTime)
{
$this->lastSeenTime = $lastSeenTime;
}
/**
* @return string
*/
public function getLastSeenTime()
{
return $this->lastSeenTime;
}
/**
* @param int
*/
public function setNumAffectedServices($numAffectedServices)
{
$this->numAffectedServices = $numAffectedServices;
}
/**
* @return int
*/
public function getNumAffectedServices()
{
return $this->numAffectedServices;
}
/**
* @param ErrorEvent
*/
public function setRepresentative(ErrorEvent $representative)
{
$this->representative = $representative;
}
/**
* @return ErrorEvent
*/
public function getRepresentative()
{
return $this->representative;
}
/**
* @param TimedCount[]
*/
public function setTimedCounts($timedCounts)
{
$this->timedCounts = $timedCounts;
}
/**
* @return TimedCount[]
*/
public function getTimedCounts()
{
return $this->timedCounts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorGroupStats::class, 'Google_Service_Clouderrorreporting_ErrorGroupStats');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class HttpRequestContext extends \Google\Model
{
/**
* @var string
*/
public $method;
/**
* @var string
*/
public $referrer;
/**
* @var string
*/
public $remoteIp;
/**
* @var int
*/
public $responseStatusCode;
/**
* @var string
*/
public $url;
/**
* @var string
*/
public $userAgent;
/**
* @param string
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string
*/
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
/**
* @return string
*/
public function getReferrer()
{
return $this->referrer;
}
/**
* @param string
*/
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
/**
* @return string
*/
public function getRemoteIp()
{
return $this->remoteIp;
}
/**
* @param int
*/
public function setResponseStatusCode($responseStatusCode)
{
$this->responseStatusCode = $responseStatusCode;
}
/**
* @return int
*/
public function getResponseStatusCode()
{
return $this->responseStatusCode;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* @param string
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRequestContext::class, 'Google_Service_Clouderrorreporting_HttpRequestContext');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ListEventsResponse extends \Google\Collection
{
protected $collection_key = 'errorEvents';
protected $errorEventsType = ErrorEvent::class;
protected $errorEventsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $timeRangeBegin;
/**
* @param ErrorEvent[]
*/
public function setErrorEvents($errorEvents)
{
$this->errorEvents = $errorEvents;
}
/**
* @return ErrorEvent[]
*/
public function getErrorEvents()
{
return $this->errorEvents;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setTimeRangeBegin($timeRangeBegin)
{
$this->timeRangeBegin = $timeRangeBegin;
}
/**
* @return string
*/
public function getTimeRangeBegin()
{
return $this->timeRangeBegin;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListEventsResponse::class, 'Google_Service_Clouderrorreporting_ListEventsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ListGroupStatsResponse extends \Google\Collection
{
protected $collection_key = 'errorGroupStats';
protected $errorGroupStatsType = ErrorGroupStats::class;
protected $errorGroupStatsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $timeRangeBegin;
/**
* @param ErrorGroupStats[]
*/
public function setErrorGroupStats($errorGroupStats)
{
$this->errorGroupStats = $errorGroupStats;
}
/**
* @return ErrorGroupStats[]
*/
public function getErrorGroupStats()
{
return $this->errorGroupStats;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setTimeRangeBegin($timeRangeBegin)
{
$this->timeRangeBegin = $timeRangeBegin;
}
/**
* @return string
*/
public function getTimeRangeBegin()
{
return $this->timeRangeBegin;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGroupStatsResponse::class, 'Google_Service_Clouderrorreporting_ListGroupStatsResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ReportErrorEventResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportErrorEventResponse::class, 'Google_Service_Clouderrorreporting_ReportErrorEventResponse');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ReportedErrorEvent extends \Google\Model
{
protected $contextType = ErrorContext::class;
protected $contextDataType = '';
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $message;
protected $serviceContextType = ServiceContext::class;
protected $serviceContextDataType = '';
/**
* @param ErrorContext
*/
public function setContext(ErrorContext $context)
{
$this->context = $context;
}
/**
* @return ErrorContext
*/
public function getContext()
{
return $this->context;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param ServiceContext
*/
public function setServiceContext(ServiceContext $serviceContext)
{
$this->serviceContext = $serviceContext;
}
/**
* @return ServiceContext
*/
public function getServiceContext()
{
return $this->serviceContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportedErrorEvent::class, 'Google_Service_Clouderrorreporting_ReportedErrorEvent');

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\DeleteEventsResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $projects = $clouderrorreportingService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Deletes all error events of a given project. (projects.deleteEvents)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectID}/locations/{location}`, where `{projectID}` is the
* [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a
* Cloud region. Examples: `projects/my-project-123`, `projects/my-
* project-123/locations/global`. For a list of supported locations, see
* [Supported Regions](https://cloud.google.com/logging/docs/region-support).
* `global` is the default when unspecified.
* @param array $optParams Optional parameters.
* @return DeleteEventsResponse
* @throws \Google\Service\Exception
*/
public function deleteEvents($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('deleteEvents', [$params], DeleteEventsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Clouderrorreporting_Resource_Projects');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ListEventsResponse;
use Google\Service\Clouderrorreporting\ReportErrorEventResponse;
use Google\Service\Clouderrorreporting\ReportedErrorEvent;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $events = $clouderrorreportingService->projects_events;
* </code>
*/
class ProjectsEvents extends \Google\Service\Resource
{
/**
* Lists the specified events. (events.listProjectsEvents)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectID}/locations/{location}`, where `{projectID}` is the
* [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a
* Cloud region. Examples: `projects/my-project-123`, `projects/my-
* project-123/locations/global`. For a list of supported locations, see
* [Supported Regions](https://cloud.google.com/logging/docs/region-support).
* `global` is the default when unspecified.
* @param array $optParams Optional parameters.
*
* @opt_param string groupId Required. The group for which events shall be
* returned. The `group_id` is a unique identifier for a particular error group.
* The identifier is derived from key parts of the error-log content and is
* treated as Service Data. For information about how Service Data is handled,
* see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-
* privacy-notice).
* @opt_param int pageSize Optional. The maximum number of results to return per
* response.
* @opt_param string pageToken Optional. A `next_page_token` provided by a
* previous response.
* @opt_param string serviceFilter.resourceType Optional. The exact value to
* match against [`ServiceContext.resource_type`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
* @opt_param string serviceFilter.service Optional. The exact value to match
* against [`ServiceContext.service`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
* @opt_param string serviceFilter.version Optional. The exact value to match
* against [`ServiceContext.version`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
* @opt_param string timeRange.period Restricts the query to the specified time
* range.
* @return ListEventsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsEvents($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEventsResponse::class);
}
/**
* Report an individual error event and record the event to a log. This endpoint
* accepts **either** an OAuth token, **or** an [API
* key](https://support.google.com/cloud/answer/6158862) for authentication. To
* use an API key, append it to the URL as the value of a `key` parameter. For
* example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectNam
* e}/events:report?key=123ABC456` **Note:** [Error Reporting]
* (https://cloud.google.com/error-reporting) is a service built on Cloud
* Logging and can analyze log entries when all of the following are true: *
* Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The
* log bucket satisfies one of the following: * The log bucket is stored in the
* same project where the logs originated. * The logs were routed to a project,
* and then that project stored those logs in a log bucket that it owns.
* (events.report)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectId}`, where `{projectId}` is
* the [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840). Example: //
* `projects/my-project-123`.
* @param ReportedErrorEvent $postBody
* @param array $optParams Optional parameters.
* @return ReportErrorEventResponse
* @throws \Google\Service\Exception
*/
public function report($projectName, ReportedErrorEvent $postBody, $optParams = [])
{
$params = ['projectName' => $projectName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('report', [$params], ReportErrorEventResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsEvents::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsEvents');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ListGroupStatsResponse;
/**
* The "groupStats" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $groupStats = $clouderrorreportingService->projects_groupStats;
* </code>
*/
class ProjectsGroupStats extends \Google\Service\Resource
{
/**
* Lists the specified groups. (groupStats.listProjectsGroupStats)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectNumber}`, where `{projectID}` and `{projectNumber}` can be
* found in the [Google Cloud
* console](https://support.google.com/cloud/answer/6158840). It may also
* include a location, such as `projects/{projectID}/locations/{location}` where
* `{location}` is a cloud region. Examples: `projects/my-project-123`,
* `projects/5551234`, `projects/my-project-123/locations/us-central1`,
* `projects/5551234/locations/us-central1`. For a list of supported locations,
* see [Supported Regions](https://cloud.google.com/logging/docs/region-
* support). `global` is the default when unspecified. Use `-` as a wildcard to
* request group stats from all regions.
* @param array $optParams Optional parameters.
*
* @opt_param string alignment Optional. The alignment of the timed counts to be
* returned. Default is `ALIGNMENT_EQUAL_AT_END`.
* @opt_param string alignmentTime Optional. Time where the timed counts shall
* be aligned if rounded alignment is chosen. Default is 00:00 UTC.
* @opt_param string groupId Optional. List all ErrorGroupStats with these IDs.
* The `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice] (https://cloud.google.com/terms/cloud-privacy-
* notice).
* @opt_param string order Optional. The sort order in which the results are
* returned. Default is `COUNT_DESC`.
* @opt_param int pageSize Optional. The maximum number of results to return per
* response. Default is 20.
* @opt_param string pageToken Optional. A next_page_token provided by a
* previous response. To view additional results, pass this token along with the
* identical query parameters as the first request.
* @opt_param string serviceFilter.resourceType Optional. The exact value to
* match against [`ServiceContext.resource_type`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
* @opt_param string serviceFilter.service Optional. The exact value to match
* against [`ServiceContext.service`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
* @opt_param string serviceFilter.version Optional. The exact value to match
* against [`ServiceContext.version`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
* @opt_param string timeRange.period Restricts the query to the specified time
* range.
* @opt_param string timedCountDuration Optional. The preferred duration for a
* single returned TimedCount. If not set, no timed counts are returned.
* @return ListGroupStatsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsGroupStats($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsGroupStats::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ErrorGroup;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $groups = $clouderrorreportingService->projects_groups;
* </code>
*/
class ProjectsGroups extends \Google\Service\Resource
{
/**
* Get the specified group. (groups.get)
*
* @param string $groupName Required. The group resource name. Written as either
* `projects/{projectID}/groups/{group_id}` or
* `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
* groupStats.list to return a list of groups belonging to this project.
* Examples: `projects/my-project-123/groups/my-group`, `projects/my-
* project-123/locations/global/groups/my-group` In the group resource name, the
* `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
* notice). For a list of supported locations, see [Supported
* Regions](https://cloud.google.com/logging/docs/region-support). `global` is
* the default when unspecified.
* @param array $optParams Optional parameters.
* @return ErrorGroup
* @throws \Google\Service\Exception
*/
public function get($groupName, $optParams = [])
{
$params = ['groupName' => $groupName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ErrorGroup::class);
}
/**
* Replace the data for the specified group. Fails if the group does not exist.
* (groups.update)
*
* @param string $name The group resource name. Written as
* `projects/{projectID}/groups/{group_id}` or
* `projects/{projectID}/locations/{location}/groups/{group_id}` Examples:
* `projects/my-project-123/groups/my-group`, `projects/my-
* project-123/locations/us-central1/groups/my-group` In the group resource
* name, the `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
* notice). For a list of supported locations, see [Supported
* Regions](https://cloud.google.com/logging/docs/region-support). `global` is
* the default when unspecified.
* @param ErrorGroup $postBody
* @param array $optParams Optional parameters.
* @return ErrorGroup
* @throws \Google\Service\Exception
*/
public function update($name, ErrorGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ErrorGroup::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsGroups::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsGroups');

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\DeleteEventsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $locations = $clouderrorreportingService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Deletes all error events of a given project. (locations.deleteEvents)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectID}/locations/{location}`, where `{projectID}` is the
* [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a
* Cloud region. Examples: `projects/my-project-123`, `projects/my-
* project-123/locations/global`. For a list of supported locations, see
* [Supported Regions](https://cloud.google.com/logging/docs/region-support).
* `global` is the default when unspecified.
* @param array $optParams Optional parameters.
* @return DeleteEventsResponse
* @throws \Google\Service\Exception
*/
public function deleteEvents($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('deleteEvents', [$params], DeleteEventsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocations');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ListEventsResponse;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $events = $clouderrorreportingService->projects_locations_events;
* </code>
*/
class ProjectsLocationsEvents extends \Google\Service\Resource
{
/**
* Lists the specified events. (events.listProjectsLocationsEvents)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectID}/locations/{location}`, where `{projectID}` is the
* [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a
* Cloud region. Examples: `projects/my-project-123`, `projects/my-
* project-123/locations/global`. For a list of supported locations, see
* [Supported Regions](https://cloud.google.com/logging/docs/region-support).
* `global` is the default when unspecified.
* @param array $optParams Optional parameters.
*
* @opt_param string groupId Required. The group for which events shall be
* returned. The `group_id` is a unique identifier for a particular error group.
* The identifier is derived from key parts of the error-log content and is
* treated as Service Data. For information about how Service Data is handled,
* see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-
* privacy-notice).
* @opt_param int pageSize Optional. The maximum number of results to return per
* response.
* @opt_param string pageToken Optional. A `next_page_token` provided by a
* previous response.
* @opt_param string serviceFilter.resourceType Optional. The exact value to
* match against [`ServiceContext.resource_type`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
* @opt_param string serviceFilter.service Optional. The exact value to match
* against [`ServiceContext.service`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
* @opt_param string serviceFilter.version Optional. The exact value to match
* against [`ServiceContext.version`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
* @opt_param string timeRange.period Restricts the query to the specified time
* range.
* @return ListEventsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEvents($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEventsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEvents::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocationsEvents');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ListGroupStatsResponse;
/**
* The "groupStats" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $groupStats = $clouderrorreportingService->projects_locations_groupStats;
* </code>
*/
class ProjectsLocationsGroupStats extends \Google\Service\Resource
{
/**
* Lists the specified groups. (groupStats.listProjectsLocationsGroupStats)
*
* @param string $projectName Required. The resource name of the Google Cloud
* Platform project. Written as `projects/{projectID}` or
* `projects/{projectNumber}`, where `{projectID}` and `{projectNumber}` can be
* found in the [Google Cloud
* console](https://support.google.com/cloud/answer/6158840). It may also
* include a location, such as `projects/{projectID}/locations/{location}` where
* `{location}` is a cloud region. Examples: `projects/my-project-123`,
* `projects/5551234`, `projects/my-project-123/locations/us-central1`,
* `projects/5551234/locations/us-central1`. For a list of supported locations,
* see [Supported Regions](https://cloud.google.com/logging/docs/region-
* support). `global` is the default when unspecified. Use `-` as a wildcard to
* request group stats from all regions.
* @param array $optParams Optional parameters.
*
* @opt_param string alignment Optional. The alignment of the timed counts to be
* returned. Default is `ALIGNMENT_EQUAL_AT_END`.
* @opt_param string alignmentTime Optional. Time where the timed counts shall
* be aligned if rounded alignment is chosen. Default is 00:00 UTC.
* @opt_param string groupId Optional. List all ErrorGroupStats with these IDs.
* The `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice] (https://cloud.google.com/terms/cloud-privacy-
* notice).
* @opt_param string order Optional. The sort order in which the results are
* returned. Default is `COUNT_DESC`.
* @opt_param int pageSize Optional. The maximum number of results to return per
* response. Default is 20.
* @opt_param string pageToken Optional. A next_page_token provided by a
* previous response. To view additional results, pass this token along with the
* identical query parameters as the first request.
* @opt_param string serviceFilter.resourceType Optional. The exact value to
* match against [`ServiceContext.resource_type`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
* @opt_param string serviceFilter.service Optional. The exact value to match
* against [`ServiceContext.service`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
* @opt_param string serviceFilter.version Optional. The exact value to match
* against [`ServiceContext.version`](/error-
* reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
* @opt_param string timeRange.period Restricts the query to the specified time
* range.
* @opt_param string timedCountDuration Optional. The preferred duration for a
* single returned TimedCount. If not set, no timed counts are returned.
* @return ListGroupStatsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGroupStats($projectName, $optParams = [])
{
$params = ['projectName' => $projectName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGroupStats::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocationsGroupStats');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting\Resource;
use Google\Service\Clouderrorreporting\ErrorGroup;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $clouderrorreportingService = new Google\Service\Clouderrorreporting(...);
* $groups = $clouderrorreportingService->projects_locations_groups;
* </code>
*/
class ProjectsLocationsGroups extends \Google\Service\Resource
{
/**
* Get the specified group. (groups.get)
*
* @param string $groupName Required. The group resource name. Written as either
* `projects/{projectID}/groups/{group_id}` or
* `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
* groupStats.list to return a list of groups belonging to this project.
* Examples: `projects/my-project-123/groups/my-group`, `projects/my-
* project-123/locations/global/groups/my-group` In the group resource name, the
* `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
* notice). For a list of supported locations, see [Supported
* Regions](https://cloud.google.com/logging/docs/region-support). `global` is
* the default when unspecified.
* @param array $optParams Optional parameters.
* @return ErrorGroup
* @throws \Google\Service\Exception
*/
public function get($groupName, $optParams = [])
{
$params = ['groupName' => $groupName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ErrorGroup::class);
}
/**
* Replace the data for the specified group. Fails if the group does not exist.
* (groups.update)
*
* @param string $name The group resource name. Written as
* `projects/{projectID}/groups/{group_id}` or
* `projects/{projectID}/locations/{location}/groups/{group_id}` Examples:
* `projects/my-project-123/groups/my-group`, `projects/my-
* project-123/locations/us-central1/groups/my-group` In the group resource
* name, the `group_id` is a unique identifier for a particular error group. The
* identifier is derived from key parts of the error-log content and is treated
* as Service Data. For information about how Service Data is handled, see
* [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
* notice). For a list of supported locations, see [Supported
* Regions](https://cloud.google.com/logging/docs/region-support). `global` is
* the default when unspecified.
* @param ErrorGroup $postBody
* @param array $optParams Optional parameters.
* @return ErrorGroup
* @throws \Google\Service\Exception
*/
public function update($name, ErrorGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ErrorGroup::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGroups::class, 'Google_Service_Clouderrorreporting_Resource_ProjectsLocationsGroups');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class ServiceContext extends \Google\Model
{
/**
* @var string
*/
public $resourceType;
/**
* @var string
*/
public $service;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceContext::class, 'Google_Service_Clouderrorreporting_ServiceContext');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class SourceLocation extends \Google\Model
{
/**
* @var string
*/
public $filePath;
/**
* @var string
*/
public $functionName;
/**
* @var int
*/
public $lineNumber;
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* @param string
*/
public function setFunctionName($functionName)
{
$this->functionName = $functionName;
}
/**
* @return string
*/
public function getFunctionName()
{
return $this->functionName;
}
/**
* @param int
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SourceLocation::class, 'Google_Service_Clouderrorreporting_SourceLocation');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class SourceReference extends \Google\Model
{
/**
* @var string
*/
public $repository;
/**
* @var string
*/
public $revisionId;
/**
* @param string
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SourceReference::class, 'Google_Service_Clouderrorreporting_SourceReference');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class TimedCount extends \Google\Model
{
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimedCount::class, 'Google_Service_Clouderrorreporting_TimedCount');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\Clouderrorreporting;
class TrackingIssue extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrackingIssue::class, 'Google_Service_Clouderrorreporting_TrackingIssue');