Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1RestoreDatabaseRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1RestoreDatabaseRequest
- 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
The request message for FirestoreAdmin.RestoreDatabase.
Instance Attribute Summary collapse
-
#backup ⇒ String
Backup to restore from.
-
#database_id ⇒ String
Required.
-
#database_snapshot ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot
A consistent snapshot of a database at a specific point in time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1RestoreDatabaseRequest
constructor
A new instance of GoogleFirestoreAdminV1RestoreDatabaseRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1RestoreDatabaseRequest
Returns a new instance of GoogleFirestoreAdminV1RestoreDatabaseRequest.
2169 2170 2171 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
Backup to restore from. Must be from the same project as the parent. Format is:
projects/project_id/locations/location/backups/backup`
Corresponds to the JSON propertybackup`
2152 2153 2154 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2152 def backup @backup end |
#database_id ⇒ String
Required. The ID to use for the database, which will become the final
component of the database's resource name. This database id must not be
associated with an existing database. This value should be 4-63 characters.
Valid characters are /a-z-/ with first character a letter and the last a
letter or a number. Must not be UUID-like /[0-9a-f]8(-[0-9a-f]4)3-[0-9a-
f]12/. "(default)" database id is also valid.
Corresponds to the JSON property databaseId
2162 2163 2164 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2162 def database_id @database_id end |
#database_snapshot ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot
A consistent snapshot of a database at a specific point in time.
Corresponds to the JSON property databaseSnapshot
2167 2168 2169 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2167 def database_snapshot @database_snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2174 2175 2176 2177 2178 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2174 def update!(**args) @backup = args[:backup] if args.key?(:backup) @database_id = args[:database_id] if args.key?(:database_id) @database_snapshot = args[:database_snapshot] if args.key?(:database_snapshot) end |