/// <summary> /// Schedules a job to compute risk analysis metrics over content in a GoogleCloud Platform repository. /// Documentation https://developers.google.com/dlp/v2beta1/reference/dataSource/analyze /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dlp service.</param> /// <param name="body">A valid Dlp v2beta1 body.</param> /// <returns>GoogleLongrunningOperationResponse</returns> public static GoogleLongrunningOperation Analyze(DlpService service, GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } // Make the request. return(service.DataSource.Analyze(body).Execute()); } catch (Exception ex) { throw new Exception("Request DataSource.Analyze failed.", ex); } }
/// <summary> /// Finds potentially sensitive info in a list of strings.This method has limits on input size, processing time, and output size. /// Documentation https://developers.google.com/dlp/v2beta1/reference/content/inspect /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Dlp service.</param> /// <param name="body">A valid Dlp v2beta1 body.</param> /// <returns>GooglePrivacyDlpV2beta1InspectContentResponseResponse</returns> public static GooglePrivacyDlpV2beta1InspectContentResponse Inspect(DlpService service, GooglePrivacyDlpV2beta1InspectContentRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } // Make the request. return(service.Content.Inspect(body).Execute()); } catch (Exception ex) { throw new Exception("Request Content.Inspect failed.", ex); } }