Class ServiceAttachmentsConnection (2.15.1)

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

To create a concrete instance, see MakeServiceAttachmentsConnection().

For mocking, see compute_service_attachments_v1_mocks::MockServiceAttachmentsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::AggregatedListServiceAttachmentsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::AggregatedListServiceAttachmentsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::ServiceAttachmentAggregatedList >

virtual DeleteServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::DeleteServiceAttachmentsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::DeleteServiceAttachmentsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::GetServiceAttachmentsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::GetServiceAttachmentsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::ServiceAttachment >

virtual GetIamPolicy(google::cloud::cpp::compute::service_attachments::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::InsertServiceAttachmentsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::InsertServiceAttachmentsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::ListServiceAttachmentsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::ListServiceAttachmentsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::ServiceAttachment >

virtual PatchServiceAttachments(google::cloud::cpp::compute::service_attachments::v1::PatchServiceAttachmentsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::PatchServiceAttachmentsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetIamPolicy(google::cloud::cpp::compute::service_attachments::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual TestIamPermissions(google::cloud::cpp::compute::service_attachments::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::service_attachments::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >