pub struct ChecklistServiceAsyncClient<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> ChecklistServiceAsyncClient<T>where
T: AsyncClient,
impl<T> ChecklistServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn create(
&self,
auth_: &BearerToken,
request: &CreateChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub async fn create( &self, auth_: &BearerToken, request: &CreateChecklistRequest, ) -> Result<VersionedChecklist, Error>
Creates a new checklist with the provided checks.
Sourcepub async fn commit(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
branch: Option<&BranchName>,
request: &CommitChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub async 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 async fn save_working_state(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
branch: Option<&BranchName>,
request: &SaveChecklistRequest,
) -> Result<VersionedChecklist, Error>
pub async 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 async fn merge_to_main(
&self,
auth_: &BearerToken,
checklist_rid: &ChecklistRid,
request: &MergeToMainRequest,
) -> Result<VersionedChecklist, Error>
pub async 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 async 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 async 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 async fn update_metadata(
&self,
auth_: &BearerToken,
rid: &ChecklistRid,
request: &UpdateChecklistMetadataRequest,
) -> Result<ChecklistMetadata, Error>
pub async fn update_metadata( &self, auth_: &BearerToken, rid: &ChecklistRid, request: &UpdateChecklistMetadataRequest, ) -> Result<ChecklistMetadata, Error>
Updates the metadata of a checklist.
Sourcepub async fn get(
&self,
auth_: &BearerToken,
rid: &ChecklistRid,
branch: Option<&BranchName>,
commit: Option<&CommitId>,
) -> Result<VersionedChecklist, Error>
pub async 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 async fn batch_get(
&self,
auth_: &BearerToken,
checklist_refs: &BTreeSet<PinnedChecklistRef>,
) -> Result<BTreeSet<VersionedChecklist>, Error>
pub async fn batch_get( &self, auth_: &BearerToken, checklist_refs: &BTreeSet<PinnedChecklistRef>, ) -> Result<BTreeSet<VersionedChecklist>, Error>
Returns the pinned commit for each provided checklist reference.
Sourcepub async fn batch_get_metadata(
&self,
auth_: &BearerToken,
request: &BatchGetChecklistMetadataRequest,
) -> Result<BatchGetChecklistMetadataResponse, Error>
pub async fn batch_get_metadata( &self, auth_: &BearerToken, request: &BatchGetChecklistMetadataRequest, ) -> Result<BatchGetChecklistMetadataResponse, Error>
Returns the metadata for each provided checklist.
Sourcepub async fn search(
&self,
auth_: &BearerToken,
request: &SearchChecklistsRequest,
) -> Result<VersionedChecklistPage, Error>
pub async fn search( &self, auth_: &BearerToken, request: &SearchChecklistsRequest, ) -> Result<VersionedChecklistPage, Error>
Results will be the latest commit on main for each checklist.
Sourcepub async fn archive(
&self,
auth_: &BearerToken,
request: &ArchiveChecklistsRequest,
) -> Result<(), Error>
pub async fn archive( &self, auth_: &BearerToken, request: &ArchiveChecklistsRequest, ) -> Result<(), Error>
Archives the provided checklists.
Sourcepub async fn unarchive(
&self,
auth_: &BearerToken,
request: &UnarchiveChecklistsRequest,
) -> Result<(), Error>
pub async fn unarchive( &self, auth_: &BearerToken, request: &UnarchiveChecklistsRequest, ) -> Result<(), Error>
Unarchives the provided checklists.
Sourcepub async fn get_check(
&self,
auth_: &BearerToken,
rid: &CheckRid,
) -> Result<Check, Error>
pub async fn get_check( &self, auth_: &BearerToken, rid: &CheckRid, ) -> Result<Check, Error>
Returns the check with the given rid.
Sourcepub async fn batch_get_checks(
&self,
auth_: &BearerToken,
rids: &BTreeSet<CheckRid>,
) -> Result<BTreeSet<Check>, Error>
pub async fn batch_get_checks( &self, auth_: &BearerToken, rids: &BTreeSet<CheckRid>, ) -> Result<BTreeSet<Check>, Error>
Returns the checks with the given rids.
Sourcepub async fn get_all_labels_and_properties(
&self,
auth_: &BearerToken,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<GetAllLabelsAndPropertiesResponse, Error>
pub async 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> AsyncService<T> for ChecklistServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for ChecklistServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for ChecklistServiceAsyncClient<T>
impl<T: Clone> Clone for ChecklistServiceAsyncClient<T>
Source§fn clone(&self) -> ChecklistServiceAsyncClient<T>
fn clone(&self) -> ChecklistServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for ChecklistServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChecklistServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for ChecklistServiceAsyncClient<T>where
T: Send,
impl<T> Sync for ChecklistServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for ChecklistServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for ChecklistServiceAsyncClient<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