gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -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');
@@ -0,0 +1,117 @@
<?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';
/**
* The user who caused or was affected by the crash. This can be a user ID, an
* email address, or an arbitrary token that uniquely identifies the user.
* When sending an error report, leave this field empty if the user was not
* logged in. In this case the Error Reporting system will use other data,
* such as remote IP address, to distinguish affected users. See
* `affected_users_count` in `ErrorGroupStats`.
*
* @var string
*/
public $user;
/**
* The HTTP request which was processed when the error was triggered.
*
* @param HttpRequestContext $httpRequest
*/
public function setHttpRequest(HttpRequestContext $httpRequest)
{
$this->httpRequest = $httpRequest;
}
/**
* @return HttpRequestContext
*/
public function getHttpRequest()
{
return $this->httpRequest;
}
/**
* The location in the source code where the decision was made to report the
* error, usually the place where it was logged. For a logged exception this
* would be the source line where the exception is logged, usually close to
* the place where it was caught.
*
* @param SourceLocation $reportLocation
*/
public function setReportLocation(SourceLocation $reportLocation)
{
$this->reportLocation = $reportLocation;
}
/**
* @return SourceLocation
*/
public function getReportLocation()
{
return $this->reportLocation;
}
/**
* Source code that was used to build the executable which has caused the
* given error message.
*
* @param SourceReference[] $sourceReferences
*/
public function setSourceReferences($sourceReferences)
{
$this->sourceReferences = $sourceReferences;
}
/**
* @return SourceReference[]
*/
public function getSourceReferences()
{
return $this->sourceReferences;
}
/**
* The user who caused or was affected by the crash. This can be a user ID, an
* email address, or an arbitrary token that uniquely identifies the user.
* When sending an error report, leave this field empty if the user was not
* logged in. In this case the Error Reporting system will use other data,
* such as remote IP address, to distinguish affected users. See
* `affected_users_count` in `ErrorGroupStats`.
*
* @param string $user
*/
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');
@@ -0,0 +1,110 @@
<?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 = '';
/**
* Time when the event occurred as provided in the error report. If the report
* did not contain a timestamp, the time the error was received by the Error
* Reporting system is used.
*
* @var string
*/
public $eventTime;
/**
* The stack trace that was reported or logged by the service.
*
* @var string
*/
public $message;
protected $serviceContextType = ServiceContext::class;
protected $serviceContextDataType = '';
/**
* Data about the context in which the error occurred.
*
* @param ErrorContext $context
*/
public function setContext(ErrorContext $context)
{
$this->context = $context;
}
/**
* @return ErrorContext
*/
public function getContext()
{
return $this->context;
}
/**
* Time when the event occurred as provided in the error report. If the report
* did not contain a timestamp, the time the error was received by the Error
* Reporting system is used.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* The stack trace that was reported or logged by the service.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* The `ServiceContext` for which this error was reported.
*
* @param ServiceContext $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');
@@ -0,0 +1,173 @@
<?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
{
/**
* Status is unknown. When left unspecified in requests, it is treated like
* OPEN.
*/
public const RESOLUTION_STATUS_RESOLUTION_STATUS_UNSPECIFIED = 'RESOLUTION_STATUS_UNSPECIFIED';
/**
* The error group is not being addressed. This is the default for new groups.
* It is also used for errors re-occurring after marked RESOLVED.
*/
public const RESOLUTION_STATUS_OPEN = 'OPEN';
/**
* Error Group manually acknowledged, it can have an issue link attached.
*/
public const RESOLUTION_STATUS_ACKNOWLEDGED = 'ACKNOWLEDGED';
/**
* Error Group manually resolved, more events for this group are not expected
* to occur.
*/
public const RESOLUTION_STATUS_RESOLVED = 'RESOLVED';
/**
* The error group is muted and excluded by default on group stats requests.
*/
public const RESOLUTION_STATUS_MUTED = 'MUTED';
protected $collection_key = 'trackingIssues';
/**
* An opaque identifier of the group. This field is assigned by the Error
* Reporting system and always populated. 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).
*
* @var string
*/
public $groupId;
/**
* 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.
*
* @var string
*/
public $name;
/**
* Error group's resolution status. An unspecified resolution status will be
* interpreted as OPEN
*
* @var string
*/
public $resolutionStatus;
protected $trackingIssuesType = TrackingIssue::class;
protected $trackingIssuesDataType = 'array';
/**
* An opaque identifier of the group. This field is assigned by the Error
* Reporting system and always populated. 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).
*
* @param string $groupId
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* 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 string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Error group's resolution status. An unspecified resolution status will be
* interpreted as OPEN
*
* Accepted values: RESOLUTION_STATUS_UNSPECIFIED, OPEN, ACKNOWLEDGED,
* RESOLVED, MUTED
*
* @param self::RESOLUTION_STATUS_* $resolutionStatus
*/
public function setResolutionStatus($resolutionStatus)
{
$this->resolutionStatus = $resolutionStatus;
}
/**
* @return self::RESOLUTION_STATUS_*
*/
public function getResolutionStatus()
{
return $this->resolutionStatus;
}
/**
* Associated tracking issues.
*
* @param TrackingIssue[] $trackingIssues
*/
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');
@@ -0,0 +1,245 @@
<?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';
/**
* Approximate number of affected users in the given group that match the
* filter criteria. Users are distinguished by data in the ErrorContext of the
* individual error events, such as their login name or their remote IP
* address in case of HTTP requests. The number of affected users can be zero
* even if the number of errors is non-zero if no data was provided from which
* the affected user could be deduced. Users are counted based on data in the
* request context that was provided in the error report. If more users are
* implicitly affected, such as due to a crash of the whole service, this is
* not reflected here.
*
* @var string
*/
public $affectedUsersCount;
/**
* Approximate total number of events in the given group that match the filter
* criteria.
*
* @var string
*/
public $count;
/**
* Approximate first occurrence that was ever seen for this group and which
* matches the given filter criteria, ignoring the time_range that was
* specified in the request.
*
* @var string
*/
public $firstSeenTime;
protected $groupType = ErrorGroup::class;
protected $groupDataType = '';
/**
* Approximate last occurrence that was ever seen for this group and which
* matches the given filter criteria, ignoring the time_range that was
* specified in the request.
*
* @var string
*/
public $lastSeenTime;
/**
* The total number of services with a non-zero error count for the given
* filter criteria.
*
* @var int
*/
public $numAffectedServices;
protected $representativeType = ErrorEvent::class;
protected $representativeDataType = '';
protected $timedCountsType = TimedCount::class;
protected $timedCountsDataType = 'array';
/**
* Service contexts with a non-zero error count for the given filter criteria.
* This list can be truncated if multiple services are affected. Refer to
* `num_affected_services` for the total count.
*
* @param ServiceContext[] $affectedServices
*/
public function setAffectedServices($affectedServices)
{
$this->affectedServices = $affectedServices;
}
/**
* @return ServiceContext[]
*/
public function getAffectedServices()
{
return $this->affectedServices;
}
/**
* Approximate number of affected users in the given group that match the
* filter criteria. Users are distinguished by data in the ErrorContext of the
* individual error events, such as their login name or their remote IP
* address in case of HTTP requests. The number of affected users can be zero
* even if the number of errors is non-zero if no data was provided from which
* the affected user could be deduced. Users are counted based on data in the
* request context that was provided in the error report. If more users are
* implicitly affected, such as due to a crash of the whole service, this is
* not reflected here.
*
* @param string $affectedUsersCount
*/
public function setAffectedUsersCount($affectedUsersCount)
{
$this->affectedUsersCount = $affectedUsersCount;
}
/**
* @return string
*/
public function getAffectedUsersCount()
{
return $this->affectedUsersCount;
}
/**
* Approximate total number of events in the given group that match the filter
* criteria.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Approximate first occurrence that was ever seen for this group and which
* matches the given filter criteria, ignoring the time_range that was
* specified in the request.
*
* @param string $firstSeenTime
*/
public function setFirstSeenTime($firstSeenTime)
{
$this->firstSeenTime = $firstSeenTime;
}
/**
* @return string
*/
public function getFirstSeenTime()
{
return $this->firstSeenTime;
}
/**
* Group data that is independent of the filter criteria.
*
* @param ErrorGroup $group
*/
public function setGroup(ErrorGroup $group)
{
$this->group = $group;
}
/**
* @return ErrorGroup
*/
public function getGroup()
{
return $this->group;
}
/**
* Approximate last occurrence that was ever seen for this group and which
* matches the given filter criteria, ignoring the time_range that was
* specified in the request.
*
* @param string $lastSeenTime
*/
public function setLastSeenTime($lastSeenTime)
{
$this->lastSeenTime = $lastSeenTime;
}
/**
* @return string
*/
public function getLastSeenTime()
{
return $this->lastSeenTime;
}
/**
* The total number of services with a non-zero error count for the given
* filter criteria.
*
* @param int $numAffectedServices
*/
public function setNumAffectedServices($numAffectedServices)
{
$this->numAffectedServices = $numAffectedServices;
}
/**
* @return int
*/
public function getNumAffectedServices()
{
return $this->numAffectedServices;
}
/**
* An arbitrary event that is chosen as representative for the whole group.
* The representative event is intended to be used as a quick preview for the
* whole group. Events in the group are usually sufficiently similar to each
* other such that showing an arbitrary representative provides insight into
* the characteristics of the group as a whole.
*
* @param ErrorEvent $representative
*/
public function setRepresentative(ErrorEvent $representative)
{
$this->representative = $representative;
}
/**
* @return ErrorEvent
*/
public function getRepresentative()
{
return $this->representative;
}
/**
* Approximate number of occurrences over time. Timed counts returned by
* ListGroups are guaranteed to be: - Inside the requested time interval -
* Non-overlapping, and - Ordered by ascending time.
*
* @param TimedCount[] $timedCounts
*/
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');
@@ -0,0 +1,162 @@
<?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
{
/**
* The type of HTTP request, such as `GET`, `POST`, etc.
*
* @var string
*/
public $method;
/**
* The referrer information that is provided with the request.
*
* @var string
*/
public $referrer;
/**
* The IP address from which the request originated. This can be IPv4, IPv6,
* or a token which is derived from the IP address, depending on the data that
* has been provided in the error report.
*
* @var string
*/
public $remoteIp;
/**
* The HTTP response status code for the request.
*
* @var int
*/
public $responseStatusCode;
/**
* The URL of the request.
*
* @var string
*/
public $url;
/**
* The user agent information that is provided with the request.
*
* @var string
*/
public $userAgent;
/**
* The type of HTTP request, such as `GET`, `POST`, etc.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* The referrer information that is provided with the request.
*
* @param string $referrer
*/
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
/**
* @return string
*/
public function getReferrer()
{
return $this->referrer;
}
/**
* The IP address from which the request originated. This can be IPv4, IPv6,
* or a token which is derived from the IP address, depending on the data that
* has been provided in the error report.
*
* @param string $remoteIp
*/
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
/**
* @return string
*/
public function getRemoteIp()
{
return $this->remoteIp;
}
/**
* The HTTP response status code for the request.
*
* @param int $responseStatusCode
*/
public function setResponseStatusCode($responseStatusCode)
{
$this->responseStatusCode = $responseStatusCode;
}
/**
* @return int
*/
public function getResponseStatusCode()
{
return $this->responseStatusCode;
}
/**
* The URL of the request.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* The user agent information that is provided with the request.
*
* @param string $userAgent
*/
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');
@@ -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 ListEventsResponse extends \Google\Collection
{
protected $collection_key = 'errorEvents';
protected $errorEventsType = ErrorEvent::class;
protected $errorEventsDataType = 'array';
/**
* If non-empty, more results are available. Pass this token, along with the
* same query parameters as the first request, to view the next page of
* results.
*
* @var string
*/
public $nextPageToken;
/**
* The timestamp specifies the start time to which the request was restricted.
*
* @var string
*/
public $timeRangeBegin;
/**
* The error events which match the given request.
*
* @param ErrorEvent[] $errorEvents
*/
public function setErrorEvents($errorEvents)
{
$this->errorEvents = $errorEvents;
}
/**
* @return ErrorEvent[]
*/
public function getErrorEvents()
{
return $this->errorEvents;
}
/**
* If non-empty, more results are available. Pass this token, along with the
* same query parameters as the first request, to view the next page of
* results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The timestamp specifies the start time to which the request was restricted.
*
* @param string $timeRangeBegin
*/
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');
@@ -0,0 +1,99 @@
<?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';
/**
* If non-empty, more results are available. Pass this token, along with the
* same query parameters as the first request, to view the next page of
* results.
*
* @var string
*/
public $nextPageToken;
/**
* The timestamp specifies the start time to which the request was restricted.
* The start time is set based on the requested time range. It may be adjusted
* to a later time if a project has exceeded the storage quota and older data
* has been deleted.
*
* @var string
*/
public $timeRangeBegin;
/**
* The error group stats which match the given request.
*
* @param ErrorGroupStats[] $errorGroupStats
*/
public function setErrorGroupStats($errorGroupStats)
{
$this->errorGroupStats = $errorGroupStats;
}
/**
* @return ErrorGroupStats[]
*/
public function getErrorGroupStats()
{
return $this->errorGroupStats;
}
/**
* If non-empty, more results are available. Pass this token, along with the
* same query parameters as the first request, to view the next page of
* results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The timestamp specifies the start time to which the request was restricted.
* The start time is set based on the requested time range. It may be adjusted
* to a later time if a project has exceeded the storage quota and older data
* has been deleted.
*
* @param string $timeRangeBegin
*/
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');
@@ -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');
@@ -0,0 +1,156 @@
<?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 = '';
/**
* Optional. Time when the event occurred. If not provided, the time when the
* event was received by the Error Reporting system is used. If provided, the
* time must not exceed the [logs retention
* period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
* the past, or be more than 24 hours in the future. If an invalid time is
* provided, then an error is returned.
*
* @var string
*/
public $eventTime;
/**
* Required. The error message. If no `context.reportLocation` is provided,
* the message must contain a header (typically consisting of the exception
* type name and an error message) and an exception stack trace in one of the
* supported programming languages and formats. Supported languages are Java,
* Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats
* are: * **Java**: Must be the return value of [`Throwable.printStackTrace()`
* ](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printS
* tackTrace%28%29). * **Python**: Must be the return value of [`traceback.for
* mat_exc()`](https://docs.python.org/2/library/traceback.html#traceback.form
* at_exc). * **JavaScript**: Must be the value of
* [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
* by V8. * **Ruby**: Must contain frames returned by
* [`Exception.backtrace`](https://ruby-
* doc.org/core-2.2.0/Exception.html#method-i-backtrace). * **C#**: Must be
* the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-
* us/library/system.exception.tostring.aspx). * **PHP**: Must be prefixed
* with `"PHP (Notice|Parse error|Fatal error|Warning): "` and contain the
* result of
* [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). *
* **Go**: Must be the return value of
* [`debug.Stack()`](https://pkg.go.dev/runtime/debug#Stack).
*
* @var string
*/
public $message;
protected $serviceContextType = ServiceContext::class;
protected $serviceContextDataType = '';
/**
* Optional. A description of the context in which the error occurred.
*
* @param ErrorContext $context
*/
public function setContext(ErrorContext $context)
{
$this->context = $context;
}
/**
* @return ErrorContext
*/
public function getContext()
{
return $this->context;
}
/**
* Optional. Time when the event occurred. If not provided, the time when the
* event was received by the Error Reporting system is used. If provided, the
* time must not exceed the [logs retention
* period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
* the past, or be more than 24 hours in the future. If an invalid time is
* provided, then an error is returned.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* Required. The error message. If no `context.reportLocation` is provided,
* the message must contain a header (typically consisting of the exception
* type name and an error message) and an exception stack trace in one of the
* supported programming languages and formats. Supported languages are Java,
* Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats
* are: * **Java**: Must be the return value of [`Throwable.printStackTrace()`
* ](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printS
* tackTrace%28%29). * **Python**: Must be the return value of [`traceback.for
* mat_exc()`](https://docs.python.org/2/library/traceback.html#traceback.form
* at_exc). * **JavaScript**: Must be the value of
* [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
* by V8. * **Ruby**: Must contain frames returned by
* [`Exception.backtrace`](https://ruby-
* doc.org/core-2.2.0/Exception.html#method-i-backtrace). * **C#**: Must be
* the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-
* us/library/system.exception.tostring.aspx). * **PHP**: Must be prefixed
* with `"PHP (Notice|Parse error|Fatal error|Warning): "` and contain the
* result of
* [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). *
* **Go**: Must be the return value of
* [`debug.Stack()`](https://pkg.go.dev/runtime/debug#Stack).
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Required. The service context in which this error has occurred.
*
* @param ServiceContext $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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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');
@@ -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;
class ServiceContext extends \Google\Model
{
/**
* Type of the MonitoredResource. List of possible values:
* https://cloud.google.com/monitoring/api/resources Value is set
* automatically for incoming errors and must not be set when reporting
* errors.
*
* @var string
*/
public $resourceType;
/**
* An identifier of the service, such as the name of the executable, job, or
* Google App Engine service name. This field is expected to have a low number
* of values that are relatively stable over time, as opposed to `version`,
* which can be changed whenever new code is deployed. Contains the service
* name for error reports extracted from Google App Engine logs or `default`
* if the App Engine default service is used.
*
* @var string
*/
public $service;
/**
* Represents the source code version that the developer provided, which could
* represent a version label or a Git SHA-1 hash, for example. For App Engine
* standard environment, the version is set to the version of the app.
*
* @var string
*/
public $version;
/**
* Type of the MonitoredResource. List of possible values:
* https://cloud.google.com/monitoring/api/resources Value is set
* automatically for incoming errors and must not be set when reporting
* errors.
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* An identifier of the service, such as the name of the executable, job, or
* Google App Engine service name. This field is expected to have a low number
* of values that are relatively stable over time, as opposed to `version`,
* which can be changed whenever new code is deployed. Contains the service
* name for error reports extracted from Google App Engine logs or `default`
* if the App Engine default service is used.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Represents the source code version that the developer provided, which could
* represent a version label or a Git SHA-1 hash, for example. For App Engine
* standard environment, the version is set to the version of the app.
*
* @param string $version
*/
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');
@@ -0,0 +1,98 @@
<?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
{
/**
* The source code filename, which can include a truncated relative path, or a
* full path from a production machine.
*
* @var string
*/
public $filePath;
/**
* Human-readable name of a function or method. The value can include optional
* context like the class or package name. For example,
* `my.package.MyClass.method` in case of Java.
*
* @var string
*/
public $functionName;
/**
* 1-based. 0 indicates that the line number is unknown.
*
* @var int
*/
public $lineNumber;
/**
* The source code filename, which can include a truncated relative path, or a
* full path from a production machine.
*
* @param string $filePath
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* Human-readable name of a function or method. The value can include optional
* context like the class or package name. For example,
* `my.package.MyClass.method` in case of Java.
*
* @param string $functionName
*/
public function setFunctionName($functionName)
{
$this->functionName = $functionName;
}
/**
* @return string
*/
public function getFunctionName()
{
return $this->functionName;
}
/**
* 1-based. 0 indicates that the line number is unknown.
*
* @param int $lineNumber
*/
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');
@@ -0,0 +1,74 @@
<?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
{
/**
* Optional. A URI string identifying the repository. Example:
* "https://github.com/GoogleCloudPlatform/kubernetes.git"
*
* @var string
*/
public $repository;
/**
* The canonical and persistent identifier of the deployed revision. Example
* (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
*
* @var string
*/
public $revisionId;
/**
* Optional. A URI string identifying the repository. Example:
* "https://github.com/GoogleCloudPlatform/kubernetes.git"
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
/**
* The canonical and persistent identifier of the deployed revision. Example
* (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
*
* @param string $revisionId
*/
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');
@@ -0,0 +1,92 @@
<?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
{
/**
* Approximate number of occurrences in the given time period.
*
* @var string
*/
public $count;
/**
* End of the time period to which `count` refers (excluded).
*
* @var string
*/
public $endTime;
/**
* Start of the time period to which `count` refers (included).
*
* @var string
*/
public $startTime;
/**
* Approximate number of occurrences in the given time period.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* End of the time period to which `count` refers (excluded).
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Start of the time period to which `count` refers (included).
*
* @param string $startTime
*/
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');
@@ -0,0 +1,50 @@
<?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
{
/**
* A URL pointing to a related entry in an issue tracking system. Example:
* `https://github.com/user/project/issues/4`
*
* @var string
*/
public $url;
/**
* A URL pointing to a related entry in an issue tracking system. Example:
* `https://github.com/user/project/issues/4`
*
* @param string $url
*/
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');