Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChannelGroup

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

A resource message representing a Channel Group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaChannelGroup

Returns a new instance of GoogleAnalyticsAdminV1alphaChannelGroup.



2009
2010
2011
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2009

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

Instance Attribute Details

#descriptionString

The description of the Channel Group. Max length of 256 characters. Corresponds to the JSON property description

Returns:

  • (String)


1983
1984
1985
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1983

def description
  @description
end

#display_nameString

Required. The display name of the Channel Group. Max length of 80 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


1988
1989
1990
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1988

def display_name
  @display_name
end

#grouping_ruleArray<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGroupingRule>

Required. The grouping rules of channels. Maximum number of rules is 50. Corresponds to the JSON property groupingRule



1993
1994
1995
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1993

def grouping_rule
  @grouping_rule
end

#nameString

Output only. The resource name for this Channel Group resource. Format: properties/property/channelGroups/channel_group Corresponds to the JSON property name

Returns:

  • (String)


1999
2000
2001
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1999

def name
  @name
end

#system_definedBoolean Also known as: system_defined?

Output only. If true, then this channel group is the Default Channel Group predefined by Google Analytics. Display name and grouping rules cannot be updated for this channel group. Corresponds to the JSON property systemDefined

Returns:

  • (Boolean)


2006
2007
2008
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2006

def system_defined
  @system_defined
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2014
2015
2016
2017
2018
2019
2020
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2014

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @grouping_rule = args[:grouping_rule] if args.key?(:grouping_rule)
  @name = args[:name] if args.key?(:name)
  @system_defined = args[:system_defined] if args.key?(:system_defined)
end