Class DatastoreAdminConnection (2.26.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
Type Description
Options

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

Parameter
Name Description
request google::datastore::admin::v1::ExportEntitiesRequest const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::ExportEntitiesResponse > >

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::datastore::admin::v1::ExportEntitiesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportEntities(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::ExportEntitiesResponse > >

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

Parameter
Name Description
request google::datastore::admin::v1::ImportEntitiesRequest const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::ImportEntitiesMetadata > >

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::datastore::admin::v1::ImportEntitiesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportEntities(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::ImportEntitiesMetadata > >

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

Parameter
Name Description
request google::datastore::admin::v1::CreateIndexRequest const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::Index > >

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::datastore::admin::v1::CreateIndexRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateIndex(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::Index > >

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

Parameter
Name Description
request google::datastore::admin::v1::DeleteIndexRequest const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::Index > >

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::datastore::admin::v1::DeleteIndexRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteIndex(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::datastore::admin::v1::Index > >

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

Parameter
Name Description
request google::datastore::admin::v1::GetIndexRequest const &
Returns
Type Description
StatusOr< google::datastore::admin::v1::Index >

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

Parameter
Name Description
request google::datastore::admin::v1::ListIndexesRequest
Returns
Type Description
StreamRange< google::datastore::admin::v1::Index >