Class: Google::Apis::VmmigrationV1::CloneJob

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

Overview

CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloneJob

Returns a new instance of CloneJob.



244
245
246
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 244

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

Instance Attribute Details

#compute_engine_target_detailsGoogle::Apis::VmmigrationV1::ComputeEngineTargetDetails

ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. Corresponds to the JSON property computeEngineTargetDetails



206
207
208
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 206

def compute_engine_target_details
  @compute_engine_target_details
end

#create_timeString

Output only. The time the clone job was created (as an API call, not when it was actually created in the target). Corresponds to the JSON property createTime

Returns:

  • (String)


212
213
214
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 212

def create_time
  @create_time
end

#end_timeString

Output only. The time the clone job was ended. Corresponds to the JSON property endTime

Returns:

  • (String)


217
218
219
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 217

def end_time
  @end_time
end

#errorGoogle::Apis::VmmigrationV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



227
228
229
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 227

def error
  @error
end

#nameString

Output only. The name of the clone. Corresponds to the JSON property name

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 232

def name
  @name
end

#stateString

Output only. State of the clone job. Corresponds to the JSON property state

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 237

def state
  @state
end

#state_timeString

Output only. The time the state was last updated. Corresponds to the JSON property stateTime

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 242

def state_time
  @state_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



249
250
251
252
253
254
255
256
257
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 249

def update!(**args)
  @compute_engine_target_details = args[:compute_engine_target_details] if args.key?(:compute_engine_target_details)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @state_time = args[:state_time] if args.key?(:state_time)
end