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\ChromeManagement\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\ChromeManagement\GoogleChromeManagementV1ListTelemetryUsersResponse;
|
---|
21 | use Google\Service\ChromeManagement\GoogleChromeManagementV1TelemetryUser;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "users" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $chromemanagementService = new Google\Service\ChromeManagement(...);
|
---|
28 | * $users = $chromemanagementService->customers_telemetry_users;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class CustomersTelemetryUsers extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Get telemetry user. (users.get)
|
---|
35 | *
|
---|
36 | * @param string $name Required. Name of the `TelemetryUser` to return.
|
---|
37 | * @param array $optParams Optional parameters.
|
---|
38 | *
|
---|
39 | * @opt_param string readMask Read mask to specify which fields to return.
|
---|
40 | * Supported read_mask paths are: - name - org_unit_id - user_id - user_email -
|
---|
41 | * user_device.device_id - user_device.audio_status_report -
|
---|
42 | * user_device.device_activity_report - user_device.network_bandwidth_report -
|
---|
43 | * user_device.peripherals_report - user_device.app_report
|
---|
44 | * @return GoogleChromeManagementV1TelemetryUser
|
---|
45 | * @throws \Google\Service\Exception
|
---|
46 | */
|
---|
47 | public function get($name, $optParams = [])
|
---|
48 | {
|
---|
49 | $params = ['name' => $name];
|
---|
50 | $params = array_merge($params, $optParams);
|
---|
51 | return $this->call('get', [$params], GoogleChromeManagementV1TelemetryUser::class);
|
---|
52 | }
|
---|
53 | /**
|
---|
54 | * List all telemetry users. (users.listCustomersTelemetryUsers)
|
---|
55 | *
|
---|
56 | * @param string $parent Required. Customer id or "my_customer" to use the
|
---|
57 | * customer associated to the account making the request.
|
---|
58 | * @param array $optParams Optional parameters.
|
---|
59 | *
|
---|
60 | * @opt_param string filter Only include resources that match the filter.
|
---|
61 | * Supported filter fields: - user_id - user_org_unit_id
|
---|
62 | * @opt_param int pageSize Maximum number of results to return. Default value is
|
---|
63 | * 100. Maximum value is 1000.
|
---|
64 | * @opt_param string pageToken Token to specify next page in the list.
|
---|
65 | * @opt_param string readMask Read mask to specify which fields to return.
|
---|
66 | * Supported read_mask paths are: - name - org_unit_id - user_id - user_email -
|
---|
67 | * user_device.device_id - user_device.audio_status_report -
|
---|
68 | * user_device.device_activity_report - user_device.network_bandwidth_report -
|
---|
69 | * user_device.peripherals_report - user_device.app_report
|
---|
70 | * @return GoogleChromeManagementV1ListTelemetryUsersResponse
|
---|
71 | * @throws \Google\Service\Exception
|
---|
72 | */
|
---|
73 | public function listCustomersTelemetryUsers($parent, $optParams = [])
|
---|
74 | {
|
---|
75 | $params = ['parent' => $parent];
|
---|
76 | $params = array_merge($params, $optParams);
|
---|
77 | return $this->call('list', [$params], GoogleChromeManagementV1ListTelemetryUsersResponse::class);
|
---|
78 | }
|
---|
79 | }
|
---|
80 |
|
---|
81 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
82 | class_alias(CustomersTelemetryUsers::class, 'Google_Service_ChromeManagement_Resource_CustomersTelemetryUsers');
|
---|