Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata

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

Overview

Metadata for Datastore to Firestore migration operations. The DatastoreFirestoreMigration operation is not started by the end-user via an explicit "creation" method. This is an intentional deviation from the LRO design pattern. This singleton resource can be accessed at: "projects/ project_id/operations/datastore-firestore-migration"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata

Returns a new instance of GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata.



783
784
785
# File 'lib/google/apis/datastore_v1/classes.rb', line 783

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

Instance Attribute Details

#migration_stateString

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode. Corresponds to the JSON property migrationState

Returns:

  • (String)


775
776
777
# File 'lib/google/apis/datastore_v1/classes.rb', line 775

def migration_state
  @migration_state
end

#migration_stepString

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode. Corresponds to the JSON property migrationStep

Returns:

  • (String)


781
782
783
# File 'lib/google/apis/datastore_v1/classes.rb', line 781

def migration_step
  @migration_step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



788
789
790
791
# File 'lib/google/apis/datastore_v1/classes.rb', line 788

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