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.
487 488 489 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 487 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
464 465 466 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 464 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
470 471 472 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 470 def name @name end |
#project_id ⇒ String
Immutable. The globally unique, user-assigned ID of the Project.
Corresponds to the JSON property projectId
475 476 477 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 475 def project_id @project_id end |
#project_number ⇒ Fixnum
The globally unique, Google-assigned identifier of the Project.
Corresponds to the JSON property projectNumber
480 481 482 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 480 def project_number @project_number end |
#resources ⇒ Google::Apis::FirebaseV1beta1::DefaultResources
The default resources associated with a FirebaseProject
.
Corresponds to the JSON property resources
485 486 487 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 485 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
492 493 494 495 496 497 498 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 492 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 |