Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Backup

Inherits:
Object
  • Object
show all
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 Backup of a Cloud Firestore Database. The backup contains all documents and index configurations for the given database at a specific point in time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1Backup

Returns a new instance of GoogleFirestoreAdminV1Backup.



1040
1041
1042
# File 'lib/google/apis/firestore_v1/classes.rb', line 1040

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#databaseString

Output only. Name of the Firestore database that the backup is from. Format is projects/project/databases/database`. Corresponds to the JSON propertydatabase`

Returns:

  • (String)


1005
1006
1007
# File 'lib/google/apis/firestore_v1/classes.rb', line 1005

def database
  @database
end

#database_uidString

Output only. The system-generated UUID4 for the Firestore database that the backup is from. Corresponds to the JSON property databaseUid

Returns:

  • (String)


1011
1012
1013
# File 'lib/google/apis/firestore_v1/classes.rb', line 1011

def database_uid
  @database_uid
end

#expire_timeString

Output only. The timestamp at which this backup expires. Corresponds to the JSON property expireTime

Returns:

  • (String)


1016
1017
1018
# File 'lib/google/apis/firestore_v1/classes.rb', line 1016

def expire_time
  @expire_time
end

#nameString

Output only. The unique resource name of the Backup. Format is projects/ project/locations/location/backups/backup`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1022
1023
1024
# File 'lib/google/apis/firestore_v1/classes.rb', line 1022

def name
  @name
end

#snapshot_timeString

Output only. The backup contains an externally consistent copy of the database at this time. Corresponds to the JSON property snapshotTime

Returns:

  • (String)


1028
1029
1030
# File 'lib/google/apis/firestore_v1/classes.rb', line 1028

def snapshot_time
  @snapshot_time
end

#stateString

Output only. The current state of the backup. Corresponds to the JSON property state

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/firestore_v1/classes.rb', line 1033

def state
  @state
end

#statsGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1Stats

Backup specific statistics. Corresponds to the JSON property stats



1038
1039
1040
# File 'lib/google/apis/firestore_v1/classes.rb', line 1038

def stats
  @stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1045
1046
1047
1048
1049
1050
1051
1052
1053
# File 'lib/google/apis/firestore_v1/classes.rb', line 1045

def update!(**args)
  @database = args[:database] if args.key?(:database)
  @database_uid = args[:database_uid] if args.key?(:database_uid)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
  @state = args[:state] if args.key?(:state)
  @stats = args[:stats] if args.key?(:stats)
end