Class: Google::Apis::FirebaseV1beta1::ProjectInfo
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::ProjectInfo
- 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 reference to a Google Cloud Platform (GCP) Project.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user-assigned display name of the GCP
Project, for example:My AppCorresponds to the JSON propertydisplayName. -
#location_id ⇒ String
The default resource location of other Firebase resources (such as Cloud Firestore).
-
#project ⇒ String
The resource name of the GCP
Projectto which Firebase resources can be added, in the format:projects/projectIdCorresponds to the JSON propertyproject.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProjectInfo
constructor
A new instance of ProjectInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProjectInfo
Returns a new instance of ProjectInfo
731 732 733 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user-assigned display name of the GCP Project, for example:
My App
Corresponds to the JSON property displayName
711 712 713 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 711 def display_name @display_name end |
#location_id ⇒ String
The default resource location of other Firebase resources
(such as Cloud Firestore).
Not all projects will have this field populated. If it is
not populated, it means that the project is not yet associated with any
region. Consequently, a call to AddFirebase must provide a location
in this case.
For examples, see https://cloud.google.com/appengine/docs/locations.
Corresponds to the JSON property locationId
722 723 724 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 722 def location_id @location_id end |
#project ⇒ String
The resource name of the GCP Project to which Firebase resources can be
added, in the format:
projects/projectId
Corresponds to the JSON property project
729 730 731 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 729 def project @project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
736 737 738 739 740 |
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 736 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @location_id = args[:location_id] if args.key?(:location_id) @project = args[:project] if args.key?(:project) end |