class Google::Apis::FirebaseV1beta1::WebAppConfig

Configuration metadata of a single Firebase App for the web.

Attributes

api_key[RW]

The API key associated with the `WebApp`. Corresponds to the JSON property `apiKey` @return [String]

app_id[RW]

Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. Corresponds to the JSON property `appId` @return [String]

auth_domain[RW]

The domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com Corresponds to the JSON property `authDomain` @return [String]

database_url[RW]

The default Firebase Realtime Database URL. Corresponds to the JSON property `databaseURL` @return [String]

location_id[RW]

The ID of the Project's default GCP resource location. The location is one of the available [GCP resource locations](firebase.google.com/docs/ projects/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`](../projects.defaultLocation/ finalize) after you add Firebase resources to the Project. Corresponds to the JSON property `locationId` @return [String]

measurement_id[RW]

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](https:// support.google.com/analytics/topic/9303475). To generate a `measurementId` and link the `WebApp` with a Google Analytics web stream, call [` AddGoogleAnalytics`](../../v1beta1/projects/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` @return [String]

messaging_sender_id[RW]

The sender ID for use with Firebase Cloud Messaging. Corresponds to the JSON property `messagingSenderId` @return [String]

project_id[RW]

Immutable. A user-assigned unique identifier for the `FirebaseProject`. Corresponds to the JSON property `projectId` @return [String]

storage_bucket[RW]

The default Cloud Storage for Firebase storage bucket name. Corresponds to the JSON property `storageBucket` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebase_v1beta1/classes.rb, line 1263
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebase_v1beta1/classes.rb, line 1268
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