Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,28 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'required' => true,
],
],
],'countChromeOsDevices' => [
'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices',
'httpMethod' => 'GET',
'parameters' => [
'customerId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'includeChildOrgunits' => [
'location' => 'query',
'type' => 'boolean',
],
'orgUnitPath' => [
'location' => 'query',
'type' => 'string',
],
],
],'issueCommand' => [
'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand',
'httpMethod' => 'POST',
Expand Down
48 changes: 48 additions & 0 deletions src/Directory/CountChromeOsDevicesResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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\Directory;

class CountChromeOsDevicesResponse extends \Google\Model
{
/**
* The total number of devices matching the request.
*
* @var string
*/
public $count;

/**
* The total number of devices matching the request.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CountChromeOsDevicesResponse::class, 'Google_Service_Directory_CountChromeOsDevicesResponse');
25 changes: 25 additions & 0 deletions src/Directory/Resource/CustomerDevicesChromeos.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use Google\Service\Directory\BatchChangeChromeOsDeviceStatusRequest;
use Google\Service\Directory\BatchChangeChromeOsDeviceStatusResponse;
use Google\Service\Directory\CountChromeOsDevicesResponse;
use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandRequest;
use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandResponse;

Expand Down Expand Up @@ -51,6 +52,30 @@ public function batchChangeStatus($customerId, BatchChangeChromeOsDeviceStatusRe
$params = array_merge($params, $optParams);
return $this->call('batchChangeStatus', [$params], BatchChangeChromeOsDeviceStatusResponse::class);
}
/**
* Counts ChromeOS devices matching the request. (chromeos.countChromeOsDevices)
*
* @param string $customerId Required. Immutable ID of the Google Workspace
* account.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Search string in the format given at
* https://developers.google.com/workspace/admin/directory/v1/list-query-
* operators
* @opt_param bool includeChildOrgunits Optional. Return devices from all child
* orgunits, as well as the specified org unit. If this is set to true,
* 'orgUnitPath' must be provided.
* @opt_param string orgUnitPath Optional. The full path of the organizational
* unit (minus the leading `/`) or its unique ID.
* @return CountChromeOsDevicesResponse
* @throws \Google\Service\Exception
*/
public function countChromeOsDevices($customerId, $optParams = [])
{
$params = ['customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('countChromeOsDevices', [$params], CountChromeOsDevicesResponse::class);
}
/**
* Issues a command for the device to execute. (chromeos.issueCommand)
*
Expand Down