Class: Google::Apis::FirebaseV1beta1::WebAppConfig
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::WebAppConfig
- 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
Configuration metadata of a single Firebase App for the web.
Instance Attribute Summary collapse
-
#api_key ⇒ String
The API key associated with the web App.
-
#app_id ⇒ String
Immutable.
-
#auth_domain ⇒ String
The domain Firebase Auth configures for OAuth redirects, in the format:
projectId.firebaseapp.comCorresponds to the JSON propertyauthDomain. -
#database_url ⇒ String
The default Firebase Realtime Database URL.
-
#location_id ⇒ String
The default resource location of other Firebase resources (such as Cloud Firestore).
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WebAppConfig
Returns a new instance of WebAppConfig
1045 1046 1047 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1045 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key ⇒ String
The API key associated with the web App.
Corresponds to the JSON property apiKey
1004 1005 1006 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1004 def api_key @api_key end |
#app_id ⇒ String
Immutable. The globally unique, Firebase-assigned identifier of the App.
Corresponds to the JSON property appId
1009 1010 1011 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1009 def app_id @app_id end |
#auth_domain ⇒ String
The domain Firebase Auth configures for OAuth redirects, in the format:
projectId.firebaseapp.com
Corresponds to the JSON property authDomain
1015 1016 1017 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1015 def auth_domain @auth_domain end |
#database_url ⇒ String
The default Firebase Realtime Database URL.
Corresponds to the JSON property databaseURL
1020 1021 1022 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1020 def database_url @database_url end |
#location_id ⇒ String
The default resource location of other Firebase resources
(such as Cloud Firestore).
For examples, see https://cloud.google.com/appengine/docs/locations.
Corresponds to the JSON property locationId
1027 1028 1029 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1027 def location_id @location_id end |
#messaging_sender_id ⇒ String
The sender ID for use with Firebase Cloud Messaging.
Corresponds to the JSON property messagingSenderId
1032 1033 1034 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1032 def messaging_sender_id @messaging_sender_id end |
#project_id ⇒ String
Immutable. The globally unique, user-assigned project ID of the parent
Project for the App.
Corresponds to the JSON property projectId
1038 1039 1040 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1038 def project_id @project_id end |
#storage_bucket ⇒ String
The default Cloud Storage for Firebase storage bucket name.
Corresponds to the JSON property storageBucket
1043 1044 1045 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1043 def storage_bucket @storage_bucket end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1050 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) @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 |