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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StreamMapping

Returns a new instance of StreamMapping.



1181
1182
1183
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1181

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

Instance Attribute Details

#appString

The fully qualified resource name of the Firebase App associated with the Google Analytics data stream, in the format:
projects/projectId/androidApps/appId or projects/projectId/iosApps/appId or projects/projectId/webApps/appId Corresponds to the JSON property app

Returns:

  • (String)


1157
1158
1159
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1157

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)


1169
1170
1171
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1169

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)


1179
1180
1181
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1179

def stream_id
  @stream_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1186
1187
1188
1189
1190
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1186

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