Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1MigrationProgressEvent

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

An event signifying the start of a new step in a migration from Cloud Datastore to Cloud Firestore in Datastore mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1MigrationProgressEvent

Returns a new instance of GoogleDatastoreAdminV1MigrationProgressEvent.



1144
1145
1146
# File 'lib/google/apis/datastore_v1/classes.rb', line 1144

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

Instance Attribute Details

#prepare_step_detailsGoogle::Apis::DatastoreV1::GoogleDatastoreAdminV1PrepareStepDetails

Details for the PREPARE step. Corresponds to the JSON property prepareStepDetails



1131
1132
1133
# File 'lib/google/apis/datastore_v1/classes.rb', line 1131

def prepare_step_details
  @prepare_step_details
end

#redirect_writes_step_detailsGoogle::Apis::DatastoreV1::GoogleDatastoreAdminV1RedirectWritesStepDetails

Details for the REDIRECT_WRITES step. Corresponds to the JSON property redirectWritesStepDetails



1136
1137
1138
# File 'lib/google/apis/datastore_v1/classes.rb', line 1136

def redirect_writes_step_details
  @redirect_writes_step_details
end

#stepString

The step that is starting. An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state. Corresponds to the JSON property step

Returns:

  • (String)


1142
1143
1144
# File 'lib/google/apis/datastore_v1/classes.rb', line 1142

def step
  @step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1149
1150
1151
1152
1153
# File 'lib/google/apis/datastore_v1/classes.rb', line 1149

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