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.



3707
3708
3709
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3707

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)


3694
3695
3696
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3694

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)


3699
3700
3701
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3699

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)


3705
3706
3707
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3705

def estimated_memory_percentage
  @estimated_memory_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3712
3713
3714
3715
3716
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3712

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