ChecklistService

Trait ChecklistService 

Source
pub trait ChecklistService {
Show 15 methods // Required methods fn create( &self, auth_: BearerToken, request: CreateChecklistRequest, ) -> Result<VersionedChecklist, Error>; fn commit( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: CommitChecklistRequest, ) -> Result<VersionedChecklist, Error>; fn save_working_state( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: SaveChecklistRequest, ) -> Result<VersionedChecklist, Error>; fn merge_to_main( &self, auth_: BearerToken, checklist_rid: ChecklistRid, request: MergeToMainRequest, ) -> Result<VersionedChecklist, Error>; fn update_data_source_ref_names( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, ref_name_updates: BTreeMap<DataSourceRefName, DataSourceRefName>, ) -> Result<VersionedChecklist, Error>; fn update_metadata( &self, auth_: BearerToken, rid: ChecklistRid, request: UpdateChecklistMetadataRequest, ) -> Result<ChecklistMetadata, Error>; fn get( &self, auth_: BearerToken, rid: ChecklistRid, branch: Option<BranchName>, commit: Option<CommitId>, ) -> Result<VersionedChecklist, Error>; fn batch_get( &self, auth_: BearerToken, checklist_refs: BTreeSet<PinnedChecklistRef>, ) -> Result<BTreeSet<VersionedChecklist>, Error>; fn batch_get_metadata( &self, auth_: BearerToken, request: BatchGetChecklistMetadataRequest, ) -> Result<BatchGetChecklistMetadataResponse, Error>; fn search( &self, auth_: BearerToken, request: SearchChecklistsRequest, ) -> Result<VersionedChecklistPage, Error>; fn archive( &self, auth_: BearerToken, request: ArchiveChecklistsRequest, ) -> Result<(), Error>; fn unarchive( &self, auth_: BearerToken, request: UnarchiveChecklistsRequest, ) -> Result<(), Error>; fn get_check( &self, auth_: BearerToken, rid: CheckRid, ) -> Result<Check, Error>; fn batch_get_checks( &self, auth_: BearerToken, rids: BTreeSet<CheckRid>, ) -> Result<BTreeSet<Check>, Error>; fn get_all_labels_and_properties( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> Result<GetAllLabelsAndPropertiesResponse, Error>;
}
Expand description

The Checklist Service is responsible for managing checklists and checks. A checklist is a collection of checks that can be executed against a set of data sources.

Required Methods§

Source

fn create( &self, auth_: BearerToken, request: CreateChecklistRequest, ) -> Result<VersionedChecklist, Error>

Creates a new checklist with the provided checks.

Source

fn commit( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: CommitChecklistRequest, ) -> Result<VersionedChecklist, Error>

Creates a permanent commit with a commit message. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you commit to an archived checklist.

Source

fn save_working_state( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: SaveChecklistRequest, ) -> Result<VersionedChecklist, Error>

Creates a commit that may be compacted, e.g cleaned up and not exist anymore. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you save to an archived checklist.

Source

fn merge_to_main( &self, auth_: BearerToken, checklist_rid: ChecklistRid, request: MergeToMainRequest, ) -> Result<VersionedChecklist, Error>

Merges the given branch to the “main” branch. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you merge with an archived checklist.

Source

fn update_data_source_ref_names( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, ref_name_updates: BTreeMap<DataSourceRefName, DataSourceRefName>, ) -> Result<VersionedChecklist, Error>

Updates the data source ref names for all checks within a checklist. Throws if the checklist doesn’t exist.

Source

fn update_metadata( &self, auth_: BearerToken, rid: ChecklistRid, request: UpdateChecklistMetadataRequest, ) -> Result<ChecklistMetadata, Error>

Updates the metadata of a checklist.

Source

fn get( &self, auth_: BearerToken, rid: ChecklistRid, branch: Option<BranchName>, commit: Option<CommitId>, ) -> Result<VersionedChecklist, Error>

Specify at most one of (branch, commit). If neither is specified, branch = “main” is the default.

Source

fn batch_get( &self, auth_: BearerToken, checklist_refs: BTreeSet<PinnedChecklistRef>, ) -> Result<BTreeSet<VersionedChecklist>, Error>

Returns the pinned commit for each provided checklist reference.

Source

fn batch_get_metadata( &self, auth_: BearerToken, request: BatchGetChecklistMetadataRequest, ) -> Result<BatchGetChecklistMetadataResponse, Error>

Returns the metadata for each provided checklist.

Source

fn search( &self, auth_: BearerToken, request: SearchChecklistsRequest, ) -> Result<VersionedChecklistPage, Error>

Results will be the latest commit on main for each checklist.

Source

fn archive( &self, auth_: BearerToken, request: ArchiveChecklistsRequest, ) -> Result<(), Error>

Archives the provided checklists.

Source

fn unarchive( &self, auth_: BearerToken, request: UnarchiveChecklistsRequest, ) -> Result<(), Error>

Unarchives the provided checklists.

Source

fn get_check(&self, auth_: BearerToken, rid: CheckRid) -> Result<Check, Error>

Returns the check with the given rid.

Source

fn batch_get_checks( &self, auth_: BearerToken, rids: BTreeSet<CheckRid>, ) -> Result<BTreeSet<Check>, Error>

Returns the checks with the given rids.

Source

fn get_all_labels_and_properties( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> Result<GetAllLabelsAndPropertiesResponse, Error>

Returns all labels and properties.

Implementors§