Class: Google::Apis::FirebaseV1beta1::FirebaseProject
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::FirebaseProject
- 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
A FirebaseProject is the top-level Firebase entity. It is the container for
Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime
Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and
Google Cloud Platform (GCP) resources.
You can create a new FirebaseProject in the
Firebase console,
or you can add Firebase resources to an existing
GCP
Project
by calling
AddFirebase.
A FirebaseProject is actually also a GCP Project, so a
FirebaseProject uses underlying GCP identifiers (most importantly,
projectId) as its own for easy interop with GCP APIs.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user-assigned display name of the Project.
-
#name ⇒ String
The fully qualified resource name of the Project, in the format:
projects/projectIdCorresponds to the JSON propertyname. -
#project_id ⇒ String
Immutable.
-
#project_number ⇒ Fixnum
The globally unique, Google-assigned identifier of the Project.
-
#resources ⇒ Google::Apis::FirebaseV1beta1::DefaultResources
The default resources associated with a
FirebaseProject.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FirebaseProject
constructor
A new instance of FirebaseProject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FirebaseProject
Returns a new instance of FirebaseProject
351 352 353 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 351 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user-assigned display name of the Project.
Corresponds to the JSON property displayName
328 329 330 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 328 def display_name @display_name end |
#name ⇒ String
The fully qualified resource name of the Project, in the format:
projects/projectId
Corresponds to the JSON property name
334 335 336 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 334 def name @name end |
#project_id ⇒ String
Immutable. The globally unique, user-assigned ID of the Project.
Corresponds to the JSON property projectId
339 340 341 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 339 def project_id @project_id end |
#project_number ⇒ Fixnum
The globally unique, Google-assigned identifier of the Project.
Corresponds to the JSON property projectNumber
344 345 346 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 344 def project_number @project_number end |
#resources ⇒ Google::Apis::FirebaseV1beta1::DefaultResources
The default resources associated with a FirebaseProject.
Corresponds to the JSON property resources
349 350 351 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 349 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
356 357 358 359 360 361 362 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 356 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) @project_number = args[:project_number] if args.key?(:project_number) @resources = args[:resources] if args.key?(:resources) end |