Skip to content

Commit 2f6b2ea

Browse files
1 parent 22ab921 commit 2f6b2ea

4 files changed

Lines changed: 158 additions & 0 deletions

File tree

src/Reports.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
9191
'location' => 'query',
9292
'type' => 'string',
9393
],
94+
'applicationInfoFilter' => [
95+
'location' => 'query',
96+
'type' => 'string',
97+
],
9498
'customerId' => [
9599
'location' => 'query',
96100
'type' => 'string',
@@ -115,6 +119,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
115119
'location' => 'query',
116120
'type' => 'integer',
117121
],
122+
'networkInfoFilter' => [
123+
'location' => 'query',
124+
'type' => 'string',
125+
],
118126
'orgUnitID' => [
119127
'location' => 'query',
120128
'type' => 'string',
@@ -131,6 +139,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
131139
'location' => 'query',
132140
'type' => 'string',
133141
],
142+
'statusFilter' => [
143+
'location' => 'query',
144+
'type' => 'string',
145+
],
134146
],
135147
],'watch' => [
136148
'path' => 'admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch',

src/Reports/ActivityEvents.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class ActivityEvents extends \Google\Collection
4242
* @var string[]
4343
*/
4444
public $resourceIds;
45+
protected $statusType = ActivityEventsStatus::class;
46+
protected $statusDataType = '';
4547
/**
4648
* Type of event. The Google Workspace service or feature that an
4749
* administrator changes is identified in the `type` property which identifies
@@ -111,6 +113,22 @@ public function getResourceIds()
111113
{
112114
return $this->resourceIds;
113115
}
116+
/**
117+
* Status of the event. Note: Not all events have status.
118+
*
119+
* @param ActivityEventsStatus $status
120+
*/
121+
public function setStatus(ActivityEventsStatus $status)
122+
{
123+
$this->status = $status;
124+
}
125+
/**
126+
* @return ActivityEventsStatus
127+
*/
128+
public function getStatus()
129+
{
130+
return $this->status;
131+
}
114132
/**
115133
* Type of event. The Google Workspace service or feature that an
116134
* administrator changes is identified in the `type` property which identifies
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Reports;
19+
20+
class ActivityEventsStatus extends \Google\Model
21+
{
22+
/**
23+
* Error code of the event. Note: Field can be empty.
24+
*
25+
* @var string
26+
*/
27+
public $errorCode;
28+
/**
29+
* Error message of the event. Note: Field can be empty.
30+
*
31+
* @var string
32+
*/
33+
public $errorMessage;
34+
/**
35+
* * Status of the event. Possible values if not empty: - UNKNOWN_EVENT_STATUS
36+
* - SUCCEEDED - SUCCEEDED_WITH_WARNINGS - FAILED - SKIPPED
37+
*
38+
* @var string
39+
*/
40+
public $eventStatus;
41+
/**
42+
* Status code of the event. Note: Field can be empty.
43+
*
44+
* @var int
45+
*/
46+
public $httpStatusCode;
47+
48+
/**
49+
* Error code of the event. Note: Field can be empty.
50+
*
51+
* @param string $errorCode
52+
*/
53+
public function setErrorCode($errorCode)
54+
{
55+
$this->errorCode = $errorCode;
56+
}
57+
/**
58+
* @return string
59+
*/
60+
public function getErrorCode()
61+
{
62+
return $this->errorCode;
63+
}
64+
/**
65+
* Error message of the event. Note: Field can be empty.
66+
*
67+
* @param string $errorMessage
68+
*/
69+
public function setErrorMessage($errorMessage)
70+
{
71+
$this->errorMessage = $errorMessage;
72+
}
73+
/**
74+
* @return string
75+
*/
76+
public function getErrorMessage()
77+
{
78+
return $this->errorMessage;
79+
}
80+
/**
81+
* * Status of the event. Possible values if not empty: - UNKNOWN_EVENT_STATUS
82+
* - SUCCEEDED - SUCCEEDED_WITH_WARNINGS - FAILED - SKIPPED
83+
*
84+
* @param string $eventStatus
85+
*/
86+
public function setEventStatus($eventStatus)
87+
{
88+
$this->eventStatus = $eventStatus;
89+
}
90+
/**
91+
* @return string
92+
*/
93+
public function getEventStatus()
94+
{
95+
return $this->eventStatus;
96+
}
97+
/**
98+
* Status code of the event. Note: Field can be empty.
99+
*
100+
* @param int $httpStatusCode
101+
*/
102+
public function setHttpStatusCode($httpStatusCode)
103+
{
104+
$this->httpStatusCode = $httpStatusCode;
105+
}
106+
/**
107+
* @return int
108+
*/
109+
public function getHttpStatusCode()
110+
{
111+
return $this->httpStatusCode;
112+
}
113+
}
114+
115+
// Adding a class alias for backwards compatibility with the previous class name.
116+
class_alias(ActivityEventsStatus::class, 'Google_Service_Reports_ActivityEventsStatus');

src/Reports/Resource/Activities.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class Activities extends \Google\Service\Resource
5555
* example, the IP address can be the user's proxy server's address or a virtual
5656
* private network (VPN) address. This parameter supports both IPv4 and IPv6
5757
* address versions.
58+
* @opt_param string applicationInfoFilter Optional. Used to filter on the
59+
* `oAuthClientId` field present in [`ApplicationInfo`](#applicationinfo)
60+
* message. **Usage** ``` GET...&applicationInfoFilter=oAuthClientId="clientId"
61+
* GET...&applicationInfoFilter=oAuthClientId=%22clientId%22 ```
5862
* @opt_param string customerId The unique ID of the customer to retrieve data
5963
* for.
6064
* @opt_param string endTime Sets the end of the range of time shown in the
@@ -124,6 +128,10 @@ class Activities extends \Google\Service\Resource
124128
* report has two activities, the report has two pages. The response's
125129
* `nextPageToken` property has the token to the second page. The `maxResults`
126130
* query string is optional in the request. The default value is 1000.
131+
* @opt_param string networkInfoFilter Optional. Used to filter on the
132+
* `regionCode` field present in [`NetworkInfo`](#networkinfo) message.
133+
* **Usage** ``` GET...&networkInfoFilter=regionCode="IN"
134+
* GET...&networkInfoFilter=regionCode=%22IN%22 ```
127135
* @opt_param string orgUnitID ID of the organizational unit to report on.
128136
* Activity records will be shown only for users who belong to the specified
129137
* organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered
@@ -180,6 +188,10 @@ class Activities extends \Google\Service\Resource
180188
* and the current time when the request is made, or the API returns an error.
181189
* For Gmail requests, `startTime` and `endTime` must be provided and the
182190
* difference must not be greater than 30 days.
191+
* @opt_param string statusFilter Optional. Used to filter on the `statusCode`
192+
* field present in [`Status`](#status) message. **Usage** ```
193+
* GET...&statusFilter=statusCode="200" GET...&statusFilter=statusCode=%22200%22
194+
* ```
183195
* @return ActivitiesModel
184196
* @throws \Google\Service\Exception
185197
*/

0 commit comments

Comments
 (0)