Class: Google::Cloud::Dlp::V2::DataProfileAction
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::DataProfileAction
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/privacy/dlp/v2/dlp.rb
Overview
A task to execute when a data profile has been generated.
Defined Under Namespace
Modules: EventType Classes: Export, PubSubNotification
Instance Attribute Summary collapse
-
#export_data ⇒ ::Google::Cloud::Dlp::V2::DataProfileAction::Export
Export data profiles into a provided location.
-
#pub_sub_notification ⇒ ::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification
Publish a message into the Pub/Sub topic.
Instance Attribute Details
#export_data ⇒ ::Google::Cloud::Dlp::V2::DataProfileAction::Export
Returns Export data profiles into a provided location.
4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4021 class DataProfileAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # If set, the detailed data profiles will be persisted to the location # of your choice whenever updated. # @!attribute [rw] profile_table # @return [::Google::Cloud::Dlp::V2::BigQueryTable] # Store all table and column profiles in an existing table or a new table # in an existing dataset. Each re-generation will result in new rows in # BigQuery. Data is inserted using [streaming # insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) # and so data may be in the buffer for a period of time after the profile # has finished. The Pub/Sub notification is sent before the streaming # buffer is guaranteed to be written, so data may not be instantly # visible to queries by the time your topic receives the Pub/Sub # notification. class Export include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Send a Pub/Sub message into the given Pub/Sub topic to connect other # systems to data profile generation. The message payload data will # be the byte serialization of `DataProfilePubSubMessage`. # @!attribute [rw] topic # @return [::String] # Cloud Pub/Sub topic to send notifications to. # Format is projects/\\{project}/topics/\\{topic}. # @!attribute [rw] event # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType] # The type of event that triggers a Pub/Sub. At most one # `PubSubNotification` per EventType is permitted. # @!attribute [rw] pubsub_condition # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition] # Conditions (e.g., data risk or sensitivity level) for triggering a # Pub/Sub. # @!attribute [rw] detail_of_message # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification::DetailLevel] # How much data to include in the Pub/Sub message. If the user wishes to # limit the size of the message, they can use resource_name and fetch the # profile fields they wish to. Per table profile (not per column). class PubSubNotification include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The levels of detail that can be included in the Pub/Sub message. module DetailLevel # Unused. DETAIL_LEVEL_UNSPECIFIED = 0 # The full table data profile. TABLE_PROFILE = 1 # The name of the profiled resource. RESOURCE_NAME = 2 end end # Types of event that can trigger an action. module EventType # Unused. EVENT_TYPE_UNSPECIFIED = 0 # New profile (not a re-profile). NEW_PROFILE = 1 # One of the following profile metrics changed: Data risk score, # Sensitivity score, Resource visibility, Encryption type, Predicted # infoTypes, Other infoTypes CHANGED_PROFILE = 2 # Table data risk score or sensitivity score increased. SCORE_INCREASED = 3 # A user (non-internal) error occurred. ERROR_CHANGED = 4 end end |
#pub_sub_notification ⇒ ::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification
Returns Publish a message into the Pub/Sub topic.
4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 4021 class DataProfileAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # If set, the detailed data profiles will be persisted to the location # of your choice whenever updated. # @!attribute [rw] profile_table # @return [::Google::Cloud::Dlp::V2::BigQueryTable] # Store all table and column profiles in an existing table or a new table # in an existing dataset. Each re-generation will result in new rows in # BigQuery. Data is inserted using [streaming # insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) # and so data may be in the buffer for a period of time after the profile # has finished. The Pub/Sub notification is sent before the streaming # buffer is guaranteed to be written, so data may not be instantly # visible to queries by the time your topic receives the Pub/Sub # notification. class Export include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Send a Pub/Sub message into the given Pub/Sub topic to connect other # systems to data profile generation. The message payload data will # be the byte serialization of `DataProfilePubSubMessage`. # @!attribute [rw] topic # @return [::String] # Cloud Pub/Sub topic to send notifications to. # Format is projects/\\{project}/topics/\\{topic}. # @!attribute [rw] event # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType] # The type of event that triggers a Pub/Sub. At most one # `PubSubNotification` per EventType is permitted. # @!attribute [rw] pubsub_condition # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition] # Conditions (e.g., data risk or sensitivity level) for triggering a # Pub/Sub. # @!attribute [rw] detail_of_message # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification::DetailLevel] # How much data to include in the Pub/Sub message. If the user wishes to # limit the size of the message, they can use resource_name and fetch the # profile fields they wish to. Per table profile (not per column). class PubSubNotification include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The levels of detail that can be included in the Pub/Sub message. module DetailLevel # Unused. DETAIL_LEVEL_UNSPECIFIED = 0 # The full table data profile. TABLE_PROFILE = 1 # The name of the profiled resource. RESOURCE_NAME = 2 end end # Types of event that can trigger an action. module EventType # Unused. EVENT_TYPE_UNSPECIFIED = 0 # New profile (not a re-profile). NEW_PROFILE = 1 # One of the following profile metrics changed: Data risk score, # Sensitivity score, Resource visibility, Encryption type, Predicted # infoTypes, Other infoTypes CHANGED_PROFILE = 2 # Table data risk score or sensitivity score increased. SCORE_INCREASED = 3 # A user (non-internal) error occurred. ERROR_CHANGED = 4 end end |