Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChannelGroup
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChannelGroup
- 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
-
#description ⇒ String
The description of the Channel Group.
-
#display_name ⇒ String
Required.
-
#grouping_rule ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGroupingRule>
Required.
-
#name ⇒ String
Output only.
-
#primary ⇒ Boolean
(also: #primary?)
Optional.
-
#system_defined ⇒ Boolean
(also: #system_defined?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaChannelGroup
constructor
A new instance of GoogleAnalyticsAdminV1alphaChannelGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaChannelGroup
Returns a new instance of GoogleAnalyticsAdminV1alphaChannelGroup.
2072 2073 2074 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2072 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the Channel Group. Max length of 256 characters.
Corresponds to the JSON property description
2036 2037 2038 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2036 def description @description end |
#display_name ⇒ String
Required. The display name of the Channel Group. Max length of 80 characters.
Corresponds to the JSON property displayName
2041 2042 2043 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2041 def display_name @display_name end |
#grouping_rule ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGroupingRule>
Required. The grouping rules of channels. Maximum number of rules is 50.
Corresponds to the JSON property groupingRule
2046 2047 2048 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2046 def grouping_rule @grouping_rule end |
#name ⇒ String
Output only. The resource name for this Channel Group resource. Format:
properties/property/channelGroups/channel_group
Corresponds to the JSON property name
2052 2053 2054 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2052 def name @name end |
#primary ⇒ Boolean Also known as: primary?
Optional. If true, this channel group will be used as the default channel
group for reports. Only one channel group can be set as primary at any time.
If the primary field gets set on a channel group, it will get unset on the
previous primary channel group. The Google Analytics predefined channel group
is the primary by default.
Corresponds to the JSON property primary
2061 2062 2063 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2061 def primary @primary end |
#system_defined ⇒ Boolean 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
2069 2070 2071 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2069 def system_defined @system_defined end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2077 2078 2079 2080 2081 2082 2083 2084 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2077 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) @primary = args[:primary] if args.key?(:primary) @system_defined = args[:system_defined] if args.key?(:system_defined) end |