Class: Google::Apis::MigrationcenterV1alpha1::EstimatedUsage
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::EstimatedUsage
- 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
-
#estimated_cpu_percentage ⇒ Float
Optional.
-
#estimated_disk_percentage ⇒ Float
Optional.
-
#estimated_memory_percentage ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EstimatedUsage
constructor
A new instance of EstimatedUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_percentage ⇒ Float
Optional. Estimated CPU utilization percentage. Must be in the range [1, 100].
Corresponds to the JSON property estimatedCpuPercentage
3694 3695 3696 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3694 def estimated_cpu_percentage @estimated_cpu_percentage end |
#estimated_disk_percentage ⇒ Float
Optional. Estimated disk utilization percentage. Must be in the range [1, 100].
Corresponds to the JSON property estimatedDiskPercentage
3699 3700 3701 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3699 def estimated_disk_percentage @estimated_disk_percentage end |
#estimated_memory_percentage ⇒ Float
Optional. Estimated memory utilization percentage. Must be in the range [1,
100].
Corresponds to the JSON property estimatedMemoryPercentage
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 |