* Accesses the NoSQL document database built for automatic scaling, high * performance, and ease of application development.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_Firestore extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Cloud Datastore data. */ const DATASTORE = "https://www.googleapis.com/auth/datastore"; public $projects_databases; public $projects_databases_collectionGroups_fields; public $projects_databases_collectionGroups_indexes; public $projects_databases_documents; public $projects_databases_operations; public $projects_locations; /** * Constructs the internal representation of the Firestore service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://firestore.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'firestore'; $this->projects_databases = new Google_Service_Firestore_Resource_ProjectsDatabases( $this, $this->serviceName, 'databases', array( 'methods' => array( 'exportDocuments' => array( 'path' => 'v1/{+name}:exportDocuments', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'importDocuments' => array( 'path' => 'v1/{+name}:importDocuments', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_databases_collectionGroups_fields = new Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsFields( $this, $this->serviceName, 'fields', 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}/fields', '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, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_databases_collectionGroups_indexes = new Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsIndexes( $this, $this->serviceName, 'indexes', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/indexes', '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, ), ), ),'list' => array( 'path' => 'v1/{+parent}/indexes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => 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_databases_documents = new Google_Service_Firestore_Resource_ProjectsDatabasesDocuments( $this, $this->serviceName, 'documents', array( 'methods' => array( 'batchGet' => array( 'path' => 'v1/{+database}/documents:batchGet', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'beginTransaction' => array( 'path' => 'v1/{+database}/documents:beginTransaction', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'commit' => array( 'path' => 'v1/{+database}/documents:commit', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'createDocument' => array( 'path' => 'v1/{+parent}/{collectionId}', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'collectionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'documentId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'currentDocument.exists' => array( 'location' => 'query', 'type' => 'boolean', ), 'currentDocument.updateTime' => array( 'location' => 'query', 'type' => 'string', ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'transaction' => array( 'location' => 'query', 'type' => 'string', ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'readTime' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v1/{+parent}/{collectionId}', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'collectionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'showMissing' => array( 'location' => 'query', 'type' => 'boolean', ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'transaction' => array( 'location' => 'query', 'type' => 'string', ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), 'readTime' => array( 'location' => 'query', 'type' => 'string', ), ), ),'listCollectionIds' => array( 'path' => 'v1/{+parent}:listCollectionIds', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'listen' => array( 'path' => 'v1/{+database}/documents:listen', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'currentDocument.exists' => array( 'location' => 'query', 'type' => 'boolean', ), 'updateMask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), 'currentDocument.updateTime' => array( 'location' => 'query', 'type' => 'string', ), ), ),'rollback' => array( 'path' => 'v1/{+database}/documents:rollback', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'runQuery' => array( 'path' => 'v1/{+parent}:runQuery', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'write' => array( 'path' => 'v1/{+database}/documents:write', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_databases_operations = new Google_Service_Firestore_Resource_ProjectsDatabasesOperations( $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}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => 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', ), ), ), ) ) ); $this->projects_locations = new Google_Service_Firestore_Resource_ProjectsLocations( $this, $this->serviceName, 'locations', array( 'methods' => array( 'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+name}/locations', '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', ), ), ), ) ) ); } }