[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\Directory\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Directory\BatchChangeChromeOsDeviceStatusRequest;
|
---|
| 21 | use Google\Service\Directory\BatchChangeChromeOsDeviceStatusResponse;
|
---|
| 22 | use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandRequest;
|
---|
| 23 | use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandResponse;
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * The "chromeos" collection of methods.
|
---|
| 27 | * Typical usage is:
|
---|
| 28 | * <code>
|
---|
| 29 | * $adminService = new Google\Service\Directory(...);
|
---|
| 30 | * $chromeos = $adminService->customer_devices_chromeos;
|
---|
| 31 | * </code>
|
---|
| 32 | */
|
---|
| 33 | class CustomerDevicesChromeos extends \Google\Service\Resource
|
---|
| 34 | {
|
---|
| 35 | /**
|
---|
| 36 | * Changes the status of a batch of ChromeOS devices. For more information about
|
---|
| 37 | * changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS
|
---|
| 38 | * devices](https://support.google.com/chrome/a/answer/3523633).
|
---|
| 39 | * (chromeos.batchChangeStatus)
|
---|
| 40 | *
|
---|
| 41 | * @param string $customerId Required. Immutable ID of the Google Workspace
|
---|
| 42 | * account.
|
---|
| 43 | * @param BatchChangeChromeOsDeviceStatusRequest $postBody
|
---|
| 44 | * @param array $optParams Optional parameters.
|
---|
| 45 | * @return BatchChangeChromeOsDeviceStatusResponse
|
---|
| 46 | * @throws \Google\Service\Exception
|
---|
| 47 | */
|
---|
| 48 | public function batchChangeStatus($customerId, BatchChangeChromeOsDeviceStatusRequest $postBody, $optParams = [])
|
---|
| 49 | {
|
---|
| 50 | $params = ['customerId' => $customerId, 'postBody' => $postBody];
|
---|
| 51 | $params = array_merge($params, $optParams);
|
---|
| 52 | return $this->call('batchChangeStatus', [$params], BatchChangeChromeOsDeviceStatusResponse::class);
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * Issues a command for the device to execute. (chromeos.issueCommand)
|
---|
| 56 | *
|
---|
| 57 | * @param string $customerId Immutable. ID of the Google Workspace account.
|
---|
| 58 | * @param string $deviceId Immutable. ID of Chrome OS Device.
|
---|
| 59 | * @param DirectoryChromeosdevicesIssueCommandRequest $postBody
|
---|
| 60 | * @param array $optParams Optional parameters.
|
---|
| 61 | * @return DirectoryChromeosdevicesIssueCommandResponse
|
---|
| 62 | * @throws \Google\Service\Exception
|
---|
| 63 | */
|
---|
| 64 | public function issueCommand($customerId, $deviceId, DirectoryChromeosdevicesIssueCommandRequest $postBody, $optParams = [])
|
---|
| 65 | {
|
---|
| 66 | $params = ['customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody];
|
---|
| 67 | $params = array_merge($params, $optParams);
|
---|
| 68 | return $this->call('issueCommand', [$params], DirectoryChromeosdevicesIssueCommandResponse::class);
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 73 | class_alias(CustomerDevicesChromeos::class, 'Google_Service_Directory_Resource_CustomerDevicesChromeos');
|
---|