* Cloud Spanner is a managed, mission-critical, globally consistent and * scalable relational database service.

* *

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

* * @author Google, Inc. */ class Google_Service_Spanner extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** Administer your Spanner databases. */ const SPANNER_ADMIN = "https://www.googleapis.com/auth/spanner.admin"; /** View and manage the contents of your Spanner databases. */ const SPANNER_DATA = "https://www.googleapis.com/auth/spanner.data"; public $projects_instanceConfigs; public $projects_instances; public $projects_instances_databases; public $projects_instances_databases_operations; public $projects_instances_databases_sessions; public $projects_instances_operations; /** * Constructs the internal representation of the Spanner service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://spanner.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'spanner'; $this->projects_instanceConfigs = new Google_Service_Spanner_Resource_ProjectsInstanceConfigs( $this, $this->serviceName, 'instanceConfigs', array( 'methods' => array( 'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+parent}/instanceConfigs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->projects_instances = new Google_Service_Spanner_Resource_ProjectsInstances( $this, $this->serviceName, 'instances', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/instances', '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}/instances', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), '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, ), ), ),'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_instances_databases = new Google_Service_Spanner_Resource_ProjectsInstancesDatabases( $this, $this->serviceName, 'databases', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/databases', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'dropDatabase' => array( 'path' => 'v1/{+database}', 'httpMethod' => 'DELETE', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getDdl' => array( 'path' => 'v1/{+database}/ddl', 'httpMethod' => 'GET', 'parameters' => array( 'database' => 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}/databases', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'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, ), ), ),'updateDdl' => array( 'path' => 'v1/{+database}/ddl', 'httpMethod' => 'PATCH', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_instances_databases_operations = new Google_Service_Spanner_Resource_ProjectsInstancesDatabasesOperations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'cancel' => array( 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => 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, ), ), ),'list' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_instances_databases_sessions = new Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions( $this, $this->serviceName, 'sessions', array( 'methods' => array( 'beginTransaction' => array( 'path' => 'v1/{+session}:beginTransaction', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'commit' => array( 'path' => 'v1/{+session}:commit', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v1/{+database}/sessions', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'executeBatchDml' => array( 'path' => 'v1/{+session}:executeBatchDml', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'executeSql' => array( 'path' => 'v1/{+session}:executeSql', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'executeStreamingSql' => array( 'path' => 'v1/{+session}:executeStreamingSql', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+database}/sessions', 'httpMethod' => 'GET', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'partitionQuery' => array( 'path' => 'v1/{+session}:partitionQuery', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'partitionRead' => array( 'path' => 'v1/{+session}:partitionRead', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'read' => array( 'path' => 'v1/{+session}:read', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'rollback' => array( 'path' => 'v1/{+session}:rollback', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'streamingRead' => array( 'path' => 'v1/{+session}:streamingRead', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_instances_operations = new Google_Service_Spanner_Resource_ProjectsInstancesOperations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'cancel' => array( 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => 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, ), ), ),'list' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }