Class: Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasedatabase_v1beta/classes.rb,
lib/google/apis/firebasedatabase_v1beta/representations.rb,
lib/google/apis/firebasedatabase_v1beta/representations.rb
Overview
Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/ docs/database/rest/start.
Instance Attribute Summary collapse
-
#database_url ⇒ String
Output only.
-
#name ⇒ String
The fully qualified resource name of the database instance, in the form:
projects/
project-number/locations/
location-id/instances/
database-id``. -
#project ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#type ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseInstance
constructor
A new instance of DatabaseInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseInstance
Returns a new instance of DatabaseInstance.
59 60 61 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 59 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_url ⇒ String
Output only. Output Only. The globally unique hostname of the database.
Corresponds to the JSON property databaseUrl
34 35 36 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 34 def database_url @database_url end |
#name ⇒ String
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`
40 41 42 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 40 def name @name end |
#project ⇒ String
Output only. The resource name of the project this instance belongs to. For
example: projects/
project-number`.
Corresponds to the JSON property
project`
46 47 48 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 46 def project @project end |
#state ⇒ String
Output only. The database's lifecycle state. Read-only.
Corresponds to the JSON property state
51 52 53 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 51 def state @state end |
#type ⇒ String
Immutable. The database instance type. On creation only USER_DATABASE is
allowed, which is also the default when omitted.
Corresponds to the JSON property type
57 58 59 |
# File 'lib/google/apis/firebasedatabase_v1beta/classes.rb', line 57 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
64 65 66 67 68 69 70 |
# 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 |