Class DatastoreAdminConnection (2.21.0)

This interface defines virtual methods for each of the user-facing overload sets in DatastoreAdminClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DatastoreAdminClient.

To create a concrete instance, see MakeDatastoreAdminConnection().

For mocking, see datastore_admin_v1_mocks::MockDatastoreAdminConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ExportEntities(google::datastore::admin::v1::ExportEntitiesRequest const &)

Parameter
NameDescription
request google::datastore::admin::v1::ExportEntitiesRequest const &
Returns
TypeDescription
future< StatusOr< google::datastore::admin::v1::ExportEntitiesResponse > >

virtual ImportEntities(google::datastore::admin::v1::ImportEntitiesRequest const &)

Parameter
NameDescription
request google::datastore::admin::v1::ImportEntitiesRequest const &
Returns
TypeDescription
future< StatusOr< google::datastore::admin::v1::ImportEntitiesMetadata > >

virtual CreateIndex(google::datastore::admin::v1::CreateIndexRequest const &)

Parameter
NameDescription
request google::datastore::admin::v1::CreateIndexRequest const &
Returns
TypeDescription
future< StatusOr< google::datastore::admin::v1::Index > >

virtual DeleteIndex(google::datastore::admin::v1::DeleteIndexRequest const &)

Parameter
NameDescription
request google::datastore::admin::v1::DeleteIndexRequest const &
Returns
TypeDescription
future< StatusOr< google::datastore::admin::v1::Index > >

virtual GetIndex(google::datastore::admin::v1::GetIndexRequest const &)

Parameter
NameDescription
request google::datastore::admin::v1::GetIndexRequest const &
Returns
TypeDescription
StatusOr< google::datastore::admin::v1::Index >

virtual ListIndexes(google::datastore::admin::v1::ListIndexesRequest)

Parameter
NameDescription
request google::datastore::admin::v1::ListIndexesRequest
Returns
TypeDescription
StreamRange< google::datastore::admin::v1::Index >