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.



2351
2352
2353
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2351

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

Instance Attribute Details

#aws_source_vm_detailsGoogle::Apis::VmmigrationV1::AwsSourceVmDetails

Represent the source AWS VM details. Corresponds to the JSON property awsSourceVmDetails



2220
2221
2222
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2220

def aws_source_vm_details
  @aws_source_vm_details
end

#azure_source_vm_detailsGoogle::Apis::VmmigrationV1::AzureSourceVmDetails

Represent the source Azure VM details. Corresponds to the JSON property azureSourceVmDetails



2225
2226
2227
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2225

def azure_source_vm_details
  @azure_source_vm_details
end

#compute_engine_disks_target_defaultsGoogle::Apis::VmmigrationV1::ComputeEngineDisksTargetDefaults

ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project. Corresponds to the JSON property computeEngineDisksTargetDefaults



2231
2232
2233
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2231

def compute_engine_disks_target_defaults
  @compute_engine_disks_target_defaults
end

#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



2237
2238
2239
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2237

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)


2243
2244
2245
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2243

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



2249
2250
2251
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2249

def current_sync_info
  @current_sync_info
end

#cutover_forecastGoogle::Apis::VmmigrationV1::CutoverForecast

CutoverForecast holds information about future CutoverJobs of a MigratingVm. Corresponds to the JSON property cutoverForecast



2254
2255
2256
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2254

def cutover_forecast
  @cutover_forecast
end

#descriptionString

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

Returns:

  • (String)


2259
2260
2261
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2259

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


2264
2265
2266
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2264

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



2274
2275
2276
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2274

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)


2280
2281
2282
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2280

def group
  @group
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


2285
2286
2287
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2285

def labels
  @labels
end

#last_replication_cycleGoogle::Apis::VmmigrationV1::ReplicationCycle

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



2291
2292
2293
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2291

def last_replication_cycle
  @last_replication_cycle
end

#last_syncGoogle::Apis::VmmigrationV1::ReplicationSync

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



2296
2297
2298
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2296

def last_sync
  @last_sync
end

#nameString

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

Returns:

  • (String)


2301
2302
2303
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2301

def name
  @name
end

#policyGoogle::Apis::VmmigrationV1::SchedulePolicy

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



2306
2307
2308
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2306

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



2314
2315
2316
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2314

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



2322
2323
2324
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2322

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)


2329
2330
2331
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2329

def source_vm_id
  @source_vm_id
end

#stateString

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

Returns:

  • (String)


2334
2335
2336
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2334

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)


2339
2340
2341
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2339

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)


2344
2345
2346
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2344

def update_time
  @update_time
end

#vmware_source_vm_detailsGoogle::Apis::VmmigrationV1::VmwareSourceVmDetails

Represent the source Vmware VM details. Corresponds to the JSON property vmwareSourceVmDetails



2349
2350
2351
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2349

def vmware_source_vm_details
  @vmware_source_vm_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2356

def update!(**args)
  @aws_source_vm_details = args[:aws_source_vm_details] if args.key?(:aws_source_vm_details)
  @azure_source_vm_details = args[:azure_source_vm_details] if args.key?(:azure_source_vm_details)
  @compute_engine_disks_target_defaults = args[:compute_engine_disks_target_defaults] if args.key?(:compute_engine_disks_target_defaults)
  @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)
  @cutover_forecast = args[:cutover_forecast] if args.key?(:cutover_forecast)
  @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_replication_cycle = args[:last_replication_cycle] if args.key?(:last_replication_cycle)
  @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)
  @vmware_source_vm_details = args[:vmware_source_vm_details] if args.key?(:vmware_source_vm_details)
end