Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::Action::Deidentify.
Create a de-identified copy of the requested table or files.
A TransformationDetail will be created for each transformation.
If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table.
Compatible with: Inspect
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_storage_output
def cloud_storage_output() -> ::String
-
(::String) — Required. User settable Cloud Storage bucket and folders to store de-identified
files. This field must be set for cloud storage deidentification. The
output Cloud Storage bucket must be different from the input bucket.
De-identified files will overwrite files in the output path.
Form of: gs://bucket/folder/ or gs://bucket
#cloud_storage_output=
def cloud_storage_output=(value) -> ::String
-
value (::String) — Required. User settable Cloud Storage bucket and folders to store de-identified
files. This field must be set for cloud storage deidentification. The
output Cloud Storage bucket must be different from the input bucket.
De-identified files will overwrite files in the output path.
Form of: gs://bucket/folder/ or gs://bucket
-
(::String) — Required. User settable Cloud Storage bucket and folders to store de-identified
files. This field must be set for cloud storage deidentification. The
output Cloud Storage bucket must be different from the input bucket.
De-identified files will overwrite files in the output path.
Form of: gs://bucket/folder/ or gs://bucket
#file_types_to_transform
def file_types_to_transform() -> ::Array<::Google::Cloud::Dlp::V2::FileType>
- (::Array<::Google::Cloud::Dlp::V2::FileType>) — List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.
#file_types_to_transform=
def file_types_to_transform=(value) -> ::Array<::Google::Cloud::Dlp::V2::FileType>
- value (::Array<::Google::Cloud::Dlp::V2::FileType>) — List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.
- (::Array<::Google::Cloud::Dlp::V2::FileType>) — List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.
#transformation_config
def transformation_config() -> ::Google::Cloud::Dlp::V2::TransformationConfig
- (::Google::Cloud::Dlp::V2::TransformationConfig) — User specified deidentify templates and configs for structured, unstructured, and image files.
#transformation_config=
def transformation_config=(value) -> ::Google::Cloud::Dlp::V2::TransformationConfig
- value (::Google::Cloud::Dlp::V2::TransformationConfig) — User specified deidentify templates and configs for structured, unstructured, and image files.
- (::Google::Cloud::Dlp::V2::TransformationConfig) — User specified deidentify templates and configs for structured, unstructured, and image files.
#transformation_details_storage_config
def transformation_details_storage_config() -> ::Google::Cloud::Dlp::V2::TransformationDetailsStorageConfig
- (::Google::Cloud::Dlp::V2::TransformationDetailsStorageConfig) — Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).
#transformation_details_storage_config=
def transformation_details_storage_config=(value) -> ::Google::Cloud::Dlp::V2::TransformationDetailsStorageConfig
- value (::Google::Cloud::Dlp::V2::TransformationDetailsStorageConfig) — Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).
- (::Google::Cloud::Dlp::V2::TransformationDetailsStorageConfig) — Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).