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/projectId
Corresponds 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
383 384 385 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 383 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
360 361 362 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 360 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
366 367 368 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 366 def name @name end |
#project_id ⇒ String
Immutable. The globally unique, user-assigned ID of the Project.
Corresponds to the JSON property projectId
371 372 373 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 371 def project_id @project_id end |
#project_number ⇒ Fixnum
The globally unique, Google-assigned identifier of the Project.
Corresponds to the JSON property projectNumber
376 377 378 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 376 def project_number @project_number end |
#resources ⇒ Google::Apis::FirebaseV1beta1::DefaultResources
The default resources associated with a FirebaseProject
.
Corresponds to the JSON property resources
381 382 383 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 381 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
388 389 390 391 392 393 394 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 388 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 |