Class ServiceAttachmentsConnection (2.23.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::AggregatedListServiceAttachmentsRequest
Returns
TypeDescription
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::ServiceAttachmentsScopedList > >

virtual DeleteServiceAttachment(google::cloud::cpp::compute::service_attachments::v1::DeleteServiceAttachmentRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::DeleteServiceAttachmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetServiceAttachment(google::cloud::cpp::compute::service_attachments::v1::GetServiceAttachmentRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::GetServiceAttachmentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::ServiceAttachment >

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

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertServiceAttachment(google::cloud::cpp::compute::service_attachments::v1::InsertServiceAttachmentRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::InsertServiceAttachmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::ListServiceAttachmentsRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::ServiceAttachment >

virtual PatchServiceAttachment(google::cloud::cpp::compute::service_attachments::v1::PatchServiceAttachmentRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::PatchServiceAttachmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

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

Parameter
NameDescription
request google::cloud::cpp::compute::service_attachments::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >