Class: Google::Privacy::Dlp::V2::InspectConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb

Overview

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.

Defined Under Namespace

Classes: FindingLimits

Instance Attribute Summary collapse

Instance Attribute Details

#content_optionsArray<Google::Privacy::Dlp::V2::ContentOption>

Returns List of options defining data content to scan. If empty, text, images, and other content will be included.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#custom_info_typesArray<Google::Privacy::Dlp::V2::CustomInfoType>

Returns Custom infoTypes provided by the user.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#exclude_info_typestrue, false

Returns When true, excludes type information of the findings.

Returns:

  • (true, false)

    When true, excludes type information of the findings.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#include_quotetrue, false

Returns When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote.

Returns:

  • (true, false)

    When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#info_typesArray<Google::Privacy::Dlp::V2::InfoType>

Returns Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.

Returns:

  • (Array<Google::Privacy::Dlp::V2::InfoType>)

    Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#limitsGoogle::Privacy::Dlp::V2::InspectConfig::FindingLimits



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end

#min_likelihoodGoogle::Privacy::Dlp::V2::Likelihood

Returns Only returns findings equal or above this threshold. The default is POSSIBLE.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 58

class InspectConfig
  # @!attribute [rw] max_findings_per_item
  #   @return [Integer]
  #     Max number of findings that will be returned for each item scanned.
  # @!attribute [rw] max_findings_per_request
  #   @return [Integer]
  #     Max total number of findings that will be returned per request/job.
  # @!attribute [rw] max_findings_per_info_type
  #   @return [Array<Google::Privacy::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
  #     Configuration of findings limit given for specified infoTypes.
  class FindingLimits
    # Max findings configuration per infoType, per content item or long
    # running DlpJob.
    # @!attribute [rw] info_type
    #   @return [Google::Privacy::Dlp::V2::InfoType]
    #     Type of information the findings limit applies to. Only one limit per
    #     info_type should be provided. If InfoTypeLimit does not have an
    #     info_type, the DLP API applies the limit against all info_types that
    #     are found but not specified in another InfoTypeLimit.
    # @!attribute [rw] max_findings
    #   @return [Integer]
    #     Max findings limit for the given infoType.
    class InfoTypeLimit; end
  end
end