Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::CustomInfoType.
Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#detection_rules
def detection_rules() -> ::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>
Returns
-
(::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>) — Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in order that they are specified. Not supported for the
surrogate_type
CustomInfoType.
#detection_rules=
def detection_rules=(value) -> ::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>
Parameter
-
value (::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>) — Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in order that they are specified. Not supported for the
surrogate_type
CustomInfoType.
Returns
-
(::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>) — Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in order that they are specified. Not supported for the
surrogate_type
CustomInfoType.
#dictionary
def dictionary() -> ::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — A list of phrases to detect as a CustomInfoType.
#dictionary=
def dictionary=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary
Parameter
- value (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — A list of phrases to detect as a CustomInfoType.
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — A list of phrases to detect as a CustomInfoType.
#exclusion_type
def exclusion_type() -> ::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType) — If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
#exclusion_type=
def exclusion_type=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType
Parameter
- value (::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType) — If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType) — If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
#info_type
def info_type() -> ::Google::Cloud::Dlp::V2::InfoType
Returns
-
(::Google::Cloud::Dlp::V2::InfoType) — CustomInfoType can either be a new infoType, or an extension of built-in
infoType, when the name matches one of existing infoTypes and that infoType
is specified in
InspectContent.info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified inInspectContent.info_types
list then the name is treated as a custom info type.
#info_type=
def info_type=(value) -> ::Google::Cloud::Dlp::V2::InfoType
Parameter
-
value (::Google::Cloud::Dlp::V2::InfoType) — CustomInfoType can either be a new infoType, or an extension of built-in
infoType, when the name matches one of existing infoTypes and that infoType
is specified in
InspectContent.info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified inInspectContent.info_types
list then the name is treated as a custom info type.
Returns
-
(::Google::Cloud::Dlp::V2::InfoType) — CustomInfoType can either be a new infoType, or an extension of built-in
infoType, when the name matches one of existing infoTypes and that infoType
is specified in
InspectContent.info_types
field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified inInspectContent.info_types
list then the name is treated as a custom info type.
#likelihood
def likelihood() -> ::Google::Cloud::Dlp::V2::Likelihood
Returns
-
(::Google::Cloud::Dlp::V2::Likelihood) — Likelihood to return for this CustomInfoType. This base value can be
altered by a detection rule if the finding meets the criteria specified by
the rule. Defaults to
VERY_LIKELY
if not specified.
#likelihood=
def likelihood=(value) -> ::Google::Cloud::Dlp::V2::Likelihood
Parameter
-
value (::Google::Cloud::Dlp::V2::Likelihood) — Likelihood to return for this CustomInfoType. This base value can be
altered by a detection rule if the finding meets the criteria specified by
the rule. Defaults to
VERY_LIKELY
if not specified.
Returns
-
(::Google::Cloud::Dlp::V2::Likelihood) — Likelihood to return for this CustomInfoType. This base value can be
altered by a detection rule if the finding meets the criteria specified by
the rule. Defaults to
VERY_LIKELY
if not specified.
#regex
def regex() -> ::Google::Cloud::Dlp::V2::CustomInfoType::Regex
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression based CustomInfoType.
#regex=
def regex=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::Regex
Parameter
- value (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression based CustomInfoType.
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression based CustomInfoType.
#stored_type
def stored_type() -> ::Google::Cloud::Dlp::V2::StoredType
Returns
-
(::Google::Cloud::Dlp::V2::StoredType) — Load an existing
StoredInfoType
resource for use inInspectDataSource
. Not currently supported inInspectContent
.
#stored_type=
def stored_type=(value) -> ::Google::Cloud::Dlp::V2::StoredType
Parameter
-
value (::Google::Cloud::Dlp::V2::StoredType) — Load an existing
StoredInfoType
resource for use inInspectDataSource
. Not currently supported inInspectContent
.
Returns
-
(::Google::Cloud::Dlp::V2::StoredType) — Load an existing
StoredInfoType
resource for use inInspectDataSource
. Not currently supported inInspectContent
.
#surrogate_type
def surrogate_type() -> ::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType) — Message for detecting output from deidentification transformations that support reversing.
#surrogate_type=
def surrogate_type=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType
Parameter
- value (::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType) — Message for detecting output from deidentification transformations that support reversing.
Returns
- (::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType) — Message for detecting output from deidentification transformations that support reversing.