Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::DlpService::Rest::ServiceStub (v0.17.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::DlpService::Rest::ServiceStub.

REST service stub for the DlpService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#activate_job_trigger

def activate_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DlpJob

Baseline implementation for the activate_job_trigger REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#cancel_dlp_job

def cancel_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the cancel_dlp_job REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::CancelDlpJobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_deidentify_template

def create_deidentify_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Baseline implementation for the create_deidentify_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_dlp_job

def create_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DlpJob

Baseline implementation for the create_dlp_job REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::CreateDlpJobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_inspect_template

def create_inspect_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::InspectTemplate

Baseline implementation for the create_inspect_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_job_trigger

def create_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::JobTrigger

Baseline implementation for the create_job_trigger REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::CreateJobTriggerRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_stored_info_type

def create_stored_info_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::StoredInfoType

Baseline implementation for the create_stored_info_type REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#deidentify_content

def deidentify_content(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DeidentifyContentResponse

Baseline implementation for the deidentify_content REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_deidentify_template

def delete_deidentify_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_deidentify_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_dlp_job

def delete_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_dlp_job REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::DeleteDlpJobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_inspect_template

def delete_inspect_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_inspect_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_job_trigger

def delete_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_job_trigger REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_stored_info_type

def delete_stored_info_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_stored_info_type REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#finish_dlp_job

def finish_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the finish_dlp_job REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::FinishDlpJobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_deidentify_template

def get_deidentify_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Baseline implementation for the get_deidentify_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_dlp_job

def get_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DlpJob

Baseline implementation for the get_dlp_job REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::GetDlpJobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_inspect_template

def get_inspect_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::InspectTemplate

Baseline implementation for the get_inspect_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_job_trigger

def get_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::JobTrigger

Baseline implementation for the get_job_trigger REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::GetJobTriggerRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_stored_info_type

def get_stored_info_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::StoredInfoType

Baseline implementation for the get_stored_info_type REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#hybrid_inspect_dlp_job

def hybrid_inspect_dlp_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Baseline implementation for the hybrid_inspect_dlp_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#hybrid_inspect_job_trigger

def hybrid_inspect_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::HybridInspectResponse

Baseline implementation for the hybrid_inspect_job_trigger REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#inspect_content

def inspect_content(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::InspectContentResponse

Baseline implementation for the inspect_content REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::InspectContentRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_deidentify_templates

def list_deidentify_templates(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesResponse

Baseline implementation for the list_deidentify_templates REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_dlp_jobs

def list_dlp_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListDlpJobsResponse

Baseline implementation for the list_dlp_jobs REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::ListDlpJobsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_info_types

def list_info_types(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListInfoTypesResponse

Baseline implementation for the list_info_types REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::ListInfoTypesRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_inspect_templates

def list_inspect_templates(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListInspectTemplatesResponse

Baseline implementation for the list_inspect_templates REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_job_triggers

def list_job_triggers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListJobTriggersResponse

Baseline implementation for the list_job_triggers REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::ListJobTriggersRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_stored_info_types

def list_stored_info_types(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ListStoredInfoTypesResponse

Baseline implementation for the list_stored_info_types REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#redact_image

def redact_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::RedactImageResponse

Baseline implementation for the redact_image REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::RedactImageRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#reidentify_content

def reidentify_content(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::ReidentifyContentResponse

Baseline implementation for the reidentify_content REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_deidentify_template

def update_deidentify_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::DeidentifyTemplate

Baseline implementation for the update_deidentify_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_inspect_template

def update_inspect_template(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::InspectTemplate

Baseline implementation for the update_inspect_template REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_job_trigger

def update_job_trigger(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::JobTrigger

Baseline implementation for the update_job_trigger REST call

Parameters
  • request_pb (::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_stored_info_type

def update_stored_info_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dlp::V2::StoredInfoType

Baseline implementation for the update_stored_info_type REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)