class Google::Apis::FirebasedatabaseV1beta::DatabaseInstance

Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: firebase.google.com/ docs/database/rest/start.

Attributes

database_url[RW]

Immutable. The globally unique hostname of the database. Corresponds to the JSON property `databaseUrl` @return [String]

name[RW]

The fully qualified resource name of the database instance, in the form: ` projects/`project-number`/locations/`location-id`/instances/`database-id“. Corresponds to the JSON property `name` @return [String]

project[RW]

The resource name of the project this instance belongs to. For example: ` projects/`project-number“. Corresponds to the JSON property `project` @return [String]

state[RW]

The database's lifecycle state. Read-only. Corresponds to the JSON property `state` @return [String]

type[RW]

The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebasedatabase_v1beta/classes.rb, line 59
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebasedatabase_v1beta/classes.rb, line 64
def update!(**args)
  @database_url = args[:database_url] if args.key?(:database_url)
  @name = args[:name] if args.key?(:name)
  @project = args[:project] if args.key?(:project)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end