* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class HomeGraphService extends \Google\Service { /** Private Service: https://www.googleapis.com/auth/homegraph. */ const HOMEGRAPH = "https://www.googleapis.com/auth/homegraph"; public $agentUsers; public $devices; /** * Constructs the internal representation of the HomeGraphService service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://homegraph.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'homegraph'; $this->agentUsers = new HomeGraphService\Resource\AgentUsers( $this, $this->serviceName, 'agentUsers', [ 'methods' => [ 'delete' => [ 'path' => 'v1/{+agentUserId}', 'httpMethod' => 'DELETE', 'parameters' => [ 'agentUserId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'requestId' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->devices = new HomeGraphService\Resource\Devices( $this, $this->serviceName, 'devices', [ 'methods' => [ 'query' => [ 'path' => 'v1/devices:query', 'httpMethod' => 'POST', 'parameters' => [], ],'reportStateAndNotification' => [ 'path' => 'v1/devices:reportStateAndNotification', 'httpMethod' => 'POST', 'parameters' => [], ],'requestSync' => [ 'path' => 'v1/devices:requestSync', 'httpMethod' => 'POST', 'parameters' => [], ],'sync' => [ 'path' => 'v1/devices:sync', 'httpMethod' => 'POST', 'parameters' => [], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(HomeGraphService::class, 'Google_Service_HomeGraphService');