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.



2696
2697
2698
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2696

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)


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

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)


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

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>)


2685
2686
2687
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2685

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)


2693
2694
2695
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2693

def query_parameter_redaction_enabled
  @query_parameter_redaction_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2701
2702
2703
2704
2705
2706
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2701

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