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.



4462
4463
4464
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4462

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



4450
4451
4452
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4450

def utilization
  @utilization
end

#vm_idString

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

Returns:

  • (String)


4455
4456
4457
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4455

def vm_id
  @vm_id
end

#vmware_vm_detailsGoogle::Apis::VmmigrationV1::VmwareVmDetails

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



4460
4461
4462
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4460

def vmware_vm_details
  @vmware_vm_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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