Class: Google::Apis::FirebaseV1beta1::DefaultResources

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebase_v1beta1/classes.rb,
lib/google/apis/firebase_v1beta1/representations.rb,
lib/google/apis/firebase_v1beta1/representations.rb

Overview

DEPRECATED. Auto-provisioning of these resources is changing, so this object no longer reliably provides information about the resources within the Project. Instead, retrieve information about each resource directly from its resource-specific API. The default auto-provisioned resources associated with the Project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DefaultResources

Returns a new instance of DefaultResources.



401
402
403
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 401

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

Instance Attribute Details

#hosting_siteString

Output only. DEPRECATED. Instead, find the default Firebase Hosting site name using the ListSites within the Firebase Hosting REST API. Note that the default site for the Project might not yet be provisioned, so the return might not contain a default site. The default Firebase Hosting site name, in the format: PROJECT_ID Though rare, your projectId might already be used as the name for an existing Hosting site in another project (learn more about creating non-default, additional sites). In these cases, your projectId is appended with a hyphen then five alphanumeric characters to create your default Hosting site name. For example, if your projectId is myproject123, your default Hosting site name might be: myproject123-a5c16 Corresponds to the JSON property hostingSite

Returns:

  • (String)


359
360
361
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 359

def hosting_site
  @hosting_site
end

#location_idString

Output only. DEPRECATED. Instead, use product-specific REST APIs to find the location of resources. The ID of the Project's default GCP resource location. The location is one of the available GCP resource locations. This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call FinalizeDefaultLocation after you add Firebase resources to the Project. Corresponds to the JSON property locationId

Returns:

  • (String)


370
371
372
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 370

def location_id
  @location_id
end

#realtime_database_instanceString

Output only. DEPRECATED. Instead, find the default Firebase Realtime Database instance name using the list endpoint within the Firebase Realtime Database REST API. Note that the default instance for the Project might not yet be provisioned, so the return might not contain a default instance. The default Firebase Realtime Database instance name, in the format: PROJECT_ID Though rare, your projectId might already be used as the name for an existing Realtime Database instance in another project (learn more about database sharding). In these cases, your projectId is appended with a hyphen then five alphanumeric characters to create your default Realtime Database instance name. For example, if your projectId is myproject123, your default database instance name might be: myproject123- a5c16 Corresponds to the JSON property realtimeDatabaseInstance

Returns:

  • (String)


388
389
390
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 388

def realtime_database_instance
  @realtime_database_instance
end

#storage_bucketString

Output only. DEPRECATED. _Instead, find the default Cloud Storage for Firebase bucket using the list endpoint within the Cloud Storage for Firebase REST API. Note that the default bucket for the Project might not yet be provisioned, so the return might not contain a default bucket. _ The default Cloud Storage for Firebase storage bucket, in the format: PROJECT_ID.appspot.com Corresponds to the JSON property storageBucket

Returns:

  • (String)


399
400
401
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 399

def storage_bucket
  @storage_bucket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
410
411
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 406

def update!(**args)
  @hosting_site = args[:hosting_site] if args.key?(:hosting_site)
  @location_id = args[:location_id] if args.key?(:location_id)
  @realtime_database_instance = args[:realtime_database_instance] if args.key?(:realtime_database_instance)
  @storage_bucket = args[:storage_bucket] if args.key?(:storage_bucket)
end