Class OsConfigZonalServiceConnection (2.30.0)

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

To create a concrete instance, see MakeOsConfigZonalServiceConnection().

For mocking, see osconfig_v1_mocks::MockOsConfigZonalServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateOSPolicyAssignment(google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignment > >

virtual CreateOSPolicyAssignment(NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateOSPolicyAssignment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignment > >

virtual UpdateOSPolicyAssignment(google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignment > >

virtual UpdateOSPolicyAssignment(NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateOSPolicyAssignment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignment > >

virtual GetOSPolicyAssignment(google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::v1::OSPolicyAssignment >

virtual ListOSPolicyAssignments(google::cloud::osconfig::v1::ListOSPolicyAssignmentsRequest)

Parameter
Name Description
request google::cloud::osconfig::v1::ListOSPolicyAssignmentsRequest
Returns
Type Description
StreamRange< google::cloud::osconfig::v1::OSPolicyAssignment >

virtual ListOSPolicyAssignmentRevisions(google::cloud::osconfig::v1::ListOSPolicyAssignmentRevisionsRequest)

Parameter
Name Description
request google::cloud::osconfig::v1::ListOSPolicyAssignmentRevisionsRequest
Returns
Type Description
StreamRange< google::cloud::osconfig::v1::OSPolicyAssignment >

virtual DeleteOSPolicyAssignment(google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignmentOperationMetadata > >

virtual DeleteOSPolicyAssignment(NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOSPolicyAssignment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::osconfig::v1::OSPolicyAssignmentOperationMetadata > >

virtual GetOSPolicyAssignmentReport(google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::v1::OSPolicyAssignmentReport >

virtual ListOSPolicyAssignmentReports(google::cloud::osconfig::v1::ListOSPolicyAssignmentReportsRequest)

Parameter
Name Description
request google::cloud::osconfig::v1::ListOSPolicyAssignmentReportsRequest
Returns
Type Description
StreamRange< google::cloud::osconfig::v1::OSPolicyAssignmentReport >

virtual GetInventory(google::cloud::osconfig::v1::GetInventoryRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::GetInventoryRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::v1::Inventory >

virtual ListInventories(google::cloud::osconfig::v1::ListInventoriesRequest)

Parameter
Name Description
request google::cloud::osconfig::v1::ListInventoriesRequest
Returns
Type Description
StreamRange< google::cloud::osconfig::v1::Inventory >

virtual GetVulnerabilityReport(google::cloud::osconfig::v1::GetVulnerabilityReportRequest const &)

Parameter
Name Description
request google::cloud::osconfig::v1::GetVulnerabilityReportRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::v1::VulnerabilityReport >

virtual ListVulnerabilityReports(google::cloud::osconfig::v1::ListVulnerabilityReportsRequest)

Parameter
Name Description
request google::cloud::osconfig::v1::ListVulnerabilityReportsRequest
Returns
Type Description
StreamRange< google::cloud::osconfig::v1::VulnerabilityReport >