Class: Google::Apis::VmmigrationV1::VmUtilizationInfo

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

Utilization information of a single VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmUtilizationInfo

Returns a new instance of VmUtilizationInfo.



4480
4481
4482
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4480

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

Instance Attribute Details

#utilizationGoogle::Apis::VmmigrationV1::VmUtilizationMetrics

Utilization metrics values for a single VM. Corresponds to the JSON property utilization



4468
4469
4470
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4468

def utilization
  @utilization
end

#vm_idString

The VM's ID in the source. Corresponds to the JSON property vmId

Returns:

  • (String)


4473
4474
4475
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4473

def vm_id
  @vm_id
end

#vmware_vm_detailsGoogle::Apis::VmmigrationV1::VmwareVmDetails

VmwareVmDetails describes a VM in vCenter. Corresponds to the JSON property vmwareVmDetails



4478
4479
4480
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4478

def vmware_vm_details
  @vmware_vm_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4485
4486
4487
4488
4489
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4485

def update!(**args)
  @utilization = args[:utilization] if args.key?(:utilization)
  @vm_id = args[:vm_id] if args.key?(:vm_id)
  @vmware_vm_details = args[:vmware_vm_details] if args.key?(:vmware_vm_details)
end