Class: Google::Apis::AnalyticsV3::ProfileRef

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

JSON template for a linked 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) ⇒ ProfileRef

Returns a new instance of ProfileRef.



4064
4065
4066
# File 'generated/google/apis/analytics_v3/classes.rb', line 4064

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

Instance Attribute Details

#account_idString

Account ID to which this view (profile) belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


4032
4033
4034
# File 'generated/google/apis/analytics_v3/classes.rb', line 4032

def 
  @account_id
end

#hrefString

Link for this view (profile). Corresponds to the JSON property href

Returns:

  • (String)


4037
4038
4039
# File 'generated/google/apis/analytics_v3/classes.rb', line 4037

def href
  @href
end

#idString

View (Profile) ID. Corresponds to the JSON property id

Returns:

  • (String)


4042
4043
4044
# File 'generated/google/apis/analytics_v3/classes.rb', line 4042

def id
  @id
end

#internal_web_property_idString

Internal ID for the web property to which this view (profile) belongs. Corresponds to the JSON property internalWebPropertyId

Returns:

  • (String)


4047
4048
4049
# File 'generated/google/apis/analytics_v3/classes.rb', line 4047

def internal_web_property_id
  @internal_web_property_id
end

#kindString

Analytics view (profile) reference. Corresponds to the JSON property kind

Returns:

  • (String)


4052
4053
4054
# File 'generated/google/apis/analytics_v3/classes.rb', line 4052

def kind
  @kind
end

#nameString

Name of this view (profile). Corresponds to the JSON property name

Returns:

  • (String)


4057
4058
4059
# File 'generated/google/apis/analytics_v3/classes.rb', line 4057

def name
  @name
end

#web_property_idString

Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. Corresponds to the JSON property webPropertyId

Returns:

  • (String)


4062
4063
4064
# File 'generated/google/apis/analytics_v3/classes.rb', line 4062

def web_property_id
  @web_property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4069
4070
4071
4072
4073
4074
4075
4076
4077
# File 'generated/google/apis/analytics_v3/classes.rb', line 4069

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @href = args[:href] if args.key?(:href)
  @id = args[:id] if args.key?(:id)
  @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end