Class: Google::Apis::AnalyticsV3::AccountTreeRequest

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 requests. The account tree request is used in the provisioning api to create an account, property, and view ( profile). It contains the basic information required to make these fields.

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

Returns a new instance of AccountTreeRequest



382
383
384
# File 'generated/google/apis/analytics_v3/classes.rb', line 382

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

Instance Attribute Details

#account_nameString

Corresponds to the JSON property accountName

Returns:

  • (String)


350
351
352
# File 'generated/google/apis/analytics_v3/classes.rb', line 350

def 
  @account_name
end

#account_settingsGoogle::Apis::AnalyticsV3::AccountTreeRequest::AccountSettings

Corresponds to the JSON property accountSettings



355
356
357
# File 'generated/google/apis/analytics_v3/classes.rb', line 355

def 
  @account_settings
end

#kindString

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

Returns:

  • (String)


360
361
362
# File 'generated/google/apis/analytics_v3/classes.rb', line 360

def kind
  @kind
end

#profile_nameString

Corresponds to the JSON property profileName

Returns:

  • (String)


365
366
367
# File 'generated/google/apis/analytics_v3/classes.rb', line 365

def profile_name
  @profile_name
end

#timezoneString

Corresponds to the JSON property timezone

Returns:

  • (String)


370
371
372
# File 'generated/google/apis/analytics_v3/classes.rb', line 370

def timezone
  @timezone
end

#webproperty_nameString

Corresponds to the JSON property webpropertyName

Returns:

  • (String)


375
376
377
# File 'generated/google/apis/analytics_v3/classes.rb', line 375

def webproperty_name
  @webproperty_name
end

#website_urlString

Corresponds to the JSON property websiteUrl

Returns:

  • (String)


380
381
382
# File 'generated/google/apis/analytics_v3/classes.rb', line 380

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



387
388
389
390
391
392
393
394
395
# File 'generated/google/apis/analytics_v3/classes.rb', line 387

def update!(**args)
  @account_name = args[:account_name] if args.key?(:account_name)
  @account_settings = args[:account_settings] if args.key?(:account_settings)
  @kind = args[:kind] if args.key?(:kind)
  @profile_name = args[:profile_name] if args.key?(:profile_name)
  @timezone = args[:timezone] if args.key?(:timezone)
  @webproperty_name = args[:webproperty_name] if args.key?(:webproperty_name)
  @website_url = args[:website_url] if args.key?(:website_url)
end