Class: Google::Apis::AnalyticsV3::Webproperty

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

Defined Under Namespace

Classes: ChildLink, ParentLink, Permissions

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

Returns a new instance of Webproperty.



5430
5431
5432
# File 'generated/google/apis/analytics_v3/classes.rb', line 5430

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)


5345
5346
5347
# File 'generated/google/apis/analytics_v3/classes.rb', line 5345

def 
  @account_id
end

Child link for this web property. Points to the list of views (profiles) for this web property. Corresponds to the JSON property childLink



5351
5352
5353
# File 'generated/google/apis/analytics_v3/classes.rb', line 5351

def child_link
  @child_link
end

#createdDateTime

Time this web property was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


5356
5357
5358
# File 'generated/google/apis/analytics_v3/classes.rb', line 5356

def created
  @created
end

#default_profile_idString

Default view (profile) ID. Corresponds to the JSON property defaultProfileId

Returns:

  • (String)


5361
5362
5363
# File 'generated/google/apis/analytics_v3/classes.rb', line 5361

def default_profile_id
  @default_profile_id
end

#idString

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

Returns:

  • (String)


5366
5367
5368
# File 'generated/google/apis/analytics_v3/classes.rb', line 5366

def id
  @id
end

#industry_verticalString

The industry vertical/category selected for this web property. Corresponds to the JSON property industryVertical

Returns:

  • (String)


5371
5372
5373
# File 'generated/google/apis/analytics_v3/classes.rb', line 5371

def industry_vertical
  @industry_vertical
end

#internal_web_property_idString

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

Returns:

  • (String)


5376
5377
5378
# File 'generated/google/apis/analytics_v3/classes.rb', line 5376

def internal_web_property_id
  @internal_web_property_id
end

#kindString

Resource type for Analytics WebProperty. Corresponds to the JSON property kind

Returns:

  • (String)


5381
5382
5383
# File 'generated/google/apis/analytics_v3/classes.rb', line 5381

def kind
  @kind
end

#levelString

Level for this web property. Possible values are STANDARD or PREMIUM. Corresponds to the JSON property level

Returns:

  • (String)


5386
5387
5388
# File 'generated/google/apis/analytics_v3/classes.rb', line 5386

def level
  @level
end

#nameString

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

Returns:

  • (String)


5391
5392
5393
# File 'generated/google/apis/analytics_v3/classes.rb', line 5391

def name
  @name
end

Parent link for this web property. Points to the account to which this web property belongs. Corresponds to the JSON property parentLink



5397
5398
5399
# File 'generated/google/apis/analytics_v3/classes.rb', line 5397

def parent_link
  @parent_link
end

#permissionsGoogle::Apis::AnalyticsV3::Webproperty::Permissions

Permissions the user has for this web property. Corresponds to the JSON property permissions



5402
5403
5404
# File 'generated/google/apis/analytics_v3/classes.rb', line 5402

def permissions
  @permissions
end

#profile_countFixnum

View (Profile) count for this web property. Corresponds to the JSON property profileCount

Returns:

  • (Fixnum)


5407
5408
5409
# File 'generated/google/apis/analytics_v3/classes.rb', line 5407

def profile_count
  @profile_count
end

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

Returns:

  • (String)


5412
5413
5414
# File 'generated/google/apis/analytics_v3/classes.rb', line 5412

def self_link
  @self_link
end

#starredBoolean Also known as: starred?

Indicates whether this web property is starred or not. Corresponds to the JSON property starred

Returns:

  • (Boolean)


5417
5418
5419
# File 'generated/google/apis/analytics_v3/classes.rb', line 5417

def starred
  @starred
end

#updatedDateTime

Time this web property was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


5423
5424
5425
# File 'generated/google/apis/analytics_v3/classes.rb', line 5423

def updated
  @updated
end

#website_urlString

Website url for this web property. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


5428
5429
5430
# File 'generated/google/apis/analytics_v3/classes.rb', line 5428

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
# File 'generated/google/apis/analytics_v3/classes.rb', line 5435

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @child_link = args[:child_link] if args.key?(:child_link)
  @created = args[:created] if args.key?(:created)
  @default_profile_id = args[:default_profile_id] if args.key?(:default_profile_id)
  @id = args[:id] if args.key?(:id)
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
  @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
  @kind = args[:kind] if args.key?(:kind)
  @level = args[:level] if args.key?(:level)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @permissions = args[:permissions] if args.key?(:permissions)
  @profile_count = args[:profile_count] if args.key?(:profile_count)
  @self_link = args[:self_link] if args.key?(:self_link)
  @starred = args[:starred] if args.key?(:starred)
  @updated = args[:updated] if args.key?(:updated)
  @website_url = args[:website_url] if args.key?(:website_url)
end