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.



1350
1351
1352
# File 'generated/google/apis/analytics_v3/classes.rb', line 1350

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



1338
1339
1340
# File 'generated/google/apis/analytics_v3/classes.rb', line 1338

def 
  @account_ref
end

#profile_refGoogle::Apis::AnalyticsV3::ProfileRef

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



1343
1344
1345
# File 'generated/google/apis/analytics_v3/classes.rb', line 1343

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



1348
1349
1350
# File 'generated/google/apis/analytics_v3/classes.rb', line 1348

def web_property_ref
  @web_property_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1355
1356
1357
1358
1359
# File 'generated/google/apis/analytics_v3/classes.rb', line 1355

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