Class: Google::Apis::AnalyticsV3::WebPropertyRef

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 web property reference.

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

Returns a new instance of WebPropertyRef



5531
5532
5533
# File 'generated/google/apis/analytics_v3/classes.rb', line 5531

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

Instance Attribute Details

#account_idString

Account ID to which this web property belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


5504
5505
5506
# File 'generated/google/apis/analytics_v3/classes.rb', line 5504

def 
  @account_id
end

#hrefString

Link for this web property. Corresponds to the JSON property href

Returns:

  • (String)


5509
5510
5511
# File 'generated/google/apis/analytics_v3/classes.rb', line 5509

def href
  @href
end

#idString

Web property ID of the form UA-XXXXX-YY. Corresponds to the JSON property id

Returns:

  • (String)


5514
5515
5516
# File 'generated/google/apis/analytics_v3/classes.rb', line 5514

def id
  @id
end

#internal_web_property_idString

Internal ID for this web property. Corresponds to the JSON property internalWebPropertyId

Returns:

  • (String)


5519
5520
5521
# File 'generated/google/apis/analytics_v3/classes.rb', line 5519

def internal_web_property_id
  @internal_web_property_id
end

#kindString

Analytics web property reference. Corresponds to the JSON property kind

Returns:

  • (String)


5524
5525
5526
# File 'generated/google/apis/analytics_v3/classes.rb', line 5524

def kind
  @kind
end

#nameString

Name of this web property. Corresponds to the JSON property name

Returns:

  • (String)


5529
5530
5531
# File 'generated/google/apis/analytics_v3/classes.rb', line 5529

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5536
5537
5538
5539
5540
5541
5542
5543
# File 'generated/google/apis/analytics_v3/classes.rb', line 5536

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)
end