Class DatastreamConnection (2.23.0)

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 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 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 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 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 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 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 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 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 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 > >