Class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1MigrationStateEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1beta1/classes.rb,
lib/google/apis/datastore_v1beta1/representations.rb,
lib/google/apis/datastore_v1beta1/representations.rb

Overview

An event signifying a change in state of a migration from Cloud Datastore to Cloud Firestore in Datastore mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1MigrationStateEvent

Returns a new instance of GoogleDatastoreAdminV1MigrationStateEvent.



338
339
340
# File 'lib/google/apis/datastore_v1beta1/classes.rb', line 338

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

Instance Attribute Details

#stateString

The new state of the migration. Corresponds to the JSON property state

Returns:

  • (String)


336
337
338
# File 'lib/google/apis/datastore_v1beta1/classes.rb', line 336

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
# File 'lib/google/apis/datastore_v1beta1/classes.rb', line 343

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