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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analytics_v3/classes.rb,
lib/google/apis/analytics_v3/representations.rb,
lib/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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountTreeRequest

Returns a new instance of AccountTreeRequest.



377
378
379
# File 'lib/google/apis/analytics_v3/classes.rb', line 377

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

Instance Attribute Details

#account_nameString

Corresponds to the JSON property accountName

Returns:

  • (String)


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

def 
  @account_name
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#profile_nameString

Corresponds to the JSON property profileName

Returns:

  • (String)


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

def profile_name
  @profile_name
end

#timezoneString

Corresponds to the JSON property timezone

Returns:

  • (String)


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

def timezone
  @timezone
end

#webproperty_nameString

Corresponds to the JSON property webpropertyName

Returns:

  • (String)


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

def webproperty_name
  @webproperty_name
end

#website_urlString

Corresponds to the JSON property websiteUrl

Returns:

  • (String)


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

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



382
383
384
385
386
387
388
389
# File 'lib/google/apis/analytics_v3/classes.rb', line 382

def update!(**args)
  @account_name = args[:account_name] if args.key?(:account_name)
  @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