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

Returns a new instance of GoogleAnalyticsAdminV1alphaDataRedactionSettings.



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

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

Returns:

  • (Boolean)


2623
2624
2625
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2623

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

Returns:

  • (String)


2631
2632
2633
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2631

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

Returns:

  • (Array<String>)


2639
2640
2641
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2639

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

Returns:

  • (Boolean)


2647
2648
2649
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2647

def query_parameter_redaction_enabled
  @query_parameter_redaction_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2655
2656
2657
2658
2659
2660
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2655

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