Trait MetadataService

Source
pub trait MetadataService:
    Debug
    + Send
    + Sync {
Show 44 methods // Provided methods fn create_metadata_store( &self, _req: CreateMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_metadata_store( &self, _req: GetMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataStore>>> + Send { ... } fn list_metadata_stores( &self, _req: ListMetadataStoresRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMetadataStoresResponse>>> + Send { ... } fn delete_metadata_store( &self, _req: DeleteMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn create_artifact( &self, _req: CreateArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send { ... } fn get_artifact( &self, _req: GetArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send { ... } fn list_artifacts( &self, _req: ListArtifactsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListArtifactsResponse>>> + Send { ... } fn update_artifact( &self, _req: UpdateArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send { ... } fn delete_artifact( &self, _req: DeleteArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn purge_artifacts( &self, _req: PurgeArtifactsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn create_context( &self, _req: CreateContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send { ... } fn get_context( &self, _req: GetContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send { ... } fn list_contexts( &self, _req: ListContextsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListContextsResponse>>> + Send { ... } fn update_context( &self, _req: UpdateContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send { ... } fn delete_context( &self, _req: DeleteContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn purge_contexts( &self, _req: PurgeContextsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn add_context_artifacts_and_executions( &self, _req: AddContextArtifactsAndExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddContextArtifactsAndExecutionsResponse>>> + Send { ... } fn add_context_children( &self, _req: AddContextChildrenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddContextChildrenResponse>>> + Send { ... } fn remove_context_children( &self, _req: RemoveContextChildrenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RemoveContextChildrenResponse>>> + Send { ... } fn query_context_lineage_subgraph( &self, _req: QueryContextLineageSubgraphRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send { ... } fn create_execution( &self, _req: CreateExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send { ... } fn get_execution( &self, _req: GetExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send { ... } fn list_executions( &self, _req: ListExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListExecutionsResponse>>> + Send { ... } fn update_execution( &self, _req: UpdateExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send { ... } fn delete_execution( &self, _req: DeleteExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn purge_executions( &self, _req: PurgeExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn add_execution_events( &self, _req: AddExecutionEventsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddExecutionEventsResponse>>> + Send { ... } fn query_execution_inputs_and_outputs( &self, _req: QueryExecutionInputsAndOutputsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send { ... } fn create_metadata_schema( &self, _req: CreateMetadataSchemaRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataSchema>>> + Send { ... } fn get_metadata_schema( &self, _req: GetMetadataSchemaRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataSchema>>> + Send { ... } fn list_metadata_schemas( &self, _req: ListMetadataSchemasRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMetadataSchemasResponse>>> + Send { ... } fn query_artifact_lineage_subgraph( &self, _req: QueryArtifactLineageSubgraphRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send { ... } fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send { ... } fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send { ... } fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... } fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy> { ... } fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Available on crate feature metadata-service only.
Expand description

Defines the trait used to implement super::client::MetadataService.

Application developers may need to implement this trait to mock client::MetadataService. In other use-cases, application developers only use client::MetadataService and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Source

fn create_metadata_store( &self, _req: CreateMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_metadata_store( &self, _req: GetMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataStore>>> + Send

Source

fn list_metadata_stores( &self, _req: ListMetadataStoresRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMetadataStoresResponse>>> + Send

Source

fn delete_metadata_store( &self, _req: DeleteMetadataStoreRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn create_artifact( &self, _req: CreateArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send

Source

fn get_artifact( &self, _req: GetArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send

Source

fn list_artifacts( &self, _req: ListArtifactsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListArtifactsResponse>>> + Send

Source

fn update_artifact( &self, _req: UpdateArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Artifact>>> + Send

Source

fn delete_artifact( &self, _req: DeleteArtifactRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn purge_artifacts( &self, _req: PurgeArtifactsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn create_context( &self, _req: CreateContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send

Source

fn get_context( &self, _req: GetContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send

Source

fn list_contexts( &self, _req: ListContextsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListContextsResponse>>> + Send

Source

fn update_context( &self, _req: UpdateContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Context>>> + Send

Source

fn delete_context( &self, _req: DeleteContextRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn purge_contexts( &self, _req: PurgeContextsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn add_context_artifacts_and_executions( &self, _req: AddContextArtifactsAndExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddContextArtifactsAndExecutionsResponse>>> + Send

Source

fn add_context_children( &self, _req: AddContextChildrenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddContextChildrenResponse>>> + Send

Source

fn remove_context_children( &self, _req: RemoveContextChildrenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RemoveContextChildrenResponse>>> + Send

Source

fn query_context_lineage_subgraph( &self, _req: QueryContextLineageSubgraphRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send

Source

fn create_execution( &self, _req: CreateExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send

Source

fn get_execution( &self, _req: GetExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send

Source

fn list_executions( &self, _req: ListExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListExecutionsResponse>>> + Send

Source

fn update_execution( &self, _req: UpdateExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Execution>>> + Send

Source

fn delete_execution( &self, _req: DeleteExecutionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn purge_executions( &self, _req: PurgeExecutionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn add_execution_events( &self, _req: AddExecutionEventsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddExecutionEventsResponse>>> + Send

Source

fn query_execution_inputs_and_outputs( &self, _req: QueryExecutionInputsAndOutputsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send

Source

fn create_metadata_schema( &self, _req: CreateMetadataSchemaRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataSchema>>> + Send

Source

fn get_metadata_schema( &self, _req: GetMetadataSchemaRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MetadataSchema>>> + Send

Source

fn list_metadata_schemas( &self, _req: ListMetadataSchemasRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMetadataSchemasResponse>>> + Send

Source

fn query_artifact_lineage_subgraph( &self, _req: QueryArtifactLineageSubgraphRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<LineageSubgraph>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

Source

fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send

Source

fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send

Source

fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>

Returns the polling error policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Source

fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>

Returns the polling backoff policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§