Struct gapi_grpc::google::privacy::dlp::v2::dlp_service_client::DlpServiceClient[][src]

pub struct DlpServiceClient<T> { /* fields omitted */ }

The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. The service also includes methods for sensitive data redaction and scheduling of data scans on Google Cloud Platform based data sets.

To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/.

Implementations

impl DlpServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> DlpServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn inspect_content(
    &mut self,
    request: impl IntoRequest<InspectContentRequest>
) -> Result<Response<InspectContentResponse>, Status>
[src]

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,

pub async fn redact_image(
    &mut self,
    request: impl IntoRequest<RedactImageRequest>
) -> Result<Response<RedactImageResponse>, Status>
[src]

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

pub async fn deidentify_content(
    &mut self,
    request: impl IntoRequest<DeidentifyContentRequest>
) -> Result<Response<DeidentifyContentResponse>, Status>
[src]

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more.

When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

pub async fn reidentify_content(
    &mut self,
    request: impl IntoRequest<ReidentifyContentRequest>
) -> Result<Response<ReidentifyContentResponse>, Status>
[src]

Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.

pub async fn list_info_types(
    &mut self,
    request: impl IntoRequest<ListInfoTypesRequest>
) -> Result<Response<ListInfoTypesResponse>, Status>
[src]

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.

pub async fn create_inspect_template(
    &mut self,
    request: impl IntoRequest<CreateInspectTemplateRequest>
) -> Result<Response<InspectTemplate>, Status>
[src]

Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

pub async fn update_inspect_template(
    &mut self,
    request: impl IntoRequest<UpdateInspectTemplateRequest>
) -> Result<Response<InspectTemplate>, Status>
[src]

Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

pub async fn get_inspect_template(
    &mut self,
    request: impl IntoRequest<GetInspectTemplateRequest>
) -> Result<Response<InspectTemplate>, Status>
[src]

Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

pub async fn list_inspect_templates(
    &mut self,
    request: impl IntoRequest<ListInspectTemplatesRequest>
) -> Result<Response<ListInspectTemplatesResponse>, Status>
[src]

Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

pub async fn delete_inspect_template(
    &mut self,
    request: impl IntoRequest<DeleteInspectTemplateRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.

pub async fn create_deidentify_template(
    &mut self,
    request: impl IntoRequest<CreateDeidentifyTemplateRequest>
) -> Result<Response<DeidentifyTemplate>, Status>
[src]

Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

pub async fn update_deidentify_template(
    &mut self,
    request: impl IntoRequest<UpdateDeidentifyTemplateRequest>
) -> Result<Response<DeidentifyTemplate>, Status>
[src]

Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

pub async fn get_deidentify_template(
    &mut self,
    request: impl IntoRequest<GetDeidentifyTemplateRequest>
) -> Result<Response<DeidentifyTemplate>, Status>
[src]

Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

pub async fn list_deidentify_templates(
    &mut self,
    request: impl IntoRequest<ListDeidentifyTemplatesRequest>
) -> Result<Response<ListDeidentifyTemplatesResponse>, Status>
[src]

Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

pub async fn delete_deidentify_template(
    &mut self,
    request: impl IntoRequest<DeleteDeidentifyTemplateRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.

pub async fn create_job_trigger(
    &mut self,
    request: impl IntoRequest<CreateJobTriggerRequest>
) -> Result<Response<JobTrigger>, Status>
[src]

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

pub async fn update_job_trigger(
    &mut self,
    request: impl IntoRequest<UpdateJobTriggerRequest>
) -> Result<Response<JobTrigger>, Status>
[src]

Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

pub async fn hybrid_inspect_job_trigger(
    &mut self,
    request: impl IntoRequest<HybridInspectJobTriggerRequest>
) -> Result<Response<HybridInspectResponse>, Status>
[src]

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger. Early access feature is in a pre-release state and might change or have limited support. For more information, see https://cloud.google.com/products#product-launch-stages.

pub async fn get_job_trigger(
    &mut self,
    request: impl IntoRequest<GetJobTriggerRequest>
) -> Result<Response<JobTrigger>, Status>
[src]

Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

pub async fn list_job_triggers(
    &mut self,
    request: impl IntoRequest<ListJobTriggersRequest>
) -> Result<Response<ListJobTriggersResponse>, Status>
[src]

Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

pub async fn delete_job_trigger(
    &mut self,
    request: impl IntoRequest<DeleteJobTriggerRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.

pub async fn activate_job_trigger(
    &mut self,
    request: impl IntoRequest<ActivateJobTriggerRequest>
) -> Result<Response<DlpJob>, Status>
[src]

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.

pub async fn create_dlp_job(
    &mut self,
    request: impl IntoRequest<CreateDlpJobRequest>
) -> Result<Response<DlpJob>, Status>
[src]

Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

pub async fn list_dlp_jobs(
    &mut self,
    request: impl IntoRequest<ListDlpJobsRequest>
) -> Result<Response<ListDlpJobsResponse>, Status>
[src]

Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

pub async fn get_dlp_job(
    &mut self,
    request: impl IntoRequest<GetDlpJobRequest>
) -> Result<Response<DlpJob>, Status>
[src]

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

pub async fn delete_dlp_job(
    &mut self,
    request: impl IntoRequest<DeleteDlpJobRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be cancelled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

pub async fn cancel_dlp_job(
    &mut self,
    request: impl IntoRequest<CancelDlpJobRequest>
) -> Result<Response<()>, Status>
[src]

Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.

pub async fn create_stored_info_type(
    &mut self,
    request: impl IntoRequest<CreateStoredInfoTypeRequest>
) -> Result<Response<StoredInfoType>, Status>
[src]

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

pub async fn update_stored_info_type(
    &mut self,
    request: impl IntoRequest<UpdateStoredInfoTypeRequest>
) -> Result<Response<StoredInfoType>, Status>
[src]

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

pub async fn get_stored_info_type(
    &mut self,
    request: impl IntoRequest<GetStoredInfoTypeRequest>
) -> Result<Response<StoredInfoType>, Status>
[src]

Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

pub async fn list_stored_info_types(
    &mut self,
    request: impl IntoRequest<ListStoredInfoTypesRequest>
) -> Result<Response<ListStoredInfoTypesResponse>, Status>
[src]

Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

pub async fn delete_stored_info_type(
    &mut self,
    request: impl IntoRequest<DeleteStoredInfoTypeRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.

pub async fn hybrid_inspect_dlp_job(
    &mut self,
    request: impl IntoRequest<HybridInspectDlpJobRequest>
) -> Result<Response<HybridInspectResponse>, Status>
[src]

Inspect hybrid content and store findings to a job. To review the findings inspect the job. Inspection will occur asynchronously. Early access feature is in a pre-release state and might change or have limited support. For more information, see https://cloud.google.com/products#product-launch-stages.

pub async fn finish_dlp_job(
    &mut self,
    request: impl IntoRequest<FinishDlpJobRequest>
) -> Result<Response<()>, Status>
[src]

Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run. Early access feature is in a pre-release state and might change or have limited support. For more information, see https://cloud.google.com/products#product-launch-stages.

Trait Implementations

impl<T: Clone> Clone for DlpServiceClient<T>[src]

impl<T> Debug for DlpServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for DlpServiceClient<T>

impl<T> Send for DlpServiceClient<T> where
    T: Send

impl<T> Sync for DlpServiceClient<T> where
    T: Sync

impl<T> Unpin for DlpServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for DlpServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]