pub struct ChecklistServiceClient<T>(/* private fields */);
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.
Implementations§
Source§impl<T> ChecklistServiceClient<T>where
T: Client,
impl<T> ChecklistServiceClient<T>where
T: Client,
Sourcepub fn create(
&self,
auth_: &BearerToken,
request: &CreateChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub fn create( &self, auth_: &BearerToken, request: &CreateChecklistRequest, ) -> Result<VersionedChecklist, Error>
Creates a new checklist with the provided checks.
Sourcepub fn commit(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
branch: Option<&BranchName>,
request: &CommitChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub 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.
Sourcepub fn save_working_state(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
branch: Option<&BranchName>,
request: &SaveChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub 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.
Sourcepub fn merge_to_main(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
request: &MergeToMainRequest,
) -> Result<VersionedChecklist, Error>
pub 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.
Sourcepub fn update_data_source_ref_names(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
branch: Option<&BranchName>,
ref_name_updates: &BTreeMap<DataSourceRefName, DataSourceRefName>,
) -> Result<VersionedChecklist, Error>
pub 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.
Sourcepub fn update_metadata(
&self,
auth_: &BearerToken,
rid: &ChecklistRid,
request: &UpdateChecklistMetadataRequest,
) -> Result<ChecklistMetadata, Error>
pub fn update_metadata( &self, auth_: &BearerToken, rid: &ChecklistRid, request: &UpdateChecklistMetadataRequest, ) -> Result<ChecklistMetadata, Error>
Updates the metadata of a checklist.
Sourcepub fn get(
&self,
auth_: &BearerToken,
rid: &ChecklistRid,
branch: Option<&BranchName>,
commit: Option<&CommitId>,
) -> Result<VersionedChecklist, Error>
pub 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.
Sourcepub fn batch_get(
&self,
auth_: &BearerToken,
checklist_refs: &BTreeSet<PinnedChecklistRef>,
) -> Result<BTreeSet<VersionedChecklist>, Error>
pub fn batch_get( &self, auth_: &BearerToken, checklist_refs: &BTreeSet<PinnedChecklistRef>, ) -> Result<BTreeSet<VersionedChecklist>, Error>
Returns the pinned commit for each provided checklist reference.
Sourcepub fn batch_get_metadata(
&self,
auth_: &BearerToken,
request: &BatchGetChecklistMetadataRequest,
) -> Result<BatchGetChecklistMetadataResponse, Error>
pub fn batch_get_metadata( &self, auth_: &BearerToken, request: &BatchGetChecklistMetadataRequest, ) -> Result<BatchGetChecklistMetadataResponse, Error>
Returns the metadata for each provided checklist.
Sourcepub fn search(
&self,
auth_: &BearerToken,
request: &SearchChecklistsRequest,
) -> Result<VersionedChecklistPage, Error>
pub fn search( &self, auth_: &BearerToken, request: &SearchChecklistsRequest, ) -> Result<VersionedChecklistPage, Error>
Results will be the latest commit on main for each checklist.
Sourcepub fn archive(
&self,
auth_: &BearerToken,
request: &ArchiveChecklistsRequest,
) -> Result<(), Error>
pub fn archive( &self, auth_: &BearerToken, request: &ArchiveChecklistsRequest, ) -> Result<(), Error>
Archives the provided checklists.
Sourcepub fn unarchive(
&self,
auth_: &BearerToken,
request: &UnarchiveChecklistsRequest,
) -> Result<(), Error>
pub fn unarchive( &self, auth_: &BearerToken, request: &UnarchiveChecklistsRequest, ) -> Result<(), Error>
Unarchives the provided checklists.
Sourcepub fn get_check(
&self,
auth_: &BearerToken,
rid: &CheckRid,
) -> Result<Check, Error>
pub fn get_check( &self, auth_: &BearerToken, rid: &CheckRid, ) -> Result<Check, Error>
Returns the check with the given rid.
Sourcepub fn batch_get_checks(
&self,
auth_: &BearerToken,
rids: &BTreeSet<CheckRid>,
) -> Result<BTreeSet<Check>, Error>
pub fn batch_get_checks( &self, auth_: &BearerToken, rids: &BTreeSet<CheckRid>, ) -> Result<BTreeSet<Check>, Error>
Returns the checks with the given rids.
Sourcepub fn get_all_labels_and_properties(
&self,
auth_: &BearerToken,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<GetAllLabelsAndPropertiesResponse, Error>
pub fn get_all_labels_and_properties( &self, auth_: &BearerToken, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<GetAllLabelsAndPropertiesResponse, Error>
Returns all labels and properties.
Trait Implementations§
Source§impl<T: Clone> Clone for ChecklistServiceClient<T>
impl<T: Clone> Clone for ChecklistServiceClient<T>
Source§fn clone(&self) -> ChecklistServiceClient<T>
fn clone(&self) -> ChecklistServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug> Debug for ChecklistServiceClient<T>
impl<T: Debug> Debug for ChecklistServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for ChecklistServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChecklistServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ChecklistServiceClient<T>where
T: Send,
impl<T> Sync for ChecklistServiceClient<T>where
T: Sync,
impl<T> Unpin for ChecklistServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ChecklistServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request