Class: Google::Apis::AnalyticsV3::AccountTreeResponse

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 an Analytics account tree response. The account tree response is used in the provisioning api to return the result of creating an account, property, and view (profile).

Defined Under Namespace

Classes: AccountSettings

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

Returns a new instance of AccountTreeResponse



470
471
472
# File 'generated/google/apis/analytics_v3/classes.rb', line 470

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

Instance Attribute Details

#accountGoogle::Apis::AnalyticsV3::Account

JSON template for Analytics account entry. Corresponds to the JSON property account



448
449
450
# File 'generated/google/apis/analytics_v3/classes.rb', line 448

def 
  @account
end

#account_settingsGoogle::Apis::AnalyticsV3::AccountTreeResponse::AccountSettings

Corresponds to the JSON property accountSettings



453
454
455
# File 'generated/google/apis/analytics_v3/classes.rb', line 453

def 
  @account_settings
end

#kindString

Resource type for account ticket. Corresponds to the JSON property kind

Returns:

  • (String)


458
459
460
# File 'generated/google/apis/analytics_v3/classes.rb', line 458

def kind
  @kind
end

#profileGoogle::Apis::AnalyticsV3::Profile

JSON template for an Analytics view (profile). Corresponds to the JSON property profile



463
464
465
# File 'generated/google/apis/analytics_v3/classes.rb', line 463

def profile
  @profile
end

#webpropertyGoogle::Apis::AnalyticsV3::Webproperty

JSON template for an Analytics web property. Corresponds to the JSON property webproperty



468
469
470
# File 'generated/google/apis/analytics_v3/classes.rb', line 468

def webproperty
  @webproperty
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



475
476
477
478
479
480
481
# File 'generated/google/apis/analytics_v3/classes.rb', line 475

def update!(**args)
  @account = args[:account] if args.key?(:account)
  @account_settings = args[:account_settings] if args.key?(:account_settings)
  @kind = args[:kind] if args.key?(:kind)
  @profile = args[:profile] if args.key?(:profile)
  @webproperty = args[:webproperty] if args.key?(:webproperty)
end