Class: Google::Apis::AnalyticsV3::Filter

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

Overview

JSON template for an Analytics account filter.

Defined Under Namespace

Classes: AdvancedDetails, LowercaseDetails, ParentLink, SearchAndReplaceDetails, UppercaseDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Filter

Returns a new instance of Filter



1910
1911
1912
# File 'generated/google/apis/analytics_v3/classes.rb', line 1910

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

Instance Attribute Details

#account_idString

Account ID to which this filter belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


1836
1837
1838
# File 'generated/google/apis/analytics_v3/classes.rb', line 1836

def 
  @account_id
end

#advanced_detailsGoogle::Apis::AnalyticsV3::Filter::AdvancedDetails

Details for the filter of the type ADVANCED. Corresponds to the JSON property advancedDetails



1841
1842
1843
# File 'generated/google/apis/analytics_v3/classes.rb', line 1841

def advanced_details
  @advanced_details
end

#createdDateTime

Time this filter was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


1846
1847
1848
# File 'generated/google/apis/analytics_v3/classes.rb', line 1846

def created
  @created
end

#exclude_detailsGoogle::Apis::AnalyticsV3::FilterExpression

JSON template for an Analytics filter expression. Corresponds to the JSON property excludeDetails



1851
1852
1853
# File 'generated/google/apis/analytics_v3/classes.rb', line 1851

def exclude_details
  @exclude_details
end

#idString

Filter ID. Corresponds to the JSON property id

Returns:

  • (String)


1856
1857
1858
# File 'generated/google/apis/analytics_v3/classes.rb', line 1856

def id
  @id
end

#include_detailsGoogle::Apis::AnalyticsV3::FilterExpression

JSON template for an Analytics filter expression. Corresponds to the JSON property includeDetails



1861
1862
1863
# File 'generated/google/apis/analytics_v3/classes.rb', line 1861

def include_details
  @include_details
end

#kindString

Resource type for Analytics filter. Corresponds to the JSON property kind

Returns:

  • (String)


1866
1867
1868
# File 'generated/google/apis/analytics_v3/classes.rb', line 1866

def kind
  @kind
end

#lowercase_detailsGoogle::Apis::AnalyticsV3::Filter::LowercaseDetails

Details for the filter of the type LOWER. Corresponds to the JSON property lowercaseDetails



1871
1872
1873
# File 'generated/google/apis/analytics_v3/classes.rb', line 1871

def lowercase_details
  @lowercase_details
end

#nameString

Name of this filter. Corresponds to the JSON property name

Returns:

  • (String)


1876
1877
1878
# File 'generated/google/apis/analytics_v3/classes.rb', line 1876

def name
  @name
end

Parent link for this filter. Points to the account to which this filter belongs. Corresponds to the JSON property parentLink



1882
1883
1884
# File 'generated/google/apis/analytics_v3/classes.rb', line 1882

def parent_link
  @parent_link
end

#search_and_replace_detailsGoogle::Apis::AnalyticsV3::Filter::SearchAndReplaceDetails

Details for the filter of the type SEARCH_AND_REPLACE. Corresponds to the JSON property searchAndReplaceDetails



1887
1888
1889
# File 'generated/google/apis/analytics_v3/classes.rb', line 1887

def search_and_replace_details
  @search_and_replace_details
end

Link for this filter. Corresponds to the JSON property selfLink

Returns:

  • (String)


1892
1893
1894
# File 'generated/google/apis/analytics_v3/classes.rb', line 1892

def self_link
  @self_link
end

#typeString

Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and ADVANCED. Corresponds to the JSON property type

Returns:

  • (String)


1898
1899
1900
# File 'generated/google/apis/analytics_v3/classes.rb', line 1898

def type
  @type
end

#updatedDateTime

Time this filter was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


1903
1904
1905
# File 'generated/google/apis/analytics_v3/classes.rb', line 1903

def updated
  @updated
end

#uppercase_detailsGoogle::Apis::AnalyticsV3::Filter::UppercaseDetails

Details for the filter of the type UPPER. Corresponds to the JSON property uppercaseDetails



1908
1909
1910
# File 'generated/google/apis/analytics_v3/classes.rb', line 1908

def uppercase_details
  @uppercase_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
# File 'generated/google/apis/analytics_v3/classes.rb', line 1915

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advanced_details = args[:advanced_details] if args.key?(:advanced_details)
  @created = args[:created] if args.key?(:created)
  @exclude_details = args[:exclude_details] if args.key?(:exclude_details)
  @id = args[:id] if args.key?(:id)
  @include_details = args[:include_details] if args.key?(:include_details)
  @kind = args[:kind] if args.key?(:kind)
  @lowercase_details = args[:lowercase_details] if args.key?(:lowercase_details)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @search_and_replace_details = args[:search_and_replace_details] if args.key?(:search_and_replace_details)
  @self_link = args[:self_link] if args.key?(:self_link)
  @type = args[:type] if args.key?(:type)
  @updated = args[:updated] if args.key?(:updated)
  @uppercase_details = args[:uppercase_details] if args.key?(:uppercase_details)
end