Class: Google::Apis::FirebaseV1beta1::WebAppConfig
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::WebAppConfig
- 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
Configuration metadata of a single Firebase App for the web.
Instance Attribute Summary collapse
-
#api_key ⇒ String
The
keyStringof the API key associated with theWebApp. -
#app_id ⇒ String
Immutable.
-
#auth_domain ⇒ String
The domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com Corresponds to the JSON property
authDomain. -
#database_url ⇒ String
The default Firebase Realtime Database URL.
-
#location_id ⇒ String
The ID of the Project's default GCP resource location.
-
#measurement_id ⇒ String
The unique Google-assigned identifier of the Google Analytics web stream associated with the
WebApp. -
#messaging_sender_id ⇒ String
The sender ID for use with Firebase Cloud Messaging.
-
#project_id ⇒ String
Immutable.
-
#storage_bucket ⇒ String
The default Cloud Storage for Firebase storage bucket name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WebAppConfig
constructor
A new instance of WebAppConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WebAppConfig
Returns a new instance of WebAppConfig.
1705 1706 1707 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1705 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key ⇒ String
1646 1647 1648 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1646 def api_key @api_key end |
#app_id ⇒ String
Immutable. The globally unique, Firebase-assigned identifier for the WebApp.
Corresponds to the JSON property appId
1651 1652 1653 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1651 def app_id @app_id end |
#auth_domain ⇒ String
The domain Firebase Auth configures for OAuth redirects, in the format:
PROJECT_ID.firebaseapp.com
Corresponds to the JSON property authDomain
1657 1658 1659 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1657 def auth_domain @auth_domain end |
#database_url ⇒ String
The default Firebase Realtime Database URL.
Corresponds to the JSON property databaseURL
1662 1663 1664 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1662 def database_url @database_url end |
#location_id ⇒ String
The ID of the Project's default GCP resource location. The location is one of
the available GCP resource locations. This field is omitted if the default GCP resource
location has not been finalized yet. To set a Project's default GCP resource
location, call FinalizeDefaultLocation after you add Firebase resources to the Project.
Corresponds to the JSON property locationId
1672 1673 1674 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1672 def location_id @location_id end |
#measurement_id ⇒ String
The unique Google-assigned identifier of the Google Analytics web stream
associated with the WebApp. Firebase SDKs use this ID to interact with
Google Analytics APIs. This field is only present if the WebApp is linked to
a web stream in a Google Analytics App + Web property. Learn more about this
ID and Google Analytics web streams in the Analytics documentation. To generate a measurementId
and link the WebApp with a Google Analytics web stream, call
AddGoogleAnalytics. For apps
using the Firebase JavaScript SDK v7.20.0 and later, Firebase dynamically
fetches the measurementId when your app initializes Analytics. Having this
ID in your config object is optional, but it does serve as a fallback in the
rare case that the dynamic fetch fails.
Corresponds to the JSON property measurementId
1688 1689 1690 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1688 def measurement_id @measurement_id end |
#messaging_sender_id ⇒ String
The sender ID for use with Firebase Cloud Messaging.
Corresponds to the JSON property messagingSenderId
1693 1694 1695 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1693 def messaging_sender_id @messaging_sender_id end |
#project_id ⇒ String
Immutable. A user-assigned unique identifier for the FirebaseProject.
Corresponds to the JSON property projectId
1698 1699 1700 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1698 def project_id @project_id end |
#storage_bucket ⇒ String
The default Cloud Storage for Firebase storage bucket name.
Corresponds to the JSON property storageBucket
1703 1704 1705 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1703 def storage_bucket @storage_bucket end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1710 def update!(**args) @api_key = args[:api_key] if args.key?(:api_key) @app_id = args[:app_id] if args.key?(:app_id) @auth_domain = args[:auth_domain] if args.key?(:auth_domain) @database_url = args[:database_url] if args.key?(:database_url) @location_id = args[:location_id] if args.key?(:location_id) @measurement_id = args[:measurement_id] if args.key?(:measurement_id) @messaging_sender_id = args[:messaging_sender_id] if args.key?(:messaging_sender_id) @project_id = args[:project_id] if args.key?(:project_id) @storage_bucket = args[:storage_bucket] if args.key?(:storage_bucket) end |