Class AgentEndpointServiceConnection (2.15.1)

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

To create a concrete instance, see MakeAgentEndpointServiceConnection().

For mocking, see osconfig_agentendpoint_v1_mocks::MockAgentEndpointServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ReceiveTaskNotification(google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const &
Returns
TypeDescription
StreamRange< google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationResponse >

virtual StartNextTask(google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::osconfig::agentendpoint::v1::StartNextTaskResponse >

virtual ReportTaskProgress(google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const &
Returns
TypeDescription
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressResponse >

virtual ReportTaskComplete(google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const &
Returns
TypeDescription
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteResponse >

virtual RegisterAgent(google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::osconfig::agentendpoint::v1::RegisterAgentResponse >

virtual ReportInventory(google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const &)

Parameter
NameDescription
request google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportInventoryResponse >