Class DatastreamConnection (2.15.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::datastream::v1::ListConnectionProfilesRequest
Returns
TypeDescription
StreamRange< google::cloud::datastream::v1::ConnectionProfile >

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

Parameter
NameDescription
request google::cloud::datastream::v1::GetConnectionProfileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::ConnectionProfile >

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

Parameter
NameDescription
request google::cloud::datastream::v1::CreateConnectionProfileRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::ConnectionProfile > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::UpdateConnectionProfileRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::ConnectionProfile > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::DeleteConnectionProfileRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::DiscoverConnectionProfileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::DiscoverConnectionProfileResponse >

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

Parameter
NameDescription
request google::cloud::datastream::v1::ListStreamsRequest
Returns
TypeDescription
StreamRange< google::cloud::datastream::v1::Stream >

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

Parameter
NameDescription
request google::cloud::datastream::v1::GetStreamRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::Stream >

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

Parameter
NameDescription
request google::cloud::datastream::v1::CreateStreamRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::Stream > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::UpdateStreamRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::Stream > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::DeleteStreamRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::GetStreamObjectRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::StreamObject >

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

Parameter
NameDescription
request google::cloud::datastream::v1::LookupStreamObjectRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::StreamObject >

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

Parameter
NameDescription
request google::cloud::datastream::v1::ListStreamObjectsRequest
Returns
TypeDescription
StreamRange< google::cloud::datastream::v1::StreamObject >

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

Parameter
NameDescription
request google::cloud::datastream::v1::StartBackfillJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::StartBackfillJobResponse >

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

Parameter
NameDescription
request google::cloud::datastream::v1::StopBackfillJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::StopBackfillJobResponse >

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

Parameter
NameDescription
request google::cloud::datastream::v1::FetchStaticIpsRequest
Returns
TypeDescription
StreamRange< std::string >

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

Parameter
NameDescription
request google::cloud::datastream::v1::CreatePrivateConnectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::PrivateConnection > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::GetPrivateConnectionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::PrivateConnection >

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

Parameter
NameDescription
request google::cloud::datastream::v1::ListPrivateConnectionsRequest
Returns
TypeDescription
StreamRange< google::cloud::datastream::v1::PrivateConnection >

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

Parameter
NameDescription
request google::cloud::datastream::v1::DeletePrivateConnectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::CreateRouteRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::Route > >

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

Parameter
NameDescription
request google::cloud::datastream::v1::GetRouteRequest const &
Returns
TypeDescription
StatusOr< google::cloud::datastream::v1::Route >

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

Parameter
NameDescription
request google::cloud::datastream::v1::ListRoutesRequest
Returns
TypeDescription
StreamRange< google::cloud::datastream::v1::Route >

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

Parameter
NameDescription
request google::cloud::datastream::v1::DeleteRouteRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::datastream::v1::OperationMetadata > >