/var/www/flurhymez/vendor/google/apiclient-services/src/Directory/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/Directory/Resource/Mobiledevices.php (5347B)
* $adminService = new Google\Service\Directory(...);
* $mobiledevices = $adminService->mobiledevices;
*
*/
class Mobiledevices extends \Google\Service\Resource
{
/**
* Takes an action that affects a mobile device. For example, remotely wiping a
* device. (mobiledevices.action)
*
* @param string $customerId The unique ID for the customer's Google Workspace
* account. As an account administrator, you can also use the `my_customer`
* alias to represent your account's `customerId`. The `customerId` is also
* returned as part of the [Users resource](/admin-
* sdk/directory/v1/reference/users).
* @param string $resourceId The unique ID the API service uses to identify the
* mobile device.
* @param MobileDeviceAction $postBody
* @param array $optParams Optional parameters.
*/
public function action($customerId, $resourceId, MobileDeviceAction $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('action', [$params]);
}
/**
* Removes a mobile device. (mobiledevices.delete)
*
* @param string $customerId The unique ID for the customer's Google Workspace
* account. As an account administrator, you can also use the `my_customer`
* alias to represent your account's `customerId`. The `customerId` is also
* returned as part of the [Users resource](/admin-
* sdk/directory/v1/reference/users).
* @param string $resourceId The unique ID the API service uses to identify the
* mobile device.
* @param array $optParams Optional parameters.
*/
public function delete($customerId, $resourceId, $optParams = [])
{
$params = ['customerId' => $customerId, 'resourceId' => $resourceId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves a mobile device's properties. (mobiledevices.get)
*
* @param string $customerId The unique ID for the customer's Google Workspace
* account. As an account administrator, you can also use the `my_customer`
* alias to represent your account's `customerId`. The `customerId` is also
* returned as part of the [Users resource](/admin-
* sdk/directory/v1/reference/users).
* @param string $resourceId The unique ID the API service uses to identify the
* mobile device.
* @param array $optParams Optional parameters.
*
* @opt_param string projection Restrict information returned to a set of
* selected fields.
* @return MobileDevice
*/
public function get($customerId, $resourceId, $optParams = [])
{
$params = ['customerId' => $customerId, 'resourceId' => $resourceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MobileDevice::class);
}
/**
* Retrieves a paginated list of all mobile devices for an account.
* (mobiledevices.listMobiledevices)
*
* @param string $customerId The unique ID for the customer's Google Workspace
* account. As an account administrator, you can also use the `my_customer`
* alias to represent your account's `customerId`. The `customerId` is also
* returned as part of the [Users resource](/admin-
* sdk/directory/v1/reference/users).
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of results to return. Max allowed
* value is 100.
* @opt_param string orderBy Device property to use for sorting results.
* @opt_param string pageToken Token to specify next page in the list
* @opt_param string projection Restrict information returned to a set of
* selected fields.
* @opt_param string query Search string in the format given at
* https://developers.google.com/admin-sdk/directory/v1/search-operators
* @opt_param string sortOrder Whether to return results in ascending or
* descending order. Must be used with the `orderBy` parameter.
* @return MobileDevicesModel
*/
public function listMobiledevices($customerId, $optParams = [])
{
$params = ['customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], MobileDevicesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mobiledevices::class, 'Google_Service_Directory_Resource_Mobiledevices');