Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaParameterMutation

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

Defines an event parameter to mutate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaParameterMutation

Returns a new instance of GoogleAnalyticsAdminV1alphaParameterMutation.



4748
4749
4750
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4748

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

Instance Attribute Details

#parameterString

Required. The name of the parameter to mutate. This value must: * be less than 40 characters. * be unique across across all mutations within the rule * consist only of letters, digits or _ (underscores) For event edit rules, the name may also be set to 'event_name' to modify the event_name in place. Corresponds to the JSON property parameter

Returns:

  • (String)


4737
4738
4739
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4737

def parameter
  @parameter
end

#parameter_valueString

Required. The value mutation to perform. * Must be less than 100 characters. * To specify a constant value for the param, use the value's string. * To copy value from another parameter, use syntax like "[[other_parameter]]" For more details, see this help center article. Corresponds to the JSON property parameterValue

Returns:

  • (String)


4746
4747
4748
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4746

def parameter_value
  @parameter_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4753
4754
4755
4756
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4753

def update!(**args)
  @parameter = args[:parameter] if args.key?(:parameter)
  @parameter_value = args[:parameter_value] if args.key?(:parameter_value)
end