Class GkeHubConnection (2.29.0)

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

To create a concrete instance, see MakeGkeHubConnection().

For mocking, see gkehub_v1_mocks::MockGkeHubConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListMemberships(google::cloud::gkehub::v1::ListMembershipsRequest)

Parameter
Name Description
request google::cloud::gkehub::v1::ListMembershipsRequest
Returns
Type Description
StreamRange< google::cloud::gkehub::v1::Membership >

virtual ListFeatures(google::cloud::gkehub::v1::ListFeaturesRequest)

Parameter
Name Description
request google::cloud::gkehub::v1::ListFeaturesRequest
Returns
Type Description
StreamRange< google::cloud::gkehub::v1::Feature >

virtual GetMembership(google::cloud::gkehub::v1::GetMembershipRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::GetMembershipRequest const &
Returns
Type Description
StatusOr< google::cloud::gkehub::v1::Membership >

virtual GetFeature(google::cloud::gkehub::v1::GetFeatureRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::GetFeatureRequest const &
Returns
Type Description
StatusOr< google::cloud::gkehub::v1::Feature >

virtual CreateMembership(google::cloud::gkehub::v1::CreateMembershipRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::CreateMembershipRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::Membership > >

virtual CreateMembership(NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const &)

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

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

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

virtual CreateFeature(google::cloud::gkehub::v1::CreateFeatureRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::CreateFeatureRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::Feature > >

virtual CreateFeature(NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const &)

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

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

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

virtual DeleteMembership(google::cloud::gkehub::v1::DeleteMembershipRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::DeleteMembershipRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::OperationMetadata > >

virtual DeleteMembership(NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const &)

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

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

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

virtual DeleteFeature(google::cloud::gkehub::v1::DeleteFeatureRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::DeleteFeatureRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::OperationMetadata > >

virtual DeleteFeature(NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const &)

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

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

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

virtual UpdateMembership(google::cloud::gkehub::v1::UpdateMembershipRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::UpdateMembershipRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::Membership > >

virtual UpdateMembership(NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const &)

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

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

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

virtual UpdateFeature(google::cloud::gkehub::v1::UpdateFeatureRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::UpdateFeatureRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkehub::v1::Feature > >

virtual UpdateFeature(NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const &)

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

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

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

virtual GenerateConnectManifest(google::cloud::gkehub::v1::GenerateConnectManifestRequest const &)

Parameter
Name Description
request google::cloud::gkehub::v1::GenerateConnectManifestRequest const &
Returns
Type Description
StatusOr< google::cloud::gkehub::v1::GenerateConnectManifestResponse >