Reference documentation and code samples for the Cloud Firestore Admin V1 API class Google::Cloud::Firestore::Admin::V1::Database.
A Cloud Firestore Database.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#app_engine_integration_mode
def app_engine_integration_mode() -> ::Google::Cloud::Firestore::Admin::V1::Database::AppEngineIntegrationMode
- (::Google::Cloud::Firestore::Admin::V1::Database::AppEngineIntegrationMode) — The App Engine integration mode to use for this database.
#app_engine_integration_mode=
def app_engine_integration_mode=(value) -> ::Google::Cloud::Firestore::Admin::V1::Database::AppEngineIntegrationMode
- value (::Google::Cloud::Firestore::Admin::V1::Database::AppEngineIntegrationMode) — The App Engine integration mode to use for this database.
- (::Google::Cloud::Firestore::Admin::V1::Database::AppEngineIntegrationMode) — The App Engine integration mode to use for this database.
#concurrency_mode
def concurrency_mode() -> ::Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode
- (::Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode) — The concurrency control mode to use for this database.
#concurrency_mode=
def concurrency_mode=(value) -> ::Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode
- value (::Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode) — The concurrency control mode to use for this database.
- (::Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode) — The concurrency control mode to use for this database.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
#delete_protection_state
def delete_protection_state() -> ::Google::Cloud::Firestore::Admin::V1::Database::DeleteProtectionState
- (::Google::Cloud::Firestore::Admin::V1::Database::DeleteProtectionState) — State of delete protection for the database.
#delete_protection_state=
def delete_protection_state=(value) -> ::Google::Cloud::Firestore::Admin::V1::Database::DeleteProtectionState
- value (::Google::Cloud::Firestore::Admin::V1::Database::DeleteProtectionState) — State of delete protection for the database.
- (::Google::Cloud::Firestore::Admin::V1::Database::DeleteProtectionState) — State of delete protection for the database.
#earliest_version_time
def earliest_version_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Output only. The earliest timestamp at which older versions of the data can
be read from the database. See [version_retention_period] above; this field
is populated with
now - version_retention_period
.This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
#etag
def etag() -> ::String
- (::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.
#etag=
def etag=(value) -> ::String
- value (::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.
- (::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.
#key_prefix
def key_prefix() -> ::String
- (::String) — Output only. The key_prefix for this database. This key_prefix is used, in combination with the project id ("
#location_id
def location_id() -> ::String
- (::String) — The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
#location_id=
def location_id=(value) -> ::String
- value (::String) — The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- (::String) — The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
#name
def name() -> ::String
-
(::String) — The resource name of the Database.
Format:
projects/{project}/databases/{database}
#name=
def name=(value) -> ::String
-
value (::String) — The resource name of the Database.
Format:
projects/{project}/databases/{database}
-
(::String) — The resource name of the Database.
Format:
projects/{project}/databases/{database}
#point_in_time_recovery_enablement
def point_in_time_recovery_enablement() -> ::Google::Cloud::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement
- (::Google::Cloud::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement) — Whether to enable the PITR feature on this database.
#point_in_time_recovery_enablement=
def point_in_time_recovery_enablement=(value) -> ::Google::Cloud::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement
- value (::Google::Cloud::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement) — Whether to enable the PITR feature on this database.
- (::Google::Cloud::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement) — Whether to enable the PITR feature on this database.
#type
def type() -> ::Google::Cloud::Firestore::Admin::V1::Database::DatabaseType
- (::Google::Cloud::Firestore::Admin::V1::Database::DatabaseType) — The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
#type=
def type=(value) -> ::Google::Cloud::Firestore::Admin::V1::Database::DatabaseType
- value (::Google::Cloud::Firestore::Admin::V1::Database::DatabaseType) — The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- (::Google::Cloud::Firestore::Admin::V1::Database::DatabaseType) — The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
#uid
def uid() -> ::String
- (::String) — Output only. The system-generated UUID4 for this Database.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
#version_retention_period
def version_retention_period() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::Duration) — Output only. The period during which past versions of data are retained in
the database.
Any [read][google.firestore.v1.GetDocumentRequest.read_time] or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify a
read_time
within this window, and will read the state of the database at that time.If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.