Class: Google::Apis::FirebaseV1beta1::StreamMapping

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebase_v1beta1/classes.rb,
lib/google/apis/firebase_v1beta1/representations.rb,
lib/google/apis/firebase_v1beta1/representations.rb

Overview

A mapping of a Firebase App to a Google Analytics data stream

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StreamMapping

Returns a new instance of StreamMapping.



1436
1437
1438
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1436

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

Instance Attribute Details

#appString

The resource name of the Firebase App associated with the Google Analytics data stream, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID or projects/PROJECT_IDENTIFIER/iosApps/APP_ID or projects/PROJECT_IDENTIFIER / webApps/APP_ID Refer to the FirebaseProject name field for details about PROJECT_IDENTIFIER values. Corresponds to the JSON property app

Returns:

  • (String)


1417
1418
1419
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1417

def app
  @app
end

#measurement_idString

Applicable for Firebase Web Apps only. The unique Google-assigned identifier of the Google Analytics web stream associated with the Firebase Web App. Firebase SDKs use this ID to interact with Google Analytics APIs. Learn more about this ID and Google Analytics web streams in the Analytics documentation. Corresponds to the JSON property measurementId

Returns:

  • (String)


1426
1427
1428
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1426

def measurement_id
  @measurement_id
end

#stream_idFixnum

The unique Google-assigned identifier of the Google Analytics data stream associated with the Firebase App. Learn more about Google Analytics data streams in the Analytics documentation. Corresponds to the JSON property streamId

Returns:

  • (Fixnum)


1434
1435
1436
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1434

def stream_id
  @stream_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1441
1442
1443
1444
1445
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1441

def update!(**args)
  @app = args[:app] if args.key?(:app)
  @measurement_id = args[:measurement_id] if args.key?(:measurement_id)
  @stream_id = args[:stream_id] if args.key?(:stream_id)
end