Class LoggingServiceV2Connection (2.11.0)

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

To create a concrete instance, see MakeLoggingServiceV2Connection().

For mocking, see logging_v2_mocks::MockLoggingServiceV2Connection.

Functions

virtual options()

Returns
Type Description
Options

virtual DeleteLog(google::logging::v2::DeleteLogRequest const &)

Parameter
Name Description
request google::logging::v2::DeleteLogRequest const &
Returns
Type Description
Status

virtual WriteLogEntries(google::logging::v2::WriteLogEntriesRequest const &)

Parameter
Name Description
request google::logging::v2::WriteLogEntriesRequest const &
Returns
Type Description
StatusOr< google::logging::v2::WriteLogEntriesResponse >

virtual ListLogEntries(google::logging::v2::ListLogEntriesRequest)

Parameter
Name Description
request google::logging::v2::ListLogEntriesRequest
Returns
Type Description
StreamRange< google::logging::v2::LogEntry >

virtual ListMonitoredResourceDescriptors(google::logging::v2::ListMonitoredResourceDescriptorsRequest)

Parameter
Name Description
request google::logging::v2::ListMonitoredResourceDescriptorsRequest
Returns
Type Description
StreamRange< google::api::MonitoredResourceDescriptor >

virtual ListLogs(google::logging::v2::ListLogsRequest)

Parameter
Name Description
request google::logging::v2::ListLogsRequest
Returns
Type Description
StreamRange< std::string >

virtual AsyncTailLogEntries()

Returns
Type Description
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::logging::v2::TailLogEntriesRequest, google::logging::v2::TailLogEntriesResponse > >

virtual AsyncWriteLogEntries(google::logging::v2::WriteLogEntriesRequest const &)

Parameter
Name Description
request google::logging::v2::WriteLogEntriesRequest const &
Returns
Type Description
future< StatusOr< google::logging::v2::WriteLogEntriesResponse > >