Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRedactionSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

Settings for client-side data redaction. Singleton resource under a Web Stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaDataRedactionSettings



2670
2671
2672
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2670

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#email_redaction_enabledBoolean Also known as: email_redaction_enabled?

If enabled, any event parameter or user property values that look like an email will be redacted. Corresponds to the JSON property emailRedactionEnabled



2643
2644
2645
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2643

def email_redaction_enabled
  @email_redaction_enabled
end

#nameString

Output only. Name of this Data Redaction Settings resource. Format: properties/ property_id/dataStreams/data_stream/dataRedactionSettings Example: " properties/1000/dataStreams/2000/dataRedactionSettings" Corresponds to the JSON property name



2651
2652
2653
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2651

def name
  @name
end

#query_parameter_keysArray<String>

The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive. Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas. Corresponds to the JSON property queryParameterKeys



2659
2660
2661
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2659

def query_parameter_keys
  @query_parameter_keys
end

#query_parameter_redaction_enabledBoolean Also known as: query_parameter_redaction_enabled?

Query Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters. If enabled, URL query replacement logic will be run for the Stream. Any query parameters defined in query_parameter_keys will be redacted. Corresponds to the JSON property queryParameterRedactionEnabled



2667
2668
2669
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2667

def query_parameter_redaction_enabled
  @query_parameter_redaction_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2675
2676
2677
2678
2679
2680
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2675

def update!(**args)
  @email_redaction_enabled = args[:email_redaction_enabled] if args.key?(:email_redaction_enabled)
  @name = args[:name] if args.key?(:name)
  @query_parameter_keys = args[:query_parameter_keys] if args.key?(:query_parameter_keys)
  @query_parameter_redaction_enabled = args[:query_parameter_redaction_enabled] if args.key?(:query_parameter_redaction_enabled)
end