Class: Google::Apis::MigrationcenterV1alpha1::EstimatedUsage

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

Overview

Estimated usage data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EstimatedUsage

Returns a new instance of EstimatedUsage.



3582
3583
3584
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3582

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

Instance Attribute Details

#estimated_cpu_percentageFloat

Optional. Estimated CPU utilization percentage. Must be in the range [1, 100]. Corresponds to the JSON property estimatedCpuPercentage

Returns:

  • (Float)


3569
3570
3571
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3569

def estimated_cpu_percentage
  @estimated_cpu_percentage
end

#estimated_disk_percentageFloat

Optional. Estimated disk utilization percentage. Must be in the range [1, 100]. Corresponds to the JSON property estimatedDiskPercentage

Returns:

  • (Float)


3574
3575
3576
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3574

def estimated_disk_percentage
  @estimated_disk_percentage
end

#estimated_memory_percentageFloat

Optional. Estimated memory utilization percentage. Must be in the range [1, 100]. Corresponds to the JSON property estimatedMemoryPercentage

Returns:

  • (Float)


3580
3581
3582
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3580

def estimated_memory_percentage
  @estimated_memory_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3587
3588
3589
3590
3591
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3587

def update!(**args)
  @estimated_cpu_percentage = args[:estimated_cpu_percentage] if args.key?(:estimated_cpu_percentage)
  @estimated_disk_percentage = args[:estimated_disk_percentage] if args.key?(:estimated_disk_percentage)
  @estimated_memory_percentage = args[:estimated_memory_percentage] if args.key?(:estimated_memory_percentage)
end