Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Database
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Database
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
A Cloud Firestore Database. Currently only one database is allowed per cloud
project; this database must have a database_id of '(default)'.
Instance Attribute Summary collapse
-
#concurrency_mode ⇒ String
The concurrency control mode to use for this database.
-
#etag ⇒ String
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up- to-date value before proceeding.
-
#location_id ⇒ String
The location of the database.
-
#name ⇒ String
The resource name of the Database.
-
#type ⇒ String
The type of the database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1Database
constructor
A new instance of GoogleFirestoreAdminV1Database.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1Database
Returns a new instance of GoogleFirestoreAdminV1Database.
813 814 815 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 813 def initialize(**args) update!(**args) end |
Instance Attribute Details
#concurrency_mode ⇒ String
The concurrency control mode to use for this database.
Corresponds to the JSON property concurrencyMode
786 787 788 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 786 def concurrency_mode @concurrency_mode end |
#etag ⇒ String
This checksum is computed by the server based on the value of other fields,
and may be sent on update and delete requests to ensure the client has an up-
to-date value before proceeding.
Corresponds to the JSON property etag
793 794 795 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 793 def etag @etag end |
#location_id ⇒ String
The location of the database. Available databases are listed at https://cloud.
google.com/firestore/docs/locations.
Corresponds to the JSON property locationId
799 800 801 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 799 def location_id @location_id end |
#name ⇒ String
The resource name of the Database. Format: projects/project/databases/
database`
Corresponds to the JSON propertyname`
805 806 807 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 805 def name @name end |
#type ⇒ String
The type of the database. See https://cloud.google.com/datastore/docs/
firestore-or-datastore for information about how to choose.
Corresponds to the JSON property type
811 812 813 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 811 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
818 819 820 821 822 823 824 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 818 def update!(**args) @concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode) @etag = args[:etag] if args.key?(:etag) @location_id = args[:location_id] if args.key?(:location_id) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |