Class: Google::Apis::VmmigrationV1::MigratingVm

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

MigratingVm describes the VM that will be migrated from a Source environment and its replication state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MigratingVm

Returns a new instance of MigratingVm.



1376
1377
1378
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1376

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

Instance Attribute Details

#compute_engine_target_defaultsGoogle::Apis::VmmigrationV1::ComputeEngineTargetDefaults

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



1278
1279
1280
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1278

def compute_engine_target_defaults
  @compute_engine_target_defaults
end

#create_timeString

Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source). Corresponds to the JSON property createTime

Returns:

  • (String)


1284
1285
1286
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1284

def create_time
  @create_time
end

#current_sync_infoGoogle::Apis::VmmigrationV1::ReplicationCycle

ReplicationCycle contains information about the current replication cycle status. Corresponds to the JSON property currentSyncInfo



1290
1291
1292
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1290

def current_sync_info
  @current_sync_info
end

#descriptionString

The description attached to the migrating VM by the user. Corresponds to the JSON property description

Returns:

  • (String)


1295
1296
1297
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1295

def description
  @description
end

#display_nameString

The display name attached to the MigratingVm by the user. Corresponds to the JSON property displayName

Returns:

  • (String)


1300
1301
1302
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1300

def display_name
  @display_name
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



1310
1311
1312
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1310

def error
  @error
end

#groupString

Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource. Corresponds to the JSON property group

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1316

def group
  @group
end

#labelsHash<String,String>

The labels of the migrating VM. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1321
1322
1323
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1321

def labels
  @labels
end

#last_syncGoogle::Apis::VmmigrationV1::ReplicationSync

ReplicationSync contain information about the last replica sync to the cloud. Corresponds to the JSON property lastSync



1326
1327
1328
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1326

def last_sync
  @last_sync
end

#nameString

Output only. The identifier of the MigratingVm. Corresponds to the JSON property name

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1331

def name
  @name
end

#policyGoogle::Apis::VmmigrationV1::SchedulePolicy

A policy for scheduling replications. Corresponds to the JSON property policy



1336
1337
1338
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1336

def policy
  @policy
end

#recent_clone_jobsArray<Google::Apis::VmmigrationV1::CloneJob>

Output only. The recent clone jobs performed on the migrating VM. This field holds the vm's last completed clone job and the vm's running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the "view" parameter of the Get/List request. Corresponds to the JSON property recentCloneJobs



1344
1345
1346
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1344

def recent_clone_jobs
  @recent_clone_jobs
end

#recent_cutover_jobsArray<Google::Apis::VmmigrationV1::CutoverJob>

Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm's last completed cutover job and the vm's running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the "view" parameter of the Get/List request. Corresponds to the JSON property recentCutoverJobs



1352
1353
1354
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1352

def recent_cutover_jobs
  @recent_cutover_jobs
end

#source_vm_idString

The unique ID of the VM in the source. The VM's name in vSphere can be changed, so this is not the VM's name but rather its moRef id. This id is of the form vm-. Corresponds to the JSON property sourceVmId

Returns:

  • (String)


1359
1360
1361
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1359

def source_vm_id
  @source_vm_id
end

#stateString

Output only. State of the MigratingVm. Corresponds to the JSON property state

Returns:

  • (String)


1364
1365
1366
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1364

def state
  @state
end

#state_timeString

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

Returns:

  • (String)


1369
1370
1371
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1369

def state_time
  @state_time
end

#update_timeString

Output only. The last time the migrating VM resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1374
1375
1376
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1374

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1381

def update!(**args)
  @compute_engine_target_defaults = args[:compute_engine_target_defaults] if args.key?(:compute_engine_target_defaults)
  @create_time = args[:create_time] if args.key?(:create_time)
  @current_sync_info = args[:current_sync_info] if args.key?(:current_sync_info)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @error = args[:error] if args.key?(:error)
  @group = args[:group] if args.key?(:group)
  @labels = args[:labels] if args.key?(:labels)
  @last_sync = args[:last_sync] if args.key?(:last_sync)
  @name = args[:name] if args.key?(:name)
  @policy = args[:policy] if args.key?(:policy)
  @recent_clone_jobs = args[:recent_clone_jobs] if args.key?(:recent_clone_jobs)
  @recent_cutover_jobs = args[:recent_cutover_jobs] if args.key?(:recent_cutover_jobs)
  @source_vm_id = args[:source_vm_id] if args.key?(:source_vm_id)
  @state = args[:state] if args.key?(:state)
  @state_time = args[:state_time] if args.key?(:state_time)
  @update_time = args[:update_time] if args.key?(:update_time)
end