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.
3582 3583 3584 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3582 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
3569 3570 3571 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3569 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
3574 3575 3576 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3574 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
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 |