Class: Google::Apis::AnalyticsV3::EntityUserLink::Entity

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

Entity for this link. It can be an account, a web property, or a view (profile) .

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) ⇒ Entity

Returns a new instance of Entity.


1446
1447
1448
# File 'generated/google/apis/analytics_v3/classes.rb', line 1446

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

Instance Attribute Details

#account_refGoogle::Apis::AnalyticsV3::AccountRef

JSON template for a linked account. Corresponds to the JSON property accountRef


1434
1435
1436
# File 'generated/google/apis/analytics_v3/classes.rb', line 1434

def 
  @account_ref
end

#profile_refGoogle::Apis::AnalyticsV3::ProfileRef

JSON template for a linked view (profile). Corresponds to the JSON property profileRef


1439
1440
1441
# File 'generated/google/apis/analytics_v3/classes.rb', line 1439

def profile_ref
  @profile_ref
end

#web_property_refGoogle::Apis::AnalyticsV3::WebPropertyRef

JSON template for a web property reference. Corresponds to the JSON property webPropertyRef


1444
1445
1446
# File 'generated/google/apis/analytics_v3/classes.rb', line 1444

def web_property_ref
  @web_property_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1451
1452
1453
1454
1455
# File 'generated/google/apis/analytics_v3/classes.rb', line 1451

def update!(**args)
  @account_ref = args[:account_ref] if args.key?(:account_ref)
  @profile_ref = args[:profile_ref] if args.key?(:profile_ref)
  @web_property_ref = args[:web_property_ref] if args.key?(:web_property_ref)
end