Class FirewallsConnection (2.17.0)

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

To create a concrete instance, see MakeFirewallsConnection().

For mocking, see compute_firewalls_v1_mocks::MockFirewallsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual DeleteFirewall(google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const &)

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

virtual GetFirewall(google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Firewall >

virtual InsertFirewall(google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const &)

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

virtual ListFirewalls(google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Firewall >

virtual PatchFirewall(google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const &)

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

virtual UpdateFirewall(google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const &)

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