Class: Google::Apis::FirebaseV1beta1::WebAppConfig

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

Configuration metadata of a single Firebase App for the web.

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) ⇒ WebAppConfig

Returns a new instance of WebAppConfig



1138
1139
1140
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1138

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

Instance Attribute Details

#api_keyString

The API key associated with the web App. Corresponds to the JSON property apiKey

Returns:

  • (String)


1092
1093
1094
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1092

def api_key
  @api_key
end

#app_idString

Immutable. The globally unique, Firebase-assigned identifier of the App. Corresponds to the JSON property appId

Returns:

  • (String)


1097
1098
1099
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1097

def app_id
  @app_id
end

#auth_domainString

The domain Firebase Auth configures for OAuth redirects, in the format:
projectId.firebaseapp.com Corresponds to the JSON property authDomain

Returns:

  • (String)


1103
1104
1105
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1103

def auth_domain
  @auth_domain
end

#database_urlString

The default Firebase Realtime Database URL. Corresponds to the JSON property databaseURL

Returns:

  • (String)


1108
1109
1110
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1108

def database_url
  @database_url
end

#location_idString

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 your project's default GCP resource location, call FinalizeDefaultLocation after you add Firebase services to your project. Corresponds to the JSON property locationId

Returns:

  • (String)


1120
1121
1122
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1120

def location_id
  @location_id
end

#messaging_sender_idString

The sender ID for use with Firebase Cloud Messaging. Corresponds to the JSON property messagingSenderId

Returns:

  • (String)


1125
1126
1127
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1125

def messaging_sender_id
  @messaging_sender_id
end

#project_idString

Immutable. The globally unique, user-assigned project ID of the parent Project for the App. Corresponds to the JSON property projectId

Returns:

  • (String)


1131
1132
1133
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1131

def project_id
  @project_id
end

#storage_bucketString

The default Cloud Storage for Firebase storage bucket name. Corresponds to the JSON property storageBucket

Returns:

  • (String)


1136
1137
1138
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1136

def storage_bucket
  @storage_bucket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1143

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