Class: Google::Apis::FirebaseV1beta1::ProjectInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProjectInfo

Returns a new instance of ProjectInfo.



937
938
939
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 937

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

The user-assigned display name of the GCP Project, for example: My App Corresponds to the JSON property displayName

Returns:

  • (String)


915
916
917
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 915

def display_name
  @display_name
end

#location_idString

The ID of the project's default GCP resource location. The location is one of the available GCP resource locations.

Not all projects will have this field populated. If it is not populated, it means that the project does not yet have a default GCP resource location. To set your project's default GCP resource location, call FinalizeDefaultLocation after you add Firebase resources to your project. Corresponds to the JSON property locationId

Returns:

  • (String)


928
929
930
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 928

def location_id
  @location_id
end

#projectString

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

Returns:

  • (String)


935
936
937
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 935

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



942
943
944
945
946
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 942

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