Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfigDelta

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

Information about a TTL configuration change.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1TtlConfigDelta

Returns a new instance of GoogleFirestoreAdminV1TtlConfigDelta.



3335
3336
3337
# File 'lib/google/apis/firestore_v1/classes.rb', line 3335

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

Instance Attribute Details

#change_typeString

Specifies how the TTL configuration is changing. Corresponds to the JSON property changeType

Returns:

  • (String)


3327
3328
3329
# File 'lib/google/apis/firestore_v1/classes.rb', line 3327

def change_type
  @change_type
end

#expiration_offsetString

The offset, relative to the timestamp value in the TTL-enabled field, used determine the document's expiration time. Corresponds to the JSON property expirationOffset

Returns:

  • (String)


3333
3334
3335
# File 'lib/google/apis/firestore_v1/classes.rb', line 3333

def expiration_offset
  @expiration_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3340
3341
3342
3343
# File 'lib/google/apis/firestore_v1/classes.rb', line 3340

def update!(**args)
  @change_type = args[:change_type] if args.key?(:change_type)
  @expiration_offset = args[:expiration_offset] if args.key?(:expiration_offset)
end