Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::AdjustByImageFindings.
AdjustmentRule condition for image findings. This rule is silently ignored if the content being inspected is not an image.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#image_containment_type
def image_containment_type() -> ::Google::Cloud::Dlp::V2::ImageContainmentType- (::Google::Cloud::Dlp::V2::ImageContainmentType) — Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
#image_containment_type=
def image_containment_type=(value) -> ::Google::Cloud::Dlp::V2::ImageContainmentType- value (::Google::Cloud::Dlp::V2::ImageContainmentType) — Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
- (::Google::Cloud::Dlp::V2::ImageContainmentType) — Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
#info_types
def info_types() -> ::Array<::Google::Cloud::Dlp::V2::InfoType>-
(::Array<::Google::Cloud::Dlp::V2::InfoType>) — A list of image-supported infoTypes—excluding document
infoTypes—to
be used as context for the adjustment rule. Sensitive Data Protection
adjusts the likelihood of an image finding if its bounding box has the
specified spatial relationship (defined by
image_containment_type) with a finding of an infoType in this list.For example, you can create a rule to adjust the likelihood of a
US_PASSPORTfinding if it is enclosed by a finding ofOBJECT_TYPE/PERSON/PASSPORT. To configure this, setUS_PASSPORTinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_image_findings.info_typesthat containsOBJECT_TYPE/PERSON/PASSPORTandimage_containment_typeset toencloses. In this case, the likelihood of theUS_PASSPORTfinding is adjusted, but the likelihood of theOBJECT_TYPE/PERSON/PASSPORTfinding is not.
#info_types=
def info_types=(value) -> ::Array<::Google::Cloud::Dlp::V2::InfoType>-
value (::Array<::Google::Cloud::Dlp::V2::InfoType>) — A list of image-supported infoTypes—excluding document
infoTypes—to
be used as context for the adjustment rule. Sensitive Data Protection
adjusts the likelihood of an image finding if its bounding box has the
specified spatial relationship (defined by
image_containment_type) with a finding of an infoType in this list.For example, you can create a rule to adjust the likelihood of a
US_PASSPORTfinding if it is enclosed by a finding ofOBJECT_TYPE/PERSON/PASSPORT. To configure this, setUS_PASSPORTinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_image_findings.info_typesthat containsOBJECT_TYPE/PERSON/PASSPORTandimage_containment_typeset toencloses. In this case, the likelihood of theUS_PASSPORTfinding is adjusted, but the likelihood of theOBJECT_TYPE/PERSON/PASSPORTfinding is not.
-
(::Array<::Google::Cloud::Dlp::V2::InfoType>) — A list of image-supported infoTypes—excluding document
infoTypes—to
be used as context for the adjustment rule. Sensitive Data Protection
adjusts the likelihood of an image finding if its bounding box has the
specified spatial relationship (defined by
image_containment_type) with a finding of an infoType in this list.For example, you can create a rule to adjust the likelihood of a
US_PASSPORTfinding if it is enclosed by a finding ofOBJECT_TYPE/PERSON/PASSPORT. To configure this, setUS_PASSPORTinInspectionRuleSet.info_types. Add anadjustment_rulewith anadjust_by_image_findings.info_typesthat containsOBJECT_TYPE/PERSON/PASSPORTandimage_containment_typeset toencloses. In this case, the likelihood of theUS_PASSPORTfinding is adjusted, but the likelihood of theOBJECT_TYPE/PERSON/PASSPORTfinding is not.
#min_likelihood
def min_likelihood() -> ::Google::Cloud::Dlp::V2::Likelihood-
(::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_image_findings.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.
#min_likelihood=
def min_likelihood=(value) -> ::Google::Cloud::Dlp::V2::Likelihood-
value (::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_image_findings.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.
-
(::Google::Cloud::Dlp::V2::Likelihood) — Required. Minimum likelihood of the
adjust_by_image_findings.info_typesfinding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of theInspectionRuleSet.info_typesfinding.