class Google::Apis::AnalyticsreportingV4::DimensionFilter

Dimension filter specifies the filtering options on a dimension.

Attributes

case_sensitive[RW]

Should the match be case sensitive? Default is false. Corresponds to the JSON property `caseSensitive` @return [Boolean]

case_sensitive?[RW]

Should the match be case sensitive? Default is false. Corresponds to the JSON property `caseSensitive` @return [Boolean]

dimension_name[RW]

The dimension to filter on. A DimensionFilter must contain a dimension. Corresponds to the JSON property `dimensionName` @return [String]

expressions[RW]

Strings or regular expression to match against. Only the first value of the list is used for comparison unless the operator is `IN_LIST`. If `IN_LIST` operator, then the entire list is used to filter the dimensions as explained in the description of the `IN_LIST` operator. Corresponds to the JSON property `expressions` @return [Array<String>]

not[RW]

Logical `NOT` operator. If this boolean is set to true, then the matching dimension values will be excluded in the report. The default is false. Corresponds to the JSON property `not` @return [Boolean]

not?[RW]

Logical `NOT` operator. If this boolean is set to true, then the matching dimension values will be excluded in the report. The default is false. Corresponds to the JSON property `not` @return [Boolean]

operator[RW]

How to match the dimension to the expression. The default is REGEXP. Corresponds to the JSON property `operator` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 423
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 428
def update!(**args)
  @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @expressions = args[:expressions] if args.key?(:expressions)
  @not = args[:not] if args.key?(:not)
  @operator = args[:operator] if args.key?(:operator)
end