📄 Source: CustomersTelemetryDevices.php
<?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\ChromeManagement\Resource;
use Google\Service\ChromeManagement\GoogleChromeManagementV1ListTelemetryDevicesResponse;
use Google\Service\ChromeManagement\GoogleChromeManagementV1TelemetryDevice;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $chromemanagementService = new Google\Service\ChromeManagement(...);
* $devices = $chromemanagementService->customers_telemetry_devices;
* </code>
*/
class CustomersTelemetryDevices extends \Google\Service\Resource
{
/**
* Get telemetry device. (devices.get)
*
* @param string $name Required. Name of the `TelemetryDevice` to return.
* @param array $optParams Optional parameters.
*
* @opt_param string readMask Required. Read mask to specify which fields to
* return. Supported read_mask paths are: - name - org_unit_id - device_id -
* serial_number - cpu_info - cpu_status_report - memory_info -
* memory_status_report - network_info - network_diagnostics_report -
* network_status_report - os_update_status - graphics_info -
* graphics_status_report - battery_info - battery_status_report - storage_info
* - storage_status_report - thunderbolt_info - audio_status_report -
* boot_performance_report - heartbeat_status_report - network_bandwidth_report
* - peripherals_report - kiosk_app_status_report - app_report -
* runtime_counters_report
* @return GoogleChromeManagementV1TelemetryDevice
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleChromeManagementV1TelemetryDevice::class);
}
/**
* List all telemetry devices. (devices.listCustomersTelemetryDevices)
*
* @param string $parent Required. Customer id or "my_customer" to use the
* customer associated to the account making the request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter. Requests that don't specify a "reports_timestamp" value will default
* to returning only recent reports. Specify "reports_timestamp>=0" to get all
* report data. Supported filter fields: - org_unit_id - serial_number -
* device_id - reports_timestamp The "reports_timestamp" filter accepts either
* the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with
* nanosecond resolution and up to nine fractional digits. Both formats should
* be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z",
* "2014-10-02T15:01:23.045123456Z", "1679283943823".
* @opt_param int pageSize Maximum number of results to return. Default value is
* 100. Maximum value is 1000.
* @opt_param string pageToken Token to specify next page in the list.
* @opt_param string readMask Required. Read mask to specify which fields to
* return. Supported read_mask paths are: - name - org_unit_id - device_id -
* serial_number - cpu_info - cpu_status_report - memory_info -
* memory_status_report - network_info - network_diagnostics_report -
* network_status_report - os_update_status - graphics_info -
* graphics_status_report - battery_info - battery_status_report - storage_info
* - storage_status_report - thunderbolt_info - audio_status_report -
* boot_performance_report - heartbeat_status_report - network_bandwidth_report
* - peripherals_report - kiosk_app_status_report - app_report -
* runtime_counters_report
* @return GoogleChromeManagementV1ListTelemetryDevicesResponse
* @throws \Google\Service\Exception
*/
public function listCustomersTelemetryDevices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleChromeManagementV1ListTelemetryDevicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersTelemetryDevices::class, 'Google_Service_ChromeManagement_Resource_CustomersTelemetryDevices');
← Back