Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Stats

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

Backup specific statistics.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1Stats

Returns a new instance of GoogleFirestoreAdminV1Stats.



2566
2567
2568
# File 'lib/google/apis/firestore_v1/classes.rb', line 2566

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

Instance Attribute Details

#document_countFixnum

Output only. The total number of documents contained in the backup. Corresponds to the JSON property documentCount

Returns:

  • (Fixnum)


2553
2554
2555
# File 'lib/google/apis/firestore_v1/classes.rb', line 2553

def document_count
  @document_count
end

#index_countFixnum

Output only. The total number of index entries contained in the backup. Corresponds to the JSON property indexCount

Returns:

  • (Fixnum)


2558
2559
2560
# File 'lib/google/apis/firestore_v1/classes.rb', line 2558

def index_count
  @index_count
end

#size_bytesFixnum

Output only. Summation of the size of all documents and index entries in the backup, measured in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


2564
2565
2566
# File 'lib/google/apis/firestore_v1/classes.rb', line 2564

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2571
2572
2573
2574
2575
# File 'lib/google/apis/firestore_v1/classes.rb', line 2571

def update!(**args)
  @document_count = args[:document_count] if args.key?(:document_count)
  @index_count = args[:index_count] if args.key?(:index_count)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
end