Class AssuredWorkloadsServiceConnection (2.11.0)

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

To create a concrete instance, see MakeAssuredWorkloadsServiceConnection().

For mocking, see assuredworkloads_v1_mocks::MockAssuredWorkloadsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateWorkload(google::cloud::assuredworkloads::v1::CreateWorkloadRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::CreateWorkloadRequest const &
Returns
Type Description
future< StatusOr< google::cloud::assuredworkloads::v1::Workload > >

virtual UpdateWorkload(google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const &
Returns
Type Description
StatusOr< google::cloud::assuredworkloads::v1::Workload >

virtual RestrictAllowedResources(google::cloud::assuredworkloads::v1::RestrictAllowedResourcesRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::RestrictAllowedResourcesRequest const &
Returns
Type Description
StatusOr< google::cloud::assuredworkloads::v1::RestrictAllowedResourcesResponse >

virtual DeleteWorkload(google::cloud::assuredworkloads::v1::DeleteWorkloadRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::DeleteWorkloadRequest const &
Returns
Type Description
Status

virtual GetWorkload(google::cloud::assuredworkloads::v1::GetWorkloadRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::GetWorkloadRequest const &
Returns
Type Description
StatusOr< google::cloud::assuredworkloads::v1::Workload >

virtual ListWorkloads(google::cloud::assuredworkloads::v1::ListWorkloadsRequest)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::ListWorkloadsRequest
Returns
Type Description
StreamRange< google::cloud::assuredworkloads::v1::Workload >

virtual ListViolations(google::cloud::assuredworkloads::v1::ListViolationsRequest)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::ListViolationsRequest
Returns
Type Description
StreamRange< google::cloud::assuredworkloads::v1::Violation >

virtual GetViolation(google::cloud::assuredworkloads::v1::GetViolationRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::GetViolationRequest const &
Returns
Type Description
StatusOr< google::cloud::assuredworkloads::v1::Violation >

virtual AcknowledgeViolation(google::cloud::assuredworkloads::v1::AcknowledgeViolationRequest const &)

Parameter
Name Description
request google::cloud::assuredworkloads::v1::AcknowledgeViolationRequest const &
Returns
Type Description
StatusOr< google::cloud::assuredworkloads::v1::AcknowledgeViolationResponse >