Class: Google::Apis::AnalyticsV3::AccountTicket

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 ticket. The account ticket consists of the ticket ID and the basic information for the account, property and profile.

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

Returns a new instance of AccountTicket



326
327
328
# File 'generated/google/apis/analytics_v3/classes.rb', line 326

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



298
299
300
# File 'generated/google/apis/analytics_v3/classes.rb', line 298

def 
  @account
end

#idString

Account ticket ID used to access the account ticket. Corresponds to the JSON property id

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/analytics_v3/classes.rb', line 303

def id
  @id
end

#kindString

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

Returns:

  • (String)


308
309
310
# File 'generated/google/apis/analytics_v3/classes.rb', line 308

def kind
  @kind
end

#profileGoogle::Apis::AnalyticsV3::Profile

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



313
314
315
# File 'generated/google/apis/analytics_v3/classes.rb', line 313

def profile
  @profile
end

#redirect_uriString

Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs console as a callback URL. Corresponds to the JSON property redirectUri

Returns:

  • (String)


319
320
321
# File 'generated/google/apis/analytics_v3/classes.rb', line 319

def redirect_uri
  @redirect_uri
end

#webpropertyGoogle::Apis::AnalyticsV3::Webproperty

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



324
325
326
# File 'generated/google/apis/analytics_v3/classes.rb', line 324

def webproperty
  @webproperty
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



331
332
333
334
335
336
337
338
# File 'generated/google/apis/analytics_v3/classes.rb', line 331

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