Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
Type of content to inspect.
Instance Attribute Summary collapse
-
#byte_item ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem
Container for bytes to inspect or redact.
-
#content_metadata ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ContentMetadata
Metadata on content to be scanned.
-
#table ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Table
Structured content to inspect.
-
#value ⇒ String
String data to inspect or redact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2ContentItem
constructor
A new instance of GooglePrivacyDlpV2ContentItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2ContentItem
Returns a new instance of GooglePrivacyDlpV2ContentItem.
1965 1966 1967 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1965 def initialize(**args) update!(**args) end |
Instance Attribute Details
#byte_item ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem
Container for bytes to inspect or redact.
Corresponds to the JSON property byteItem
1946 1947 1948 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1946 def byte_item @byte_item end |
#content_metadata ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ContentMetadata
Metadata on content to be scanned.
Corresponds to the JSON property contentMetadata
1951 1952 1953 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1951 def @content_metadata end |
#table ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Table
Structured content to inspect. Up to 50,000 Values per request allowed. See
https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-
text#inspecting_a_table to learn more.
Corresponds to the JSON property table
1958 1959 1960 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1958 def table @table end |
#value ⇒ String
String data to inspect or redact.
Corresponds to the JSON property value
1963 1964 1965 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1963 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1970 1971 1972 1973 1974 1975 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1970 def update!(**args) @byte_item = args[:byte_item] if args.key?(:byte_item) @content_metadata = args[:content_metadata] if args.key?(:content_metadata) @table = args[:table] if args.key?(:table) @value = args[:value] if args.key?(:value) end |