Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?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\HomeGraphService;
class AgentDeviceId extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentDeviceId::class, 'Google_Service_HomeGraphService_AgentDeviceId');

View File

@@ -0,0 +1,62 @@
<?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\HomeGraphService;
class AgentOtherDeviceId extends \Google\Model
{
/**
* @var string
*/
public $agentId;
/**
* @var string
*/
public $deviceId;
/**
* @param string
*/
public function setAgentId($agentId)
{
$this->agentId = $agentId;
}
/**
* @return string
*/
public function getAgentId()
{
return $this->agentId;
}
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentOtherDeviceId::class, 'Google_Service_HomeGraphService_AgentOtherDeviceId');

View File

@@ -0,0 +1,237 @@
<?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\HomeGraphService;
class Device extends \Google\Collection
{
protected $collection_key = 'traits';
/**
* @var array[]
*/
public $attributes;
/**
* @var array[]
*/
public $customData;
protected $deviceInfoType = DeviceInfo::class;
protected $deviceInfoDataType = '';
/**
* @var string
*/
public $id;
protected $nameType = DeviceNames::class;
protected $nameDataType = '';
/**
* @var bool
*/
public $notificationSupportedByAgent;
protected $otherDeviceIdsType = AgentOtherDeviceId::class;
protected $otherDeviceIdsDataType = 'array';
/**
* @var string
*/
public $roomHint;
/**
* @var string
*/
public $structureHint;
/**
* @var string[]
*/
public $traits;
/**
* @var string
*/
public $type;
/**
* @var bool
*/
public $willReportState;
/**
* @param array[]
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return array[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param array[]
*/
public function setCustomData($customData)
{
$this->customData = $customData;
}
/**
* @return array[]
*/
public function getCustomData()
{
return $this->customData;
}
/**
* @param DeviceInfo
*/
public function setDeviceInfo(DeviceInfo $deviceInfo)
{
$this->deviceInfo = $deviceInfo;
}
/**
* @return DeviceInfo
*/
public function getDeviceInfo()
{
return $this->deviceInfo;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param DeviceNames
*/
public function setName(DeviceNames $name)
{
$this->name = $name;
}
/**
* @return DeviceNames
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setNotificationSupportedByAgent($notificationSupportedByAgent)
{
$this->notificationSupportedByAgent = $notificationSupportedByAgent;
}
/**
* @return bool
*/
public function getNotificationSupportedByAgent()
{
return $this->notificationSupportedByAgent;
}
/**
* @param AgentOtherDeviceId[]
*/
public function setOtherDeviceIds($otherDeviceIds)
{
$this->otherDeviceIds = $otherDeviceIds;
}
/**
* @return AgentOtherDeviceId[]
*/
public function getOtherDeviceIds()
{
return $this->otherDeviceIds;
}
/**
* @param string
*/
public function setRoomHint($roomHint)
{
$this->roomHint = $roomHint;
}
/**
* @return string
*/
public function getRoomHint()
{
return $this->roomHint;
}
/**
* @param string
*/
public function setStructureHint($structureHint)
{
$this->structureHint = $structureHint;
}
/**
* @return string
*/
public function getStructureHint()
{
return $this->structureHint;
}
/**
* @param string[]
*/
public function setTraits($traits)
{
$this->traits = $traits;
}
/**
* @return string[]
*/
public function getTraits()
{
return $this->traits;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param bool
*/
public function setWillReportState($willReportState)
{
$this->willReportState = $willReportState;
}
/**
* @return bool
*/
public function getWillReportState()
{
return $this->willReportState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Device::class, 'Google_Service_HomeGraphService_Device');

View File

@@ -0,0 +1,98 @@
<?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\HomeGraphService;
class DeviceInfo extends \Google\Model
{
/**
* @var string
*/
public $hwVersion;
/**
* @var string
*/
public $manufacturer;
/**
* @var string
*/
public $model;
/**
* @var string
*/
public $swVersion;
/**
* @param string
*/
public function setHwVersion($hwVersion)
{
$this->hwVersion = $hwVersion;
}
/**
* @return string
*/
public function getHwVersion()
{
return $this->hwVersion;
}
/**
* @param string
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* @param string
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* @param string
*/
public function setSwVersion($swVersion)
{
$this->swVersion = $swVersion;
}
/**
* @return string
*/
public function getSwVersion()
{
return $this->swVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceInfo::class, 'Google_Service_HomeGraphService_DeviceInfo');

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\HomeGraphService;
class DeviceNames extends \Google\Collection
{
protected $collection_key = 'nicknames';
/**
* @var string[]
*/
public $defaultNames;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $nicknames;
/**
* @param string[]
*/
public function setDefaultNames($defaultNames)
{
$this->defaultNames = $defaultNames;
}
/**
* @return string[]
*/
public function getDefaultNames()
{
return $this->defaultNames;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setNicknames($nicknames)
{
$this->nicknames = $nicknames;
}
/**
* @return string[]
*/
public function getNicknames()
{
return $this->nicknames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceNames::class, 'Google_Service_HomeGraphService_DeviceNames');

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\HomeGraphService;
class HomegraphEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HomegraphEmpty::class, 'Google_Service_HomeGraphService_HomegraphEmpty');

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\HomeGraphService;
class QueryRequest extends \Google\Collection
{
protected $collection_key = 'inputs';
/**
* @var string
*/
public $agentUserId;
protected $inputsType = QueryRequestInput::class;
protected $inputsDataType = 'array';
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setAgentUserId($agentUserId)
{
$this->agentUserId = $agentUserId;
}
/**
* @return string
*/
public function getAgentUserId()
{
return $this->agentUserId;
}
/**
* @param QueryRequestInput[]
*/
public function setInputs($inputs)
{
$this->inputs = $inputs;
}
/**
* @return QueryRequestInput[]
*/
public function getInputs()
{
return $this->inputs;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryRequest::class, 'Google_Service_HomeGraphService_QueryRequest');

View File

@@ -0,0 +1,42 @@
<?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\HomeGraphService;
class QueryRequestInput extends \Google\Model
{
protected $payloadType = QueryRequestPayload::class;
protected $payloadDataType = '';
/**
* @param QueryRequestPayload
*/
public function setPayload(QueryRequestPayload $payload)
{
$this->payload = $payload;
}
/**
* @return QueryRequestPayload
*/
public function getPayload()
{
return $this->payload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryRequestInput::class, 'Google_Service_HomeGraphService_QueryRequestInput');

View File

@@ -0,0 +1,43 @@
<?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\HomeGraphService;
class QueryRequestPayload extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = AgentDeviceId::class;
protected $devicesDataType = 'array';
/**
* @param AgentDeviceId[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return AgentDeviceId[]
*/
public function getDevices()
{
return $this->devices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryRequestPayload::class, 'Google_Service_HomeGraphService_QueryRequestPayload');

View File

@@ -0,0 +1,60 @@
<?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\HomeGraphService;
class QueryResponse extends \Google\Model
{
protected $payloadType = QueryResponsePayload::class;
protected $payloadDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @param QueryResponsePayload
*/
public function setPayload(QueryResponsePayload $payload)
{
$this->payload = $payload;
}
/**
* @return QueryResponsePayload
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryResponse::class, 'Google_Service_HomeGraphService_QueryResponse');

View File

@@ -0,0 +1,44 @@
<?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\HomeGraphService;
class QueryResponsePayload extends \Google\Model
{
/**
* @var array[]
*/
public $devices;
/**
* @param array[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return array[]
*/
public function getDevices()
{
return $this->devices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryResponsePayload::class, 'Google_Service_HomeGraphService_QueryResponsePayload');

View File

@@ -0,0 +1,62 @@
<?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\HomeGraphService;
class ReportStateAndNotificationDevice extends \Google\Model
{
/**
* @var array[]
*/
public $notifications;
/**
* @var array[]
*/
public $states;
/**
* @param array[]
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return array[]
*/
public function getNotifications()
{
return $this->notifications;
}
/**
* @param array[]
*/
public function setStates($states)
{
$this->states = $states;
}
/**
* @return array[]
*/
public function getStates()
{
return $this->states;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportStateAndNotificationDevice::class, 'Google_Service_HomeGraphService_ReportStateAndNotificationDevice');

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\HomeGraphService;
class ReportStateAndNotificationRequest extends \Google\Model
{
/**
* @var string
*/
public $agentUserId;
/**
* @var string
*/
public $eventId;
/**
* @var string
*/
public $followUpToken;
protected $payloadType = StateAndNotificationPayload::class;
protected $payloadDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setAgentUserId($agentUserId)
{
$this->agentUserId = $agentUserId;
}
/**
* @return string
*/
public function getAgentUserId()
{
return $this->agentUserId;
}
/**
* @param string
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* @param string
*/
public function setFollowUpToken($followUpToken)
{
$this->followUpToken = $followUpToken;
}
/**
* @return string
*/
public function getFollowUpToken()
{
return $this->followUpToken;
}
/**
* @param StateAndNotificationPayload
*/
public function setPayload(StateAndNotificationPayload $payload)
{
$this->payload = $payload;
}
/**
* @return StateAndNotificationPayload
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportStateAndNotificationRequest::class, 'Google_Service_HomeGraphService_ReportStateAndNotificationRequest');

View File

@@ -0,0 +1,44 @@
<?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\HomeGraphService;
class ReportStateAndNotificationResponse extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportStateAndNotificationResponse::class, 'Google_Service_HomeGraphService_ReportStateAndNotificationResponse');

View File

@@ -0,0 +1,62 @@
<?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\HomeGraphService;
class RequestSyncDevicesRequest extends \Google\Model
{
/**
* @var string
*/
public $agentUserId;
/**
* @var bool
*/
public $async;
/**
* @param string
*/
public function setAgentUserId($agentUserId)
{
$this->agentUserId = $agentUserId;
}
/**
* @return string
*/
public function getAgentUserId()
{
return $this->agentUserId;
}
/**
* @param bool
*/
public function setAsync($async)
{
$this->async = $async;
}
/**
* @return bool
*/
public function getAsync()
{
return $this->async;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestSyncDevicesRequest::class, 'Google_Service_HomeGraphService_RequestSyncDevicesRequest');

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\HomeGraphService;
class RequestSyncDevicesResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestSyncDevicesResponse::class, 'Google_Service_HomeGraphService_RequestSyncDevicesResponse');

View File

@@ -0,0 +1,58 @@
<?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\HomeGraphService\Resource;
use Google\Service\HomeGraphService\HomegraphEmpty;
/**
* The "agentUsers" collection of methods.
* Typical usage is:
* <code>
* $homegraphService = new Google\Service\HomeGraphService(...);
* $agentUsers = $homegraphService->agentUsers;
* </code>
*/
class AgentUsers extends \Google\Service\Resource
{
/**
* Unlinks the given third-party user from your smart home Action. All data
* related to this user will be deleted. For more details on how users link
* their accounts, see [fulfillment and
* authentication](https://developers.home.google.com/cloud-to-
* cloud/primer/fulfillment). The third-party user's identity is passed in via
* the `agent_user_id` (see DeleteAgentUserRequest). This request must be
* authorized using service account credentials from your Actions console
* project. (agentUsers.delete)
*
* @param string $agentUserId Required. Third-party user ID.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Request ID used for debugging.
* @return HomegraphEmpty
* @throws \Google\Service\Exception
*/
public function delete($agentUserId, $optParams = [])
{
$params = ['agentUserId' => $agentUserId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], HomegraphEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentUsers::class, 'Google_Service_HomeGraphService_Resource_AgentUsers');

View File

@@ -0,0 +1,121 @@
<?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\HomeGraphService\Resource;
use Google\Service\HomeGraphService\QueryRequest;
use Google\Service\HomeGraphService\QueryResponse;
use Google\Service\HomeGraphService\ReportStateAndNotificationRequest;
use Google\Service\HomeGraphService\ReportStateAndNotificationResponse;
use Google\Service\HomeGraphService\RequestSyncDevicesRequest;
use Google\Service\HomeGraphService\RequestSyncDevicesResponse;
use Google\Service\HomeGraphService\SyncRequest;
use Google\Service\HomeGraphService\SyncResponse;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $homegraphService = new Google\Service\HomeGraphService(...);
* $devices = $homegraphService->devices;
* </code>
*/
class Devices extends \Google\Service\Resource
{
/**
* Gets the current states in Home Graph for the given set of the third-party
* user's devices. The third-party user's identity is passed in via the
* `agent_user_id` (see QueryRequest). This request must be authorized using
* service account credentials from your Actions console project.
* (devices.query)
*
* @param QueryRequest $postBody
* @param array $optParams Optional parameters.
* @return QueryResponse
* @throws \Google\Service\Exception
*/
public function query(QueryRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], QueryResponse::class);
}
/**
* Reports device state and optionally sends device notifications. Called by
* your smart home Action when the state of a third-party device changes or you
* need to send a notification about the device. See [Implement Report
* State](https://developers.home.google.com/cloud-to-cloud/integration/report-
* state) for more information. This method updates the device state according
* to its declared [traits](https://developers.home.google.com/cloud-to-
* cloud/primer/device-types-and-traits). Publishing a new state value outside
* of these traits will result in an `INVALID_ARGUMENT` error response. The
* third-party user's identity is passed in via the `agent_user_id` (see
* ReportStateAndNotificationRequest). This request must be authorized using
* service account credentials from your Actions console project.
* (devices.reportStateAndNotification)
*
* @param ReportStateAndNotificationRequest $postBody
* @param array $optParams Optional parameters.
* @return ReportStateAndNotificationResponse
* @throws \Google\Service\Exception
*/
public function reportStateAndNotification(ReportStateAndNotificationRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reportStateAndNotification', [$params], ReportStateAndNotificationResponse::class);
}
/**
* Requests Google to send an `action.devices.SYNC`
* [intent](https://developers.home.google.com/cloud-to-cloud/intents/sync) to
* your smart home Action to update device metadata for the given user. The
* third-party user's identity is passed via the `agent_user_id` (see
* RequestSyncDevicesRequest). This request must be authorized using service
* account credentials from your Actions console project. (devices.requestSync)
*
* @param RequestSyncDevicesRequest $postBody
* @param array $optParams Optional parameters.
* @return RequestSyncDevicesResponse
* @throws \Google\Service\Exception
*/
public function requestSync(RequestSyncDevicesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('requestSync', [$params], RequestSyncDevicesResponse::class);
}
/**
* Gets all the devices associated with the given third-party user. The third-
* party user's identity is passed in via the `agent_user_id` (see SyncRequest).
* This request must be authorized using service account credentials from your
* Actions console project. (devices.sync)
*
* @param SyncRequest $postBody
* @param array $optParams Optional parameters.
* @return SyncResponse
* @throws \Google\Service\Exception
*/
public function sync(SyncRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sync', [$params], SyncResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Devices::class, 'Google_Service_HomeGraphService_Resource_Devices');

View File

@@ -0,0 +1,42 @@
<?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\HomeGraphService;
class StateAndNotificationPayload extends \Google\Model
{
protected $devicesType = ReportStateAndNotificationDevice::class;
protected $devicesDataType = '';
/**
* @param ReportStateAndNotificationDevice
*/
public function setDevices(ReportStateAndNotificationDevice $devices)
{
$this->devices = $devices;
}
/**
* @return ReportStateAndNotificationDevice
*/
public function getDevices()
{
return $this->devices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StateAndNotificationPayload::class, 'Google_Service_HomeGraphService_StateAndNotificationPayload');

View File

@@ -0,0 +1,62 @@
<?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\HomeGraphService;
class SyncRequest extends \Google\Model
{
/**
* @var string
*/
public $agentUserId;
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setAgentUserId($agentUserId)
{
$this->agentUserId = $agentUserId;
}
/**
* @return string
*/
public function getAgentUserId()
{
return $this->agentUserId;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SyncRequest::class, 'Google_Service_HomeGraphService_SyncRequest');

View File

@@ -0,0 +1,60 @@
<?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\HomeGraphService;
class SyncResponse extends \Google\Model
{
protected $payloadType = SyncResponsePayload::class;
protected $payloadDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @param SyncResponsePayload
*/
public function setPayload(SyncResponsePayload $payload)
{
$this->payload = $payload;
}
/**
* @return SyncResponsePayload
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SyncResponse::class, 'Google_Service_HomeGraphService_SyncResponse');

View File

@@ -0,0 +1,61 @@
<?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\HomeGraphService;
class SyncResponsePayload extends \Google\Collection
{
protected $collection_key = 'devices';
/**
* @var string
*/
public $agentUserId;
protected $devicesType = Device::class;
protected $devicesDataType = 'array';
/**
* @param string
*/
public function setAgentUserId($agentUserId)
{
$this->agentUserId = $agentUserId;
}
/**
* @return string
*/
public function getAgentUserId()
{
return $this->agentUserId;
}
/**
* @param Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return Device[]
*/
public function getDevices()
{
return $this->devices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SyncResponsePayload::class, 'Google_Service_HomeGraphService_SyncResponsePayload');