Class DatastreamConnection (2.34.0-rc)

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

To create a concrete instance, see MakeDatastreamConnection().

For mocking, see datastream_v1_mocks::MockDatastreamConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListConnectionProfiles(google::cloud::datastream::v1::ListConnectionProfilesRequest)

Parameter
Name Description
request google::cloud::datastream::v1::ListConnectionProfilesRequest
Returns
Type Description
StreamRange< google::cloud::datastream::v1::ConnectionProfile >

virtual GetConnectionProfile(google::cloud::datastream::v1::GetConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::GetConnectionProfileRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::ConnectionProfile >

virtual CreateConnectionProfile(google::cloud::datastream::v1::CreateConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::CreateConnectionProfileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::ConnectionProfile > >

virtual CreateConnectionProfile(NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const &)

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

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

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

virtual UpdateConnectionProfile(google::cloud::datastream::v1::UpdateConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::UpdateConnectionProfileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::ConnectionProfile > >

virtual UpdateConnectionProfile(NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const &)

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

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

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

virtual DeleteConnectionProfile(google::cloud::datastream::v1::DeleteConnectionProfileRequest const &)

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

virtual DeleteConnectionProfile(NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const &)

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

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

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

virtual DiscoverConnectionProfile(google::cloud::datastream::v1::DiscoverConnectionProfileRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::DiscoverConnectionProfileRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::DiscoverConnectionProfileResponse >

virtual ListStreams(google::cloud::datastream::v1::ListStreamsRequest)

Parameter
Name Description
request google::cloud::datastream::v1::ListStreamsRequest
Returns
Type Description
StreamRange< google::cloud::datastream::v1::Stream >

virtual GetStream(google::cloud::datastream::v1::GetStreamRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::GetStreamRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::Stream >

virtual CreateStream(google::cloud::datastream::v1::CreateStreamRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::CreateStreamRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::Stream > >

virtual CreateStream(NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const &)

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

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

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

virtual UpdateStream(google::cloud::datastream::v1::UpdateStreamRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::UpdateStreamRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::Stream > >

virtual UpdateStream(NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const &)

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

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

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

virtual DeleteStream(google::cloud::datastream::v1::DeleteStreamRequest const &)

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

virtual DeleteStream(NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const &)

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

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

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

virtual RunStream(google::cloud::datastream::v1::RunStreamRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::RunStreamRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::Stream > >

virtual RunStream(NoAwaitTag, google::cloud::datastream::v1::RunStreamRequest const &)

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

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

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

virtual GetStreamObject(google::cloud::datastream::v1::GetStreamObjectRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::GetStreamObjectRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::StreamObject >

virtual LookupStreamObject(google::cloud::datastream::v1::LookupStreamObjectRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::LookupStreamObjectRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::StreamObject >

virtual ListStreamObjects(google::cloud::datastream::v1::ListStreamObjectsRequest)

Parameter
Name Description
request google::cloud::datastream::v1::ListStreamObjectsRequest
Returns
Type Description
StreamRange< google::cloud::datastream::v1::StreamObject >

virtual StartBackfillJob(google::cloud::datastream::v1::StartBackfillJobRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::StartBackfillJobRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::StartBackfillJobResponse >

virtual StopBackfillJob(google::cloud::datastream::v1::StopBackfillJobRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::StopBackfillJobRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::StopBackfillJobResponse >

virtual FetchStaticIps(google::cloud::datastream::v1::FetchStaticIpsRequest)

Parameter
Name Description
request google::cloud::datastream::v1::FetchStaticIpsRequest
Returns
Type Description
StreamRange< std::string >

virtual CreatePrivateConnection(google::cloud::datastream::v1::CreatePrivateConnectionRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::CreatePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::PrivateConnection > >

virtual CreatePrivateConnection(NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const &)

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

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

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

virtual GetPrivateConnection(google::cloud::datastream::v1::GetPrivateConnectionRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::GetPrivateConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::PrivateConnection >

virtual ListPrivateConnections(google::cloud::datastream::v1::ListPrivateConnectionsRequest)

Parameter
Name Description
request google::cloud::datastream::v1::ListPrivateConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::datastream::v1::PrivateConnection >

virtual DeletePrivateConnection(google::cloud::datastream::v1::DeletePrivateConnectionRequest const &)

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

virtual DeletePrivateConnection(NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const &)

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

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

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

virtual CreateRoute(google::cloud::datastream::v1::CreateRouteRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::CreateRouteRequest const &
Returns
Type Description
future< StatusOr< google::cloud::datastream::v1::Route > >

virtual CreateRoute(NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const &)

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

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

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

virtual GetRoute(google::cloud::datastream::v1::GetRouteRequest const &)

Parameter
Name Description
request google::cloud::datastream::v1::GetRouteRequest const &
Returns
Type Description
StatusOr< google::cloud::datastream::v1::Route >

virtual ListRoutes(google::cloud::datastream::v1::ListRoutesRequest)

Parameter
Name Description
request google::cloud::datastream::v1::ListRoutesRequest
Returns
Type Description
StreamRange< google::cloud::datastream::v1::Route >

virtual DeleteRoute(google::cloud::datastream::v1::DeleteRouteRequest const &)

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

virtual DeleteRoute(NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const &)

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

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

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

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status