Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?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 AdminEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminEmpty::class, 'Google_Service_Directory_AdminEmpty');

View File

@@ -0,0 +1,116 @@
<?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 Alias extends \Google\Model
{
/**
* @var string
*/
public $alias;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $primaryEmail;
/**
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string $primaryEmail
*/
public function setPrimaryEmail($primaryEmail)
{
$this->primaryEmail = $primaryEmail;
}
/**
* @return string
*/
public function getPrimaryEmail()
{
return $this->primaryEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Alias::class, 'Google_Service_Directory_Alias');

View File

@@ -0,0 +1,81 @@
<?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 Aliases extends \Google\Collection
{
protected $collection_key = 'aliases';
/**
* @var array[]
*/
public $aliases;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $kind;
/**
* @param array[] $aliases
*/
public function setAliases($aliases)
{
$this->aliases = $aliases;
}
/**
* @return array[]
*/
public function getAliases()
{
return $this->aliases;
}
/**
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Aliases::class, 'Google_Service_Directory_Aliases');

View File

@@ -0,0 +1,186 @@
<?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 Asp extends \Google\Model
{
/**
* The unique ID of the ASP.
*
* @var int
*/
public $codeId;
/**
* The time when the ASP was created. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format.
*
* @var string
*/
public $creationTime;
/**
* ETag of the ASP.
*
* @var string
*/
public $etag;
/**
* The type of the API resource. This is always `admin#directory#asp`.
*
* @var string
*/
public $kind;
/**
* The time when the ASP was last used. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format.
*
* @var string
*/
public $lastTimeUsed;
/**
* The name of the application that the user, represented by their `userId`,
* entered when the ASP was created.
*
* @var string
*/
public $name;
/**
* The unique ID of the user who issued the ASP.
*
* @var string
*/
public $userKey;
/**
* The unique ID of the ASP.
*
* @param int $codeId
*/
public function setCodeId($codeId)
{
$this->codeId = $codeId;
}
/**
* @return int
*/
public function getCodeId()
{
return $this->codeId;
}
/**
* The time when the ASP was created. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format.
*
* @param string $creationTime
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* ETag of the ASP.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The type of the API resource. This is always `admin#directory#asp`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The time when the ASP was last used. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format.
*
* @param string $lastTimeUsed
*/
public function setLastTimeUsed($lastTimeUsed)
{
$this->lastTimeUsed = $lastTimeUsed;
}
/**
* @return string
*/
public function getLastTimeUsed()
{
return $this->lastTimeUsed;
}
/**
* The name of the application that the user, represented by their `userId`,
* entered when the ASP was created.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The unique ID of the user who issued the ASP.
*
* @param string $userKey
*/
public function setUserKey($userKey)
{
$this->userKey = $userKey;
}
/**
* @return string
*/
public function getUserKey()
{
return $this->userKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Asp::class, 'Google_Service_Directory_Asp');

View File

@@ -0,0 +1,89 @@
<?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 Asps extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $itemsType = Asp::class;
protected $itemsDataType = 'array';
/**
* The type of the API resource. This is always `admin#directory#aspList`.
*
* @var string
*/
public $kind;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* A list of ASP resources.
*
* @param Asp[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Asp[]
*/
public function getItems()
{
return $this->items;
}
/**
* The type of the API resource. This is always `admin#directory#aspList`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Asps::class, 'Google_Service_Directory_Asps');

View File

@@ -0,0 +1,113 @@
<?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 AuxiliaryMessage extends \Google\Model
{
/**
* Message type unspecified.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Message of severity: info.
*/
public const SEVERITY_SEVERITY_INFO = 'SEVERITY_INFO';
/**
* Message of severity: warning.
*/
public const SEVERITY_SEVERITY_WARNING = 'SEVERITY_WARNING';
/**
* Message of severity: error.
*/
public const SEVERITY_SEVERITY_ERROR = 'SEVERITY_ERROR';
/**
* Human readable message in English. Example: "Given printer is invalid or no
* longer supported."
*
* @var string
*/
public $auxiliaryMessage;
/**
* Field that this message concerns.
*
* @var string
*/
public $fieldMask;
/**
* Message severity
*
* @var string
*/
public $severity;
/**
* Human readable message in English. Example: "Given printer is invalid or no
* longer supported."
*
* @param string $auxiliaryMessage
*/
public function setAuxiliaryMessage($auxiliaryMessage)
{
$this->auxiliaryMessage = $auxiliaryMessage;
}
/**
* @return string
*/
public function getAuxiliaryMessage()
{
return $this->auxiliaryMessage;
}
/**
* Field that this message concerns.
*
* @param string $fieldMask
*/
public function setFieldMask($fieldMask)
{
$this->fieldMask = $fieldMask;
}
/**
* @return string
*/
public function getFieldMask()
{
return $this->fieldMask;
}
/**
* Message severity
*
* Accepted values: SEVERITY_UNSPECIFIED, SEVERITY_INFO, SEVERITY_WARNING,
* SEVERITY_ERROR
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuxiliaryMessage::class, 'Google_Service_Directory_AuxiliaryMessage');

View File

@@ -0,0 +1,96 @@
<?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 BacklightInfo extends \Google\Model
{
/**
* Output only. Current brightness of the backlight, between 0 and
* max_brightness.
*
* @var int
*/
public $brightness;
/**
* Output only. Maximum brightness for the backlight.
*
* @var int
*/
public $maxBrightness;
/**
* Output only. Path to this backlight on the system. Useful if the caller
* needs to correlate with other information.
*
* @var string
*/
public $path;
/**
* Output only. Current brightness of the backlight, between 0 and
* max_brightness.
*
* @param int $brightness
*/
public function setBrightness($brightness)
{
$this->brightness = $brightness;
}
/**
* @return int
*/
public function getBrightness()
{
return $this->brightness;
}
/**
* Output only. Maximum brightness for the backlight.
*
* @param int $maxBrightness
*/
public function setMaxBrightness($maxBrightness)
{
$this->maxBrightness = $maxBrightness;
}
/**
* @return int
*/
public function getMaxBrightness()
{
return $this->maxBrightness;
}
/**
* Output only. Path to this backlight on the system. Useful if the caller
* needs to correlate with other information.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BacklightInfo::class, 'Google_Service_Directory_BacklightInfo');

View File

@@ -0,0 +1,205 @@
<?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 BatchChangeChromeOsDeviceStatusRequest extends \Google\Collection
{
/**
* Default value. Value is unused.
*/
public const CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED = 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED';
/**
* Deprovisions a ChromeOS device. If you have ChromeOS devices that are no
* longer being used in your organization, you should deprovision them so that
* youre no longer managing them. Deprovisioning the device removes all
* policies that were on the device as well as device-level printers and the
* ability to use the device as a kiosk. Depending on the upgrade thats
* associated with the device this action might release the license back into
* the license pool; which allows you to use the license on a different
* device.
*/
public const CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION = 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION';
/**
* Disables a ChromeOS device. Use this action if a user loses their device or
* its stolen, this makes it such that the device is still managed, so it
* will still receive policies, but no one can use it. Depending on the
* upgrade thats associated with the device this action might release the
* license back into the license pool; which allows you to use the license on
* a different device.
*/
public const CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE = 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE';
/**
* Reenables a ChromeOS device to be used after being disabled. Reenables the
* device once it's no longer lost or it's been recovered. This allows the
* device to be used again. Depending on the upgrade associated with the
* device this might consume one license from the license pool, meaning that
* if there aren't enough licenses available the operation will fail.
*/
public const CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE = 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE';
/**
* The deprovision reason is unknown.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_UNSPECIFIED = 'DEPROVISION_REASON_UNSPECIFIED';
/**
* Same model replacement. You have return materials authorization (RMA) or
* you are replacing a malfunctioning device under warranty with the same
* device model.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_SAME_MODEL_REPLACEMENT = 'DEPROVISION_REASON_SAME_MODEL_REPLACEMENT';
/**
* The device was upgraded.
*
* @deprecated
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_UPGRADE = 'DEPROVISION_REASON_UPGRADE';
/**
* The device's domain was changed.
*
* @deprecated
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_DOMAIN_MOVE = 'DEPROVISION_REASON_DOMAIN_MOVE';
/**
* Service expired for the device.
*
* @deprecated
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_SERVICE_EXPIRATION = 'DEPROVISION_REASON_SERVICE_EXPIRATION';
/**
* The device was deprovisioned for a legacy reason that is no longer
* supported.
*
* @deprecated
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_OTHER = 'DEPROVISION_REASON_OTHER';
/**
* Different model replacement. You are replacing this device with an upgraded
* or newer device model.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT = 'DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT';
/**
* Retiring from fleet. You are donating, discarding, or otherwise removing
* the device from use.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_RETIRING_DEVICE = 'DEPROVISION_REASON_RETIRING_DEVICE';
/**
* ChromeOS Flex upgrade transfer. This is a ChromeOS Flex device that you are
* replacing with a Chromebook within a year.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_UPGRADE_TRANSFER = 'DEPROVISION_REASON_UPGRADE_TRANSFER';
/**
* A reason was not required. For example, the licenses were returned to the
* customer's license pool.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_NOT_REQUIRED = 'DEPROVISION_REASON_NOT_REQUIRED';
/**
* The device was deprovisioned by the Repair Service Center. Can only be set
* by Repair Service Center during RMA.
*/
public const DEPROVISION_REASON_DEPROVISION_REASON_REPAIR_CENTER = 'DEPROVISION_REASON_REPAIR_CENTER';
protected $collection_key = 'deviceIds';
/**
* Required. The action to take on the ChromeOS device in order to change its
* status.
*
* @var string
*/
public $changeChromeOsDeviceStatusAction;
/**
* Optional. The reason behind a device deprovision. Must be provided if
* 'changeChromeOsDeviceStatusAction' is set to
* 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this
* field.
*
* @var string
*/
public $deprovisionReason;
/**
* Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
*
* @var string[]
*/
public $deviceIds;
/**
* Required. The action to take on the ChromeOS device in order to change its
* status.
*
* Accepted values: CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED,
* CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION,
* CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE,
* CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE
*
* @param self::CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_* $changeChromeOsDeviceStatusAction
*/
public function setChangeChromeOsDeviceStatusAction($changeChromeOsDeviceStatusAction)
{
$this->changeChromeOsDeviceStatusAction = $changeChromeOsDeviceStatusAction;
}
/**
* @return self::CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_*
*/
public function getChangeChromeOsDeviceStatusAction()
{
return $this->changeChromeOsDeviceStatusAction;
}
/**
* Optional. The reason behind a device deprovision. Must be provided if
* 'changeChromeOsDeviceStatusAction' is set to
* 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this
* field.
*
* Accepted values: DEPROVISION_REASON_UNSPECIFIED,
* DEPROVISION_REASON_SAME_MODEL_REPLACEMENT, DEPROVISION_REASON_UPGRADE,
* DEPROVISION_REASON_DOMAIN_MOVE, DEPROVISION_REASON_SERVICE_EXPIRATION,
* DEPROVISION_REASON_OTHER, DEPROVISION_REASON_DIFFERENT_MODEL_REPLACEMENT,
* DEPROVISION_REASON_RETIRING_DEVICE, DEPROVISION_REASON_UPGRADE_TRANSFER,
* DEPROVISION_REASON_NOT_REQUIRED, DEPROVISION_REASON_REPAIR_CENTER
*
* @param self::DEPROVISION_REASON_* $deprovisionReason
*/
public function setDeprovisionReason($deprovisionReason)
{
$this->deprovisionReason = $deprovisionReason;
}
/**
* @return self::DEPROVISION_REASON_*
*/
public function getDeprovisionReason()
{
return $this->deprovisionReason;
}
/**
* Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
*
* @param string[] $deviceIds
*/
public function setDeviceIds($deviceIds)
{
$this->deviceIds = $deviceIds;
}
/**
* @return string[]
*/
public function getDeviceIds()
{
return $this->deviceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchChangeChromeOsDeviceStatusRequest::class, 'Google_Service_Directory_BatchChangeChromeOsDeviceStatusRequest');

View File

@@ -0,0 +1,45 @@
<?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 BatchChangeChromeOsDeviceStatusResponse extends \Google\Collection
{
protected $collection_key = 'changeChromeOsDeviceStatusResults';
protected $changeChromeOsDeviceStatusResultsType = ChangeChromeOsDeviceStatusResult::class;
protected $changeChromeOsDeviceStatusResultsDataType = 'array';
/**
* The results for each of the ChromeOS devices provided in the request.
*
* @param ChangeChromeOsDeviceStatusResult[] $changeChromeOsDeviceStatusResults
*/
public function setChangeChromeOsDeviceStatusResults($changeChromeOsDeviceStatusResults)
{
$this->changeChromeOsDeviceStatusResults = $changeChromeOsDeviceStatusResults;
}
/**
* @return ChangeChromeOsDeviceStatusResult[]
*/
public function getChangeChromeOsDeviceStatusResults()
{
return $this->changeChromeOsDeviceStatusResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchChangeChromeOsDeviceStatusResponse::class, 'Google_Service_Directory_BatchChangeChromeOsDeviceStatusResponse');

View File

@@ -0,0 +1,46 @@
<?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 BatchCreatePrintServersRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreatePrintServerRequest::class;
protected $requestsDataType = 'array';
/**
* Required. A list of `PrintServer` resources to be created (max `50` per
* batch).
*
* @param CreatePrintServerRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreatePrintServerRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePrintServersRequest::class, 'Google_Service_Directory_BatchCreatePrintServersRequest');

View File

@@ -0,0 +1,64 @@
<?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 BatchCreatePrintServersResponse extends \Google\Collection
{
protected $collection_key = 'printServers';
protected $failuresType = PrintServerFailureInfo::class;
protected $failuresDataType = 'array';
protected $printServersType = PrintServer::class;
protected $printServersDataType = 'array';
/**
* A list of create failures. `PrintServer` IDs are not populated, as print
* servers were not created.
*
* @param PrintServerFailureInfo[] $failures
*/
public function setFailures($failures)
{
$this->failures = $failures;
}
/**
* @return PrintServerFailureInfo[]
*/
public function getFailures()
{
return $this->failures;
}
/**
* A list of successfully created print servers with their IDs populated.
*
* @param PrintServer[] $printServers
*/
public function setPrintServers($printServers)
{
$this->printServers = $printServers;
}
/**
* @return PrintServer[]
*/
public function getPrintServers()
{
return $this->printServers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePrintServersResponse::class, 'Google_Service_Directory_BatchCreatePrintServersResponse');

View File

@@ -0,0 +1,45 @@
<?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 BatchCreatePrintersRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreatePrinterRequest::class;
protected $requestsDataType = 'array';
/**
* A list of Printers to be created. Max 50 at a time.
*
* @param CreatePrinterRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreatePrinterRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePrintersRequest::class, 'Google_Service_Directory_BatchCreatePrintersRequest');

View File

@@ -0,0 +1,64 @@
<?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 BatchCreatePrintersResponse extends \Google\Collection
{
protected $collection_key = 'printers';
protected $failuresType = FailureInfo::class;
protected $failuresDataType = 'array';
protected $printersType = Printer::class;
protected $printersDataType = 'array';
/**
* A list of create failures. Printer IDs are not populated, as printer were
* not created.
*
* @param FailureInfo[] $failures
*/
public function setFailures($failures)
{
$this->failures = $failures;
}
/**
* @return FailureInfo[]
*/
public function getFailures()
{
return $this->failures;
}
/**
* A list of successfully created printers with their IDs populated.
*
* @param Printer[] $printers
*/
public function setPrinters($printers)
{
$this->printers = $printers;
}
/**
* @return Printer[]
*/
public function getPrinters()
{
return $this->printers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePrintersResponse::class, 'Google_Service_Directory_BatchCreatePrintersResponse');

View File

@@ -0,0 +1,49 @@
<?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 BatchDeletePrintServersRequest extends \Google\Collection
{
protected $collection_key = 'printServerIds';
/**
* A list of print server IDs that should be deleted (max `100` per batch).
*
* @var string[]
*/
public $printServerIds;
/**
* A list of print server IDs that should be deleted (max `100` per batch).
*
* @param string[] $printServerIds
*/
public function setPrintServerIds($printServerIds)
{
$this->printServerIds = $printServerIds;
}
/**
* @return string[]
*/
public function getPrintServerIds()
{
return $this->printServerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePrintServersRequest::class, 'Google_Service_Directory_BatchDeletePrintServersRequest');

View File

@@ -0,0 +1,67 @@
<?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 BatchDeletePrintServersResponse extends \Google\Collection
{
protected $collection_key = 'printServerIds';
protected $failedPrintServersType = PrintServerFailureInfo::class;
protected $failedPrintServersDataType = 'array';
/**
* A list of print server IDs that were successfully deleted.
*
* @var string[]
*/
public $printServerIds;
/**
* A list of update failures.
*
* @param PrintServerFailureInfo[] $failedPrintServers
*/
public function setFailedPrintServers($failedPrintServers)
{
$this->failedPrintServers = $failedPrintServers;
}
/**
* @return PrintServerFailureInfo[]
*/
public function getFailedPrintServers()
{
return $this->failedPrintServers;
}
/**
* A list of print server IDs that were successfully deleted.
*
* @param string[] $printServerIds
*/
public function setPrintServerIds($printServerIds)
{
$this->printServerIds = $printServerIds;
}
/**
* @return string[]
*/
public function getPrintServerIds()
{
return $this->printServerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePrintServersResponse::class, 'Google_Service_Directory_BatchDeletePrintServersResponse');

View File

@@ -0,0 +1,49 @@
<?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 BatchDeletePrintersRequest extends \Google\Collection
{
protected $collection_key = 'printerIds';
/**
* A list of Printer.id that should be deleted. Max 100 at a time.
*
* @var string[]
*/
public $printerIds;
/**
* A list of Printer.id that should be deleted. Max 100 at a time.
*
* @param string[] $printerIds
*/
public function setPrinterIds($printerIds)
{
$this->printerIds = $printerIds;
}
/**
* @return string[]
*/
public function getPrinterIds()
{
return $this->printerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePrintersRequest::class, 'Google_Service_Directory_BatchDeletePrintersRequest');

View File

@@ -0,0 +1,67 @@
<?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 BatchDeletePrintersResponse extends \Google\Collection
{
protected $collection_key = 'printerIds';
protected $failedPrintersType = FailureInfo::class;
protected $failedPrintersDataType = 'array';
/**
* A list of Printer.id that were successfully deleted.
*
* @var string[]
*/
public $printerIds;
/**
* A list of update failures.
*
* @param FailureInfo[] $failedPrinters
*/
public function setFailedPrinters($failedPrinters)
{
$this->failedPrinters = $failedPrinters;
}
/**
* @return FailureInfo[]
*/
public function getFailedPrinters()
{
return $this->failedPrinters;
}
/**
* A list of Printer.id that were successfully deleted.
*
* @param string[] $printerIds
*/
public function setPrinterIds($printerIds)
{
$this->printerIds = $printerIds;
}
/**
* @return string[]
*/
public function getPrinterIds()
{
return $this->printerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePrintersResponse::class, 'Google_Service_Directory_BatchDeletePrintersResponse');

View File

@@ -0,0 +1,70 @@
<?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 BluetoothAdapterInfo extends \Google\Model
{
/**
* Output only. The MAC address of the adapter.
*
* @var string
*/
public $address;
/**
* Output only. The number of devices connected to this adapter.
*
* @var int
*/
public $numConnectedDevices;
/**
* Output only. The MAC address of the adapter.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Output only. The number of devices connected to this adapter.
*
* @param int $numConnectedDevices
*/
public function setNumConnectedDevices($numConnectedDevices)
{
$this->numConnectedDevices = $numConnectedDevices;
}
/**
* @return int
*/
public function getNumConnectedDevices()
{
return $this->numConnectedDevices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BluetoothAdapterInfo::class, 'Google_Service_Directory_BluetoothAdapterInfo');

View File

@@ -0,0 +1,206 @@
<?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 Building extends \Google\Collection
{
protected $collection_key = 'floorNames';
protected $addressType = BuildingAddress::class;
protected $addressDataType = '';
/**
* Unique identifier for the building. The maximum length is 100 characters.
*
* @var string
*/
public $buildingId;
/**
* The building name as seen by users in Calendar. Must be unique for the
* customer. For example, "NYC-CHEL". The maximum length is 100 characters.
*
* @var string
*/
public $buildingName;
protected $coordinatesType = BuildingCoordinates::class;
protected $coordinatesDataType = '';
/**
* A brief description of the building. For example, "Chelsea Market".
*
* @var string
*/
public $description;
/**
* ETag of the resource.
*
* @var string
*/
public $etags;
/**
* The display names for all floors in this building. The floors are expected
* to be sorted in ascending order, from lowest floor to highest floor. For
* example, ["B2", "B1", "L", "1", "2", "2M", "3", "PH"] Must contain at least
* one entry.
*
* @var string[]
*/
public $floorNames;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* The postal address of the building. See [`PostalAddress`](/my-
* business/reference/rest/v4/PostalAddress) for details. Note that only a
* single address line and region code are required.
*
* @param BuildingAddress $address
*/
public function setAddress(BuildingAddress $address)
{
$this->address = $address;
}
/**
* @return BuildingAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* Unique identifier for the building. The maximum length is 100 characters.
*
* @param string $buildingId
*/
public function setBuildingId($buildingId)
{
$this->buildingId = $buildingId;
}
/**
* @return string
*/
public function getBuildingId()
{
return $this->buildingId;
}
/**
* The building name as seen by users in Calendar. Must be unique for the
* customer. For example, "NYC-CHEL". The maximum length is 100 characters.
*
* @param string $buildingName
*/
public function setBuildingName($buildingName)
{
$this->buildingName = $buildingName;
}
/**
* @return string
*/
public function getBuildingName()
{
return $this->buildingName;
}
/**
* The geographic coordinates of the center of the building, expressed as
* latitude and longitude in decimal degrees.
*
* @param BuildingCoordinates $coordinates
*/
public function setCoordinates(BuildingCoordinates $coordinates)
{
$this->coordinates = $coordinates;
}
/**
* @return BuildingCoordinates
*/
public function getCoordinates()
{
return $this->coordinates;
}
/**
* A brief description of the building. For example, "Chelsea Market".
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* ETag of the resource.
*
* @param string $etags
*/
public function setEtags($etags)
{
$this->etags = $etags;
}
/**
* @return string
*/
public function getEtags()
{
return $this->etags;
}
/**
* The display names for all floors in this building. The floors are expected
* to be sorted in ascending order, from lowest floor to highest floor. For
* example, ["B2", "B1", "L", "1", "2", "2M", "3", "PH"] Must contain at least
* one entry.
*
* @param string[] $floorNames
*/
public function setFloorNames($floorNames)
{
$this->floorNames = $floorNames;
}
/**
* @return string[]
*/
public function getFloorNames()
{
return $this->floorNames;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Building::class, 'Google_Service_Directory_Building');

View File

@@ -0,0 +1,189 @@
<?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 BuildingAddress extends \Google\Collection
{
protected $collection_key = 'addressLines';
/**
* Unstructured address lines describing the lower levels of an address.
*
* @var string[]
*/
public $addressLines;
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
*
* @var string
*/
public $administrativeArea;
/**
* Optional. BCP-47 language code of the contents of this address (if known).
*
* @var string
*/
public $languageCode;
/**
* Optional. Generally refers to the city/town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave locality empty and use addressLines.
*
* @var string
*/
public $locality;
/**
* Optional. Postal code of the address.
*
* @var string
*/
public $postalCode;
/**
* Required. CLDR region code of the country/region of the address.
*
* @var string
*/
public $regionCode;
/**
* Optional. Sublocality of the address.
*
* @var string
*/
public $sublocality;
/**
* Unstructured address lines describing the lower levels of an address.
*
* @param string[] $addressLines
*/
public function setAddressLines($addressLines)
{
$this->addressLines = $addressLines;
}
/**
* @return string[]
*/
public function getAddressLines()
{
return $this->addressLines;
}
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
*
* @param string $administrativeArea
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* Optional. BCP-47 language code of the contents of this address (if known).
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Generally refers to the city/town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave locality empty and use addressLines.
*
* @param string $locality
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* Optional. Postal code of the address.
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Required. CLDR region code of the country/region of the address.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* Optional. Sublocality of the address.
*
* @param string $sublocality
*/
public function setSublocality($sublocality)
{
$this->sublocality = $sublocality;
}
/**
* @return string
*/
public function getSublocality()
{
return $this->sublocality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildingAddress::class, 'Google_Service_Directory_BuildingAddress');

View File

@@ -0,0 +1,54 @@
<?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 BuildingCoordinates extends \Google\Model
{
/**
* Latitude in decimal degrees.
*
* @var
*/
public $latitude;
/**
* Longitude in decimal degrees.
*
* @var
*/
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildingCoordinates::class, 'Google_Service_Directory_BuildingCoordinates');

View File

@@ -0,0 +1,113 @@
<?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 Buildings extends \Google\Collection
{
protected $collection_key = 'buildings';
protected $buildingsType = Building::class;
protected $buildingsDataType = 'array';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The Buildings in this page of results.
*
* @param Building[] $buildings
*/
public function setBuildings($buildings)
{
$this->buildings = $buildings;
}
/**
* @return Building[]
*/
public function getBuildings()
{
return $this->buildings;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Buildings::class, 'Google_Service_Directory_Buildings');

View File

@@ -0,0 +1,70 @@
<?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 ByteUsage extends \Google\Model
{
/**
* Output only. The total capacity value, in bytes.
*
* @var string
*/
public $capacityBytes;
/**
* Output only. The current usage value, in bytes.
*
* @var string
*/
public $usedBytes;
/**
* Output only. The total capacity value, in bytes.
*
* @param string $capacityBytes
*/
public function setCapacityBytes($capacityBytes)
{
$this->capacityBytes = $capacityBytes;
}
/**
* @return string
*/
public function getCapacityBytes()
{
return $this->capacityBytes;
}
/**
* Output only. The current usage value, in bytes.
*
* @param string $usedBytes
*/
public function setUsedBytes($usedBytes)
{
$this->usedBytes = $usedBytes;
}
/**
* @return string
*/
public function getUsedBytes()
{
return $this->usedBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ByteUsage::class, 'Google_Service_Directory_ByteUsage');

View File

@@ -0,0 +1,366 @@
<?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 CalendarResource extends \Google\Model
{
/**
* Unique ID for the building a resource is located in.
*
* @var string
*/
public $buildingId;
/**
* Capacity of a resource, number of seats in a room.
*
* @var int
*/
public $capacity;
/**
* ETag of the resource.
*
* @var string
*/
public $etags;
/**
* Instances of features for the calendar resource.
*
* @var array
*/
public $featureInstances;
/**
* Name of the floor a resource is located on.
*
* @var string
*/
public $floorName;
/**
* Name of the section within a floor a resource is located in.
*
* @var string
*/
public $floorSection;
/**
* The read-only auto-generated name of the calendar resource which includes
* metadata about the resource such as building name, floor, capacity, etc.
* For example, "NYC-2-Training Room 1A (16)".
*
* @var string
*/
public $generatedResourceName;
/**
* The type of the resource. For calendar resources, the value is
* `admin#directory#resources#calendars#CalendarResource`.
*
* @var string
*/
public $kind;
/**
* The category of the calendar resource. Either CONFERENCE_ROOM or OTHER.
* Legacy data is set to CATEGORY_UNKNOWN.
*
* @var string
*/
public $resourceCategory;
/**
* Description of the resource, visible only to admins.
*
* @var string
*/
public $resourceDescription;
/**
* The read-only email for the calendar resource. Generated as part of
* creating a new calendar resource.
*
* @var string
*/
public $resourceEmail;
/**
* The unique ID for the calendar resource.
*
* @var string
*/
public $resourceId;
/**
* The name of the calendar resource. For example, "Training Room 1A".
*
* @var string
*/
public $resourceName;
/**
* The type of the calendar resource, intended for non-room resources.
*
* @var string
*/
public $resourceType;
/**
* Description of the resource, visible to users and admins.
*
* @var string
*/
public $userVisibleDescription;
/**
* Unique ID for the building a resource is located in.
*
* @param string $buildingId
*/
public function setBuildingId($buildingId)
{
$this->buildingId = $buildingId;
}
/**
* @return string
*/
public function getBuildingId()
{
return $this->buildingId;
}
/**
* Capacity of a resource, number of seats in a room.
*
* @param int $capacity
*/
public function setCapacity($capacity)
{
$this->capacity = $capacity;
}
/**
* @return int
*/
public function getCapacity()
{
return $this->capacity;
}
/**
* ETag of the resource.
*
* @param string $etags
*/
public function setEtags($etags)
{
$this->etags = $etags;
}
/**
* @return string
*/
public function getEtags()
{
return $this->etags;
}
/**
* Instances of features for the calendar resource.
*
* @param array $featureInstances
*/
public function setFeatureInstances($featureInstances)
{
$this->featureInstances = $featureInstances;
}
/**
* @return array
*/
public function getFeatureInstances()
{
return $this->featureInstances;
}
/**
* Name of the floor a resource is located on.
*
* @param string $floorName
*/
public function setFloorName($floorName)
{
$this->floorName = $floorName;
}
/**
* @return string
*/
public function getFloorName()
{
return $this->floorName;
}
/**
* Name of the section within a floor a resource is located in.
*
* @param string $floorSection
*/
public function setFloorSection($floorSection)
{
$this->floorSection = $floorSection;
}
/**
* @return string
*/
public function getFloorSection()
{
return $this->floorSection;
}
/**
* The read-only auto-generated name of the calendar resource which includes
* metadata about the resource such as building name, floor, capacity, etc.
* For example, "NYC-2-Training Room 1A (16)".
*
* @param string $generatedResourceName
*/
public function setGeneratedResourceName($generatedResourceName)
{
$this->generatedResourceName = $generatedResourceName;
}
/**
* @return string
*/
public function getGeneratedResourceName()
{
return $this->generatedResourceName;
}
/**
* The type of the resource. For calendar resources, the value is
* `admin#directory#resources#calendars#CalendarResource`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The category of the calendar resource. Either CONFERENCE_ROOM or OTHER.
* Legacy data is set to CATEGORY_UNKNOWN.
*
* @param string $resourceCategory
*/
public function setResourceCategory($resourceCategory)
{
$this->resourceCategory = $resourceCategory;
}
/**
* @return string
*/
public function getResourceCategory()
{
return $this->resourceCategory;
}
/**
* Description of the resource, visible only to admins.
*
* @param string $resourceDescription
*/
public function setResourceDescription($resourceDescription)
{
$this->resourceDescription = $resourceDescription;
}
/**
* @return string
*/
public function getResourceDescription()
{
return $this->resourceDescription;
}
/**
* The read-only email for the calendar resource. Generated as part of
* creating a new calendar resource.
*
* @param string $resourceEmail
*/
public function setResourceEmail($resourceEmail)
{
$this->resourceEmail = $resourceEmail;
}
/**
* @return string
*/
public function getResourceEmail()
{
return $this->resourceEmail;
}
/**
* The unique ID for the calendar resource.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The name of the calendar resource. For example, "Training Room 1A".
*
* @param string $resourceName
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* The type of the calendar resource, intended for non-room resources.
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* Description of the resource, visible to users and admins.
*
* @param string $userVisibleDescription
*/
public function setUserVisibleDescription($userVisibleDescription)
{
$this->userVisibleDescription = $userVisibleDescription;
}
/**
* @return string
*/
public function getUserVisibleDescription()
{
return $this->userVisibleDescription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarResource::class, 'Google_Service_Directory_CalendarResource');

View File

@@ -0,0 +1,115 @@
<?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 CalendarResources extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $itemsType = CalendarResource::class;
protected $itemsDataType = 'array';
/**
* Identifies this as a collection of CalendarResources. This is always
* `admin#directory#resources#calendars#calendarResourcesList`.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The CalendarResources in this page of results.
*
* @param CalendarResource[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return CalendarResource[]
*/
public function getItems()
{
return $this->items;
}
/**
* Identifies this as a collection of CalendarResources. This is always
* `admin#directory#resources#calendars#calendarResourcesList`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarResources::class, 'Google_Service_Directory_CalendarResources');

View File

@@ -0,0 +1,84 @@
<?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 ChangeChromeOsDeviceStatusResult extends \Google\Model
{
/**
* The unique ID of the ChromeOS device.
*
* @var string
*/
public $deviceId;
protected $errorType = Status::class;
protected $errorDataType = '';
protected $responseType = ChangeChromeOsDeviceStatusSucceeded::class;
protected $responseDataType = '';
/**
* The unique ID of the ChromeOS device.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* The error result of the operation in case of failure.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* The device could change its status successfully.
*
* @param ChangeChromeOsDeviceStatusSucceeded $response
*/
public function setResponse(ChangeChromeOsDeviceStatusSucceeded $response)
{
$this->response = $response;
}
/**
* @return ChangeChromeOsDeviceStatusSucceeded
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChangeChromeOsDeviceStatusResult::class, 'Google_Service_Directory_ChangeChromeOsDeviceStatusResult');

View File

@@ -0,0 +1,25 @@
<?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 ChangeChromeOsDeviceStatusSucceeded extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChangeChromeOsDeviceStatusSucceeded::class, 'Google_Service_Directory_ChangeChromeOsDeviceStatusSucceeded');

View File

@@ -0,0 +1,260 @@
<?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 Channel extends \Google\Model
{
/**
* The address where notifications are delivered for this channel.
*
* @var string
*/
public $address;
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @var string
*/
public $expiration;
/**
* A UUID or similar unique string that identifies this channel.
*
* @var string
*/
public $id;
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is `api#channel`.
*
* @var string
*/
public $kind;
/**
* Additional parameters controlling delivery channel behavior. Optional. For
* example, `params.ttl` specifies the time-to-live in seconds for the
* notification channel, where the default is 2 hours and the maximum TTL is 2
* days.
*
* @var string[]
*/
public $params;
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @var bool
*/
public $payload;
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @var string
*/
public $resourceId;
/**
* A version-specific identifier for the watched resource.
*
* @var string
*/
public $resourceUri;
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @var string
*/
public $token;
/**
* The type of delivery mechanism used for this channel.
*
* @var string
*/
public $type;
/**
* The address where notifications are delivered for this channel.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @param string $expiration
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* A UUID or similar unique string that identifies this channel.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is `api#channel`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Additional parameters controlling delivery channel behavior. Optional. For
* example, `params.ttl` specifies the time-to-live in seconds for the
* notification channel, where the default is 2 hours and the maximum TTL is 2
* days.
*
* @param string[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @param bool $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* A version-specific identifier for the watched resource.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* The type of delivery mechanism used for this channel.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_Directory_Channel');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,76 @@
<?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 ChromeOsDeviceAction extends \Google\Model
{
/**
* Action to be taken on the Chrome OS device.
*
* @var string
*/
public $action;
/**
* Only used when the action is `deprovision`. With the `deprovision` action,
* this field is required. *Note*: The deprovision reason is audited because
* it might have implications on licenses for perpetual subscription
* customers.
*
* @var string
*/
public $deprovisionReason;
/**
* Action to be taken on the Chrome OS device.
*
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Only used when the action is `deprovision`. With the `deprovision` action,
* this field is required. *Note*: The deprovision reason is audited because
* it might have implications on licenses for perpetual subscription
* customers.
*
* @param string $deprovisionReason
*/
public function setDeprovisionReason($deprovisionReason)
{
$this->deprovisionReason = $deprovisionReason;
}
/**
* @return string
*/
public function getDeprovisionReason()
{
return $this->deprovisionReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceAction::class, 'Google_Service_Directory_ChromeOsDeviceAction');

View File

@@ -0,0 +1,70 @@
<?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 ChromeOsDeviceActiveTimeRanges extends \Google\Model
{
/**
* Duration of usage in milliseconds.
*
* @var int
*/
public $activeTime;
/**
* Date of usage
*
* @var string
*/
public $date;
/**
* Duration of usage in milliseconds.
*
* @param int $activeTime
*/
public function setActiveTime($activeTime)
{
$this->activeTime = $activeTime;
}
/**
* @return int
*/
public function getActiveTime()
{
return $this->activeTime;
}
/**
* Date of usage
*
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}
/**
* @return string
*/
public function getDate()
{
return $this->date;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceActiveTimeRanges::class, 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges');

View File

@@ -0,0 +1,111 @@
<?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 ChromeOsDeviceCpuInfo extends \Google\Collection
{
protected $collection_key = 'logicalCpus';
/**
* The CPU architecture.
*
* @var string
*/
public $architecture;
protected $logicalCpusType = ChromeOsDeviceCpuInfoLogicalCpus::class;
protected $logicalCpusDataType = 'array';
/**
* The max CPU clock speed in kHz.
*
* @var int
*/
public $maxClockSpeedKhz;
/**
* The CPU model name.
*
* @var string
*/
public $model;
/**
* The CPU architecture.
*
* @param string $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* Information for the Logical CPUs
*
* @param ChromeOsDeviceCpuInfoLogicalCpus[] $logicalCpus
*/
public function setLogicalCpus($logicalCpus)
{
$this->logicalCpus = $logicalCpus;
}
/**
* @return ChromeOsDeviceCpuInfoLogicalCpus[]
*/
public function getLogicalCpus()
{
return $this->logicalCpus;
}
/**
* The max CPU clock speed in kHz.
*
* @param int $maxClockSpeedKhz
*/
public function setMaxClockSpeedKhz($maxClockSpeedKhz)
{
$this->maxClockSpeedKhz = $maxClockSpeedKhz;
}
/**
* @return int
*/
public function getMaxClockSpeedKhz()
{
return $this->maxClockSpeedKhz;
}
/**
* The CPU model name.
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceCpuInfo::class, 'Google_Service_Directory_ChromeOsDeviceCpuInfo');

View File

@@ -0,0 +1,112 @@
<?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 ChromeOsDeviceCpuInfoLogicalCpus extends \Google\Collection
{
protected $collection_key = 'cStates';
protected $cStatesType = ChromeOsDeviceCpuInfoLogicalCpusCStates::class;
protected $cStatesDataType = 'array';
/**
* Current frequency the CPU is running at.
*
* @var int
*/
public $currentScalingFrequencyKhz;
/**
* Idle time since last boot.
*
* @var string
*/
public $idleDuration;
/**
* Maximum frequency the CPU is allowed to run at, by policy.
*
* @var int
*/
public $maxScalingFrequencyKhz;
/**
* C-States indicate the power consumption state of the CPU. For more
* information look at documentation published by the CPU maker.
*
* @param ChromeOsDeviceCpuInfoLogicalCpusCStates[] $cStates
*/
public function setCStates($cStates)
{
$this->cStates = $cStates;
}
/**
* @return ChromeOsDeviceCpuInfoLogicalCpusCStates[]
*/
public function getCStates()
{
return $this->cStates;
}
/**
* Current frequency the CPU is running at.
*
* @param int $currentScalingFrequencyKhz
*/
public function setCurrentScalingFrequencyKhz($currentScalingFrequencyKhz)
{
$this->currentScalingFrequencyKhz = $currentScalingFrequencyKhz;
}
/**
* @return int
*/
public function getCurrentScalingFrequencyKhz()
{
return $this->currentScalingFrequencyKhz;
}
/**
* Idle time since last boot.
*
* @param string $idleDuration
*/
public function setIdleDuration($idleDuration)
{
$this->idleDuration = $idleDuration;
}
/**
* @return string
*/
public function getIdleDuration()
{
return $this->idleDuration;
}
/**
* Maximum frequency the CPU is allowed to run at, by policy.
*
* @param int $maxScalingFrequencyKhz
*/
public function setMaxScalingFrequencyKhz($maxScalingFrequencyKhz)
{
$this->maxScalingFrequencyKhz = $maxScalingFrequencyKhz;
}
/**
* @return int
*/
public function getMaxScalingFrequencyKhz()
{
return $this->maxScalingFrequencyKhz;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceCpuInfoLogicalCpus::class, 'Google_Service_Directory_ChromeOsDeviceCpuInfoLogicalCpus');

View File

@@ -0,0 +1,70 @@
<?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 ChromeOsDeviceCpuInfoLogicalCpusCStates extends \Google\Model
{
/**
* Name of the state.
*
* @var string
*/
public $displayName;
/**
* Time spent in the state since the last reboot.
*
* @var string
*/
public $sessionDuration;
/**
* Name of the state.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Time spent in the state since the last reboot.
*
* @param string $sessionDuration
*/
public function setSessionDuration($sessionDuration)
{
$this->sessionDuration = $sessionDuration;
}
/**
* @return string
*/
public function getSessionDuration()
{
return $this->sessionDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceCpuInfoLogicalCpusCStates::class, 'Google_Service_Directory_ChromeOsDeviceCpuInfoLogicalCpusCStates');

View File

@@ -0,0 +1,85 @@
<?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 ChromeOsDeviceCpuStatusReports extends \Google\Collection
{
protected $collection_key = 'cpuUtilizationPercentageInfo';
protected $cpuTemperatureInfoType = ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo::class;
protected $cpuTemperatureInfoDataType = 'array';
/**
* @var int[]
*/
public $cpuUtilizationPercentageInfo;
/**
* Date and time the report was received.
*
* @var string
*/
public $reportTime;
/**
* A list of CPU temperature samples.
*
* @param ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo[] $cpuTemperatureInfo
*/
public function setCpuTemperatureInfo($cpuTemperatureInfo)
{
$this->cpuTemperatureInfo = $cpuTemperatureInfo;
}
/**
* @return ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo[]
*/
public function getCpuTemperatureInfo()
{
return $this->cpuTemperatureInfo;
}
/**
* @param int[] $cpuUtilizationPercentageInfo
*/
public function setCpuUtilizationPercentageInfo($cpuUtilizationPercentageInfo)
{
$this->cpuUtilizationPercentageInfo = $cpuUtilizationPercentageInfo;
}
/**
* @return int[]
*/
public function getCpuUtilizationPercentageInfo()
{
return $this->cpuUtilizationPercentageInfo;
}
/**
* Date and time the report was received.
*
* @param string $reportTime
*/
public function setReportTime($reportTime)
{
$this->reportTime = $reportTime;
}
/**
* @return string
*/
public function getReportTime()
{
return $this->reportTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceCpuStatusReports::class, 'Google_Service_Directory_ChromeOsDeviceCpuStatusReports');

View File

@@ -0,0 +1,70 @@
<?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 ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo extends \Google\Model
{
/**
* CPU label
*
* @var string
*/
public $label;
/**
* Temperature in Celsius degrees.
*
* @var int
*/
public $temperature;
/**
* CPU label
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* Temperature in Celsius degrees.
*
* @param int $temperature
*/
public function setTemperature($temperature)
{
$this->temperature = $temperature;
}
/**
* @return int
*/
public function getTemperature()
{
return $this->temperature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo::class, 'Google_Service_Directory_ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo');

View File

@@ -0,0 +1,114 @@
<?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 ChromeOsDeviceDeviceFiles extends \Google\Model
{
/**
* Date and time the file was created
*
* @var string
*/
public $createTime;
/**
* File download URL
*
* @var string
*/
public $downloadUrl;
/**
* File name
*
* @var string
*/
public $name;
/**
* File type
*
* @var string
*/
public $type;
/**
* Date and time the file was created
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* File download URL
*
* @param string $downloadUrl
*/
public function setDownloadUrl($downloadUrl)
{
$this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
public function getDownloadUrl()
{
return $this->downloadUrl;
}
/**
* File name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* File type
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceDeviceFiles::class, 'Google_Service_Directory_ChromeOsDeviceDeviceFiles');

View File

@@ -0,0 +1,45 @@
<?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 ChromeOsDeviceDiskVolumeReports extends \Google\Collection
{
protected $collection_key = 'volumeInfo';
protected $volumeInfoType = ChromeOsDeviceDiskVolumeReportsVolumeInfo::class;
protected $volumeInfoDataType = 'array';
/**
* Disk volumes
*
* @param ChromeOsDeviceDiskVolumeReportsVolumeInfo[] $volumeInfo
*/
public function setVolumeInfo($volumeInfo)
{
$this->volumeInfo = $volumeInfo;
}
/**
* @return ChromeOsDeviceDiskVolumeReportsVolumeInfo[]
*/
public function getVolumeInfo()
{
return $this->volumeInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceDiskVolumeReports::class, 'Google_Service_Directory_ChromeOsDeviceDiskVolumeReports');

View File

@@ -0,0 +1,92 @@
<?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 ChromeOsDeviceDiskVolumeReportsVolumeInfo extends \Google\Model
{
/**
* Free disk space [in bytes]
*
* @var string
*/
public $storageFree;
/**
* Total disk space [in bytes]
*
* @var string
*/
public $storageTotal;
/**
* Volume id
*
* @var string
*/
public $volumeId;
/**
* Free disk space [in bytes]
*
* @param string $storageFree
*/
public function setStorageFree($storageFree)
{
$this->storageFree = $storageFree;
}
/**
* @return string
*/
public function getStorageFree()
{
return $this->storageFree;
}
/**
* Total disk space [in bytes]
*
* @param string $storageTotal
*/
public function setStorageTotal($storageTotal)
{
$this->storageTotal = $storageTotal;
}
/**
* @return string
*/
public function getStorageTotal()
{
return $this->storageTotal;
}
/**
* Volume id
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceDiskVolumeReportsVolumeInfo::class, 'Google_Service_Directory_ChromeOsDeviceDiskVolumeReportsVolumeInfo');

View File

@@ -0,0 +1,70 @@
<?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 ChromeOsDeviceLastKnownNetwork extends \Google\Model
{
/**
* The IP address.
*
* @var string
*/
public $ipAddress;
/**
* The WAN IP address.
*
* @var string
*/
public $wanIpAddress;
/**
* The IP address.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* The WAN IP address.
*
* @param string $wanIpAddress
*/
public function setWanIpAddress($wanIpAddress)
{
$this->wanIpAddress = $wanIpAddress;
}
/**
* @return string
*/
public function getWanIpAddress()
{
return $this->wanIpAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceLastKnownNetwork::class, 'Google_Service_Directory_ChromeOsDeviceLastKnownNetwork');

View File

@@ -0,0 +1,72 @@
<?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 ChromeOsDeviceRecentUsers extends \Google\Model
{
/**
* The user's email address. This is only present if the user type is
* `USER_TYPE_MANAGED`.
*
* @var string
*/
public $email;
/**
* The type of the user.
*
* @var string
*/
public $type;
/**
* The user's email address. This is only present if the user type is
* `USER_TYPE_MANAGED`.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The type of the user.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceRecentUsers::class, 'Google_Service_Directory_ChromeOsDeviceRecentUsers');

View File

@@ -0,0 +1,114 @@
<?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 ChromeOsDeviceScreenshotFiles extends \Google\Model
{
/**
* Date and time the file was created
*
* @var string
*/
public $createTime;
/**
* File download URL
*
* @var string
*/
public $downloadUrl;
/**
* File name
*
* @var string
*/
public $name;
/**
* File type
*
* @var string
*/
public $type;
/**
* Date and time the file was created
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* File download URL
*
* @param string $downloadUrl
*/
public function setDownloadUrl($downloadUrl)
{
$this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
public function getDownloadUrl()
{
return $this->downloadUrl;
}
/**
* File name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* File type
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceScreenshotFiles::class, 'Google_Service_Directory_ChromeOsDeviceScreenshotFiles');

View File

@@ -0,0 +1,67 @@
<?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 ChromeOsDeviceSystemRamFreeReports extends \Google\Collection
{
protected $collection_key = 'systemRamFreeInfo';
/**
* Date and time the report was received.
*
* @var string
*/
public $reportTime;
/**
* @var string[]
*/
public $systemRamFreeInfo;
/**
* Date and time the report was received.
*
* @param string $reportTime
*/
public function setReportTime($reportTime)
{
$this->reportTime = $reportTime;
}
/**
* @return string
*/
public function getReportTime()
{
return $this->reportTime;
}
/**
* @param string[] $systemRamFreeInfo
*/
public function setSystemRamFreeInfo($systemRamFreeInfo)
{
$this->systemRamFreeInfo = $systemRamFreeInfo;
}
/**
* @return string[]
*/
public function getSystemRamFreeInfo()
{
return $this->systemRamFreeInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceSystemRamFreeReports::class, 'Google_Service_Directory_ChromeOsDeviceSystemRamFreeReports');

View File

@@ -0,0 +1,162 @@
<?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 ChromeOsDeviceTpmVersionInfo extends \Google\Model
{
/**
* TPM family. We use the TPM 2.0 style encoding, e.g.: TPM 1.2: "1.2" ->
* 312e3200 TPM 2.0: "2.0" -> 322e3000
*
* @var string
*/
public $family;
/**
* TPM firmware version.
*
* @var string
*/
public $firmwareVersion;
/**
* TPM manufacturer code.
*
* @var string
*/
public $manufacturer;
/**
* TPM specification level. See Library Specification for TPM 2.0 and Main
* Specification for TPM 1.2.
*
* @var string
*/
public $specLevel;
/**
* TPM model number.
*
* @var string
*/
public $tpmModel;
/**
* Vendor-specific information such as Vendor ID.
*
* @var string
*/
public $vendorSpecific;
/**
* TPM family. We use the TPM 2.0 style encoding, e.g.: TPM 1.2: "1.2" ->
* 312e3200 TPM 2.0: "2.0" -> 322e3000
*
* @param string $family
*/
public function setFamily($family)
{
$this->family = $family;
}
/**
* @return string
*/
public function getFamily()
{
return $this->family;
}
/**
* TPM firmware version.
*
* @param string $firmwareVersion
*/
public function setFirmwareVersion($firmwareVersion)
{
$this->firmwareVersion = $firmwareVersion;
}
/**
* @return string
*/
public function getFirmwareVersion()
{
return $this->firmwareVersion;
}
/**
* TPM manufacturer code.
*
* @param string $manufacturer
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* TPM specification level. See Library Specification for TPM 2.0 and Main
* Specification for TPM 1.2.
*
* @param string $specLevel
*/
public function setSpecLevel($specLevel)
{
$this->specLevel = $specLevel;
}
/**
* @return string
*/
public function getSpecLevel()
{
return $this->specLevel;
}
/**
* TPM model number.
*
* @param string $tpmModel
*/
public function setTpmModel($tpmModel)
{
$this->tpmModel = $tpmModel;
}
/**
* @return string
*/
public function getTpmModel()
{
return $this->tpmModel;
}
/**
* Vendor-specific information such as Vendor ID.
*
* @param string $vendorSpecific
*/
public function setVendorSpecific($vendorSpecific)
{
$this->vendorSpecific = $vendorSpecific;
}
/**
* @return string
*/
public function getVendorSpecific()
{
return $this->vendorSpecific;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDeviceTpmVersionInfo::class, 'Google_Service_Directory_ChromeOsDeviceTpmVersionInfo');

View File

@@ -0,0 +1,113 @@
<?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 ChromeOsDevices extends \Google\Collection
{
protected $collection_key = 'chromeosdevices';
protected $chromeosdevicesType = ChromeOsDevice::class;
protected $chromeosdevicesDataType = 'array';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* Token used to access the next page of this result. To access the next page,
* use this token's value in the `pageToken` query string of this request.
*
* @var string
*/
public $nextPageToken;
/**
* A list of Chrome OS Device objects.
*
* @param ChromeOsDevice[] $chromeosdevices
*/
public function setChromeosdevices($chromeosdevices)
{
$this->chromeosdevices = $chromeosdevices;
}
/**
* @return ChromeOsDevice[]
*/
public function getChromeosdevices()
{
return $this->chromeosdevices;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access the next page of this result. To access the next page,
* use this token's value in the `pageToken` query string of this request.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsDevices::class, 'Google_Service_Directory_ChromeOsDevices');

View File

@@ -0,0 +1,49 @@
<?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 ChromeOsMoveDevicesToOu extends \Google\Collection
{
protected $collection_key = 'deviceIds';
/**
* Chrome OS devices to be moved to OU
*
* @var string[]
*/
public $deviceIds;
/**
* Chrome OS devices to be moved to OU
*
* @param string[] $deviceIds
*/
public function setDeviceIds($deviceIds)
{
$this->deviceIds = $deviceIds;
}
/**
* @return string[]
*/
public function getDeviceIds()
{
return $this->deviceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChromeOsMoveDevicesToOu::class, 'Google_Service_Directory_ChromeOsMoveDevicesToOu');

View File

@@ -0,0 +1,74 @@
<?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 CreatePrintServerRequest extends \Google\Model
{
/**
* Required. The [unique ID](https://developers.google.com/workspace/admin/dir
* ectory/reference/rest/v1/customers) of the customer's Google Workspace
* account. Format: `customers/{id}`
*
* @var string
*/
public $parent;
protected $printServerType = PrintServer::class;
protected $printServerDataType = '';
/**
* Required. The [unique ID](https://developers.google.com/workspace/admin/dir
* ectory/reference/rest/v1/customers) of the customer's Google Workspace
* account. Format: `customers/{id}`
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. A print server to create. If you want to place the print server
* under a specific organizational unit (OU), then populate the `org_unit_id`.
* Otherwise the print server is created under the root OU. The `org_unit_id`
* can be retrieved using the [Directory API](https://developers.google.com/wo
* rkspace/admin/directory/v1/guides/manage-org-units).
*
* @param PrintServer $printServer
*/
public function setPrintServer(PrintServer $printServer)
{
$this->printServer = $printServer;
}
/**
* @return PrintServer
*/
public function getPrintServer()
{
return $this->printServer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatePrintServerRequest::class, 'Google_Service_Directory_CreatePrintServerRequest');

View File

@@ -0,0 +1,68 @@
<?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 CreatePrinterRequest extends \Google\Model
{
/**
* Required. The name of the customer. Format: customers/{customer_id}
*
* @var string
*/
public $parent;
protected $printerType = Printer::class;
protected $printerDataType = '';
/**
* Required. The name of the customer. Format: customers/{customer_id}
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. A printer to create. If you want to place the printer under
* particular OU then populate printer.org_unit_id filed. Otherwise the
* printer will be placed under root OU.
*
* @param Printer $printer
*/
public function setPrinter(Printer $printer)
{
$this->printer = $printer;
}
/**
* @return Printer
*/
public function getPrinter()
{
return $this->printer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatePrinterRequest::class, 'Google_Service_Directory_CreatePrinterRequest');

View File

@@ -0,0 +1,234 @@
<?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 Customer extends \Google\Model
{
/**
* The customer's secondary contact email address. This email address cannot
* be on the same domain as the `customerDomain`
*
* @var string
*/
public $alternateEmail;
/**
* The customer's creation time (Readonly)
*
* @var string
*/
public $customerCreationTime;
/**
* The customer's primary domain name string. Do not include the `www` prefix
* when creating a new customer.
*
* @var string
*/
public $customerDomain;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The unique ID for the customer's Google Workspace account. (Readonly)
*
* @var string
*/
public $id;
/**
* Identifies the resource as a customer. Value: `admin#directory#customer`
*
* @var string
*/
public $kind;
/**
* The customer's ISO 639-2 language code. See the [Language Codes](https://de
* velopers.google.com/workspace/admin/directory/v1/languages) page for the
* list of supported codes. Valid language codes outside the supported set
* will be accepted by the API but may lead to unexpected behavior. The
* default value is `en`.
*
* @var string
*/
public $language;
/**
* The customer's contact phone number in
* [E.164](https://en.wikipedia.org/wiki/E.164) format.
*
* @var string
*/
public $phoneNumber;
protected $postalAddressType = CustomerPostalAddress::class;
protected $postalAddressDataType = '';
/**
* The customer's secondary contact email address. This email address cannot
* be on the same domain as the `customerDomain`
*
* @param string $alternateEmail
*/
public function setAlternateEmail($alternateEmail)
{
$this->alternateEmail = $alternateEmail;
}
/**
* @return string
*/
public function getAlternateEmail()
{
return $this->alternateEmail;
}
/**
* The customer's creation time (Readonly)
*
* @param string $customerCreationTime
*/
public function setCustomerCreationTime($customerCreationTime)
{
$this->customerCreationTime = $customerCreationTime;
}
/**
* @return string
*/
public function getCustomerCreationTime()
{
return $this->customerCreationTime;
}
/**
* The customer's primary domain name string. Do not include the `www` prefix
* when creating a new customer.
*
* @param string $customerDomain
*/
public function setCustomerDomain($customerDomain)
{
$this->customerDomain = $customerDomain;
}
/**
* @return string
*/
public function getCustomerDomain()
{
return $this->customerDomain;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The unique ID for the customer's Google Workspace account. (Readonly)
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies the resource as a customer. Value: `admin#directory#customer`
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The customer's ISO 639-2 language code. See the [Language Codes](https://de
* velopers.google.com/workspace/admin/directory/v1/languages) page for the
* list of supported codes. Valid language codes outside the supported set
* will be accepted by the API but may lead to unexpected behavior. The
* default value is `en`.
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* The customer's contact phone number in
* [E.164](https://en.wikipedia.org/wiki/E.164) format.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* The customer's postal address information.
*
* @param CustomerPostalAddress $postalAddress
*/
public function setPostalAddress(CustomerPostalAddress $postalAddress)
{
$this->postalAddress = $postalAddress;
}
/**
* @return CustomerPostalAddress
*/
public function getPostalAddress()
{
return $this->postalAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customer::class, 'Google_Service_Directory_Customer');

View File

@@ -0,0 +1,236 @@
<?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 CustomerPostalAddress extends \Google\Model
{
/**
* A customer's physical address. The address can be composed of one to three
* lines.
*
* @var string
*/
public $addressLine1;
/**
* Address line 2 of the address.
*
* @var string
*/
public $addressLine2;
/**
* Address line 3 of the address.
*
* @var string
*/
public $addressLine3;
/**
* The customer contact's name.
*
* @var string
*/
public $contactName;
/**
* This is a required property. For `countryCode` information see the [ISO
* 3166 country code elements](https://www.iso.org/iso/country_codes.htm).
*
* @var string
*/
public $countryCode;
/**
* Name of the locality. An example of a locality value is the city of `San
* Francisco`.
*
* @var string
*/
public $locality;
/**
* The company or company division name.
*
* @var string
*/
public $organizationName;
/**
* The postal code. A postalCode example is a postal zip code such as `10009`.
* This is in accordance with - http: //portablecontacts.net/draft-
* spec.html#address_element.
*
* @var string
*/
public $postalCode;
/**
* Name of the region. An example of a region value is `NY` for the state of
* New York.
*
* @var string
*/
public $region;
/**
* A customer's physical address. The address can be composed of one to three
* lines.
*
* @param string $addressLine1
*/
public function setAddressLine1($addressLine1)
{
$this->addressLine1 = $addressLine1;
}
/**
* @return string
*/
public function getAddressLine1()
{
return $this->addressLine1;
}
/**
* Address line 2 of the address.
*
* @param string $addressLine2
*/
public function setAddressLine2($addressLine2)
{
$this->addressLine2 = $addressLine2;
}
/**
* @return string
*/
public function getAddressLine2()
{
return $this->addressLine2;
}
/**
* Address line 3 of the address.
*
* @param string $addressLine3
*/
public function setAddressLine3($addressLine3)
{
$this->addressLine3 = $addressLine3;
}
/**
* @return string
*/
public function getAddressLine3()
{
return $this->addressLine3;
}
/**
* The customer contact's name.
*
* @param string $contactName
*/
public function setContactName($contactName)
{
$this->contactName = $contactName;
}
/**
* @return string
*/
public function getContactName()
{
return $this->contactName;
}
/**
* This is a required property. For `countryCode` information see the [ISO
* 3166 country code elements](https://www.iso.org/iso/country_codes.htm).
*
* @param string $countryCode
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Name of the locality. An example of a locality value is the city of `San
* Francisco`.
*
* @param string $locality
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* The company or company division name.
*
* @param string $organizationName
*/
public function setOrganizationName($organizationName)
{
$this->organizationName = $organizationName;
}
/**
* @return string
*/
public function getOrganizationName()
{
return $this->organizationName;
}
/**
* The postal code. A postalCode example is a postal zip code such as `10009`.
* This is in accordance with - http: //portablecontacts.net/draft-
* spec.html#address_element.
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Name of the region. An example of a region value is `NY` for the state of
* New York.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerPostalAddress::class, 'Google_Service_Directory_CustomerPostalAddress');

View File

@@ -0,0 +1,270 @@
<?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 DirectoryChromeosdevicesCommand extends \Google\Model
{
/**
* The command status was unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* An unexpired command not yet sent to the client.
*/
public const STATE_PENDING = 'PENDING';
/**
* The command didn't get executed by the client within the expected time.
*/
public const STATE_EXPIRED = 'EXPIRED';
/**
* The command is cancelled by admin while in PENDING.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The command has been sent to the client.
*/
public const STATE_SENT_TO_CLIENT = 'SENT_TO_CLIENT';
/**
* The client has responded that it received the command.
*/
public const STATE_ACKED_BY_CLIENT = 'ACKED_BY_CLIENT';
/**
* The client has (un)successfully executed the command.
*/
public const STATE_EXECUTED_BY_CLIENT = 'EXECUTED_BY_CLIENT';
/**
* The command type was unspecified.
*/
public const TYPE_COMMAND_TYPE_UNSPECIFIED = 'COMMAND_TYPE_UNSPECIFIED';
/**
* Reboot the device. Can be issued to Kiosk and managed guest session
* devices, and regular devices running ChromeOS version 113 or later.
*/
public const TYPE_REBOOT = 'REBOOT';
/**
* Take a screenshot of the device. Only available if the device is in Kiosk
* Mode.
*/
public const TYPE_TAKE_A_SCREENSHOT = 'TAKE_A_SCREENSHOT';
/**
* Set the volume of the device. Can only be issued to Kiosk and managed guest
* session devices.
*/
public const TYPE_SET_VOLUME = 'SET_VOLUME';
/**
* Wipe all the users off of the device. Executing this command in the device
* will remove all user profile data, but it will keep device policy and
* enrollment.
*/
public const TYPE_WIPE_USERS = 'WIPE_USERS';
/**
* Wipes the device by performing a power wash. Executing this command in the
* device will remove all data including user policies, device policies and
* enrollment policies. Warning: This will revert the device back to a factory
* state with no enrollment unless the device is subject to forced or auto
* enrollment. Use with caution, as this is an irreversible action!
*/
public const TYPE_REMOTE_POWERWASH = 'REMOTE_POWERWASH';
/**
* Starts a Chrome Remote Desktop session.
*/
public const TYPE_DEVICE_START_CRD_SESSION = 'DEVICE_START_CRD_SESSION';
/**
* Capture the system logs of a kiosk device. The logs can be downloaded from
* the downloadUrl link present in `deviceFiles` field of [chromeosdevices](ht
* tps://developers.google.com/workspace/admin/directory/reference/rest/v1/chr
* omeosdevices)
*/
public const TYPE_CAPTURE_LOGS = 'CAPTURE_LOGS';
/**
* Fetches available type(s) of Chrome Remote Desktop sessions (private or
* shared) that can be used to remotely connect to the device.
*/
public const TYPE_FETCH_CRD_AVAILABILITY_INFO = 'FETCH_CRD_AVAILABILITY_INFO';
/**
* Fetch support packet from a device remotely. Support packet is a zip
* archive that contains various system logs and debug data from a ChromeOS
* device. The support packet can be downloaded from the downloadURL link
* present in the `deviceFiles` field of [`chromeosdevices`](https://developer
* s.google.com/workspace/admin/directory/reference/rest/v1/chromeosdevices)
*/
public const TYPE_FETCH_SUPPORT_PACKET = 'FETCH_SUPPORT_PACKET';
/**
* The time at which the command will expire. If the device doesn't execute
* the command within this time the command will become expired.
*
* @var string
*/
public $commandExpireTime;
/**
* Unique ID of a device command.
*
* @var string
*/
public $commandId;
protected $commandResultType = DirectoryChromeosdevicesCommandResult::class;
protected $commandResultDataType = '';
/**
* The timestamp when the command was issued by the admin.
*
* @var string
*/
public $issueTime;
/**
* The payload that the command specified, if any.
*
* @var string
*/
public $payload;
/**
* Indicates the command state.
*
* @var string
*/
public $state;
/**
* The type of the command.
*
* @var string
*/
public $type;
/**
* The time at which the command will expire. If the device doesn't execute
* the command within this time the command will become expired.
*
* @param string $commandExpireTime
*/
public function setCommandExpireTime($commandExpireTime)
{
$this->commandExpireTime = $commandExpireTime;
}
/**
* @return string
*/
public function getCommandExpireTime()
{
return $this->commandExpireTime;
}
/**
* Unique ID of a device command.
*
* @param string $commandId
*/
public function setCommandId($commandId)
{
$this->commandId = $commandId;
}
/**
* @return string
*/
public function getCommandId()
{
return $this->commandId;
}
/**
* The result of the command execution.
*
* @param DirectoryChromeosdevicesCommandResult $commandResult
*/
public function setCommandResult(DirectoryChromeosdevicesCommandResult $commandResult)
{
$this->commandResult = $commandResult;
}
/**
* @return DirectoryChromeosdevicesCommandResult
*/
public function getCommandResult()
{
return $this->commandResult;
}
/**
* The timestamp when the command was issued by the admin.
*
* @param string $issueTime
*/
public function setIssueTime($issueTime)
{
$this->issueTime = $issueTime;
}
/**
* @return string
*/
public function getIssueTime()
{
return $this->issueTime;
}
/**
* The payload that the command specified, if any.
*
* @param string $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* Indicates the command state.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, EXPIRED, CANCELLED,
* SENT_TO_CLIENT, ACKED_BY_CLIENT, EXECUTED_BY_CLIENT
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The type of the command.
*
* Accepted values: COMMAND_TYPE_UNSPECIFIED, REBOOT, TAKE_A_SCREENSHOT,
* SET_VOLUME, WIPE_USERS, REMOTE_POWERWASH, DEVICE_START_CRD_SESSION,
* CAPTURE_LOGS, FETCH_CRD_AVAILABILITY_INFO, FETCH_SUPPORT_PACKET
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectoryChromeosdevicesCommand::class, 'Google_Service_Directory_DirectoryChromeosdevicesCommand');

View File

@@ -0,0 +1,154 @@
<?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 DirectoryChromeosdevicesCommandResult extends \Google\Model
{
/**
* The command result was unspecified.
*/
public const RESULT_COMMAND_RESULT_TYPE_UNSPECIFIED = 'COMMAND_RESULT_TYPE_UNSPECIFIED';
/**
* The command was ignored as obsolete.
*/
public const RESULT_IGNORED = 'IGNORED';
/**
* The command could not be executed successfully.
*/
public const RESULT_FAILURE = 'FAILURE';
/**
* The command was successfully executed.
*/
public const RESULT_SUCCESS = 'SUCCESS';
/**
* The payload for the command result. The following commands respond with a
* payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object
* in the form: { "url": url }. The provided URL links to the Chrome Remote
* Desktop session and requires authentication using only the `email`
* associated with the command's issuance. * `FETCH_CRD_AVAILABILITY_INFO`:
* Payload is a stringified JSON object in the form: {
* "deviceIdleTimeInSeconds": number, "userSessionType": string,
* "remoteSupportAvailability": string, "remoteAccessAvailability": string }.
* The "remoteSupportAvailability" field is set to "AVAILABLE" if `shared` CRD
* session to the device is available. The "remoteAccessAvailability" field is
* set to "AVAILABLE" if `private` CRD session to the device is available.
*
* @var string
*/
public $commandResultPayload;
/**
* The error message with a short explanation as to why the command failed.
* Only present if the command failed.
*
* @var string
*/
public $errorMessage;
/**
* The time at which the command was executed or failed to execute.
*
* @var string
*/
public $executeTime;
/**
* The result of the command.
*
* @var string
*/
public $result;
/**
* The payload for the command result. The following commands respond with a
* payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object
* in the form: { "url": url }. The provided URL links to the Chrome Remote
* Desktop session and requires authentication using only the `email`
* associated with the command's issuance. * `FETCH_CRD_AVAILABILITY_INFO`:
* Payload is a stringified JSON object in the form: {
* "deviceIdleTimeInSeconds": number, "userSessionType": string,
* "remoteSupportAvailability": string, "remoteAccessAvailability": string }.
* The "remoteSupportAvailability" field is set to "AVAILABLE" if `shared` CRD
* session to the device is available. The "remoteAccessAvailability" field is
* set to "AVAILABLE" if `private` CRD session to the device is available.
*
* @param string $commandResultPayload
*/
public function setCommandResultPayload($commandResultPayload)
{
$this->commandResultPayload = $commandResultPayload;
}
/**
* @return string
*/
public function getCommandResultPayload()
{
return $this->commandResultPayload;
}
/**
* The error message with a short explanation as to why the command failed.
* Only present if the command failed.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* The time at which the command was executed or failed to execute.
*
* @param string $executeTime
*/
public function setExecuteTime($executeTime)
{
$this->executeTime = $executeTime;
}
/**
* @return string
*/
public function getExecuteTime()
{
return $this->executeTime;
}
/**
* The result of the command.
*
* Accepted values: COMMAND_RESULT_TYPE_UNSPECIFIED, IGNORED, FAILURE, SUCCESS
*
* @param self::RESULT_* $result
*/
public function setResult($result)
{
$this->result = $result;
}
/**
* @return self::RESULT_*
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectoryChromeosdevicesCommandResult::class, 'Google_Service_Directory_DirectoryChromeosdevicesCommandResult');

View File

@@ -0,0 +1,201 @@
<?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 DirectoryChromeosdevicesIssueCommandRequest extends \Google\Model
{
/**
* The command type was unspecified.
*/
public const COMMAND_TYPE_COMMAND_TYPE_UNSPECIFIED = 'COMMAND_TYPE_UNSPECIFIED';
/**
* Reboot the device. Can be issued to Kiosk and managed guest session
* devices, and regular devices running ChromeOS version 113 or later.
*/
public const COMMAND_TYPE_REBOOT = 'REBOOT';
/**
* Take a screenshot of the device. Only available if the device is in Kiosk
* Mode.
*/
public const COMMAND_TYPE_TAKE_A_SCREENSHOT = 'TAKE_A_SCREENSHOT';
/**
* Set the volume of the device. Can only be issued to Kiosk and managed guest
* session devices.
*/
public const COMMAND_TYPE_SET_VOLUME = 'SET_VOLUME';
/**
* Wipe all the users off of the device. Executing this command in the device
* will remove all user profile data, but it will keep device policy and
* enrollment.
*/
public const COMMAND_TYPE_WIPE_USERS = 'WIPE_USERS';
/**
* Wipes the device by performing a power wash. Executing this command in the
* device will remove all data including user policies, device policies and
* enrollment policies. Warning: This will revert the device back to a factory
* state with no enrollment unless the device is subject to forced or auto
* enrollment. Use with caution, as this is an irreversible action!
*/
public const COMMAND_TYPE_REMOTE_POWERWASH = 'REMOTE_POWERWASH';
/**
* Starts a Chrome Remote Desktop session.
*/
public const COMMAND_TYPE_DEVICE_START_CRD_SESSION = 'DEVICE_START_CRD_SESSION';
/**
* Capture the system logs of a kiosk device. The logs can be downloaded from
* the downloadUrl link present in `deviceFiles` field of [chromeosdevices](ht
* tps://developers.google.com/workspace/admin/directory/reference/rest/v1/chr
* omeosdevices)
*/
public const COMMAND_TYPE_CAPTURE_LOGS = 'CAPTURE_LOGS';
/**
* Fetches available type(s) of Chrome Remote Desktop sessions (private or
* shared) that can be used to remotely connect to the device.
*/
public const COMMAND_TYPE_FETCH_CRD_AVAILABILITY_INFO = 'FETCH_CRD_AVAILABILITY_INFO';
/**
* Fetch support packet from a device remotely. Support packet is a zip
* archive that contains various system logs and debug data from a ChromeOS
* device. The support packet can be downloaded from the downloadURL link
* present in the `deviceFiles` field of [`chromeosdevices`](https://developer
* s.google.com/workspace/admin/directory/reference/rest/v1/chromeosdevices)
*/
public const COMMAND_TYPE_FETCH_SUPPORT_PACKET = 'FETCH_SUPPORT_PACKET';
/**
* The type of command.
*
* @var string
*/
public $commandType;
/**
* The payload for the command, provide it only if command supports it. The
* following commands support adding payload: * `SET_VOLUME`: Payload is a
* stringified JSON object in the form: { "volume": 50 }. The volume has to be
* an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is
* optionally a stringified JSON object in the form: { "ackedUserPresence":
* true, "crdSessionType": string }. `ackedUserPresence` is a boolean. By
* default, `ackedUserPresence` is set to `false`. To start a Chrome Remote
* Desktop session for an active device, set `ackedUserPresence` to `true`.
* `crdSessionType` can only select from values `private` (which grants the
* remote admin exclusive control of the ChromeOS device) or `shared` (which
* allows the admin and the local user to share control of the ChromeOS
* device). If not set, `crdSessionType` defaults to `shared`. The
* `FETCH_CRD_AVAILABILITY_INFO` command can be used to determine available
* session types on the device. * `REBOOT`: Payload is a stringified JSON
* object in the form: { "user_session_delay_seconds": 300 }. The
* `user_session_delay_seconds` is the amount of seconds to wait before
* rebooting the device if a user is logged in. It has to be an integer in the
* range [0,300]. When payload is not present for reboot, 0 delay is the
* default. Note: This only applies if an actual user is logged in, including
* a Guest. If the device is in the login screen or in Kiosk mode the value is
* not respected and the device immediately reboots. * `FETCH_SUPPORT_PACKET`:
* Payload is optionally a stringified JSON object in the form:
* {"supportPacketDetails":{ "issueCaseId": optional_support_case_id_string,
* "issueDescription": optional_issue_description_string,
* "requestedDataCollectors": []}} The list of available
* `data_collector_enums` are as following: Chrome System Information (1),
* Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS
* Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch
* Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs
* (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill
* (Connection Manager) Logs (14), Policies (15), ChromeOS System State and
* Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18),
* ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS
* Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network
* Health (23). See more details in [help
* article](https://support.google.com/chrome/a?p=remote-log).
*
* @var string
*/
public $payload;
/**
* The type of command.
*
* Accepted values: COMMAND_TYPE_UNSPECIFIED, REBOOT, TAKE_A_SCREENSHOT,
* SET_VOLUME, WIPE_USERS, REMOTE_POWERWASH, DEVICE_START_CRD_SESSION,
* CAPTURE_LOGS, FETCH_CRD_AVAILABILITY_INFO, FETCH_SUPPORT_PACKET
*
* @param self::COMMAND_TYPE_* $commandType
*/
public function setCommandType($commandType)
{
$this->commandType = $commandType;
}
/**
* @return self::COMMAND_TYPE_*
*/
public function getCommandType()
{
return $this->commandType;
}
/**
* The payload for the command, provide it only if command supports it. The
* following commands support adding payload: * `SET_VOLUME`: Payload is a
* stringified JSON object in the form: { "volume": 50 }. The volume has to be
* an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is
* optionally a stringified JSON object in the form: { "ackedUserPresence":
* true, "crdSessionType": string }. `ackedUserPresence` is a boolean. By
* default, `ackedUserPresence` is set to `false`. To start a Chrome Remote
* Desktop session for an active device, set `ackedUserPresence` to `true`.
* `crdSessionType` can only select from values `private` (which grants the
* remote admin exclusive control of the ChromeOS device) or `shared` (which
* allows the admin and the local user to share control of the ChromeOS
* device). If not set, `crdSessionType` defaults to `shared`. The
* `FETCH_CRD_AVAILABILITY_INFO` command can be used to determine available
* session types on the device. * `REBOOT`: Payload is a stringified JSON
* object in the form: { "user_session_delay_seconds": 300 }. The
* `user_session_delay_seconds` is the amount of seconds to wait before
* rebooting the device if a user is logged in. It has to be an integer in the
* range [0,300]. When payload is not present for reboot, 0 delay is the
* default. Note: This only applies if an actual user is logged in, including
* a Guest. If the device is in the login screen or in Kiosk mode the value is
* not respected and the device immediately reboots. * `FETCH_SUPPORT_PACKET`:
* Payload is optionally a stringified JSON object in the form:
* {"supportPacketDetails":{ "issueCaseId": optional_support_case_id_string,
* "issueDescription": optional_issue_description_string,
* "requestedDataCollectors": []}} The list of available
* `data_collector_enums` are as following: Chrome System Information (1),
* Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS
* Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch
* Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs
* (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill
* (Connection Manager) Logs (14), Policies (15), ChromeOS System State and
* Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18),
* ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS
* Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network
* Health (23). See more details in [help
* article](https://support.google.com/chrome/a?p=remote-log).
*
* @param string $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectoryChromeosdevicesIssueCommandRequest::class, 'Google_Service_Directory_DirectoryChromeosdevicesIssueCommandRequest');

View File

@@ -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 DirectoryChromeosdevicesIssueCommandResponse extends \Google\Model
{
/**
* The unique ID of the issued command, used to retrieve the command status.
*
* @var string
*/
public $commandId;
/**
* The unique ID of the issued command, used to retrieve the command status.
*
* @param string $commandId
*/
public function setCommandId($commandId)
{
$this->commandId = $commandId;
}
/**
* @return string
*/
public function getCommandId()
{
return $this->commandId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectoryChromeosdevicesIssueCommandResponse::class, 'Google_Service_Directory_DirectoryChromeosdevicesIssueCommandResponse');

View File

@@ -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 DirectoryUsersCreateGuestRequest extends \Google\Model
{
/**
* Immutable. External email of the guest user being created.
*
* @var string
*/
public $primaryGuestEmail;
/**
* Immutable. External email of the guest user being created.
*
* @param string $primaryGuestEmail
*/
public function setPrimaryGuestEmail($primaryGuestEmail)
{
$this->primaryGuestEmail = $primaryGuestEmail;
}
/**
* @return string
*/
public function getPrimaryGuestEmail()
{
return $this->primaryGuestEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectoryUsersCreateGuestRequest::class, 'Google_Service_Directory_DirectoryUsersCreateGuestRequest');

View File

@@ -0,0 +1,160 @@
<?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 DomainAlias extends \Google\Model
{
/**
* The creation time of the domain alias. (Read-only).
*
* @var string
*/
public $creationTime;
/**
* The domain alias name.
*
* @var string
*/
public $domainAliasName;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* The parent domain name that the domain alias is associated with. This can
* either be a primary or secondary domain name within a customer.
*
* @var string
*/
public $parentDomainName;
/**
* Indicates the verification state of a domain alias. (Read-only)
*
* @var bool
*/
public $verified;
/**
* The creation time of the domain alias. (Read-only).
*
* @param string $creationTime
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* The domain alias name.
*
* @param string $domainAliasName
*/
public function setDomainAliasName($domainAliasName)
{
$this->domainAliasName = $domainAliasName;
}
/**
* @return string
*/
public function getDomainAliasName()
{
return $this->domainAliasName;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The parent domain name that the domain alias is associated with. This can
* either be a primary or secondary domain name within a customer.
*
* @param string $parentDomainName
*/
public function setParentDomainName($parentDomainName)
{
$this->parentDomainName = $parentDomainName;
}
/**
* @return string
*/
public function getParentDomainName()
{
return $this->parentDomainName;
}
/**
* Indicates the verification state of a domain alias. (Read-only)
*
* @param bool $verified
*/
public function setVerified($verified)
{
$this->verified = $verified;
}
/**
* @return bool
*/
public function getVerified()
{
return $this->verified;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainAlias::class, 'Google_Service_Directory_DomainAlias');

View File

@@ -0,0 +1,89 @@
<?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 DomainAliases extends \Google\Collection
{
protected $collection_key = 'domainAliases';
protected $domainAliasesType = DomainAlias::class;
protected $domainAliasesDataType = 'array';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* A list of domain alias objects.
*
* @param DomainAlias[] $domainAliases
*/
public function setDomainAliases($domainAliases)
{
$this->domainAliases = $domainAliases;
}
/**
* @return DomainAlias[]
*/
public function getDomainAliases()
{
return $this->domainAliases;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainAliases::class, 'Google_Service_Directory_DomainAliases');

View File

@@ -0,0 +1,179 @@
<?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 Domains extends \Google\Collection
{
protected $collection_key = 'domainAliases';
/**
* Creation time of the domain. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format. (Read-only).
*
* @var string
*/
public $creationTime;
protected $domainAliasesType = DomainAlias::class;
protected $domainAliasesDataType = 'array';
/**
* The domain name of the customer.
*
* @var string
*/
public $domainName;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Indicates if the domain is a primary domain (Read-only).
*
* @var bool
*/
public $isPrimary;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* Indicates the verification state of a domain. (Read-only).
*
* @var bool
*/
public $verified;
/**
* Creation time of the domain. Expressed in [Unix
* time](https://en.wikipedia.org/wiki/Epoch_time) format. (Read-only).
*
* @param string $creationTime
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* A list of domain alias objects. (Read-only)
*
* @param DomainAlias[] $domainAliases
*/
public function setDomainAliases($domainAliases)
{
$this->domainAliases = $domainAliases;
}
/**
* @return DomainAlias[]
*/
public function getDomainAliases()
{
return $this->domainAliases;
}
/**
* The domain name of the customer.
*
* @param string $domainName
*/
public function setDomainName($domainName)
{
$this->domainName = $domainName;
}
/**
* @return string
*/
public function getDomainName()
{
return $this->domainName;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Indicates if the domain is a primary domain (Read-only).
*
* @param bool $isPrimary
*/
public function setIsPrimary($isPrimary)
{
$this->isPrimary = $isPrimary;
}
/**
* @return bool
*/
public function getIsPrimary()
{
return $this->isPrimary;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Indicates the verification state of a domain. (Read-only).
*
* @param bool $verified
*/
public function setVerified($verified)
{
$this->verified = $verified;
}
/**
* @return bool
*/
public function getVerified()
{
return $this->verified;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Domains::class, 'Google_Service_Directory_Domains');

View File

@@ -0,0 +1,89 @@
<?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 Domains2 extends \Google\Collection
{
protected $collection_key = 'domains';
protected $domainsType = Domains::class;
protected $domainsDataType = 'array';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* A list of domain objects.
*
* @param Domains[] $domains
*/
public function setDomains($domains)
{
$this->domains = $domains;
}
/**
* @return Domains[]
*/
public function getDomains()
{
return $this->domains;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Domains2::class, 'Google_Service_Directory_Domains2');

View File

@@ -0,0 +1,242 @@
<?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 FailureInfo extends \Google\Model
{
/**
* Not an error; returned on success. HTTP Mapping: 200 OK
*/
public const ERROR_CODE_OK = 'OK';
/**
* The operation was cancelled, typically by the caller. HTTP Mapping: 499
* Client Closed Request
*/
public const ERROR_CODE_CANCELLED = 'CANCELLED';
/**
* Unknown error. For example, this error may be returned when a `Status`
* value received from another address space belongs to an error space that is
* not known in this address space. Also errors raised by APIs that do not
* return enough error information may be converted to this error. HTTP
* Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_UNKNOWN = 'UNKNOWN';
/**
* The client specified an invalid argument. Note that this differs from
* `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are
* problematic regardless of the state of the system (e.g., a malformed file
* name). HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_INVALID_ARGUMENT = 'INVALID_ARGUMENT';
/**
* The deadline expired before the operation could complete. For operations
* that change the state of the system, this error may be returned even if the
* operation has completed successfully. For example, a successful response
* from a server could have been delayed long enough for the deadline to
* expire. HTTP Mapping: 504 Gateway Timeout
*/
public const ERROR_CODE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* Some requested entity (e.g., file or directory) was not found. Note to
* server developers: if a request is denied for an entire class of users,
* such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may
* be used. If a request is denied for some users within a class of users,
* such as user-based access control, `PERMISSION_DENIED` must be used. HTTP
* Mapping: 404 Not Found
*/
public const ERROR_CODE_NOT_FOUND = 'NOT_FOUND';
/**
* The entity that a client attempted to create (e.g., file or directory)
* already exists. HTTP Mapping: 409 Conflict
*/
public const ERROR_CODE_ALREADY_EXISTS = 'ALREADY_EXISTS';
/**
* The caller does not have permission to execute the specified operation.
* `PERMISSION_DENIED` must not be used for rejections caused by exhausting
* some resource (use `RESOURCE_EXHAUSTED` instead for those errors).
* `PERMISSION_DENIED` must not be used if the caller can not be identified
* (use `UNAUTHENTICATED` instead for those errors). This error code does not
* imply the request is valid or the requested entity exists or satisfies
* other pre-conditions. HTTP Mapping: 403 Forbidden
*/
public const ERROR_CODE_PERMISSION_DENIED = 'PERMISSION_DENIED';
/**
* The request does not have valid authentication credentials for the
* operation. HTTP Mapping: 401 Unauthorized
*/
public const ERROR_CODE_UNAUTHENTICATED = 'UNAUTHENTICATED';
/**
* Some resource has been exhausted, perhaps a per-user quota, or perhaps the
* entire file system is out of space. HTTP Mapping: 429 Too Many Requests
*/
public const ERROR_CODE_RESOURCE_EXHAUSTED = 'RESOURCE_EXHAUSTED';
/**
* The operation was rejected because the system is not in a state required
* for the operation's execution. For example, the directory to be deleted is
* non-empty, an rmdir operation is applied to a non-directory, etc. Service
* implementors can use the following guidelines to decide between
* `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE`
* if the client can retry just the failing call. (b) Use `ABORTED` if the
* client should retry at a higher level. For example, when a client-specified
* test-and-set fails, indicating the client should restart a read-modify-
* write sequence. (c) Use `FAILED_PRECONDITION` if the client should not
* retry until the system state has been explicitly fixed. For example, if an
* "rmdir" fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless the files are
* deleted from the directory. HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_FAILED_PRECONDITION = 'FAILED_PRECONDITION';
/**
* The operation was aborted, typically due to a concurrency issue such as a
* sequencer check failure or transaction abort. See the guidelines above for
* deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP
* Mapping: 409 Conflict
*/
public const ERROR_CODE_ABORTED = 'ABORTED';
/**
* The operation was attempted past the valid range. E.g., seeking or reading
* past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem
* that may be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an offset that
* is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if
* asked to read from an offset past the current file size. There is a fair
* bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
* recommend using `OUT_OF_RANGE` (the more specific error) when it applies so
* that callers who are iterating through a space can easily look for an
* `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad
* Request
*/
public const ERROR_CODE_OUT_OF_RANGE = 'OUT_OF_RANGE';
/**
* The operation is not implemented or is not supported/enabled in this
* service. HTTP Mapping: 501 Not Implemented
*/
public const ERROR_CODE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Internal errors. This means that some invariants expected by the underlying
* system have been broken. This error code is reserved for serious errors.
* HTTP Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_INTERNAL = 'INTERNAL';
/**
* The service is currently unavailable. This is most likely a transient
* condition, which can be corrected by retrying with a backoff. Note that it
* is not always safe to retry non-idempotent operations. See the guidelines
* above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and
* `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable
*/
public const ERROR_CODE_UNAVAILABLE = 'UNAVAILABLE';
/**
* Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server
* Error
*/
public const ERROR_CODE_DATA_LOSS = 'DATA_LOSS';
/**
* Canonical code for why the update failed to apply.
*
* @var string
*/
public $errorCode;
/**
* Failure reason message.
*
* @var string
*/
public $errorMessage;
protected $printerType = Printer::class;
protected $printerDataType = '';
/**
* Id of a failed printer.
*
* @var string
*/
public $printerId;
/**
* Canonical code for why the update failed to apply.
*
* Accepted values: OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT,
* DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED,
* UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED,
* OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* Failure reason message.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* Failed printer.
*
* @param Printer $printer
*/
public function setPrinter(Printer $printer)
{
$this->printer = $printer;
}
/**
* @return Printer
*/
public function getPrinter()
{
return $this->printer;
}
/**
* Id of a failed printer.
*
* @param string $printerId
*/
public function setPrinterId($printerId)
{
$this->printerId = $printerId;
}
/**
* @return string
*/
public function getPrinterId()
{
return $this->printerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailureInfo::class, 'Google_Service_Directory_FailureInfo');

View File

@@ -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 FanInfo extends \Google\Model
{
/**
* Output only. Fan speed in RPM.
*
* @var int
*/
public $speedRpm;
/**
* Output only. Fan speed in RPM.
*
* @param int $speedRpm
*/
public function setSpeedRpm($speedRpm)
{
$this->speedRpm = $speedRpm;
}
/**
* @return int
*/
public function getSpeedRpm()
{
return $this->speedRpm;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FanInfo::class, 'Google_Service_Directory_FanInfo');

View File

@@ -0,0 +1,92 @@
<?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 Feature extends \Google\Model
{
/**
* ETag of the resource.
*
* @var string
*/
public $etags;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* The name of the feature.
*
* @var string
*/
public $name;
/**
* ETag of the resource.
*
* @param string $etags
*/
public function setEtags($etags)
{
$this->etags = $etags;
}
/**
* @return string
*/
public function getEtags()
{
return $this->etags;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The name of the feature.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Feature::class, 'Google_Service_Directory_Feature');

View File

@@ -0,0 +1,45 @@
<?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 FeatureInstance extends \Google\Model
{
protected $featureType = Feature::class;
protected $featureDataType = '';
/**
* The feature that this is an instance of. A calendar resource may have
* multiple instances of a feature.
*
* @param Feature $feature
*/
public function setFeature(Feature $feature)
{
$this->feature = $feature;
}
/**
* @return Feature
*/
public function getFeature()
{
return $this->feature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeatureInstance::class, 'Google_Service_Directory_FeatureInstance');

View File

@@ -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 FeatureRename extends \Google\Model
{
/**
* New name of the feature.
*
* @var string
*/
public $newName;
/**
* New name of the feature.
*
* @param string $newName
*/
public function setNewName($newName)
{
$this->newName = $newName;
}
/**
* @return string
*/
public function getNewName()
{
return $this->newName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeatureRename::class, 'Google_Service_Directory_FeatureRename');

View File

@@ -0,0 +1,113 @@
<?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 Features extends \Google\Collection
{
protected $collection_key = 'features';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $featuresType = Feature::class;
protected $featuresDataType = 'array';
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The Features in this page of results.
*
* @param Feature[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return Feature[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Features::class, 'Google_Service_Directory_Features');

View File

@@ -0,0 +1,283 @@
<?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 Group extends \Google\Collection
{
protected $collection_key = 'nonEditableAliases';
/**
* Read-only. Value is `true` if this group was created by an administrator
* rather than a user.
*
* @var bool
*/
public $adminCreated;
/**
* Read-only. The list of a group's alias email addresses. To add, update, or
* remove a group's aliases, use the `groups.aliases` methods. If edited in a
* group's POST or PUT request, the edit is ignored.
*
* @var string[]
*/
public $aliases;
/**
* An extended description to help users determine the purpose of a group. For
* example, you can include information about who should join the group, the
* types of messages to send to the group, links to FAQs about the group, or
* related groups. Maximum length is `4,096` characters.
*
* @var string
*/
public $description;
/**
* The number of users that are direct members of the group. If a group is a
* member (child) of this group (the parent), members of the child group are
* not counted in the `directMembersCount` property of the parent group.
*
* @var string
*/
public $directMembersCount;
/**
* The group's email address. If your account has multiple domains, select the
* appropriate domain for the email address. The `email` must be unique. This
* property is required when creating a group. Group email addresses are
* subject to the same character usage rules as usernames, see the [help
* center](https://support.google.com/a/answer/9193374) for details.
*
* @var string
*/
public $email;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Read-only. The unique ID of a group. A group `id` can be used as a group
* request URI's `groupKey`.
*
* @var string
*/
public $id;
/**
* The type of the API resource. For Groups resources, the value is
* `admin#directory#group`.
*
* @var string
*/
public $kind;
/**
* The group's display name.
*
* @var string
*/
public $name;
/**
* Read-only. The list of the group's non-editable alias email addresses that
* are outside of the account's primary domain or subdomains. These are
* functioning email addresses used by the group. This is a read-only property
* returned in the API's response for a group. If edited in a group's POST or
* PUT request, the edit is ignored.
*
* @var string[]
*/
public $nonEditableAliases;
/**
* Read-only. Value is `true` if this group was created by an administrator
* rather than a user.
*
* @param bool $adminCreated
*/
public function setAdminCreated($adminCreated)
{
$this->adminCreated = $adminCreated;
}
/**
* @return bool
*/
public function getAdminCreated()
{
return $this->adminCreated;
}
/**
* Read-only. The list of a group's alias email addresses. To add, update, or
* remove a group's aliases, use the `groups.aliases` methods. If edited in a
* group's POST or PUT request, the edit is ignored.
*
* @param string[] $aliases
*/
public function setAliases($aliases)
{
$this->aliases = $aliases;
}
/**
* @return string[]
*/
public function getAliases()
{
return $this->aliases;
}
/**
* An extended description to help users determine the purpose of a group. For
* example, you can include information about who should join the group, the
* types of messages to send to the group, links to FAQs about the group, or
* related groups. Maximum length is `4,096` characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The number of users that are direct members of the group. If a group is a
* member (child) of this group (the parent), members of the child group are
* not counted in the `directMembersCount` property of the parent group.
*
* @param string $directMembersCount
*/
public function setDirectMembersCount($directMembersCount)
{
$this->directMembersCount = $directMembersCount;
}
/**
* @return string
*/
public function getDirectMembersCount()
{
return $this->directMembersCount;
}
/**
* The group's email address. If your account has multiple domains, select the
* appropriate domain for the email address. The `email` must be unique. This
* property is required when creating a group. Group email addresses are
* subject to the same character usage rules as usernames, see the [help
* center](https://support.google.com/a/answer/9193374) for details.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Read-only. The unique ID of a group. A group `id` can be used as a group
* request URI's `groupKey`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The type of the API resource. For Groups resources, the value is
* `admin#directory#group`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The group's display name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Read-only. The list of the group's non-editable alias email addresses that
* are outside of the account's primary domain or subdomains. These are
* functioning email addresses used by the group. This is a read-only property
* returned in the API's response for a group. If edited in a group's POST or
* PUT request, the edit is ignored.
*
* @param string[] $nonEditableAliases
*/
public function setNonEditableAliases($nonEditableAliases)
{
$this->nonEditableAliases = $nonEditableAliases;
}
/**
* @return string[]
*/
public function getNonEditableAliases()
{
return $this->nonEditableAliases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Group::class, 'Google_Service_Directory_Group');

View File

@@ -0,0 +1,138 @@
<?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 GroupAlias extends \Google\Model
{
/**
* The alias email address.
*
* @var string
*/
public $alias;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The unique ID of the group.
*
* @var string
*/
public $id;
/**
* The type of the API resource. For Alias resources, the value is
* `admin#directory#alias`.
*
* @var string
*/
public $kind;
/**
* The primary email address of the group.
*
* @var string
*/
public $primaryEmail;
/**
* The alias email address.
*
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The unique ID of the group.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The type of the API resource. For Alias resources, the value is
* `admin#directory#alias`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The primary email address of the group.
*
* @param string $primaryEmail
*/
public function setPrimaryEmail($primaryEmail)
{
$this->primaryEmail = $primaryEmail;
}
/**
* @return string
*/
public function getPrimaryEmail()
{
return $this->primaryEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupAlias::class, 'Google_Service_Directory_GroupAlias');

View File

@@ -0,0 +1,111 @@
<?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 Groups extends \Google\Collection
{
protected $collection_key = 'groups';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $groupsType = Group::class;
protected $groupsDataType = 'array';
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
/**
* Token used to access next page of this result.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* A list of group objects.
*
* @param Group[] $groups
*/
public function setGroups($groups)
{
$this->groups = $groups;
}
/**
* @return Group[]
*/
public function getGroups()
{
return $this->groups;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access next page of this result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Groups::class, 'Google_Service_Directory_Groups');

View File

@@ -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 GuestAccountInfo extends \Google\Model
{
/**
* Immutable. The guest's external email.
*
* @var string
*/
public $primaryGuestEmail;
/**
* Immutable. The guest's external email.
*
* @param string $primaryGuestEmail
*/
public function setPrimaryGuestEmail($primaryGuestEmail)
{
$this->primaryGuestEmail = $primaryGuestEmail;
}
/**
* @return string
*/
public function getPrimaryGuestEmail()
{
return $this->primaryGuestEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuestAccountInfo::class, 'Google_Service_Directory_GuestAccountInfo');

View File

@@ -0,0 +1,69 @@
<?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 ListPrintServersResponse extends \Google\Collection
{
protected $collection_key = 'printServers';
/**
* A token that can be sent as `page_token` in a request to retrieve the next
* page. If this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $printServersType = PrintServer::class;
protected $printServersDataType = 'array';
/**
* A token that can be sent as `page_token` in a request to retrieve the next
* page. If this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of print servers.
*
* @param PrintServer[] $printServers
*/
public function setPrintServers($printServers)
{
$this->printServers = $printServers;
}
/**
* @return PrintServer[]
*/
public function getPrintServers()
{
return $this->printServers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPrintServersResponse::class, 'Google_Service_Directory_ListPrintServersResponse');

View File

@@ -0,0 +1,70 @@
<?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 ListPrinterModelsResponse extends \Google\Collection
{
protected $collection_key = 'printerModels';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $printerModelsType = PrinterModel::class;
protected $printerModelsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Printer models that are currently allowed to be configured for ChromeOs.
* Some printers may be added or removed over time.
*
* @param PrinterModel[] $printerModels
*/
public function setPrinterModels($printerModels)
{
$this->printerModels = $printerModels;
}
/**
* @return PrinterModel[]
*/
public function getPrinterModels()
{
return $this->printerModels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPrinterModelsResponse::class, 'Google_Service_Directory_ListPrinterModelsResponse');

View File

@@ -0,0 +1,71 @@
<?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 ListPrintersResponse extends \Google\Collection
{
protected $collection_key = 'printers';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $printersType = Printer::class;
protected $printersDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of printers. If `org_unit_id` was given in the request, then only
* printers visible for this OU will be returned. If `org_unit_id` was not
* given in the request, then all printers will be returned.
*
* @param Printer[] $printers
*/
public function setPrinters($printers)
{
$this->printers = $printers;
}
/**
* @return Printer[]
*/
public function getPrinters()
{
return $this->printers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPrintersResponse::class, 'Google_Service_Directory_ListPrintersResponse');

View File

@@ -0,0 +1,225 @@
<?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 Member extends \Google\Model
{
protected $internal_gapi_mappings = [
"deliverySettings" => "delivery_settings",
];
/**
* Defines mail delivery preferences of member. This field is only supported
* by `insert`, `update`, and `get` methods.
*
* @var string
*/
public $deliverySettings;
/**
* The member's email address. A member can be a user or another group. This
* property is required when adding a member to a group. The `email` must be
* unique and cannot be an alias of another group. If the email address is
* changed, the API automatically reflects the email address changes.
*
* @var string
*/
public $email;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The unique ID of the group member. A member `id` can be used as a member
* request URI's `memberKey`.
*
* @var string
*/
public $id;
/**
* The type of the API resource. For Members resources, the value is
* `admin#directory#member`.
*
* @var string
*/
public $kind;
/**
* The member's role in a group. The API returns an error for cycles in group
* memberships. For example, if `group1` is a member of `group2`, `group2`
* cannot be a member of `group1`. For more information about a member's role,
* see the [administration help
* center](https://support.google.com/a/answer/167094).
*
* @var string
*/
public $role;
/**
* Status of member (Immutable)
*
* @var string
*/
public $status;
/**
* The type of group member.
*
* @var string
*/
public $type;
/**
* Defines mail delivery preferences of member. This field is only supported
* by `insert`, `update`, and `get` methods.
*
* @param string $deliverySettings
*/
public function setDeliverySettings($deliverySettings)
{
$this->deliverySettings = $deliverySettings;
}
/**
* @return string
*/
public function getDeliverySettings()
{
return $this->deliverySettings;
}
/**
* The member's email address. A member can be a user or another group. This
* property is required when adding a member to a group. The `email` must be
* unique and cannot be an alias of another group. If the email address is
* changed, the API automatically reflects the email address changes.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The unique ID of the group member. A member `id` can be used as a member
* request URI's `memberKey`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The type of the API resource. For Members resources, the value is
* `admin#directory#member`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The member's role in a group. The API returns an error for cycles in group
* memberships. For example, if `group1` is a member of `group2`, `group2`
* cannot be a member of `group1`. For more information about a member's role,
* see the [administration help
* center](https://support.google.com/a/answer/167094).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* Status of member (Immutable)
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* The type of group member.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Member::class, 'Google_Service_Directory_Member');

View File

@@ -0,0 +1,111 @@
<?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 Members extends \Google\Collection
{
protected $collection_key = 'members';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
protected $membersType = Member::class;
protected $membersDataType = 'array';
/**
* Token used to access next page of this result.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A list of member objects.
*
* @param Member[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return Member[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Token used to access next page of this result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Members::class, 'Google_Service_Directory_Members');

View File

@@ -0,0 +1,50 @@
<?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 MembersHasMember extends \Google\Model
{
/**
* Output only. Identifies whether the given user is a member of the group.
* Membership can be direct or nested.
*
* @var bool
*/
public $isMember;
/**
* Output only. Identifies whether the given user is a member of the group.
* Membership can be direct or nested.
*
* @param bool $isMember
*/
public function setIsMember($isMember)
{
$this->isMember = $isMember;
}
/**
* @return bool
*/
public function getIsMember()
{
return $this->isMember;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MembersHasMember::class, 'Google_Service_Directory_MembersHasMember');

View File

@@ -0,0 +1,965 @@
<?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 MobileDevice extends \Google\Collection
{
protected $collection_key = 'otherAccountsInfo';
/**
* Adb (USB debugging) enabled or disabled on device (Read-only)
*
* @var bool
*/
public $adbStatus;
protected $applicationsType = MobileDeviceApplications::class;
protected $applicationsDataType = 'array';
/**
* The device's baseband version.
*
* @var string
*/
public $basebandVersion;
/**
* Mobile Device Bootloader version (Read-only)
*
* @var string
*/
public $bootloaderVersion;
/**
* Mobile Device Brand (Read-only)
*
* @var string
*/
public $brand;
/**
* The device's operating system build number.
*
* @var string
*/
public $buildNumber;
/**
* The default locale used on the device.
*
* @var string
*/
public $defaultLanguage;
/**
* Developer options enabled or disabled on device (Read-only)
*
* @var bool
*/
public $developerOptionsStatus;
/**
* The compromised device status.
*
* @var string
*/
public $deviceCompromisedStatus;
/**
* The serial number for a Google Sync mobile device. For Android and iOS
* devices, this is a software generated unique identifier.
*
* @var string
*/
public $deviceId;
/**
* DevicePasswordStatus (Read-only)
*
* @var string
*/
public $devicePasswordStatus;
/**
* The list of the owner's email addresses. If your application needs the
* current list of user emails, use the [get](https://developers.google.com/wo
* rkspace/admin/directory/v1/reference/mobiledevices/get.html) method. For
* additional information, see the [retrieve a user](https://developers.google
* .com/workspace/admin/directory/v1/guides/manage-users#get_user) method.
*
* @var string[]
*/
public $email;
/**
* Mobile Device Encryption Status (Read-only)
*
* @var string
*/
public $encryptionStatus;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Date and time the device was first synchronized with the policy settings in
* the G Suite administrator control panel (Read-only)
*
* @var string
*/
public $firstSync;
/**
* Mobile Device Hardware (Read-only)
*
* @var string
*/
public $hardware;
/**
* The IMEI/MEID unique identifier for Android hardware. It is not applicable
* to Google Sync devices. When adding an Android mobile device, this is an
* optional property. When updating one of these devices, this is a read-only
* property.
*
* @var string
*/
public $hardwareId;
/**
* The device's IMEI number.
*
* @var string
*/
public $imei;
/**
* The device's kernel version.
*
* @var string
*/
public $kernelVersion;
/**
* The type of the API resource. For Mobiledevices resources, the value is
* `admin#directory#mobiledevice`.
*
* @var string
*/
public $kind;
/**
* Date and time the device was last synchronized with the policy settings in
* the G Suite administrator control panel (Read-only)
*
* @var string
*/
public $lastSync;
/**
* Boolean indicating if this account is on owner/primary profile or not.
*
* @var bool
*/
public $managedAccountIsOnOwnerProfile;
/**
* Mobile Device manufacturer (Read-only)
*
* @var string
*/
public $manufacturer;
/**
* The device's MEID number.
*
* @var string
*/
public $meid;
/**
* The mobile device's model name, for example Nexus S. This property can be [
* updated](https://developers.google.com/workspace/admin/directory/v1/referen
* ce/mobiledevices/update.html). For more information, see the [Developer's G
* uide](https://developers.google.com/workspace/admin/directory/v1/guides/man
* age-mobile=devices#update_mobile_device).
*
* @var string
*/
public $model;
/**
* The list of the owner's user names. If your application needs the current
* list of device owner names, use the [get](https://developers.google.com/wor
* kspace/admin/directory/v1/reference/mobiledevices/get.html) method. For
* more information about retrieving mobile device user information, see the
* [Developer's Guide](https://developers.google.com/workspace/admin/directory
* /v1/guides/manage-users#get_user).
*
* @var string[]
*/
public $name;
/**
* Mobile Device mobile or network operator (if available) (Read-only)
*
* @var string
*/
public $networkOperator;
/**
* The mobile device's operating system, for example IOS 4.3 or Android 2.3.5.
* This property can be [updated](https://developers.google.com/workspace/admi
* n/directory/v1/reference/mobiledevices/update.html). For more information,
* see the [Developer's Guide](https://developers.google.com/workspace/admin/d
* irectory/v1/guides/manage-mobile-devices#update_mobile_device).
*
* @var string
*/
public $os;
/**
* The list of accounts added on device (Read-only)
*
* @var string[]
*/
public $otherAccountsInfo;
/**
* DMAgentPermission (Read-only)
*
* @var string
*/
public $privilege;
/**
* Mobile Device release version version (Read-only)
*
* @var string
*/
public $releaseVersion;
/**
* The unique ID the API service uses to identify the mobile device.
*
* @var string
*/
public $resourceId;
/**
* Mobile Device Security patch level (Read-only)
*
* @var string
*/
public $securityPatchLevel;
/**
* The device's serial number.
*
* @var string
*/
public $serialNumber;
/**
* The device's status.
*
* @var string
*/
public $status;
/**
* Work profile supported on device (Read-only)
*
* @var bool
*/
public $supportsWorkProfile;
/**
* The type of mobile device.
*
* @var string
*/
public $type;
/**
* Unknown sources enabled or disabled on device (Read-only)
*
* @var bool
*/
public $unknownSourcesStatus;
/**
* Gives information about the device such as `os` version. This property can
* be [updated](https://developers.google.com/workspace/admin/directory/v1/ref
* erence/mobiledevices/update.html). For more information, see the
* [Developer's Guide](https://developers.google.com/workspace/admin/directory
* /v1/guides/manage-mobile-devices#update_mobile_device).
*
* @var string
*/
public $userAgent;
/**
* The device's MAC address on Wi-Fi networks.
*
* @var string
*/
public $wifiMacAddress;
/**
* Adb (USB debugging) enabled or disabled on device (Read-only)
*
* @param bool $adbStatus
*/
public function setAdbStatus($adbStatus)
{
$this->adbStatus = $adbStatus;
}
/**
* @return bool
*/
public function getAdbStatus()
{
return $this->adbStatus;
}
/**
* The list of applications installed on an Android mobile device. It is not
* applicable to Google Sync and iOS devices. The list includes any Android
* applications that access Google Workspace data. When updating an
* applications list, it is important to note that updates replace the
* existing list. If the Android device has two existing applications and the
* API updates the list with five applications, the is now the updated list of
* five applications.
*
* @param MobileDeviceApplications[] $applications
*/
public function setApplications($applications)
{
$this->applications = $applications;
}
/**
* @return MobileDeviceApplications[]
*/
public function getApplications()
{
return $this->applications;
}
/**
* The device's baseband version.
*
* @param string $basebandVersion
*/
public function setBasebandVersion($basebandVersion)
{
$this->basebandVersion = $basebandVersion;
}
/**
* @return string
*/
public function getBasebandVersion()
{
return $this->basebandVersion;
}
/**
* Mobile Device Bootloader version (Read-only)
*
* @param string $bootloaderVersion
*/
public function setBootloaderVersion($bootloaderVersion)
{
$this->bootloaderVersion = $bootloaderVersion;
}
/**
* @return string
*/
public function getBootloaderVersion()
{
return $this->bootloaderVersion;
}
/**
* Mobile Device Brand (Read-only)
*
* @param string $brand
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* The device's operating system build number.
*
* @param string $buildNumber
*/
public function setBuildNumber($buildNumber)
{
$this->buildNumber = $buildNumber;
}
/**
* @return string
*/
public function getBuildNumber()
{
return $this->buildNumber;
}
/**
* The default locale used on the device.
*
* @param string $defaultLanguage
*/
public function setDefaultLanguage($defaultLanguage)
{
$this->defaultLanguage = $defaultLanguage;
}
/**
* @return string
*/
public function getDefaultLanguage()
{
return $this->defaultLanguage;
}
/**
* Developer options enabled or disabled on device (Read-only)
*
* @param bool $developerOptionsStatus
*/
public function setDeveloperOptionsStatus($developerOptionsStatus)
{
$this->developerOptionsStatus = $developerOptionsStatus;
}
/**
* @return bool
*/
public function getDeveloperOptionsStatus()
{
return $this->developerOptionsStatus;
}
/**
* The compromised device status.
*
* @param string $deviceCompromisedStatus
*/
public function setDeviceCompromisedStatus($deviceCompromisedStatus)
{
$this->deviceCompromisedStatus = $deviceCompromisedStatus;
}
/**
* @return string
*/
public function getDeviceCompromisedStatus()
{
return $this->deviceCompromisedStatus;
}
/**
* The serial number for a Google Sync mobile device. For Android and iOS
* devices, this is a software generated unique identifier.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* DevicePasswordStatus (Read-only)
*
* @param string $devicePasswordStatus
*/
public function setDevicePasswordStatus($devicePasswordStatus)
{
$this->devicePasswordStatus = $devicePasswordStatus;
}
/**
* @return string
*/
public function getDevicePasswordStatus()
{
return $this->devicePasswordStatus;
}
/**
* The list of the owner's email addresses. If your application needs the
* current list of user emails, use the [get](https://developers.google.com/wo
* rkspace/admin/directory/v1/reference/mobiledevices/get.html) method. For
* additional information, see the [retrieve a user](https://developers.google
* .com/workspace/admin/directory/v1/guides/manage-users#get_user) method.
*
* @param string[] $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string[]
*/
public function getEmail()
{
return $this->email;
}
/**
* Mobile Device Encryption Status (Read-only)
*
* @param string $encryptionStatus
*/
public function setEncryptionStatus($encryptionStatus)
{
$this->encryptionStatus = $encryptionStatus;
}
/**
* @return string
*/
public function getEncryptionStatus()
{
return $this->encryptionStatus;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Date and time the device was first synchronized with the policy settings in
* the G Suite administrator control panel (Read-only)
*
* @param string $firstSync
*/
public function setFirstSync($firstSync)
{
$this->firstSync = $firstSync;
}
/**
* @return string
*/
public function getFirstSync()
{
return $this->firstSync;
}
/**
* Mobile Device Hardware (Read-only)
*
* @param string $hardware
*/
public function setHardware($hardware)
{
$this->hardware = $hardware;
}
/**
* @return string
*/
public function getHardware()
{
return $this->hardware;
}
/**
* The IMEI/MEID unique identifier for Android hardware. It is not applicable
* to Google Sync devices. When adding an Android mobile device, this is an
* optional property. When updating one of these devices, this is a read-only
* property.
*
* @param string $hardwareId
*/
public function setHardwareId($hardwareId)
{
$this->hardwareId = $hardwareId;
}
/**
* @return string
*/
public function getHardwareId()
{
return $this->hardwareId;
}
/**
* The device's IMEI number.
*
* @param string $imei
*/
public function setImei($imei)
{
$this->imei = $imei;
}
/**
* @return string
*/
public function getImei()
{
return $this->imei;
}
/**
* The device's kernel version.
*
* @param string $kernelVersion
*/
public function setKernelVersion($kernelVersion)
{
$this->kernelVersion = $kernelVersion;
}
/**
* @return string
*/
public function getKernelVersion()
{
return $this->kernelVersion;
}
/**
* The type of the API resource. For Mobiledevices resources, the value is
* `admin#directory#mobiledevice`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Date and time the device was last synchronized with the policy settings in
* the G Suite administrator control panel (Read-only)
*
* @param string $lastSync
*/
public function setLastSync($lastSync)
{
$this->lastSync = $lastSync;
}
/**
* @return string
*/
public function getLastSync()
{
return $this->lastSync;
}
/**
* Boolean indicating if this account is on owner/primary profile or not.
*
* @param bool $managedAccountIsOnOwnerProfile
*/
public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
{
$this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
}
/**
* @return bool
*/
public function getManagedAccountIsOnOwnerProfile()
{
return $this->managedAccountIsOnOwnerProfile;
}
/**
* Mobile Device manufacturer (Read-only)
*
* @param string $manufacturer
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* The device's MEID number.
*
* @param string $meid
*/
public function setMeid($meid)
{
$this->meid = $meid;
}
/**
* @return string
*/
public function getMeid()
{
return $this->meid;
}
/**
* The mobile device's model name, for example Nexus S. This property can be [
* updated](https://developers.google.com/workspace/admin/directory/v1/referen
* ce/mobiledevices/update.html). For more information, see the [Developer's G
* uide](https://developers.google.com/workspace/admin/directory/v1/guides/man
* age-mobile=devices#update_mobile_device).
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* The list of the owner's user names. If your application needs the current
* list of device owner names, use the [get](https://developers.google.com/wor
* kspace/admin/directory/v1/reference/mobiledevices/get.html) method. For
* more information about retrieving mobile device user information, see the
* [Developer's Guide](https://developers.google.com/workspace/admin/directory
* /v1/guides/manage-users#get_user).
*
* @param string[] $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string[]
*/
public function getName()
{
return $this->name;
}
/**
* Mobile Device mobile or network operator (if available) (Read-only)
*
* @param string $networkOperator
*/
public function setNetworkOperator($networkOperator)
{
$this->networkOperator = $networkOperator;
}
/**
* @return string
*/
public function getNetworkOperator()
{
return $this->networkOperator;
}
/**
* The mobile device's operating system, for example IOS 4.3 or Android 2.3.5.
* This property can be [updated](https://developers.google.com/workspace/admi
* n/directory/v1/reference/mobiledevices/update.html). For more information,
* see the [Developer's Guide](https://developers.google.com/workspace/admin/d
* irectory/v1/guides/manage-mobile-devices#update_mobile_device).
*
* @param string $os
*/
public function setOs($os)
{
$this->os = $os;
}
/**
* @return string
*/
public function getOs()
{
return $this->os;
}
/**
* The list of accounts added on device (Read-only)
*
* @param string[] $otherAccountsInfo
*/
public function setOtherAccountsInfo($otherAccountsInfo)
{
$this->otherAccountsInfo = $otherAccountsInfo;
}
/**
* @return string[]
*/
public function getOtherAccountsInfo()
{
return $this->otherAccountsInfo;
}
/**
* DMAgentPermission (Read-only)
*
* @param string $privilege
*/
public function setPrivilege($privilege)
{
$this->privilege = $privilege;
}
/**
* @return string
*/
public function getPrivilege()
{
return $this->privilege;
}
/**
* Mobile Device release version version (Read-only)
*
* @param string $releaseVersion
*/
public function setReleaseVersion($releaseVersion)
{
$this->releaseVersion = $releaseVersion;
}
/**
* @return string
*/
public function getReleaseVersion()
{
return $this->releaseVersion;
}
/**
* The unique ID the API service uses to identify the mobile device.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* Mobile Device Security patch level (Read-only)
*
* @param string $securityPatchLevel
*/
public function setSecurityPatchLevel($securityPatchLevel)
{
$this->securityPatchLevel = $securityPatchLevel;
}
/**
* @return string
*/
public function getSecurityPatchLevel()
{
return $this->securityPatchLevel;
}
/**
* The device's serial number.
*
* @param string $serialNumber
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
/**
* The device's status.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Work profile supported on device (Read-only)
*
* @param bool $supportsWorkProfile
*/
public function setSupportsWorkProfile($supportsWorkProfile)
{
$this->supportsWorkProfile = $supportsWorkProfile;
}
/**
* @return bool
*/
public function getSupportsWorkProfile()
{
return $this->supportsWorkProfile;
}
/**
* The type of mobile device.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Unknown sources enabled or disabled on device (Read-only)
*
* @param bool $unknownSourcesStatus
*/
public function setUnknownSourcesStatus($unknownSourcesStatus)
{
$this->unknownSourcesStatus = $unknownSourcesStatus;
}
/**
* @return bool
*/
public function getUnknownSourcesStatus()
{
return $this->unknownSourcesStatus;
}
/**
* Gives information about the device such as `os` version. This property can
* be [updated](https://developers.google.com/workspace/admin/directory/v1/ref
* erence/mobiledevices/update.html). For more information, see the
* [Developer's Guide](https://developers.google.com/workspace/admin/directory
* /v1/guides/manage-mobile-devices#update_mobile_device).
*
* @param string $userAgent
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
/**
* The device's MAC address on Wi-Fi networks.
*
* @param string $wifiMacAddress
*/
public function setWifiMacAddress($wifiMacAddress)
{
$this->wifiMacAddress = $wifiMacAddress;
}
/**
* @return string
*/
public function getWifiMacAddress()
{
return $this->wifiMacAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileDevice::class, 'Google_Service_Directory_MobileDevice');

View File

@@ -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 MobileDeviceAction extends \Google\Model
{
/**
* The action to be performed on the device.
*
* @var string
*/
public $action;
/**
* The action to be performed on the device.
*
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileDeviceAction::class, 'Google_Service_Directory_MobileDeviceAction');

View File

@@ -0,0 +1,147 @@
<?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 MobileDeviceApplications extends \Google\Collection
{
protected $collection_key = 'permission';
/**
* The application's display name. An example is `Browser`.
*
* @var string
*/
public $displayName;
/**
* The application's package name. An example is `com.android.browser`.
*
* @var string
*/
public $packageName;
/**
* The list of permissions of this application. These can be either a standard
* Android permission or one defined by the application, and are found in an
* application's [Android
* manifest](https://developer.android.com/guide/topics/manifest/uses-
* permission-element.html). Examples of a Calendar application's permissions
* are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`.
*
* @var string[]
*/
public $permission;
/**
* The application's version code. An example is `13`.
*
* @var int
*/
public $versionCode;
/**
* The application's version name. An example is `3.2-140714`.
*
* @var string
*/
public $versionName;
/**
* The application's display name. An example is `Browser`.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The application's package name. An example is `com.android.browser`.
*
* @param string $packageName
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* The list of permissions of this application. These can be either a standard
* Android permission or one defined by the application, and are found in an
* application's [Android
* manifest](https://developer.android.com/guide/topics/manifest/uses-
* permission-element.html). Examples of a Calendar application's permissions
* are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`.
*
* @param string[] $permission
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return string[]
*/
public function getPermission()
{
return $this->permission;
}
/**
* The application's version code. An example is `13`.
*
* @param int $versionCode
*/
public function setVersionCode($versionCode)
{
$this->versionCode = $versionCode;
}
/**
* @return int
*/
public function getVersionCode()
{
return $this->versionCode;
}
/**
* The application's version name. An example is `3.2-140714`.
*
* @param string $versionName
*/
public function setVersionName($versionName)
{
$this->versionName = $versionName;
}
/**
* @return string
*/
public function getVersionName()
{
return $this->versionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileDeviceApplications::class, 'Google_Service_Directory_MobileDeviceApplications');

View File

@@ -0,0 +1,111 @@
<?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 MobileDevices extends \Google\Collection
{
protected $collection_key = 'mobiledevices';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Kind of resource this is.
*
* @var string
*/
public $kind;
protected $mobiledevicesType = MobileDevice::class;
protected $mobiledevicesDataType = 'array';
/**
* Token used to access next page of this result.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Kind of resource this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A list of Mobile Device objects.
*
* @param MobileDevice[] $mobiledevices
*/
public function setMobiledevices($mobiledevices)
{
$this->mobiledevices = $mobiledevices;
}
/**
* @return MobileDevice[]
*/
public function getMobiledevices()
{
return $this->mobiledevices;
}
/**
* Token used to access next page of this result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MobileDevices::class, 'Google_Service_Directory_MobileDevices');

View File

@@ -0,0 +1,263 @@
<?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 OrgUnit extends \Google\Model
{
/**
* This field is deprecated and setting its value has no effect.
*
* @deprecated
* @var bool
*/
public $blockInheritance;
/**
* Description of the organizational unit.
*
* @var string
*/
public $description;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The type of the API resource. For Orgunits resources, the value is
* `admin#directory#orgUnit`.
*
* @var string
*/
public $kind;
/**
* The organizational unit's path name. For example, an organizational unit's
* name within the /corp/support/sales_support parent path is sales_support.
* Required.
*
* @var string
*/
public $name;
/**
* The unique ID of the organizational unit.
*
* @var string
*/
public $orgUnitId;
/**
* The full path to the organizational unit. The `orgUnitPath` is a derived
* property. When listed, it is derived from `parentOrgunitPath` and
* organizational unit's `name`. For example, for an organizational unit named
* 'apps' under parent organization '/engineering', the orgUnitPath is
* '/engineering/apps'. In order to edit an `orgUnitPath`, either update the
* name of the organization or the `parentOrgunitPath`. A user's
* organizational unit determines which Google Workspace services the user has
* access to. If the user is moved to a new organization, the user's access
* changes. For more information about organization structures, see the
* [administration help center](https://support.google.com/a/answer/4352075).
* For more information about moving a user to a different organization, see
* [Update a user](https://developers.google.com/workspace/admin/directory/v1/
* guides/manage-users.html#update_user).
*
* @var string
*/
public $orgUnitPath;
/**
* The unique ID of the parent organizational unit. Required, unless
* `parentOrgUnitPath` is set.
*
* @var string
*/
public $parentOrgUnitId;
/**
* The organizational unit's parent path. For example, /corp/sales is the
* parent path for /corp/sales/sales_support organizational unit. Required,
* unless `parentOrgUnitId` is set.
*
* @var string
*/
public $parentOrgUnitPath;
/**
* This field is deprecated and setting its value has no effect.
*
* @deprecated
* @param bool $blockInheritance
*/
public function setBlockInheritance($blockInheritance)
{
$this->blockInheritance = $blockInheritance;
}
/**
* @deprecated
* @return bool
*/
public function getBlockInheritance()
{
return $this->blockInheritance;
}
/**
* Description of the organizational unit.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The type of the API resource. For Orgunits resources, the value is
* `admin#directory#orgUnit`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The organizational unit's path name. For example, an organizational unit's
* name within the /corp/support/sales_support parent path is sales_support.
* Required.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The unique ID of the organizational unit.
*
* @param string $orgUnitId
*/
public function setOrgUnitId($orgUnitId)
{
$this->orgUnitId = $orgUnitId;
}
/**
* @return string
*/
public function getOrgUnitId()
{
return $this->orgUnitId;
}
/**
* The full path to the organizational unit. The `orgUnitPath` is a derived
* property. When listed, it is derived from `parentOrgunitPath` and
* organizational unit's `name`. For example, for an organizational unit named
* 'apps' under parent organization '/engineering', the orgUnitPath is
* '/engineering/apps'. In order to edit an `orgUnitPath`, either update the
* name of the organization or the `parentOrgunitPath`. A user's
* organizational unit determines which Google Workspace services the user has
* access to. If the user is moved to a new organization, the user's access
* changes. For more information about organization structures, see the
* [administration help center](https://support.google.com/a/answer/4352075).
* For more information about moving a user to a different organization, see
* [Update a user](https://developers.google.com/workspace/admin/directory/v1/
* guides/manage-users.html#update_user).
*
* @param string $orgUnitPath
*/
public function setOrgUnitPath($orgUnitPath)
{
$this->orgUnitPath = $orgUnitPath;
}
/**
* @return string
*/
public function getOrgUnitPath()
{
return $this->orgUnitPath;
}
/**
* The unique ID of the parent organizational unit. Required, unless
* `parentOrgUnitPath` is set.
*
* @param string $parentOrgUnitId
*/
public function setParentOrgUnitId($parentOrgUnitId)
{
$this->parentOrgUnitId = $parentOrgUnitId;
}
/**
* @return string
*/
public function getParentOrgUnitId()
{
return $this->parentOrgUnitId;
}
/**
* The organizational unit's parent path. For example, /corp/sales is the
* parent path for /corp/sales/sales_support organizational unit. Required,
* unless `parentOrgUnitId` is set.
*
* @param string $parentOrgUnitPath
*/
public function setParentOrgUnitPath($parentOrgUnitPath)
{
$this->parentOrgUnitPath = $parentOrgUnitPath;
}
/**
* @return string
*/
public function getParentOrgUnitPath()
{
return $this->parentOrgUnitPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrgUnit::class, 'Google_Service_Directory_OrgUnit');

View File

@@ -0,0 +1,91 @@
<?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 OrgUnits extends \Google\Collection
{
protected $collection_key = 'organizationUnits';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The type of the API resource. For Org Unit resources, the type is
* `admin#directory#orgUnits`.
*
* @var string
*/
public $kind;
protected $organizationUnitsType = OrgUnit::class;
protected $organizationUnitsDataType = 'array';
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The type of the API resource. For Org Unit resources, the type is
* `admin#directory#orgUnits`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A list of organizational unit objects.
*
* @param OrgUnit[] $organizationUnits
*/
public function setOrganizationUnits($organizationUnits)
{
$this->organizationUnits = $organizationUnits;
}
/**
* @return OrgUnit[]
*/
public function getOrganizationUnits()
{
return $this->organizationUnits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrgUnits::class, 'Google_Service_Directory_OrgUnits');

View File

@@ -0,0 +1,185 @@
<?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 OsUpdateStatus extends \Google\Model
{
/**
* The update state is unspecified.
*/
public const STATE_updateStateUnspecified = 'updateStateUnspecified';
/**
* There is an update pending but it hasn't started.
*/
public const STATE_updateStateNotStarted = 'updateStateNotStarted';
/**
* The pending update is being downloaded.
*/
public const STATE_updateStateDownloadInProgress = 'updateStateDownloadInProgress';
/**
* The device is ready to install the update, but must reboot.
*/
public const STATE_updateStateNeedReboot = 'updateStateNeedReboot';
/**
* Date and time of the last reboot.
*
* @var string
*/
public $rebootTime;
/**
* The update state of an OS update.
*
* @var string
*/
public $state;
/**
* New required platform version from the pending updated kiosk app.
*
* @var string
*/
public $targetKioskAppVersion;
/**
* New platform version of the OS image being downloaded and applied. It is
* only set when update status is UPDATE_STATUS_DOWNLOAD_IN_PROGRESS or
* UPDATE_STATUS_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for
* UPDATE_STATUS_NEED_REBOOT for some edge cases, e.g. update engine is
* restarted without a reboot.
*
* @var string
*/
public $targetOsVersion;
/**
* Date and time of the last update check.
*
* @var string
*/
public $updateCheckTime;
/**
* Date and time of the last successful OS update.
*
* @var string
*/
public $updateTime;
/**
* Date and time of the last reboot.
*
* @param string $rebootTime
*/
public function setRebootTime($rebootTime)
{
$this->rebootTime = $rebootTime;
}
/**
* @return string
*/
public function getRebootTime()
{
return $this->rebootTime;
}
/**
* The update state of an OS update.
*
* Accepted values: updateStateUnspecified, updateStateNotStarted,
* updateStateDownloadInProgress, updateStateNeedReboot
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* New required platform version from the pending updated kiosk app.
*
* @param string $targetKioskAppVersion
*/
public function setTargetKioskAppVersion($targetKioskAppVersion)
{
$this->targetKioskAppVersion = $targetKioskAppVersion;
}
/**
* @return string
*/
public function getTargetKioskAppVersion()
{
return $this->targetKioskAppVersion;
}
/**
* New platform version of the OS image being downloaded and applied. It is
* only set when update status is UPDATE_STATUS_DOWNLOAD_IN_PROGRESS or
* UPDATE_STATUS_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for
* UPDATE_STATUS_NEED_REBOOT for some edge cases, e.g. update engine is
* restarted without a reboot.
*
* @param string $targetOsVersion
*/
public function setTargetOsVersion($targetOsVersion)
{
$this->targetOsVersion = $targetOsVersion;
}
/**
* @return string
*/
public function getTargetOsVersion()
{
return $this->targetOsVersion;
}
/**
* Date and time of the last update check.
*
* @param string $updateCheckTime
*/
public function setUpdateCheckTime($updateCheckTime)
{
$this->updateCheckTime = $updateCheckTime;
}
/**
* @return string
*/
public function getUpdateCheckTime()
{
return $this->updateCheckTime;
}
/**
* Date and time of the last successful OS update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OsUpdateStatus::class, 'Google_Service_Directory_OsUpdateStatus');

View File

@@ -0,0 +1,190 @@
<?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 PrintServer extends \Google\Model
{
/**
* Output only. Time when the print server was created.
*
* @var string
*/
public $createTime;
/**
* Editable. Description of the print server (as shown in the Admin console).
*
* @var string
*/
public $description;
/**
* Editable. Display name of the print server (as shown in the Admin console).
*
* @var string
*/
public $displayName;
/**
* Immutable. ID of the print server. Leave empty when creating.
*
* @var string
*/
public $id;
/**
* Identifier. Resource name of the print server. Leave empty when creating.
* Format: `customers/{customer.id}/printServers/{print_server.id}`
*
* @var string
*/
public $name;
/**
* ID of the organization unit (OU) that owns this print server. This value
* can only be set when the print server is initially created. If it's not
* populated, the print server is placed under the root OU. The `org_unit_id`
* can be retrieved using the [Directory API](https://developers.google.com/wo
* rkspace/admin/directory/reference/rest/v1/orgunits).
*
* @var string
*/
public $orgUnitId;
/**
* Editable. Print server URI.
*
* @var string
*/
public $uri;
/**
* Output only. Time when the print server was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Editable. Description of the print server (as shown in the Admin console).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Editable. Display name of the print server (as shown in the Admin console).
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Immutable. ID of the print server. Leave empty when creating.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifier. Resource name of the print server. Leave empty when creating.
* Format: `customers/{customer.id}/printServers/{print_server.id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* ID of the organization unit (OU) that owns this print server. This value
* can only be set when the print server is initially created. If it's not
* populated, the print server is placed under the root OU. The `org_unit_id`
* can be retrieved using the [Directory API](https://developers.google.com/wo
* rkspace/admin/directory/reference/rest/v1/orgunits).
*
* @param string $orgUnitId
*/
public function setOrgUnitId($orgUnitId)
{
$this->orgUnitId = $orgUnitId;
}
/**
* @return string
*/
public function getOrgUnitId()
{
return $this->orgUnitId;
}
/**
* Editable. Print server URI.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrintServer::class, 'Google_Service_Directory_PrintServer');

View File

@@ -0,0 +1,242 @@
<?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 PrintServerFailureInfo extends \Google\Model
{
/**
* Not an error; returned on success. HTTP Mapping: 200 OK
*/
public const ERROR_CODE_OK = 'OK';
/**
* The operation was cancelled, typically by the caller. HTTP Mapping: 499
* Client Closed Request
*/
public const ERROR_CODE_CANCELLED = 'CANCELLED';
/**
* Unknown error. For example, this error may be returned when a `Status`
* value received from another address space belongs to an error space that is
* not known in this address space. Also errors raised by APIs that do not
* return enough error information may be converted to this error. HTTP
* Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_UNKNOWN = 'UNKNOWN';
/**
* The client specified an invalid argument. Note that this differs from
* `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are
* problematic regardless of the state of the system (e.g., a malformed file
* name). HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_INVALID_ARGUMENT = 'INVALID_ARGUMENT';
/**
* The deadline expired before the operation could complete. For operations
* that change the state of the system, this error may be returned even if the
* operation has completed successfully. For example, a successful response
* from a server could have been delayed long enough for the deadline to
* expire. HTTP Mapping: 504 Gateway Timeout
*/
public const ERROR_CODE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* Some requested entity (e.g., file or directory) was not found. Note to
* server developers: if a request is denied for an entire class of users,
* such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may
* be used. If a request is denied for some users within a class of users,
* such as user-based access control, `PERMISSION_DENIED` must be used. HTTP
* Mapping: 404 Not Found
*/
public const ERROR_CODE_NOT_FOUND = 'NOT_FOUND';
/**
* The entity that a client attempted to create (e.g., file or directory)
* already exists. HTTP Mapping: 409 Conflict
*/
public const ERROR_CODE_ALREADY_EXISTS = 'ALREADY_EXISTS';
/**
* The caller does not have permission to execute the specified operation.
* `PERMISSION_DENIED` must not be used for rejections caused by exhausting
* some resource (use `RESOURCE_EXHAUSTED` instead for those errors).
* `PERMISSION_DENIED` must not be used if the caller can not be identified
* (use `UNAUTHENTICATED` instead for those errors). This error code does not
* imply the request is valid or the requested entity exists or satisfies
* other pre-conditions. HTTP Mapping: 403 Forbidden
*/
public const ERROR_CODE_PERMISSION_DENIED = 'PERMISSION_DENIED';
/**
* The request does not have valid authentication credentials for the
* operation. HTTP Mapping: 401 Unauthorized
*/
public const ERROR_CODE_UNAUTHENTICATED = 'UNAUTHENTICATED';
/**
* Some resource has been exhausted, perhaps a per-user quota, or perhaps the
* entire file system is out of space. HTTP Mapping: 429 Too Many Requests
*/
public const ERROR_CODE_RESOURCE_EXHAUSTED = 'RESOURCE_EXHAUSTED';
/**
* The operation was rejected because the system is not in a state required
* for the operation's execution. For example, the directory to be deleted is
* non-empty, an rmdir operation is applied to a non-directory, etc. Service
* implementors can use the following guidelines to decide between
* `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE`
* if the client can retry just the failing call. (b) Use `ABORTED` if the
* client should retry at a higher level. For example, when a client-specified
* test-and-set fails, indicating the client should restart a read-modify-
* write sequence. (c) Use `FAILED_PRECONDITION` if the client should not
* retry until the system state has been explicitly fixed. For example, if an
* "rmdir" fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless the files are
* deleted from the directory. HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_FAILED_PRECONDITION = 'FAILED_PRECONDITION';
/**
* The operation was aborted, typically due to a concurrency issue such as a
* sequencer check failure or transaction abort. See the guidelines above for
* deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP
* Mapping: 409 Conflict
*/
public const ERROR_CODE_ABORTED = 'ABORTED';
/**
* The operation was attempted past the valid range. E.g., seeking or reading
* past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem
* that may be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an offset that
* is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if
* asked to read from an offset past the current file size. There is a fair
* bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
* recommend using `OUT_OF_RANGE` (the more specific error) when it applies so
* that callers who are iterating through a space can easily look for an
* `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad
* Request
*/
public const ERROR_CODE_OUT_OF_RANGE = 'OUT_OF_RANGE';
/**
* The operation is not implemented or is not supported/enabled in this
* service. HTTP Mapping: 501 Not Implemented
*/
public const ERROR_CODE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Internal errors. This means that some invariants expected by the underlying
* system have been broken. This error code is reserved for serious errors.
* HTTP Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_INTERNAL = 'INTERNAL';
/**
* The service is currently unavailable. This is most likely a transient
* condition, which can be corrected by retrying with a backoff. Note that it
* is not always safe to retry non-idempotent operations. See the guidelines
* above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and
* `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable
*/
public const ERROR_CODE_UNAVAILABLE = 'UNAVAILABLE';
/**
* Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server
* Error
*/
public const ERROR_CODE_DATA_LOSS = 'DATA_LOSS';
/**
* Canonical code for why the update failed to apply.
*
* @var string
*/
public $errorCode;
/**
* Failure reason message.
*
* @var string
*/
public $errorMessage;
protected $printServerType = PrintServer::class;
protected $printServerDataType = '';
/**
* ID of a failed print server.
*
* @var string
*/
public $printServerId;
/**
* Canonical code for why the update failed to apply.
*
* Accepted values: OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT,
* DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED,
* UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED,
* OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* Failure reason message.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* Failed print server.
*
* @param PrintServer $printServer
*/
public function setPrintServer(PrintServer $printServer)
{
$this->printServer = $printServer;
}
/**
* @return PrintServer
*/
public function getPrintServer()
{
return $this->printServer;
}
/**
* ID of a failed print server.
*
* @param string $printServerId
*/
public function setPrintServerId($printServerId)
{
$this->printServerId = $printServerId;
}
/**
* @return string
*/
public function getPrintServerId()
{
return $this->printServerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrintServerFailureInfo::class, 'Google_Service_Directory_PrintServerFailureInfo');

View File

@@ -0,0 +1,254 @@
<?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 Printer extends \Google\Collection
{
protected $collection_key = 'auxiliaryMessages';
protected $auxiliaryMessagesType = AuxiliaryMessage::class;
protected $auxiliaryMessagesDataType = 'array';
/**
* Output only. Time when printer was created.
*
* @var string
*/
public $createTime;
/**
* Editable. Description of printer.
*
* @var string
*/
public $description;
/**
* Editable. Name of printer.
*
* @var string
*/
public $displayName;
/**
* Id of the printer. (During printer creation leave empty)
*
* @var string
*/
public $id;
/**
* Editable. Make and model of printer. e.g. Lexmark MS610de Value must be in
* format as seen in ListPrinterModels response.
*
* @var string
*/
public $makeAndModel;
/**
* Identifier. The resource name of the Printer object, in the format
* customers/{customer-id}/printers/{printer-id} (During printer creation
* leave empty)
*
* @var string
*/
public $name;
/**
* Organization Unit that owns this printer (Only can be set during Printer
* creation)
*
* @var string
*/
public $orgUnitId;
/**
* Editable. Printer URI.
*
* @var string
*/
public $uri;
/**
* Editable. flag to use driverless configuration or not. If it's set to be
* true, make_and_model can be ignored
*
* @var bool
*/
public $useDriverlessConfig;
/**
* Output only. Auxiliary messages about issues with the printer configuration
* if any.
*
* @param AuxiliaryMessage[] $auxiliaryMessages
*/
public function setAuxiliaryMessages($auxiliaryMessages)
{
$this->auxiliaryMessages = $auxiliaryMessages;
}
/**
* @return AuxiliaryMessage[]
*/
public function getAuxiliaryMessages()
{
return $this->auxiliaryMessages;
}
/**
* Output only. Time when printer was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Editable. Description of printer.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Editable. Name of printer.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Id of the printer. (During printer creation leave empty)
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Editable. Make and model of printer. e.g. Lexmark MS610de Value must be in
* format as seen in ListPrinterModels response.
*
* @param string $makeAndModel
*/
public function setMakeAndModel($makeAndModel)
{
$this->makeAndModel = $makeAndModel;
}
/**
* @return string
*/
public function getMakeAndModel()
{
return $this->makeAndModel;
}
/**
* Identifier. The resource name of the Printer object, in the format
* customers/{customer-id}/printers/{printer-id} (During printer creation
* leave empty)
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Organization Unit that owns this printer (Only can be set during Printer
* creation)
*
* @param string $orgUnitId
*/
public function setOrgUnitId($orgUnitId)
{
$this->orgUnitId = $orgUnitId;
}
/**
* @return string
*/
public function getOrgUnitId()
{
return $this->orgUnitId;
}
/**
* Editable. Printer URI.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* Editable. flag to use driverless configuration or not. If it's set to be
* true, make_and_model can be ignored
*
* @param bool $useDriverlessConfig
*/
public function setUseDriverlessConfig($useDriverlessConfig)
{
$this->useDriverlessConfig = $useDriverlessConfig;
}
/**
* @return bool
*/
public function getUseDriverlessConfig()
{
return $this->useDriverlessConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Printer::class, 'Google_Service_Directory_Printer');

View File

@@ -0,0 +1,94 @@
<?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 PrinterModel extends \Google\Model
{
/**
* Display name. eq. "Brother MFC-8840D"
*
* @var string
*/
public $displayName;
/**
* Make and model as represented in "make_and_model" field in Printer object.
* eq. "brother mfc-8840d"
*
* @var string
*/
public $makeAndModel;
/**
* Manufacturer. eq. "Brother"
*
* @var string
*/
public $manufacturer;
/**
* Display name. eq. "Brother MFC-8840D"
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Make and model as represented in "make_and_model" field in Printer object.
* eq. "brother mfc-8840d"
*
* @param string $makeAndModel
*/
public function setMakeAndModel($makeAndModel)
{
$this->makeAndModel = $makeAndModel;
}
/**
* @return string
*/
public function getMakeAndModel()
{
return $this->makeAndModel;
}
/**
* Manufacturer. eq. "Brother"
*
* @param string $manufacturer
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrinterModel::class, 'Google_Service_Directory_PrinterModel');

View File

@@ -0,0 +1,183 @@
<?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 Privilege extends \Google\Collection
{
protected $collection_key = 'childPrivileges';
protected $childPrivilegesType = Privilege::class;
protected $childPrivilegesDataType = 'array';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* If the privilege can be restricted to an organization unit.
*
* @var bool
*/
public $isOuScopable;
/**
* The type of the API resource. This is always `admin#directory#privilege`.
*
* @var string
*/
public $kind;
/**
* The name of the privilege.
*
* @var string
*/
public $privilegeName;
/**
* The obfuscated ID of the service this privilege is for. This value is
* returned with [`Privileges.list()`](https://developers.google.com/workspace
* /admin/directory/v1/reference/privileges/list).
*
* @var string
*/
public $serviceId;
/**
* The name of the service this privilege is for.
*
* @var string
*/
public $serviceName;
/**
* A list of child privileges. Privileges for a service form a tree. Each
* privilege can have a list of child privileges; this list is empty for a
* leaf privilege.
*
* @param Privilege[] $childPrivileges
*/
public function setChildPrivileges($childPrivileges)
{
$this->childPrivileges = $childPrivileges;
}
/**
* @return Privilege[]
*/
public function getChildPrivileges()
{
return $this->childPrivileges;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* If the privilege can be restricted to an organization unit.
*
* @param bool $isOuScopable
*/
public function setIsOuScopable($isOuScopable)
{
$this->isOuScopable = $isOuScopable;
}
/**
* @return bool
*/
public function getIsOuScopable()
{
return $this->isOuScopable;
}
/**
* The type of the API resource. This is always `admin#directory#privilege`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The name of the privilege.
*
* @param string $privilegeName
*/
public function setPrivilegeName($privilegeName)
{
$this->privilegeName = $privilegeName;
}
/**
* @return string
*/
public function getPrivilegeName()
{
return $this->privilegeName;
}
/**
* The obfuscated ID of the service this privilege is for. This value is
* returned with [`Privileges.list()`](https://developers.google.com/workspace
* /admin/directory/v1/reference/privileges/list).
*
* @param string $serviceId
*/
public function setServiceId($serviceId)
{
$this->serviceId = $serviceId;
}
/**
* @return string
*/
public function getServiceId()
{
return $this->serviceId;
}
/**
* The name of the service this privilege is for.
*
* @param string $serviceName
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Privilege::class, 'Google_Service_Directory_Privilege');

View File

@@ -0,0 +1,89 @@
<?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 Privileges extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $itemsType = Privilege::class;
protected $itemsDataType = 'array';
/**
* The type of the API resource. This is always `admin#directory#privileges`.
*
* @var string
*/
public $kind;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* A list of Privilege resources.
*
* @param Privilege[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Privilege[]
*/
public function getItems()
{
return $this->items;
}
/**
* The type of the API resource. This is always `admin#directory#privileges`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Privileges::class, 'Google_Service_Directory_Privileges');

View File

@@ -0,0 +1,82 @@
<?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\Resource;
use Google\Service\Directory\Asp;
use Google\Service\Directory\Asps as AspsModel;
/**
* The "asps" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $asps = $adminService->asps;
* </code>
*/
class Asps extends \Google\Service\Resource
{
/**
* Deletes an ASP issued by a user. (asps.delete)
*
* @param string $userKey Identifies the user in the API request. The value can
* be the user's primary email address, alias email address, or unique user ID.
* @param int $codeId The unique ID of the ASP to be deleted.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($userKey, $codeId, $optParams = [])
{
$params = ['userKey' => $userKey, 'codeId' => $codeId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets information about an ASP issued by a user. (asps.get)
*
* @param string $userKey Identifies the user in the API request. The value can
* be the user's primary email address, alias email address, or unique user ID.
* @param int $codeId The unique ID of the ASP.
* @param array $optParams Optional parameters.
* @return Asp
* @throws \Google\Service\Exception
*/
public function get($userKey, $codeId, $optParams = [])
{
$params = ['userKey' => $userKey, 'codeId' => $codeId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Asp::class);
}
/**
* Lists the ASPs issued by a user. (asps.listAsps)
*
* @param string $userKey Identifies the user in the API request. The value can
* be the user's primary email address, alias email address, or unique user ID.
* @param array $optParams Optional parameters.
* @return AspsModel
* @throws \Google\Service\Exception
*/
public function listAsps($userKey, $optParams = [])
{
$params = ['userKey' => $userKey];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AspsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Asps::class, 'Google_Service_Directory_Resource_Asps');

View File

@@ -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\Resource;
use Google\Service\Directory\Channel;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $channels = $adminService->channels;
* </code>
*/
class Channels extends \Google\Service\Resource
{
/**
* Stops watching resources through this channel. (channels.stop)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function stop(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channels::class, 'Google_Service_Directory_Resource_Channels');

View File

@@ -0,0 +1,207 @@
<?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\Resource;
use Google\Service\Directory\ChromeOsDevice;
use Google\Service\Directory\ChromeOsDeviceAction;
use Google\Service\Directory\ChromeOsDevices as ChromeOsDevicesModel;
use Google\Service\Directory\ChromeOsMoveDevicesToOu;
/**
* The "chromeosdevices" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $chromeosdevices = $adminService->chromeosdevices;
* </code>
*/
class Chromeosdevices extends \Google\Service\Resource
{
/**
* Use [BatchChangeChromeOsDeviceStatus](https://developers.google.com/workspace
* /admin/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatu
* s) instead. Takes an action that affects a Chrome OS Device. This includes
* deprovisioning, disabling, and re-enabling devices. *Warning:* *
* Deprovisioning a device will stop device policy syncing and remove device-
* level printers. After a device is deprovisioned, it must be wiped before it
* can be re-enrolled. * Lost or stolen devices should use the disable action. *
* Re-enabling a disabled device will consume a device license. If you do not
* have sufficient licenses available when completing the re-enable action, you
* will receive an error. For more information about deprovisioning and
* disabling devices, visit the [help
* center](https://support.google.com/chrome/a/answer/3523633).
* (chromeosdevices.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](https://developers.google.com/worksp
* ace/admin/directory/v1/reference/users).
* @param string $resourceId The unique ID of the device. The `resourceId`s are
* returned in the response from the [chromeosdevices.list](https://developers.g
* oogle.com/workspace/admin/directory/v1/reference/chromeosdevices/list)
* method.
* @param ChromeOsDeviceAction $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function action($customerId, $resourceId, ChromeOsDeviceAction $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('action', [$params]);
}
/**
* Retrieves a Chrome OS device's properties. (chromeosdevices.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](https://developers.google.com/worksp
* ace/admin/directory/v1/reference/users).
* @param string $deviceId The unique ID of the device. The `deviceId`s are
* returned in the response from the [chromeosdevices.list](https://developers.g
* oogle.com/workspace/admin/directory/v1/reference/chromeosdevices/list)
* method.
* @param array $optParams Optional parameters.
*
* @opt_param string projection Determines whether the response contains the
* full list of properties or only a subset.
* @return ChromeOsDevice
* @throws \Google\Service\Exception
*/
public function get($customerId, $deviceId, $optParams = [])
{
$params = ['customerId' => $customerId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ChromeOsDevice::class);
}
/**
* Retrieves a paginated list of Chrome OS devices within an account.
* (chromeosdevices.listChromeosdevices)
*
* @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](https://developers.google.com/worksp
* ace/admin/directory/v1/reference/users).
* @param array $optParams Optional parameters.
*
* @opt_param bool includeChildOrgunits 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 int maxResults Maximum number of results to return. Value should
* not exceed 300.
* @opt_param string orderBy Device property to use for sorting results.
* @opt_param string orgUnitPath The full path of the organizational unit (minus
* the leading `/`) or its unique ID.
* @opt_param string pageToken The `pageToken` query parameter is used to
* request the next page of query results. The follow-on request's `pageToken`
* query parameter is the `nextPageToken` from your previous response.
* @opt_param string projection Determines whether the response contains the
* full list of properties or only a subset.
* @opt_param string query Search string in the format given at
* https://developers.google.com/workspace/admin/directory/v1/list-query-
* operators
* @opt_param string sortOrder Whether to return results in ascending or
* descending order. Must be used with the `orderBy` parameter.
* @return ChromeOsDevicesModel
* @throws \Google\Service\Exception
*/
public function listChromeosdevices($customerId, $optParams = [])
{
$params = ['customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ChromeOsDevicesModel::class);
}
/**
* Moves or inserts multiple Chrome OS devices to an organizational unit. You
* can move up to 50 devices at once. (chromeosdevices.moveDevicesToOu)
*
* @param string $customerId Immutable. ID of the Google Workspace account
* @param string $orgUnitPath Full path of the target organizational unit or its
* ID
* @param ChromeOsMoveDevicesToOu $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function moveDevicesToOu($customerId, $orgUnitPath, ChromeOsMoveDevicesToOu $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('moveDevicesToOu', [$params]);
}
/**
* Updates a device's updatable properties, such as `annotatedUser`,
* `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This
* method supports [patch semantics](https://developers.google.com/workspace/adm
* in/directory/v1/guides/performance#patch). (chromeosdevices.patch)
*
* @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](https://developers.google.com/worksp
* ace/admin/directory/v1/reference/users).
* @param string $deviceId The unique ID of the device. The `deviceId`s are
* returned in the response from the [chromeosdevices.list](https://developers.g
* oogle.com/workspace/admin/v1/reference/chromeosdevices/list) method.
* @param ChromeOsDevice $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string projection Determines whether the response contains the
* full list of properties or only a subset.
* @return ChromeOsDevice
* @throws \Google\Service\Exception
*/
public function patch($customerId, $deviceId, ChromeOsDevice $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ChromeOsDevice::class);
}
/**
* Updates a device's updatable properties, such as `annotatedUser`,
* `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`.
* (chromeosdevices.update)
*
* @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](https://developers.google.com/worksp
* ace/admin/directory/v1/reference/users).
* @param string $deviceId The unique ID of the device. The `deviceId`s are
* returned in the response from the [chromeosdevices.list](https://developers.g
* oogle.com/workspace/admin/v1/reference/chromeosdevices/list) method.
* @param ChromeOsDevice $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string projection Determines whether the response contains the
* full list of properties or only a subset.
* @return ChromeOsDevice
* @throws \Google\Service\Exception
*/
public function update($customerId, $deviceId, ChromeOsDevice $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ChromeOsDevice::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Chromeosdevices::class, 'Google_Service_Directory_Resource_Chromeosdevices');

View File

@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "customer" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $customer = $adminService->customer;
* </code>
*/
class Customer extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customer::class, 'Google_Service_Directory_Resource_Customer');

View File

@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $devices = $adminService->customer_devices;
* </code>
*/
class CustomerDevices extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerDevices::class, 'Google_Service_Directory_Resource_CustomerDevices');

View File

@@ -0,0 +1,73 @@
<?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\Resource;
use Google\Service\Directory\BatchChangeChromeOsDeviceStatusRequest;
use Google\Service\Directory\BatchChangeChromeOsDeviceStatusResponse;
use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandRequest;
use Google\Service\Directory\DirectoryChromeosdevicesIssueCommandResponse;
/**
* The "chromeos" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $chromeos = $adminService->customer_devices_chromeos;
* </code>
*/
class CustomerDevicesChromeos extends \Google\Service\Resource
{
/**
* Changes the status of a batch of ChromeOS devices. For more information about
* changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS
* devices](https://support.google.com/chrome/a/answer/3523633).
* (chromeos.batchChangeStatus)
*
* @param string $customerId Required. Immutable ID of the Google Workspace
* account.
* @param BatchChangeChromeOsDeviceStatusRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchChangeChromeOsDeviceStatusResponse
* @throws \Google\Service\Exception
*/
public function batchChangeStatus($customerId, BatchChangeChromeOsDeviceStatusRequest $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchChangeStatus', [$params], BatchChangeChromeOsDeviceStatusResponse::class);
}
/**
* Issues a command for the device to execute. (chromeos.issueCommand)
*
* @param string $customerId Immutable. ID of the Google Workspace account.
* @param string $deviceId Immutable. ID of Chrome OS Device.
* @param DirectoryChromeosdevicesIssueCommandRequest $postBody
* @param array $optParams Optional parameters.
* @return DirectoryChromeosdevicesIssueCommandResponse
* @throws \Google\Service\Exception
*/
public function issueCommand($customerId, $deviceId, DirectoryChromeosdevicesIssueCommandRequest $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('issueCommand', [$params], DirectoryChromeosdevicesIssueCommandResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerDevicesChromeos::class, 'Google_Service_Directory_Resource_CustomerDevicesChromeos');

View File

@@ -0,0 +1,51 @@
<?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\Resource;
use Google\Service\Directory\DirectoryChromeosdevicesCommand;
/**
* The "commands" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $commands = $adminService->customer_devices_chromeos_commands;
* </code>
*/
class CustomerDevicesChromeosCommands extends \Google\Service\Resource
{
/**
* Gets command data a specific command issued to the device. (commands.get)
*
* @param string $customerId Immutable. ID of the Google Workspace account.
* @param string $deviceId Immutable. ID of Chrome OS Device.
* @param string $commandId Immutable. ID of Chrome OS Device Command.
* @param array $optParams Optional parameters.
* @return DirectoryChromeosdevicesCommand
* @throws \Google\Service\Exception
*/
public function get($customerId, $deviceId, $commandId, $optParams = [])
{
$params = ['customerId' => $customerId, 'deviceId' => $deviceId, 'commandId' => $commandId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DirectoryChromeosdevicesCommand::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerDevicesChromeosCommands::class, 'Google_Service_Directory_Resource_CustomerDevicesChromeosCommands');

View File

@@ -0,0 +1,79 @@
<?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\Resource;
use Google\Service\Directory\Customer as CustomerModel;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $customers = $adminService->customers;
* </code>
*/
class Customers extends \Google\Service\Resource
{
/**
* Retrieves a customer. (customers.get)
*
* @param string $customerKey Id of the customer to be retrieved
* @param array $optParams Optional parameters.
* @return CustomerModel
* @throws \Google\Service\Exception
*/
public function get($customerKey, $optParams = [])
{
$params = ['customerKey' => $customerKey];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CustomerModel::class);
}
/**
* Patches a customer. (customers.patch)
*
* @param string $customerKey Id of the customer to be updated
* @param CustomerModel $postBody
* @param array $optParams Optional parameters.
* @return CustomerModel
* @throws \Google\Service\Exception
*/
public function patch($customerKey, CustomerModel $postBody, $optParams = [])
{
$params = ['customerKey' => $customerKey, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CustomerModel::class);
}
/**
* Updates a customer. (customers.update)
*
* @param string $customerKey Id of the customer to be updated
* @param CustomerModel $postBody
* @param array $optParams Optional parameters.
* @return CustomerModel
* @throws \Google\Service\Exception
*/
public function update($customerKey, CustomerModel $postBody, $optParams = [])
{
$params = ['customerKey' => $customerKey, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], CustomerModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customers::class, 'Google_Service_Directory_Resource_Customers');

View File

@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "chrome" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $chrome = $adminService->customers_chrome;
* </code>
*/
class CustomersChrome extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersChrome::class, 'Google_Service_Directory_Resource_CustomersChrome');

View File

@@ -0,0 +1,179 @@
<?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\Resource;
use Google\Service\Directory\AdminEmpty;
use Google\Service\Directory\BatchCreatePrintServersRequest;
use Google\Service\Directory\BatchCreatePrintServersResponse;
use Google\Service\Directory\BatchDeletePrintServersRequest;
use Google\Service\Directory\BatchDeletePrintServersResponse;
use Google\Service\Directory\ListPrintServersResponse;
use Google\Service\Directory\PrintServer;
/**
* The "printServers" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $printServers = $adminService->customers_chrome_printServers;
* </code>
*/
class CustomersChromePrintServers extends \Google\Service\Resource
{
/**
* Creates multiple print servers. (printServers.batchCreatePrintServers)
*
* @param string $parent Required. The [unique ID](https://developers.google.com
* /workspace/admin/directory/reference/rest/v1/customers) of the customer's
* Google Workspace account. Format: `customers/{id}`
* @param BatchCreatePrintServersRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreatePrintServersResponse
* @throws \Google\Service\Exception
*/
public function batchCreatePrintServers($parent, BatchCreatePrintServersRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreatePrintServers', [$params], BatchCreatePrintServersResponse::class);
}
/**
* Deletes multiple print servers. (printServers.batchDeletePrintServers)
*
* @param string $parent Required. The [unique ID](https://developers.google.com
* /workspace/admin/directory/reference/rest/v1/customers) of the customer's
* Google Workspace account. Format: `customers/{customer.id}`
* @param BatchDeletePrintServersRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchDeletePrintServersResponse
* @throws \Google\Service\Exception
*/
public function batchDeletePrintServers($parent, BatchDeletePrintServersRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDeletePrintServers', [$params], BatchDeletePrintServersResponse::class);
}
/**
* Creates a print server. (printServers.create)
*
* @param string $parent Required. The [unique ID](https://developers.google.com
* /workspace/admin/directory/reference/rest/v1/customers) of the customer's
* Google Workspace account. Format: `customers/{id}`
* @param PrintServer $postBody
* @param array $optParams Optional parameters.
* @return PrintServer
* @throws \Google\Service\Exception
*/
public function create($parent, PrintServer $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PrintServer::class);
}
/**
* Deletes a print server. (printServers.delete)
*
* @param string $name Required. The name of the print server to be deleted.
* Format: `customers/{customer.id}/chrome/printServers/{print_server.id}`
* @param array $optParams Optional parameters.
* @return AdminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AdminEmpty::class);
}
/**
* Returns a print server's configuration. (printServers.get)
*
* @param string $name Required. The [unique ID](https://developers.google.com/w
* orkspace/admin/directory/reference/rest/v1/customers) of the customer's
* Google Workspace account. Format: `customers/{id}`
* @param array $optParams Optional parameters.
* @return PrintServer
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PrintServer::class);
}
/**
* Lists print server configurations.
* (printServers.listCustomersChromePrintServers)
*
* @param string $parent Required. The [unique ID](https://developers.google.com
* /workspace/admin/directory/reference/rest/v1/customers) of the customer's
* Google Workspace account. Format: `customers/{id}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Search query in [Common Expression Language
* syntax](https://github.com/google/cel-spec). Supported filters are
* `display_name`, `description`, and `uri`. Example:
* `printServer.displayName=='marketing-queue'`.
* @opt_param string orderBy Sort order for results. Supported values are
* `display_name`, `description`, or `create_time`. Default order is ascending,
* but descending order can be returned by appending "desc" to the `order_by`
* field. For instance, `orderBy=='description desc'` returns the print servers
* sorted by description in descending order.
* @opt_param string orgUnitId If `org_unit_id` is present in the request, only
* print servers owned or inherited by the organizational unit (OU) are
* returned. If the `PrintServer` resource's `org_unit_id` matches the one in
* the request, the OU owns the server. If `org_unit_id` is not specified in the
* request, all print servers are returned or filtered against.
* @opt_param int pageSize The maximum number of objects to return (default
* `100`, max `100`). The service might return fewer than this value.
* @opt_param string pageToken A generated token to paginate results (the
* `next_page_token` from a previous call).
* @return ListPrintServersResponse
* @throws \Google\Service\Exception
*/
public function listCustomersChromePrintServers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPrintServersResponse::class);
}
/**
* Updates a print server's configuration. (printServers.patch)
*
* @param string $name Identifier. Resource name of the print server. Leave
* empty when creating. Format:
* `customers/{customer.id}/printServers/{print_server.id}`
* @param PrintServer $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. Some fields are
* read-only and cannot be updated. Values for unspecified fields are patched.
* @return PrintServer
* @throws \Google\Service\Exception
*/
public function patch($name, PrintServer $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], PrintServer::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersChromePrintServers::class, 'Google_Service_Directory_Resource_CustomersChromePrintServers');

View File

@@ -0,0 +1,199 @@
<?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\Resource;
use Google\Service\Directory\AdminEmpty;
use Google\Service\Directory\BatchCreatePrintersRequest;
use Google\Service\Directory\BatchCreatePrintersResponse;
use Google\Service\Directory\BatchDeletePrintersRequest;
use Google\Service\Directory\BatchDeletePrintersResponse;
use Google\Service\Directory\ListPrinterModelsResponse;
use Google\Service\Directory\ListPrintersResponse;
use Google\Service\Directory\Printer;
/**
* The "printers" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $printers = $adminService->customers_chrome_printers;
* </code>
*/
class CustomersChromePrinters extends \Google\Service\Resource
{
/**
* Creates printers under given Organization Unit.
* (printers.batchCreatePrinters)
*
* @param string $parent Required. The name of the customer. Format:
* customers/{customer_id}
* @param BatchCreatePrintersRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreatePrintersResponse
* @throws \Google\Service\Exception
*/
public function batchCreatePrinters($parent, BatchCreatePrintersRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreatePrinters', [$params], BatchCreatePrintersResponse::class);
}
/**
* Deletes printers in batch. (printers.batchDeletePrinters)
*
* @param string $parent Required. The name of the customer. Format:
* customers/{customer_id}
* @param BatchDeletePrintersRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchDeletePrintersResponse
* @throws \Google\Service\Exception
*/
public function batchDeletePrinters($parent, BatchDeletePrintersRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDeletePrinters', [$params], BatchDeletePrintersResponse::class);
}
/**
* Creates a printer under given Organization Unit. (printers.create)
*
* @param string $parent Required. The name of the customer. Format:
* customers/{customer_id}
* @param Printer $postBody
* @param array $optParams Optional parameters.
* @return Printer
* @throws \Google\Service\Exception
*/
public function create($parent, Printer $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Printer::class);
}
/**
* Deletes a `Printer`. (printers.delete)
*
* @param string $name Required. The name of the printer to be updated. Format:
* customers/{customer_id}/chrome/printers/{printer_id}
* @param array $optParams Optional parameters.
* @return AdminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AdminEmpty::class);
}
/**
* Returns a `Printer` resource (printer's config). (printers.get)
*
* @param string $name Required. The name of the printer to retrieve. Format:
* customers/{customer_id}/chrome/printers/{printer_id}
* @param array $optParams Optional parameters.
* @return Printer
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Printer::class);
}
/**
* List printers configs. (printers.listCustomersChromePrinters)
*
* @param string $parent Required. The name of the customer who owns this
* collection of printers. Format: customers/{customer_id}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Search query. Search syntax is shared between this
* api and Admin Console printers pages.
* @opt_param string orderBy The order to sort results by. Must be one of
* display_name, description, make_and_model, or create_time. Default order is
* ascending, but descending order can be returned by appending "desc" to the
* order_by field. For instance, "description desc" will return the printers
* sorted by description in descending order.
* @opt_param string orgUnitId Organization Unit that we want to list the
* printers for. When org_unit is not present in the request then all printers
* of the customer are returned (or filtered). When org_unit is present in the
* request then only printers available to this OU will be returned (owned or
* inherited). You may see if printer is owned or inherited for this OU by
* looking at Printer.org_unit_id.
* @opt_param int pageSize The maximum number of objects to return. The service
* may return fewer than this value.
* @opt_param string pageToken A page token, received from a previous call.
* @return ListPrintersResponse
* @throws \Google\Service\Exception
*/
public function listCustomersChromePrinters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPrintersResponse::class);
}
/**
* Lists the supported printer models. (printers.listPrinterModels)
*
* @param string $parent Required. The name of the customer who owns this
* collection of printers. Format: customers/{customer_id}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filer to list only models by a given manufacturer in
* format: "manufacturer:Brother". Search syntax is shared between this api and
* Admin Console printers pages.
* @opt_param int pageSize The maximum number of objects to return. The service
* may return fewer than this value.
* @opt_param string pageToken A page token, received from a previous call.
* @return ListPrinterModelsResponse
* @throws \Google\Service\Exception
*/
public function listPrinterModels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listPrinterModels', [$params], ListPrinterModelsResponse::class);
}
/**
* Updates a `Printer` resource. (printers.patch)
*
* @param string $name Identifier. The resource name of the Printer object, in
* the format customers/{customer-id}/printers/{printer-id} (During printer
* creation leave empty)
* @param Printer $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clearMask The list of fields to be cleared. Note, some of
* the fields are read only and cannot be updated. Values for not specified
* fields will be patched.
* @opt_param string updateMask The list of fields to be updated. Note, some of
* the fields are read only and cannot be updated. Values for not specified
* fields will be patched.
* @return Printer
* @throws \Google\Service\Exception
*/
public function patch($name, Printer $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Printer::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersChromePrinters::class, 'Google_Service_Directory_Resource_CustomersChromePrinters');

View File

@@ -0,0 +1,109 @@
<?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\Resource;
use Google\Service\Directory\DomainAlias;
use Google\Service\Directory\DomainAliases as DomainAliasesModel;
/**
* The "domainAliases" collection of methods.
* Typical usage is:
* <code>
* $adminService = new Google\Service\Directory(...);
* $domainAliases = $adminService->domainAliases;
* </code>
*/
class DomainAliases extends \Google\Service\Resource
{
/**
* Deletes a domain Alias of the customer. (domainAliases.delete)
*
* @param string $customer Immutable ID of the Google Workspace account.
* @param string $domainAliasName Name of domain alias to be retrieved.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($customer, $domainAliasName, $optParams = [])
{
$params = ['customer' => $customer, 'domainAliasName' => $domainAliasName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves a domain alias of the customer. (domainAliases.get)
*
* @param string $customer The unique ID for the customer's Google Workspace
* account. In case of a multi-domain account, to fetch all groups for a
* customer, use this field instead of `domain`. You can also use the
* `my_customer` alias to represent your account's `customerId`. The
* `customerId` is also returned as part of the [Users](https://developers.googl
* e.com/workspace/admin/directory/v1/reference/users) resource. You must
* provide either the `customer` or the `domain` parameter.
* @param string $domainAliasName Name of domain alias to be retrieved.
* @param array $optParams Optional parameters.
* @return DomainAlias
* @throws \Google\Service\Exception
*/
public function get($customer, $domainAliasName, $optParams = [])
{
$params = ['customer' => $customer, 'domainAliasName' => $domainAliasName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DomainAlias::class);
}
/**
* Inserts a domain alias of the customer. (domainAliases.insert)
*
* @param string $customer Immutable ID of the Google Workspace account.
* @param DomainAlias $postBody
* @param array $optParams Optional parameters.
* @return DomainAlias
* @throws \Google\Service\Exception
*/
public function insert($customer, DomainAlias $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], DomainAlias::class);
}
/**
* Lists the domain aliases of the customer. (domainAliases.listDomainAliases)
*
* @param string $customer The unique ID for the customer's Google Workspace
* account. In case of a multi-domain account, to fetch all groups for a
* customer, use this field instead of `domain`. You can also use the
* `my_customer` alias to represent your account's `customerId`. The
* `customerId` is also returned as part of the [Users](https://developers.googl
* e.com/workspace/admin/directory/v1/reference/users) resource. You must
* provide either the `customer` or the `domain` parameter.
* @param array $optParams Optional parameters.
*
* @opt_param string parentDomainName Name of the parent domain for which domain
* aliases are to be fetched.
* @return DomainAliasesModel
* @throws \Google\Service\Exception
*/
public function listDomainAliases($customer, $optParams = [])
{
$params = ['customer' => $customer];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DomainAliasesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainAliases::class, 'Google_Service_Directory_Resource_DomainAliases');

Some files were not shown because too many files have changed in this diff Show More