Class MetadataServiceConnection (2.33.0)

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

To create a concrete instance, see MakeMetadataServiceConnection().

For mocking, see dataplex_v1_mocks::MockMetadataServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateEntity(google::cloud::dataplex::v1::CreateEntityRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::CreateEntityRequest const &
Returns
Type Description
StatusOr< google::cloud::dataplex::v1::Entity >

virtual UpdateEntity(google::cloud::dataplex::v1::UpdateEntityRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::UpdateEntityRequest const &
Returns
Type Description
StatusOr< google::cloud::dataplex::v1::Entity >

virtual DeleteEntity(google::cloud::dataplex::v1::DeleteEntityRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::DeleteEntityRequest const &
Returns
Type Description
Status

virtual GetEntity(google::cloud::dataplex::v1::GetEntityRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::GetEntityRequest const &
Returns
Type Description
StatusOr< google::cloud::dataplex::v1::Entity >

virtual ListEntities(google::cloud::dataplex::v1::ListEntitiesRequest)

Parameter
Name Description
request google::cloud::dataplex::v1::ListEntitiesRequest
Returns
Type Description
StreamRange< google::cloud::dataplex::v1::Entity >

virtual CreatePartition(google::cloud::dataplex::v1::CreatePartitionRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::CreatePartitionRequest const &
Returns
Type Description
StatusOr< google::cloud::dataplex::v1::Partition >

virtual DeletePartition(google::cloud::dataplex::v1::DeletePartitionRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::DeletePartitionRequest const &
Returns
Type Description
Status

virtual GetPartition(google::cloud::dataplex::v1::GetPartitionRequest const &)

Parameter
Name Description
request google::cloud::dataplex::v1::GetPartitionRequest const &
Returns
Type Description
StatusOr< google::cloud::dataplex::v1::Partition >

virtual ListPartitions(google::cloud::dataplex::v1::ListPartitionsRequest)

Parameter
Name Description
request google::cloud::dataplex::v1::ListPartitionsRequest
Returns
Type Description
StreamRange< google::cloud::dataplex::v1::Partition >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

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 GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest 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 >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status