Class: Google::Apis::AnalyticsV3::ProfileFilterLink
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::ProfileFilterLink
- 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 profile filter link.
Instance Attribute Summary collapse
-
#filter_ref ⇒ Google::Apis::AnalyticsV3::FilterRef
JSON template for a profile filter link.
-
#id ⇒ String
Profile filter link ID.
-
#kind ⇒ String
Resource type for Analytics filter.
-
#profile_ref ⇒ Google::Apis::AnalyticsV3::ProfileRef
JSON template for a linked view (profile).
-
#rank ⇒ Fixnum
The rank of this profile filter link relative to the other filters linked to the same profile.
-
#self_link ⇒ String
Link for this profile filter link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProfileFilterLink
constructor
A new instance of ProfileFilterLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProfileFilterLink
Returns a new instance of ProfileFilterLink
4167 4168 4169 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter_ref ⇒ Google::Apis::AnalyticsV3::FilterRef
JSON template for a profile filter link.
Corresponds to the JSON property filterRef
4130 4131 4132 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4130 def filter_ref @filter_ref end |
#id ⇒ String
Profile filter link ID.
Corresponds to the JSON property id
4135 4136 4137 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4135 def id @id end |
#kind ⇒ String
Resource type for Analytics filter.
Corresponds to the JSON property kind
4140 4141 4142 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4140 def kind @kind end |
#profile_ref ⇒ Google::Apis::AnalyticsV3::ProfileRef
JSON template for a linked view (profile).
Corresponds to the JSON property profileRef
4145 4146 4147 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4145 def profile_ref @profile_ref end |
#rank ⇒ Fixnum
The rank of this profile filter link relative to the other filters linked to
the same profile.
For readonly (i.e., list and get) operations, the rank always starts at 1.
For write (i.e., create, update, or delete) operations, you may specify a
value between 0 and 255 inclusively, [0, 255]. In order to insert a link at
the end of the list, either don't specify a rank or set a rank to a number
greater than the largest rank in the list. In order to insert a link to the
beginning of the list specify a rank that is less than or equal to 1. The new
link will move all existing filters with the same or lower rank down the list.
After the link is inserted/updated/deleted all profile filter links will be
renumbered starting at 1.
Corresponds to the JSON property rank
4160 4161 4162 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4160 def rank @rank end |
#self_link ⇒ String
Link for this profile filter link.
Corresponds to the JSON property selfLink
4165 4166 4167 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4165 def self_link @self_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4172 4173 4174 4175 4176 4177 4178 4179 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 4172 def update!(**args) @filter_ref = args[:filter_ref] if args.key?(:filter_ref) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @profile_ref = args[:profile_ref] if args.key?(:profile_ref) @rank = args[:rank] if args.key?(:rank) @self_link = args[:self_link] if args.key?(:self_link) end |