Class: Google::Apis::FirebaseV1beta1::DefaultResources
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::DefaultResources
- 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
The default resources associated with a FirebaseProject.
Instance Attribute Summary collapse
-
#hosting_site ⇒ String
The default Firebase Hosting site name, in the format:
projectId
Though rare, yourprojectIdmight already be used as the name for an existing Hosting site in another project (learn more about creating non-default, additional sites). -
#location_id ⇒ String
The default resource location of other Firebase resources, such as Cloud Firestore.
-
#realtime_database_instance ⇒ String
The default Firebase Realtime Database instance name, in the format:
projectId
Though rare, yourprojectIdmight already be used as the name for an existing Realtime Database instance in another project (learn more about database sharding). -
#storage_bucket ⇒ String
The default Cloud Storage for Firebase storage bucket, in the format:
projectId.appspot.com.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DefaultResources
constructor
A new instance of DefaultResources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DefaultResources
Returns a new instance of DefaultResources
230 231 232 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 230 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hosting_site ⇒ String
The default Firebase Hosting site name, in the format:
projectId
Though rare, your projectId might already be used as the name for an
existing Hosting site in another project (learn more about creating
non-default,
additional sites).
In these cases, your projectId is appended with a hyphen then five
alphanumeric characters to create your default Hosting site name. For
example, if your projectId is myproject123, your default Hosting site
name might be:
myproject123-a5c16
Corresponds to the JSON property hostingSite
198 199 200 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 198 def hosting_site @hosting_site end |
#location_id ⇒ String
The default resource location of other Firebase resources, such as
Cloud Firestore. This field is omitted if the default resource location has
not been finalized yet.
For examples, see https://cloud.google.com/appengine/docs/locations.
Corresponds to the JSON property locationId
206 207 208 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 206 def location_id @location_id end |
#realtime_database_instance ⇒ String
The default Firebase Realtime Database instance name, in the format:
projectId
Though rare, your projectId might already be used as the name for an
existing Realtime Database instance in another project (learn more about
database
sharding). In
these cases, your projectId is appended with a hyphen then five
alphanumeric characters to create your default Realtime Database instance
name. For example, if your projectId is myproject123, your default
database instance name might be:
myproject123-a5c16
Corresponds to the JSON property realtimeDatabaseInstance
221 222 223 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 221 def realtime_database_instance @realtime_database_instance end |
#storage_bucket ⇒ String
The default Cloud Storage for Firebase storage bucket, in the format:
projectId.appspot.com. This field is omitted
if the default resource location has not been finalized yet.
Corresponds to the JSON property storageBucket
228 229 230 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 228 def storage_bucket @storage_bucket end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
235 236 237 238 239 240 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 235 def update!(**args) @hosting_site = args[:hosting_site] if args.key?(:hosting_site) @location_id = args[:location_id] if args.key?(:location_id) @realtime_database_instance = args[:realtime_database_instance] if args.key?(:realtime_database_instance) @storage_bucket = args[:storage_bucket] if args.key?(:storage_bucket) end |