[e3d4e0a] | 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\GoogleChromeManagementV1ListTelemetryDevicesResponse;
|
---|
| 21 | use Google\Service\ChromeManagement\GoogleChromeManagementV1TelemetryDevice;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "devices" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $chromemanagementService = new Google\Service\ChromeManagement(...);
|
---|
| 28 | * $devices = $chromemanagementService->customers_telemetry_devices;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class CustomersTelemetryDevices extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Get telemetry device. (devices.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $name Required. Name of the `TelemetryDevice` to return.
|
---|
| 37 | * @param array $optParams Optional parameters.
|
---|
| 38 | *
|
---|
| 39 | * @opt_param string readMask Required. Read mask to specify which fields to
|
---|
| 40 | * return. Supported read_mask paths are: - name - org_unit_id - device_id -
|
---|
| 41 | * serial_number - cpu_info - cpu_status_report - memory_info -
|
---|
| 42 | * memory_status_report - network_info - network_diagnostics_report -
|
---|
| 43 | * network_status_report - os_update_status - graphics_info -
|
---|
| 44 | * graphics_status_report - battery_info - battery_status_report - storage_info
|
---|
| 45 | * - storage_status_report - thunderbolt_info - audio_status_report -
|
---|
| 46 | * boot_performance_report - heartbeat_status_report - network_bandwidth_report
|
---|
| 47 | * - peripherals_report - kiosk_app_status_report - app_report -
|
---|
| 48 | * runtime_counters_report
|
---|
| 49 | * @return GoogleChromeManagementV1TelemetryDevice
|
---|
| 50 | * @throws \Google\Service\Exception
|
---|
| 51 | */
|
---|
| 52 | public function get($name, $optParams = [])
|
---|
| 53 | {
|
---|
| 54 | $params = ['name' => $name];
|
---|
| 55 | $params = array_merge($params, $optParams);
|
---|
| 56 | return $this->call('get', [$params], GoogleChromeManagementV1TelemetryDevice::class);
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * List all telemetry devices. (devices.listCustomersTelemetryDevices)
|
---|
| 60 | *
|
---|
| 61 | * @param string $parent Required. Customer id or "my_customer" to use the
|
---|
| 62 | * customer associated to the account making the request.
|
---|
| 63 | * @param array $optParams Optional parameters.
|
---|
| 64 | *
|
---|
| 65 | * @opt_param string filter Optional. Only include resources that match the
|
---|
| 66 | * filter. Requests that don't specify a "reports_timestamp" value will default
|
---|
| 67 | * to returning only recent reports. Specify "reports_timestamp>=0" to get all
|
---|
| 68 | * report data. Supported filter fields: - org_unit_id - serial_number -
|
---|
| 69 | * device_id - reports_timestamp The "reports_timestamp" filter accepts either
|
---|
| 70 | * the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with
|
---|
| 71 | * nanosecond resolution and up to nine fractional digits. Both formats should
|
---|
| 72 | * be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z",
|
---|
| 73 | * "2014-10-02T15:01:23.045123456Z", "1679283943823".
|
---|
| 74 | * @opt_param int pageSize Maximum number of results to return. Default value is
|
---|
| 75 | * 100. Maximum value is 1000.
|
---|
| 76 | * @opt_param string pageToken Token to specify next page in the list.
|
---|
| 77 | * @opt_param string readMask Required. Read mask to specify which fields to
|
---|
| 78 | * return. Supported read_mask paths are: - name - org_unit_id - device_id -
|
---|
| 79 | * serial_number - cpu_info - cpu_status_report - memory_info -
|
---|
| 80 | * memory_status_report - network_info - network_diagnostics_report -
|
---|
| 81 | * network_status_report - os_update_status - graphics_info -
|
---|
| 82 | * graphics_status_report - battery_info - battery_status_report - storage_info
|
---|
| 83 | * - storage_status_report - thunderbolt_info - audio_status_report -
|
---|
| 84 | * boot_performance_report - heartbeat_status_report - network_bandwidth_report
|
---|
| 85 | * - peripherals_report - kiosk_app_status_report - app_report -
|
---|
| 86 | * runtime_counters_report
|
---|
| 87 | * @return GoogleChromeManagementV1ListTelemetryDevicesResponse
|
---|
| 88 | * @throws \Google\Service\Exception
|
---|
| 89 | */
|
---|
| 90 | public function listCustomersTelemetryDevices($parent, $optParams = [])
|
---|
| 91 | {
|
---|
| 92 | $params = ['parent' => $parent];
|
---|
| 93 | $params = array_merge($params, $optParams);
|
---|
| 94 | return $this->call('list', [$params], GoogleChromeManagementV1ListTelemetryDevicesResponse::class);
|
---|
| 95 | }
|
---|
| 96 | }
|
---|
| 97 |
|
---|
| 98 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 99 | class_alias(CustomersTelemetryDevices::class, 'Google_Service_ChromeManagement_Resource_CustomersTelemetryDevices');
|
---|