Get desktop application:
View/edit binary Protocol Buffers messages
Google Cloud Datastore Admin API The Datastore Admin API provides several admin services for Cloud Datastore. ----------------------------------------------------------------------------- ## Concepts Project, namespace, kind, and entity as defined in the Google Cloud Datastore API. Operation: An Operation represents work being performed in the background. EntityFilter: Allows specifying a subset of entities in a project. This is specified as a combination of kinds and namespaces (either or both of which may be all). ----------------------------------------------------------------------------- ## Services # Export/Import The Export/Import service provides the ability to copy all or a subset of entities to/from Google Cloud Storage. Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It is not restricted to the export source project. It is possible to export from one project and then import into another. Exported data can also be loaded into Google BigQuery for analysis. Exports and imports are performed asynchronously. An Operation resource is created for each export/import. The state (including any errors encountered) of the export/import may be queried via the Operation resource. # Index The index service manages Cloud Datastore composite indexes. Index creation and deletion are performed asynchronously. An Operation resource is created for each such asynchronous operation. The state of the operation (including any errors encountered) may be queried via the Operation resource. # Operation The Operations collection provides a record of actions performed for the specified project (including any operations in progress). Operations are not created directly but through calls on other collections or resources. An operation that is not yet done may be cancelled. The request to cancel is asynchronous and the operation may continue to run for some time after the request to cancel is made. An operation that is done may be deleted so that it is no longer listed as part of the Operation collection. ListOperations returns all pending operations, but not completed operations. Operations are created by service DatastoreAdmin, but are accessed via service google.longrunning.Operations.
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
The request for [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
Project ID against which to make the request.
Client-assigned labels.
Description of what data from the project is included in the export.
Location for the export metadata and data files. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So output_url_prefix should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field. That value should be used for subsequent ImportEntities operations. By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple ExportEntities operations without conflict.
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
The request for [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
Project ID against which to make the request.
Client-assigned labels.
The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
Gets an index.
The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
Project ID against which to make the request.
The resource ID of the index to get.
Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.
The request for [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
Project ID against which to make the request.
The maximum number of items to return. If zero, then all results will be returned.
The next_page_token value returned from a previous List request, if any.
The response for [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].
The indexes.
The standard List next-page token.
Metadata common to all Datastore Admin operations.
Used in:
, ,The time that work began on the operation.
The time the operation ended, either successfully or otherwise.
The type of the operation. Can be used as a filter in ListOperationsRequest.
The client-assigned labels which were provided when the operation was created. May also include additional labels.
The current state of the Operation.
The various possible states for an ongoing Operation.
Used in:
Unspecified.
Request is being prepared for processing.
Request is actively being processed.
Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.
Request has been processed and is in its finalization stage.
Request has completed successfully.
Request has finished being processed, but encountered an error.
Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.
Identifies a subset of entities in a project. This is specified as combinations of kinds and namespaces (either or both of which may be all, as described in the following examples). Example usage: Entire project: kinds=[], namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'], namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo', 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz namespace: kinds=[], namespace_ids=['Baz']
Used in:
, , ,If empty, then this represents all kinds.
An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
Metadata for ExportEntities operations.
Metadata common to all Datastore Admin operations.
An estimate of the number of entities processed.
An estimate of the number of bytes processed.
Description of which entities are being exported.
Location for the export metadata and data files. This will be the same value as the [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] field. The final output location is provided in [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
The response for [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
Location of the output metadata file. This can be used to begin an import into Cloud Datastore (this project or another project). See [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. Only present if the operation completed successfully.
Metadata for ImportEntities operations.
Metadata common to all Datastore Admin operations.
An estimate of the number of entities processed.
An estimate of the number of bytes processed.
Description of which entities are being imported.
The location of the import metadata file. This will be the same value as the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
A minimal index definition. Next tag: 8
Used as response type in: DatastoreAdmin.GetIndex
Used as field type in:
Project ID. Output only.
The resource ID of the index. Output only.
The entity kind to which this index applies. Required.
The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. Required.
An ordered sequence of property names and their index attributes. Required.
The state of the index. Output only.
For an ordered index, specifies whether each of the entity's ancestors will be included.
Used in:
The ancestor mode is unspecified.
Do not include the entity's ancestors in the index.
Include all the entity's ancestors in the index.
The direction determines how a property is indexed.
Used in:
The direction is unspecified.
The property's values are indexed so as to support sequencing in ascending order and also query by <, >, <=, >=, and =.
The property's values are indexed so as to support sequencing in descending order and also query by <, >, <=, >=, and =.
Next tag: 3
Used in:
The property name to index. Required.
The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. Required.
The possible set of states of an index.
Used in:
The state is unspecified.
The index is being created, and cannot be used by queries. There is an active long-running operation for the index. The index is updated when writing an entity. Some index data may exist.
The index is ready to be used. The index is updated when writing an entity. The index is fully populated from all stored entities it applies to.
The index is being deleted, and cannot be used by queries. There is an active long-running operation for the index. The index is not updated when writing an entity. Some index data may exist.
The index was being created or deleted, but something went wrong. The index cannot by used by queries. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing an entity. Some index data may exist.
Metadata for Index operations.
Metadata common to all Datastore Admin operations.
An estimate of the number of entities processed.
The index resource ID that this operation is acting on.
Operation types.
Used in:
Unspecified.
ExportEntities.
ImportEntities.
CreateIndex.
DeleteIndex.
Measures the progress of a particular metric.
Used in:
, ,The amount of work that has been completed. Note that this may be greater than work_estimated.
An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.