Class RegistrationServiceConnection (2.18.0)

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

To create a concrete instance, see MakeRegistrationServiceConnection().

For mocking, see servicedirectory_v1_mocks::MockRegistrationServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateNamespace(google::cloud::servicedirectory::v1::CreateNamespaceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::CreateNamespaceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Namespace >

virtual ListNamespaces(google::cloud::servicedirectory::v1::ListNamespacesRequest)

Parameter
Name Description
request google::cloud::servicedirectory::v1::ListNamespacesRequest
Returns
Type Description
StreamRange< google::cloud::servicedirectory::v1::Namespace >

virtual GetNamespace(google::cloud::servicedirectory::v1::GetNamespaceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::GetNamespaceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Namespace >

virtual UpdateNamespace(google::cloud::servicedirectory::v1::UpdateNamespaceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::UpdateNamespaceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Namespace >

virtual DeleteNamespace(google::cloud::servicedirectory::v1::DeleteNamespaceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::DeleteNamespaceRequest const &
Returns
Type Description
Status

virtual CreateService(google::cloud::servicedirectory::v1::CreateServiceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::CreateServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Service >

virtual ListServices(google::cloud::servicedirectory::v1::ListServicesRequest)

Parameter
Name Description
request google::cloud::servicedirectory::v1::ListServicesRequest
Returns
Type Description
StreamRange< google::cloud::servicedirectory::v1::Service >

virtual GetService(google::cloud::servicedirectory::v1::GetServiceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::GetServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Service >

virtual UpdateService(google::cloud::servicedirectory::v1::UpdateServiceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::UpdateServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Service >

virtual DeleteService(google::cloud::servicedirectory::v1::DeleteServiceRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::DeleteServiceRequest const &
Returns
Type Description
Status

virtual CreateEndpoint(google::cloud::servicedirectory::v1::CreateEndpointRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::CreateEndpointRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Endpoint >

virtual ListEndpoints(google::cloud::servicedirectory::v1::ListEndpointsRequest)

Parameter
Name Description
request google::cloud::servicedirectory::v1::ListEndpointsRequest
Returns
Type Description
StreamRange< google::cloud::servicedirectory::v1::Endpoint >

virtual GetEndpoint(google::cloud::servicedirectory::v1::GetEndpointRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::GetEndpointRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Endpoint >

virtual UpdateEndpoint(google::cloud::servicedirectory::v1::UpdateEndpointRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::UpdateEndpointRequest const &
Returns
Type Description
StatusOr< google::cloud::servicedirectory::v1::Endpoint >

virtual DeleteEndpoint(google::cloud::servicedirectory::v1::DeleteEndpointRequest const &)

Parameter
Name Description
request google::cloud::servicedirectory::v1::DeleteEndpointRequest const &
Returns
Type Description
Status

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >