source: vendor/google/apiclient-services/src/ChromeManagement/Resource/CustomersReports.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 17.5 KB
Line 
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
18namespace Google\Service\ChromeManagement\Resource;
19
20use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse;
21use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeCrashEventsResponse;
22use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse;
23use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse;
24use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse;
25use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeVersionsResponse;
26use Google\Service\ChromeManagement\GoogleChromeManagementV1CountInstalledAppsResponse;
27use Google\Service\ChromeManagement\GoogleChromeManagementV1CountPrintJobsByPrinterResponse;
28use Google\Service\ChromeManagement\GoogleChromeManagementV1CountPrintJobsByUserResponse;
29use Google\Service\ChromeManagement\GoogleChromeManagementV1EnumeratePrintJobsResponse;
30use Google\Service\ChromeManagement\GoogleChromeManagementV1FindInstalledAppDevicesResponse;
31
32/**
33 * The "reports" collection of methods.
34 * Typical usage is:
35 * <code>
36 * $chromemanagementService = new Google\Service\ChromeManagement(...);
37 * $reports = $chromemanagementService->customers_reports;
38 * </code>
39 */
40class CustomersReports extends \Google\Service\Resource
41{
42 /**
43 * Count of Chrome Browsers that have been recently enrolled, have new policy to
44 * be synced, or have no recent activity.
45 * (reports.countChromeBrowsersNeedingAttention)
46 *
47 * @param string $customer Required. The customer ID or "my_customer" prefixed
48 * with "customers/".
49 * @param array $optParams Optional parameters.
50 *
51 * @opt_param string orgUnitId Optional. The ID of the organizational unit. If
52 * omitted, all data will be returned.
53 * @return GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse
54 * @throws \Google\Service\Exception
55 */
56 public function countChromeBrowsersNeedingAttention($customer, $optParams = [])
57 {
58 $params = ['customer' => $customer];
59 $params = array_merge($params, $optParams);
60 return $this->call('countChromeBrowsersNeedingAttention', [$params], GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse::class);
61 }
62 /**
63 * Get a count of Chrome crash events. (reports.countChromeCrashEvents)
64 *
65 * @param string $customer Customer ID.
66 * @param array $optParams Optional parameters.
67 *
68 * @opt_param string filter Query string to filter results, AND-separated fields
69 * in EBNF syntax. Supported filter fields: * major_browser_version *
70 * minor_browser_version * browser_channel * device_platform * past_number_days
71 * Example: `major_browser_version = 'M115' AND past_number_days = '28'`.
72 * @opt_param string orderBy Field used to order results. Supported order by
73 * fields: * browser_version * count * date
74 * @opt_param string orgUnitId If specified, only count the number of crash
75 * events of the devices in this organizational unit.
76 * @return GoogleChromeManagementV1CountChromeCrashEventsResponse
77 * @throws \Google\Service\Exception
78 */
79 public function countChromeCrashEvents($customer, $optParams = [])
80 {
81 $params = ['customer' => $customer];
82 $params = array_merge($params, $optParams);
83 return $this->call('countChromeCrashEvents', [$params], GoogleChromeManagementV1CountChromeCrashEventsResponse::class);
84 }
85 /**
86 * Generate report of the number of devices expiring in each month of the
87 * selected time frame. Devices are grouped by auto update expiration date and
88 * model. Further information can be found
89 * [here](https://support.google.com/chrome/a/answer/10564947).
90 * (reports.countChromeDevicesReachingAutoExpirationDate)
91 *
92 * @param string $customer Required. The customer ID or "my_customer" prefixed
93 * with "customers/".
94 * @param array $optParams Optional parameters.
95 *
96 * @opt_param string maxAueDate Optional. Maximum expiration date in format
97 * yyyy-mm-dd in UTC timezone. If included returns all devices that have already
98 * expired and devices with auto expiration date equal to or earlier than the
99 * maximum date.
100 * @opt_param string minAueDate Optional. Maximum expiration date in format
101 * yyyy-mm-dd in UTC timezone. If included returns all devices that have already
102 * expired and devices with auto expiration date equal to or later than the
103 * minimum date.
104 * @opt_param string orgUnitId Optional. The organizational unit ID, if omitted,
105 * will return data for all organizational units.
106 * @return GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse
107 * @throws \Google\Service\Exception
108 */
109 public function countChromeDevicesReachingAutoExpirationDate($customer, $optParams = [])
110 {
111 $params = ['customer' => $customer];
112 $params = array_merge($params, $optParams);
113 return $this->call('countChromeDevicesReachingAutoExpirationDate', [$params], GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse::class);
114 }
115 /**
116 * Counts of ChromeOS devices that have not synced policies or have lacked user
117 * activity in the past 28 days, are out of date, or are not complaint. Further
118 * information can be found here
119 * https://support.google.com/chrome/a/answer/10564947
120 * (reports.countChromeDevicesThatNeedAttention)
121 *
122 * @param string $customer Required. The customer ID or "my_customer" prefixed
123 * with "customers/".
124 * @param array $optParams Optional parameters.
125 *
126 * @opt_param string orgUnitId Optional. The ID of the organizational unit. If
127 * omitted, all data will be returned.
128 * @opt_param string readMask Required. Mask of the fields that should be
129 * populated in the returned report.
130 * @return GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse
131 * @throws \Google\Service\Exception
132 */
133 public function countChromeDevicesThatNeedAttention($customer, $optParams = [])
134 {
135 $params = ['customer' => $customer];
136 $params = array_merge($params, $optParams);
137 return $this->call('countChromeDevicesThatNeedAttention', [$params], GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse::class);
138 }
139 /**
140 * Counts of devices with a specific hardware specification from the requested
141 * hardware type (for example model name, processor type). Further information
142 * can be found here https://support.google.com/chrome/a/answer/10564947
143 * (reports.countChromeHardwareFleetDevices)
144 *
145 * @param string $customer Required. The customer ID or "my_customer".
146 * @param array $optParams Optional parameters.
147 *
148 * @opt_param string orgUnitId Optional. The ID of the organizational unit. If
149 * omitted, all data will be returned.
150 * @opt_param string readMask Required. Mask of the fields that should be
151 * populated in the returned report.
152 * @return GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse
153 * @throws \Google\Service\Exception
154 */
155 public function countChromeHardwareFleetDevices($customer, $optParams = [])
156 {
157 $params = ['customer' => $customer];
158 $params = array_merge($params, $optParams);
159 return $this->call('countChromeHardwareFleetDevices', [$params], GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse::class);
160 }
161 /**
162 * Generate report of installed Chrome versions. (reports.countChromeVersions)
163 *
164 * @param string $customer Required. Customer id or "my_customer" to use the
165 * customer associated to the account making the request.
166 * @param array $optParams Optional parameters.
167 *
168 * @opt_param string filter Query string to filter results, AND-separated fields
169 * in EBNF syntax. Note: OR operations are not supported in this filter.
170 * Supported filter fields: * last_active_date
171 * @opt_param string orgUnitId The ID of the organizational unit.
172 * @opt_param int pageSize Maximum number of results to return. Maximum and
173 * default are 100.
174 * @opt_param string pageToken Token to specify the page of the request to be
175 * returned.
176 * @return GoogleChromeManagementV1CountChromeVersionsResponse
177 * @throws \Google\Service\Exception
178 */
179 public function countChromeVersions($customer, $optParams = [])
180 {
181 $params = ['customer' => $customer];
182 $params = array_merge($params, $optParams);
183 return $this->call('countChromeVersions', [$params], GoogleChromeManagementV1CountChromeVersionsResponse::class);
184 }
185 /**
186 * Generate report of app installations. (reports.countInstalledApps)
187 *
188 * @param string $customer Required. Customer id or "my_customer" to use the
189 * customer associated to the account making the request.
190 * @param array $optParams Optional parameters.
191 *
192 * @opt_param string filter Query string to filter results, AND-separated fields
193 * in EBNF syntax. Note: OR operations are not supported in this filter.
194 * Supported filter fields: * app_name * app_type * install_type *
195 * number_of_permissions * total_install_count * latest_profile_active_date *
196 * permission_name * app_id * manifest_versions * risk_score
197 * @opt_param string orderBy Field used to order results. Supported order by
198 * fields: * app_name * app_type * install_type * number_of_permissions *
199 * total_install_count * app_id * manifest_versions * risk_score
200 * @opt_param string orgUnitId The ID of the organizational unit.
201 * @opt_param int pageSize Maximum number of results to return. Maximum and
202 * default are 100.
203 * @opt_param string pageToken Token to specify the page of the request to be
204 * returned.
205 * @return GoogleChromeManagementV1CountInstalledAppsResponse
206 * @throws \Google\Service\Exception
207 */
208 public function countInstalledApps($customer, $optParams = [])
209 {
210 $params = ['customer' => $customer];
211 $params = array_merge($params, $optParams);
212 return $this->call('countInstalledApps', [$params], GoogleChromeManagementV1CountInstalledAppsResponse::class);
213 }
214 /**
215 * Get a summary of printing done by each printer.
216 * (reports.countPrintJobsByPrinter)
217 *
218 * @param string $customer Required. Customer ID prefixed with "customers/" or
219 * "customers/my_customer" to use the customer associated to the account making
220 * the request.
221 * @param array $optParams Optional parameters.
222 *
223 * @opt_param string filter Query string to filter results, AND-separated fields
224 * in EBNF syntax. Note: OR operations are not supported in this filter. Note:
225 * Only >= and <= comparators are supported in this filter. Supported filter
226 * fields: * complete_time
227 * @opt_param string orderBy Field used to order results. If omitted, results
228 * will be ordered in ascending order of the 'printer' field. Supported order_by
229 * fields: * printer * job_count * device_count * user_count
230 * @opt_param int pageSize Maximum number of results to return. Maximum and
231 * default are 100.
232 * @opt_param string pageToken Token to specify the page of the response to be
233 * returned.
234 * @opt_param string printerOrgUnitId The ID of the organizational unit for
235 * printers. If specified, only data for printers from the specified
236 * organizational unit will be returned. If omitted, data for printers from all
237 * organizational units will be returned.
238 * @return GoogleChromeManagementV1CountPrintJobsByPrinterResponse
239 * @throws \Google\Service\Exception
240 */
241 public function countPrintJobsByPrinter($customer, $optParams = [])
242 {
243 $params = ['customer' => $customer];
244 $params = array_merge($params, $optParams);
245 return $this->call('countPrintJobsByPrinter', [$params], GoogleChromeManagementV1CountPrintJobsByPrinterResponse::class);
246 }
247 /**
248 * Get a summary of printing done by each user. (reports.countPrintJobsByUser)
249 *
250 * @param string $customer Required. Customer ID prefixed with "customers/" or
251 * "customers/my_customer" to use the customer associated to the account making
252 * the request.
253 * @param array $optParams Optional parameters.
254 *
255 * @opt_param string filter Query string to filter results, AND-separated fields
256 * in EBNF syntax. Note: OR operations are not supported in this filter. Note:
257 * Only >= and <= comparators are supported in this filter. Supported filter
258 * fields: * complete_time
259 * @opt_param string orderBy Field used to order results. If omitted, results
260 * will be ordered in ascending order of the 'user_email' field. Supported
261 * order_by fields: * user_email * job_count * printer_count * device_count
262 * @opt_param int pageSize Maximum number of results to return. Maximum and
263 * default are 100.
264 * @opt_param string pageToken Token to specify the page of the response to be
265 * returned.
266 * @opt_param string printerOrgUnitId The ID of the organizational unit for
267 * printers. If specified, only print jobs initiated with printers from the
268 * specified organizational unit will be counted. If omitted, all print jobs
269 * will be counted.
270 * @return GoogleChromeManagementV1CountPrintJobsByUserResponse
271 * @throws \Google\Service\Exception
272 */
273 public function countPrintJobsByUser($customer, $optParams = [])
274 {
275 $params = ['customer' => $customer];
276 $params = array_merge($params, $optParams);
277 return $this->call('countPrintJobsByUser', [$params], GoogleChromeManagementV1CountPrintJobsByUserResponse::class);
278 }
279 /**
280 * Get a list of print jobs. (reports.enumeratePrintJobs)
281 *
282 * @param string $customer Required. Customer ID prefixed with "customers/" or
283 * "customers/my_customer" to use the customer associated to the account making
284 * the request.
285 * @param array $optParams Optional parameters.
286 *
287 * @opt_param string filter Query string to filter results, AND-separated fields
288 * in EBNF syntax. Note: OR operations are not supported in this filter. Note:
289 * Only >= and <= comparators are supported for `complete_time`. Note: Only =
290 * comparator supported for `user_id` and `printer_id`. Supported filter fields:
291 * * complete_time * printer_id * user_id
292 * @opt_param string orderBy Field used to order results. If not specified,
293 * results will be ordered in descending order of the `complete_time` field.
294 * Supported order by fields: * title * state * create_time * complete_time *
295 * document_page_count * color_mode * duplex_mode * printer * user_email
296 * @opt_param int pageSize The number of print jobs in the page from 0 to 100
297 * inclusive, if page_size is not specified or zero, the size will be 50.
298 * @opt_param string pageToken A page token received from a previous
299 * `EnumeratePrintJobs` call. Provide this to retrieve the subsequent page. If
300 * omitted, the first page of results will be returned. When paginating, all
301 * other parameters provided to `EnumeratePrintJobs` must match the call that
302 * provided the page token.
303 * @opt_param string printerOrgUnitId The ID of the organizational unit for
304 * printers. If specified, only print jobs submitted to printers from the
305 * specified organizational unit will be returned.
306 * @return GoogleChromeManagementV1EnumeratePrintJobsResponse
307 * @throws \Google\Service\Exception
308 */
309 public function enumeratePrintJobs($customer, $optParams = [])
310 {
311 $params = ['customer' => $customer];
312 $params = array_merge($params, $optParams);
313 return $this->call('enumeratePrintJobs', [$params], GoogleChromeManagementV1EnumeratePrintJobsResponse::class);
314 }
315 /**
316 * Generate report of managed Chrome browser devices that have a specified app
317 * installed. (reports.findInstalledAppDevices)
318 *
319 * @param string $customer Required. Customer id or "my_customer" to use the
320 * customer associated to the account making the request.
321 * @param array $optParams Optional parameters.
322 *
323 * @opt_param string appId Unique identifier of the app. For Chrome apps and
324 * extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For
325 * Android apps, the package name (e.g. com.evernote).
326 * @opt_param string appType Type of the app.
327 * @opt_param string filter Query string to filter results, AND-separated fields
328 * in EBNF syntax. Note: OR operations are not supported in this filter.
329 * Supported filter fields: * last_active_date
330 * @opt_param string orderBy Field used to order results. Supported order by
331 * fields: * machine * device_id
332 * @opt_param string orgUnitId The ID of the organizational unit.
333 * @opt_param int pageSize Maximum number of results to return. Maximum and
334 * default are 100.
335 * @opt_param string pageToken Token to specify the page of the request to be
336 * returned.
337 * @return GoogleChromeManagementV1FindInstalledAppDevicesResponse
338 * @throws \Google\Service\Exception
339 */
340 public function findInstalledAppDevices($customer, $optParams = [])
341 {
342 $params = ['customer' => $customer];
343 $params = array_merge($params, $optParams);
344 return $this->call('findInstalledAppDevices', [$params], GoogleChromeManagementV1FindInstalledAppDevicesResponse::class);
345 }
346}
347
348// Adding a class alias for backwards compatibility with the previous class name.
349class_alias(CustomersReports::class, 'Google_Service_ChromeManagement_Resource_CustomersReports');
Note: See TracBrowser for help on using the repository browser.