Class DataFusionConnection (2.33.0)

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

To create a concrete instance, see MakeDataFusionConnection().

For mocking, see datafusion_v1_mocks::MockDataFusionConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListAvailableVersions(google::cloud::datafusion::v1::ListAvailableVersionsRequest)

Parameter
Name Description
request google::cloud::datafusion::v1::ListAvailableVersionsRequest
Returns
Type Description
StreamRange< google::cloud::datafusion::v1::Version >

virtual ListInstances(google::cloud::datafusion::v1::ListInstancesRequest)

Parameter
Name Description
request google::cloud::datafusion::v1::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::datafusion::v1::Instance >

virtual GetInstance(google::cloud::datafusion::v1::GetInstanceRequest const &)

Parameter
Name Description
request google::cloud::datafusion::v1::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::datafusion::v1::Instance >

virtual CreateInstance(google::cloud::datafusion::v1::CreateInstanceRequest const &)

Parameter
Name Description
request google::cloud::datafusion::v1::CreateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >

virtual CreateInstance(NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::datafusion::v1::CreateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >

virtual DeleteInstance(google::cloud::datafusion::v1::DeleteInstanceRequest const &)

Parameter
Name Description
request google::cloud::datafusion::v1::DeleteInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::OperationMetadata > >

virtual DeleteInstance(NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::datafusion::v1::DeleteInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::OperationMetadata > >

virtual UpdateInstance(google::cloud::datafusion::v1::UpdateInstanceRequest const &)

Parameter
Name Description
request google::cloud::datafusion::v1::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >

virtual UpdateInstance(NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::datafusion::v1::UpdateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >

virtual RestartInstance(google::cloud::datafusion::v1::RestartInstanceRequest const &)

Parameter
Name Description
request google::cloud::datafusion::v1::RestartInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >

virtual RestartInstance(NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::datafusion::v1::RestartInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RestartInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::datafusion::v1::Instance > >