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,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\Reports;
class Activities extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Activity::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Activity[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Activity[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Activities::class, 'Google_Service_Reports_Activities');

View File

@@ -0,0 +1,147 @@
<?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\Reports;
class Activity extends \Google\Collection
{
protected $collection_key = 'events';
protected $actorType = ActivityActor::class;
protected $actorDataType = '';
/**
* @var string
*/
public $etag;
protected $eventsType = ActivityEvents::class;
protected $eventsDataType = 'array';
protected $idType = ActivityId::class;
protected $idDataType = '';
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $ownerDomain;
/**
* @param ActivityActor
*/
public function setActor(ActivityActor $actor)
{
$this->actor = $actor;
}
/**
* @return ActivityActor
*/
public function getActor()
{
return $this->actor;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param ActivityEvents[]
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return ActivityEvents[]
*/
public function getEvents()
{
return $this->events;
}
/**
* @param ActivityId
*/
public function setId(ActivityId $id)
{
$this->id = $id;
}
/**
* @return ActivityId
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setOwnerDomain($ownerDomain)
{
$this->ownerDomain = $ownerDomain;
}
/**
* @return string
*/
public function getOwnerDomain()
{
return $this->ownerDomain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Activity::class, 'Google_Service_Reports_Activity');

View File

@@ -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\Reports;
class ActivityActor extends \Google\Model
{
/**
* @var string
*/
public $callerType;
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $profileId;
/**
* @param string
*/
public function setCallerType($callerType)
{
$this->callerType = $callerType;
}
/**
* @return string
*/
public function getCallerType()
{
return $this->callerType;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setProfileId($profileId)
{
$this->profileId = $profileId;
}
/**
* @return string
*/
public function getProfileId()
{
return $this->profileId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityActor::class, 'Google_Service_Reports_ActivityActor');

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\Reports;
class ActivityEvents extends \Google\Collection
{
protected $collection_key = 'parameters';
/**
* @var string
*/
public $name;
protected $parametersType = ActivityEventsParameters::class;
protected $parametersDataType = 'array';
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ActivityEventsParameters[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return ActivityEventsParameters[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityEvents::class, 'Google_Service_Reports_ActivityEvents');

View File

@@ -0,0 +1,167 @@
<?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\Reports;
class ActivityEventsParameters extends \Google\Collection
{
protected $collection_key = 'multiValue';
/**
* @var bool
*/
public $boolValue;
/**
* @var string
*/
public $intValue;
protected $messageValueType = ActivityEventsParametersMessageValue::class;
protected $messageValueDataType = '';
/**
* @var string[]
*/
public $multiIntValue;
protected $multiMessageValueType = ActivityEventsParametersMultiMessageValue::class;
protected $multiMessageValueDataType = 'array';
/**
* @var string[]
*/
public $multiValue;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
/**
* @param bool
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param string
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* @param ActivityEventsParametersMessageValue
*/
public function setMessageValue(ActivityEventsParametersMessageValue $messageValue)
{
$this->messageValue = $messageValue;
}
/**
* @return ActivityEventsParametersMessageValue
*/
public function getMessageValue()
{
return $this->messageValue;
}
/**
* @param string[]
*/
public function setMultiIntValue($multiIntValue)
{
$this->multiIntValue = $multiIntValue;
}
/**
* @return string[]
*/
public function getMultiIntValue()
{
return $this->multiIntValue;
}
/**
* @param ActivityEventsParametersMultiMessageValue[]
*/
public function setMultiMessageValue($multiMessageValue)
{
$this->multiMessageValue = $multiMessageValue;
}
/**
* @return ActivityEventsParametersMultiMessageValue[]
*/
public function getMultiMessageValue()
{
return $this->multiMessageValue;
}
/**
* @param string[]
*/
public function setMultiValue($multiValue)
{
$this->multiValue = $multiValue;
}
/**
* @return string[]
*/
public function getMultiValue()
{
return $this->multiValue;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityEventsParameters::class, 'Google_Service_Reports_ActivityEventsParameters');

View File

@@ -0,0 +1,43 @@
<?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\Reports;
class ActivityEventsParametersMessageValue extends \Google\Collection
{
protected $collection_key = 'parameter';
protected $parameterType = NestedParameter::class;
protected $parameterDataType = 'array';
/**
* @param NestedParameter[]
*/
public function setParameter($parameter)
{
$this->parameter = $parameter;
}
/**
* @return NestedParameter[]
*/
public function getParameter()
{
return $this->parameter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityEventsParametersMessageValue::class, 'Google_Service_Reports_ActivityEventsParametersMessageValue');

View File

@@ -0,0 +1,43 @@
<?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\Reports;
class ActivityEventsParametersMultiMessageValue extends \Google\Collection
{
protected $collection_key = 'parameter';
protected $parameterType = NestedParameter::class;
protected $parameterDataType = 'array';
/**
* @param NestedParameter[]
*/
public function setParameter($parameter)
{
$this->parameter = $parameter;
}
/**
* @return NestedParameter[]
*/
public function getParameter()
{
return $this->parameter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityEventsParametersMultiMessageValue::class, 'Google_Service_Reports_ActivityEventsParametersMultiMessageValue');

View File

@@ -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\Reports;
class ActivityId extends \Google\Model
{
/**
* @var string
*/
public $applicationName;
/**
* @var string
*/
public $customerId;
/**
* @var string
*/
public $time;
/**
* @var string
*/
public $uniqueQualifier;
/**
* @param string
*/
public function setApplicationName($applicationName)
{
$this->applicationName = $applicationName;
}
/**
* @return string
*/
public function getApplicationName()
{
return $this->applicationName;
}
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
/**
* @param string
*/
public function setUniqueQualifier($uniqueQualifier)
{
$this->uniqueQualifier = $uniqueQualifier;
}
/**
* @return string
*/
public function getUniqueQualifier()
{
return $this->uniqueQualifier;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityId::class, 'Google_Service_Reports_ActivityId');

View File

@@ -0,0 +1,206 @@
<?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\Reports;
class Channel extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $expiration;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $params;
/**
* @var bool
*/
public $payload;
/**
* @var string
*/
public $resourceId;
/**
* @var string
*/
public $resourceUri;
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param bool
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_Reports_Channel');

View File

@@ -0,0 +1,153 @@
<?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\Reports;
class NestedParameter extends \Google\Collection
{
protected $collection_key = 'multiValue';
/**
* @var bool
*/
public $boolValue;
/**
* @var string
*/
public $intValue;
/**
* @var bool[]
*/
public $multiBoolValue;
/**
* @var string[]
*/
public $multiIntValue;
/**
* @var string[]
*/
public $multiValue;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
/**
* @param bool
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param string
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* @param bool[]
*/
public function setMultiBoolValue($multiBoolValue)
{
$this->multiBoolValue = $multiBoolValue;
}
/**
* @return bool[]
*/
public function getMultiBoolValue()
{
return $this->multiBoolValue;
}
/**
* @param string[]
*/
public function setMultiIntValue($multiIntValue)
{
$this->multiIntValue = $multiIntValue;
}
/**
* @return string[]
*/
public function getMultiIntValue()
{
return $this->multiIntValue;
}
/**
* @param string[]
*/
public function setMultiValue($multiValue)
{
$this->multiValue = $multiValue;
}
/**
* @return string[]
*/
public function getMultiValue()
{
return $this->multiValue;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NestedParameter::class, 'Google_Service_Reports_NestedParameter');

View File

@@ -0,0 +1,256 @@
<?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\Reports\Resource;
use Google\Service\Reports\Activities as ActivitiesModel;
use Google\Service\Reports\Channel;
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Reports(...);
* $activities = $adminService->activities;
* </code>
*/
class Activities extends \Google\Service\Resource
{
/**
* Retrieves a list of activities for a specific customer's account and
* application such as the Admin console application or the Google Drive
* application. For more information, see the guides for administrator and
* Google Drive activity reports. For more information about the activity
* report's parameters, see the activity parameters reference guides.
* (activities.listActivities)
*
* @param string $userKey Represents the profile ID or the user email for which
* the data should be filtered. Can be `all` for all information, or `userKey`
* for a user's unique Google Workspace profile ID or their primary email
* address. Must not be a deleted user. For a deleted user, call `users.list` in
* Directory API with `showDeleted=true`, then use the returned `ID` as the
* `userKey`.
* @param string $applicationName Application name for which the events are to
* be retrieved.
* @param array $optParams Optional parameters.
*
* @opt_param string actorIpAddress The Internet Protocol (IP) Address of host
* where the event was performed. This is an additional way to filter a report's
* summary using the IP address of the user whose activity is being reported.
* This IP address may or may not reflect the user's physical location. For
* example, the IP address can be the user's proxy server's address or a virtual
* private network (VPN) address. This parameter supports both IPv4 and IPv6
* address versions.
* @opt_param string customerId The unique ID of the customer to retrieve data
* for.
* @opt_param string endTime Sets the end of the range of time shown in the
* report. The date is in the RFC 3339 format, for example
* 2010-10-28T10:26:35.000Z. The default value is the approximate time of the
* API request. An API report has three basic time concepts: - *Date of the
* API's request for a report*: When the API created and retrieved the report. -
* *Report's start time*: The beginning of the timespan shown in the report. The
* `startTime` must be before the `endTime` (if specified) and the current time
* when the request is made, or the API returns an error. - *Report's end time*:
* The end of the timespan shown in the report. For example, the timespan of
* events summarized in a report can start in April and end in May. The report
* itself can be requested in August. If the `endTime` is not specified, the
* report returns all activities from the `startTime` until the current time or
* the most recent 180 days if the `startTime` is more than 180 days in the
* past.
* @opt_param string eventName The name of the event being queried by the API.
* Each `eventName` is related to a specific Google Workspace service or feature
* which the API organizes into types of events. An example is the Google
* Calendar events in the Admin console application's reports. The Calendar
* Settings `type` structure has all of the Calendar `eventName` activities
* reported by the API. When an administrator changes a Calendar setting, the
* API reports this activity in the Calendar Settings `type` and `eventName`
* parameters. For more information about `eventName` query strings and
* parameters, see the list of event names for various applications above in
* `applicationName`.
* @opt_param string filters The `filters` query string is a comma-separated
* list composed of event parameters manipulated by relational operators. Event
* parameters are in the form `{parameter1 name}{relational operator}{parameter1
* value},{parameter2 name}{relational operator}{parameter2 value},...` These
* event parameters are associated with a specific `eventName`. An empty report
* is returned if the request's parameter doesn't belong to the `eventName`. For
* more information about the available `eventName` fields for each application
* and their associated parameters, go to the
* [ApplicationName](#applicationname) table, then click through to the Activity
* Events page in the Appendix for the application you want. In the following
* Drive activity examples, the returned list consists of all `edit` events
* where the `doc_id` parameter value matches the conditions defined by the
* relational operator. In the first example, the request returns all edited
* documents with a `doc_id` value equal to `12345`. In the second example, the
* report returns any edited documents where the `doc_id` value is not equal to
* `98765`. The `<>` operator is URL-encoded in the request's query string
* (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345
* GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query
* supports these relational operators: * `==`—'equal to'. * `<>`—'not equal
* to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded
* (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). *
* `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal
* to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple
* values of the same parameter. If a parameter is supplied more than once in
* the API request, the API only accepts the last value of that parameter. In
* addition, if an invalid parameter is supplied in the API request, the API
* ignores that parameter and returns the response corresponding to the
* remaining valid parameters. If no parameters are requested, all parameters
* are returned.
* @opt_param string groupIdFilter Comma separated group ids (obfuscated) on
* which user activities are filtered, i.e. the response will contain activities
* for only those users that are a part of at least one of the group ids
* mentioned here. Format: "id:abc123,id:xyz456"
* @opt_param int maxResults Determines how many activity records are shown on
* each response page. For example, if the request sets `maxResults=1` and the
* report has two activities, the report has two pages. The response's
* `nextPageToken` property has the token to the second page. The `maxResults`
* query string is optional in the request. The default value is 1000.
* @opt_param string orgUnitID ID of the organizational unit to report on.
* Activity records will be shown only for users who belong to the specified
* organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered
* results.
* @opt_param string pageToken The token to specify next page. A report with
* multiple pages has a `nextPageToken` property in the response. In your
* follow-on request getting the next page of the report, enter the
* `nextPageToken` value in the `pageToken` query string.
* @opt_param string startTime Sets the beginning of the range of time shown in
* the report. The date is in the RFC 3339 format, for example
* 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime`
* until `endTime`. The `startTime` must be before the `endTime` (if specified)
* and the current time when the request is made, or the API returns an error.
* @return ActivitiesModel
* @throws \Google\Service\Exception
*/
public function listActivities($userKey, $applicationName, $optParams = [])
{
$params = ['userKey' => $userKey, 'applicationName' => $applicationName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ActivitiesModel::class);
}
/**
* Start receiving notifications for account activities. For more information,
* see Receiving Push Notifications. (activities.watch)
*
* @param string $userKey Represents the profile ID or the user email for which
* the data should be filtered. Can be `all` for all information, or `userKey`
* for a user's unique Google Workspace profile ID or their primary email
* address. Must not be a deleted user. For a deleted user, call `users.list` in
* Directory API with `showDeleted=true`, then use the returned `ID` as the
* `userKey`.
* @param string $applicationName Application name for which the events are to
* be retrieved.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string actorIpAddress The Internet Protocol (IP) Address of host
* where the event was performed. This is an additional way to filter a report's
* summary using the IP address of the user whose activity is being reported.
* This IP address may or may not reflect the user's physical location. For
* example, the IP address can be the user's proxy server's address or a virtual
* private network (VPN) address. This parameter supports both IPv4 and IPv6
* address versions.
* @opt_param string customerId The unique ID of the customer to retrieve data
* for.
* @opt_param string endTime Sets the end of the range of time shown in the
* report. The date is in the RFC 3339 format, for example
* 2010-10-28T10:26:35.000Z. The default value is the approximate time of the
* API request. An API report has three basic time concepts: - *Date of the
* API's request for a report*: When the API created and retrieved the report. -
* *Report's start time*: The beginning of the timespan shown in the report. The
* `startTime` must be before the `endTime` (if specified) and the current time
* when the request is made, or the API returns an error. - *Report's end time*:
* The end of the timespan shown in the report. For example, the timespan of
* events summarized in a report can start in April and end in May. The report
* itself can be requested in August. If the `endTime` is not specified, the
* report returns all activities from the `startTime` until the current time or
* the most recent 180 days if the `startTime` is more than 180 days in the
* past.
* @opt_param string eventName The name of the event being queried by the API.
* Each `eventName` is related to a specific Google Workspace service or feature
* which the API organizes into types of events. An example is the Google
* Calendar events in the Admin console application's reports. The Calendar
* Settings `type` structure has all of the Calendar `eventName` activities
* reported by the API. When an administrator changes a Calendar setting, the
* API reports this activity in the Calendar Settings `type` and `eventName`
* parameters. For more information about `eventName` query strings and
* parameters, see the list of event names for various applications above in
* `applicationName`.
* @opt_param string filters The `filters` query string is a comma-separated
* list composed of event parameters manipulated by relational operators. Event
* parameters are in the form `{parameter1 name}{relational operator}{parameter1
* value},{parameter2 name}{relational operator}{parameter2 value},...` These
* event parameters are associated with a specific `eventName`. An empty report
* is returned if the request's parameter doesn't belong to the `eventName`. For
* more information about the available `eventName` fields for each application
* and their associated parameters, go to the
* [ApplicationName](#applicationname) table, then click through to the Activity
* Events page in the Appendix for the application you want. In the following
* Drive activity examples, the returned list consists of all `edit` events
* where the `doc_id` parameter value matches the conditions defined by the
* relational operator. In the first example, the request returns all edited
* documents with a `doc_id` value equal to `12345`. In the second example, the
* report returns any edited documents where the `doc_id` value is not equal to
* `98765`. The `<>` operator is URL-encoded in the request's query string
* (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345
* GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query
* supports these relational operators: * `==`—'equal to'. * `<>`—'not equal
* to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded
* (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). *
* `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal
* to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple
* values of the same parameter. If a parameter is supplied more than once in
* the API request, the API only accepts the last value of that parameter. In
* addition, if an invalid parameter is supplied in the API request, the API
* ignores that parameter and returns the response corresponding to the
* remaining valid parameters. If no parameters are requested, all parameters
* are returned.
* @opt_param string groupIdFilter Comma separated group ids (obfuscated) on
* which user activities are filtered, i.e. the response will contain activities
* for only those users that are a part of at least one of the group ids
* mentioned here. Format: "id:abc123,id:xyz456"
* @opt_param int maxResults Determines how many activity records are shown on
* each response page. For example, if the request sets `maxResults=1` and the
* report has two activities, the report has two pages. The response's
* `nextPageToken` property has the token to the second page. The `maxResults`
* query string is optional in the request. The default value is 1000.
* @opt_param string orgUnitID `Deprecated`. This field is deprecated and is no
* longer supported. ID of the organizational unit to report on. Activity
* records will be shown only for users who belong to the specified
* organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered
* results.
* @opt_param string pageToken The token to specify next page. A report with
* multiple pages has a `nextPageToken` property in the response. In your
* follow-on request getting the next page of the report, enter the
* `nextPageToken` value in the `pageToken` query string.
* @opt_param string startTime Sets the beginning of the range of time shown in
* the report. The date is in the RFC 3339 format, for example
* 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime`
* until `endTime`. The `startTime` must be before the `endTime` (if specified)
* and the current time when the request is made, or the API returns an error.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch($userKey, $applicationName, Channel $postBody, $optParams = [])
{
$params = ['userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Activities::class, 'Google_Service_Reports_Resource_Activities');

View File

@@ -0,0 +1,48 @@
<?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\Reports\Resource;
use Google\Service\Reports\Channel;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Reports(...);
* $channels = $adminService->channels;
* </code>
*/
class Channels extends \Google\Service\Resource
{
/**
* Stop watching resources through this channel. (channels.stop)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function stop(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channels::class, 'Google_Service_Reports_Resource_Channels');

View File

@@ -0,0 +1,76 @@
<?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\Reports\Resource;
use Google\Service\Reports\UsageReports;
/**
* The "customerUsageReports" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Reports(...);
* $customerUsageReports = $adminService->customerUsageReports;
* </code>
*/
class CustomerUsageReports extends \Google\Service\Resource
{
/**
* Retrieves a report which is a collection of properties and statistics for a
* specific customer's account. For more information, see the Customers Usage
* Report guide. For more information about the customer report's parameters,
* see the Customers Usage parameters reference guides.
* (customerUsageReports.get)
*
* @param string $date Represents the date the usage occurred, based on UTC-8:00
* (Pacific Standard Time). The timestamp is in the [ISO 8601
* format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId The unique ID of the customer to retrieve data
* for.
* @opt_param string pageToken Token to specify next page. A report with
* multiple pages has a `nextPageToken` property in the response. For your
* follow-on requests getting all of the report's pages, enter the
* `nextPageToken` value in the `pageToken` query string.
* @opt_param string parameters The `parameters` query string is a comma-
* separated list of event parameters that refine a report's results. The
* parameter is associated with a specific application. The application values
* for the Customers usage report include `accounts`, `app_maker`,
* `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`,
* `device_management`, `meet`, and `sites`. A `parameters` query string is in
* the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The
* API doesn't accept multiple values of a parameter. If a particular parameter
* is supplied more than once in the API request, the API only accepts the last
* value of that request parameter. In addition, if an invalid request parameter
* is supplied in the API request, the API ignores that request parameter and
* returns the response corresponding to the remaining valid request parameters.
* An example of an invalid request parameter is one that does not belong to the
* application. If no parameters are requested, all parameters are returned.
* @return UsageReports
* @throws \Google\Service\Exception
*/
public function get($date, $optParams = [])
{
$params = ['date' => $date];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UsageReports::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerUsageReports::class, 'Google_Service_Reports_Resource_CustomerUsageReports');

View File

@@ -0,0 +1,101 @@
<?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\Reports\Resource;
use Google\Service\Reports\UsageReports;
/**
* The "entityUsageReports" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Reports(...);
* $entityUsageReports = $adminService->entityUsageReports;
* </code>
*/
class EntityUsageReports extends \Google\Service\Resource
{
/**
* Retrieves a report which is a collection of properties and statistics for
* entities used by users within the account. For more information, see the
* Entities Usage Report guide. For more information about the entities report's
* parameters, see the Entities Usage parameters reference guides.
* (entityUsageReports.get)
*
* @param string $entityType Represents the type of entity for the report.
* @param string $entityKey Represents the key of the object to filter the data
* with. It is a string which can take the value `all` to get activity events
* for all users, or any other value for an app-specific entity. For details on
* how to obtain the `entityKey` for a particular `entityType`, see the Entities
* Usage parameters reference guides.
* @param string $date Represents the date the usage occurred, based on UTC-8:00
* (Pacific Standard Time). The timestamp is in the [ISO 8601
* format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId The unique ID of the customer to retrieve data
* for.
* @opt_param string filters The `filters` query string is a comma-separated
* list of an application's event parameters where the parameter's value is
* manipulated by a relational operator. The `filters` query string includes the
* name of the application whose usage is returned in the report. The
* application values for the Entities usage report include `accounts`, `docs`,
* and `gmail`. Filters are in the form `[application name]:parameter
* name[parameter value],...`. In this example, the `<>` 'not equal to' operator
* is URL-encoded in the request's query string (%3C%3E): GET https://www.google
* apis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01
* ?parameters=gplus:community_name,gplus:num_total_members
* &filters=gplus:num_total_members%3C%3E0 The relational operators include: -
* `==` - 'equal to'. - `<>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<`
* - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It
* is URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). -
* `>=` - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only
* be applied to numeric parameters.
* @opt_param string maxResults Determines how many activity records are shown
* on each response page. For example, if the request sets `maxResults=1` and
* the report has two activities, the report has two pages. The response's
* `nextPageToken` property has the token to the second page.
* @opt_param string pageToken Token to specify next page. A report with
* multiple pages has a `nextPageToken` property in the response. In your
* follow-on request getting the next page of the report, enter the
* `nextPageToken` value in the `pageToken` query string.
* @opt_param string parameters The `parameters` query string is a comma-
* separated list of event parameters that refine a report's results. The
* parameter is associated with a specific application. The application values
* for the Entities usage report are only `gplus`. A `parameter` query string is
* in the CSV form of `[app_name1:param_name1], [app_name2:param_name2]...`.
* *Note:* The API doesn't accept multiple values of a parameter. If a
* particular parameter is supplied more than once in the API request, the API
* only accepts the last value of that request parameter. In addition, if an
* invalid request parameter is supplied in the API request, the API ignores
* that request parameter and returns the response corresponding to the
* remaining valid request parameters. An example of an invalid request
* parameter is one that does not belong to the application. If no parameters
* are requested, all parameters are returned.
* @return UsageReports
* @throws \Google\Service\Exception
*/
public function get($entityType, $entityKey, $date, $optParams = [])
{
$params = ['entityType' => $entityType, 'entityKey' => $entityKey, 'date' => $date];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UsageReports::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityUsageReports::class, 'Google_Service_Reports_Resource_EntityUsageReports');

View File

@@ -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\Reports\Resource;
use Google\Service\Reports\UsageReports;
/**
* The "userUsageReport" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Reports(...);
* $userUsageReport = $adminService->userUsageReport;
* </code>
*/
class UserUsageReport extends \Google\Service\Resource
{
/**
* Retrieves a report which is a collection of properties and statistics for a
* set of users with the account. For more information, see the User Usage
* Report guide. For more information about the user report's parameters, see
* the Users Usage parameters reference guides. (userUsageReport.get)
*
* @param string $userKey Represents the profile ID or the user email for which
* the data should be filtered. Can be `all` for all information, or `userKey`
* for a user's unique Google Workspace profile ID or their primary email
* address. Must not be a deleted user. For a deleted user, call `users.list` in
* Directory API with `showDeleted=true`, then use the returned `ID` as the
* `userKey`.
* @param string $date Represents the date the usage occurred, based on UTC-8:00
* (Pacific Standard Time). The timestamp is in the [ISO 8601
* format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId The unique ID of the customer to retrieve data
* for.
* @opt_param string filters The `filters` query string is a comma-separated
* list of an application's event parameters where the parameter's value is
* manipulated by a relational operator. The `filters` query string includes the
* name of the application whose usage is returned in the report. The
* application values for the Users Usage Report include `accounts`, `docs`, and
* `gmail`. Filters are in the form `[application name]:parameter name[parameter
* value],...`. In this example, the `<>` 'not equal to' operator is URL-encoded
* in the request's query string (%3C%3E): GET
* https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03
* ?parameters=accounts:last_login_time
* &filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The
* relational operators include: - `==` - 'equal to'. - `<>` - 'not equal to'.
* It is URL-encoded (%3C%3E). - `<` - 'less than'. It is URL-encoded (%3C). -
* `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `>` - 'greater
* than'. It is URL-encoded (%3E). - `>=` - 'greater than or equal to'. It is
* URL-encoded (%3E=).
* @opt_param string groupIdFilter Comma separated group ids (obfuscated) on
* which user activities are filtered, i.e. the response will contain activities
* for only those users that are a part of at least one of the group ids
* mentioned here. Format: "id:abc123,id:xyz456"
* @opt_param string maxResults Determines how many activity records are shown
* on each response page. For example, if the request sets `maxResults=1` and
* the report has two activities, the report has two pages. The response's
* `nextPageToken` property has the token to the second page. The `maxResults`
* query string is optional.
* @opt_param string orgUnitID ID of the organizational unit to report on. User
* activity will be shown only for users who belong to the specified
* organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered
* results.
* @opt_param string pageToken Token to specify next page. A report with
* multiple pages has a `nextPageToken` property in the response. In your
* follow-on request getting the next page of the report, enter the
* `nextPageToken` value in the `pageToken` query string.
* @opt_param string parameters The `parameters` query string is a comma-
* separated list of event parameters that refine a report's results. The
* parameter is associated with a specific application. The application values
* for the Customers Usage report include `accounts`, `app_maker`,
* `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`,
* `device_management`, `meet`, and `sites`. A `parameters` query string is in
* the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The
* API doesn't accept multiple values of a parameter. If a particular parameter
* is supplied more than once in the API request, the API only accepts the last
* value of that request parameter. In addition, if an invalid request parameter
* is supplied in the API request, the API ignores that request parameter and
* returns the response corresponding to the remaining valid request parameters.
* An example of an invalid request parameter is one that does not belong to the
* application. If no parameters are requested, all parameters are returned.
* @return UsageReports
* @throws \Google\Service\Exception
*/
public function get($userKey, $date, $optParams = [])
{
$params = ['userKey' => $userKey, 'date' => $date];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UsageReports::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserUsageReport::class, 'Google_Service_Reports_Resource_UserUsageReport');

View File

@@ -0,0 +1,113 @@
<?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\Reports;
class UsageReport extends \Google\Collection
{
protected $collection_key = 'parameters';
/**
* @var string
*/
public $date;
protected $entityType = UsageReportEntity::class;
protected $entityDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $kind;
protected $parametersType = UsageReportParameters::class;
protected $parametersDataType = 'array';
/**
* @param string
*/
public function setDate($date)
{
$this->date = $date;
}
/**
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* @param UsageReportEntity
*/
public function setEntity(UsageReportEntity $entity)
{
$this->entity = $entity;
}
/**
* @return UsageReportEntity
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param UsageReportParameters[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return UsageReportParameters[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReport::class, 'Google_Service_Reports_UsageReport');

View File

@@ -0,0 +1,116 @@
<?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\Reports;
class UsageReportEntity extends \Google\Model
{
/**
* @var string
*/
public $customerId;
/**
* @var string
*/
public $entityId;
/**
* @var string
*/
public $profileId;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $userEmail;
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* @param string
*/
public function setProfileId($profileId)
{
$this->profileId = $profileId;
}
/**
* @return string
*/
public function getProfileId()
{
return $this->profileId;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUserEmail($userEmail)
{
$this->userEmail = $userEmail;
}
/**
* @return string
*/
public function getUserEmail()
{
return $this->userEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReportEntity::class, 'Google_Service_Reports_UsageReportEntity');

View File

@@ -0,0 +1,135 @@
<?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\Reports;
class UsageReportParameters extends \Google\Collection
{
protected $collection_key = 'msgValue';
/**
* @var bool
*/
public $boolValue;
/**
* @var string
*/
public $datetimeValue;
/**
* @var string
*/
public $intValue;
/**
* @var array[]
*/
public $msgValue;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $stringValue;
/**
* @param bool
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param string
*/
public function setDatetimeValue($datetimeValue)
{
$this->datetimeValue = $datetimeValue;
}
/**
* @return string
*/
public function getDatetimeValue()
{
return $this->datetimeValue;
}
/**
* @param string
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* @param array[]
*/
public function setMsgValue($msgValue)
{
$this->msgValue = $msgValue;
}
/**
* @return array[]
*/
public function getMsgValue()
{
return $this->msgValue;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReportParameters::class, 'Google_Service_Reports_UsageReportParameters');

View File

@@ -0,0 +1,113 @@
<?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\Reports;
class UsageReports extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $usageReportsType = UsageReport::class;
protected $usageReportsDataType = 'array';
protected $warningsType = UsageReportsWarnings::class;
protected $warningsDataType = 'array';
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param UsageReport[]
*/
public function setUsageReports($usageReports)
{
$this->usageReports = $usageReports;
}
/**
* @return UsageReport[]
*/
public function getUsageReports()
{
return $this->usageReports;
}
/**
* @param UsageReportsWarnings[]
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return UsageReportsWarnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReports::class, 'Google_Service_Reports_UsageReports');

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\Reports;
class UsageReportsWarnings extends \Google\Collection
{
protected $collection_key = 'data';
/**
* @var string
*/
public $code;
protected $dataType = UsageReportsWarningsData::class;
protected $dataDataType = 'array';
/**
* @var string
*/
public $message;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param UsageReportsWarningsData[]
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return UsageReportsWarningsData[]
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReportsWarnings::class, 'Google_Service_Reports_UsageReportsWarnings');

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\Reports;
class UsageReportsWarningsData extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsageReportsWarningsData::class, 'Google_Service_Reports_UsageReportsWarningsData');