* Registers and manages IoT (Internet of Things) devices that connect to the * Google Cloud Platform.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_CloudIot extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** Register and manage devices in the Google Cloud IoT service. */ const CLOUDIOT = "https://www.googleapis.com/auth/cloudiot"; public $projects_locations_registries; public $projects_locations_registries_devices; public $projects_locations_registries_devices_configVersions; public $projects_locations_registries_devices_states; public $projects_locations_registries_groups; public $projects_locations_registries_groups_devices; /** * Constructs the internal representation of the CloudIot service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://cloudiot.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudiot'; $this->projects_locations_registries = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistries( $this, $this->serviceName, 'registries', array( 'methods' => array( 'bindDeviceToGateway' => array( 'path' => 'v1/{+parent}:bindDeviceToGateway', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v1/{+parent}/registries', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+parent}/registries', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'unbindDeviceFromGateway' => array( 'path' => 'v1/{+parent}:unbindDeviceFromGateway', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_registries_devices = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevices( $this, $this->serviceName, 'devices', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/devices', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'fieldMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v1/{+parent}/devices', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'fieldMask' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'deviceIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'deviceNumIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'gatewayListOptions.associationsDeviceId' => array( 'location' => 'query', 'type' => 'string', ), 'gatewayListOptions.gatewayType' => array( 'location' => 'query', 'type' => 'string', ), 'gatewayListOptions.associationsGatewayId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'modifyCloudToDeviceConfig' => array( 'path' => 'v1/{+name}:modifyCloudToDeviceConfig', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'sendCommandToDevice' => array( 'path' => 'v1/{+name}:sendCommandToDevice', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_registries_devices_configVersions = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevicesConfigVersions( $this, $this->serviceName, 'configVersions', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+name}/configVersions', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'numVersions' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->projects_locations_registries_devices_states = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevicesStates( $this, $this->serviceName, 'states', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+name}/states', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'numStates' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->projects_locations_registries_groups = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroups( $this, $this->serviceName, 'groups', array( 'methods' => array( 'getIamPolicy' => array( 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_registries_groups_devices = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevices( $this, $this->serviceName, 'devices', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+parent}/devices', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'gatewayListOptions.gatewayType' => array( 'location' => 'query', 'type' => 'string', ), 'gatewayListOptions.associationsGatewayId' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'fieldMask' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'deviceIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'deviceNumIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'gatewayListOptions.associationsDeviceId' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }