Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesSizingOptimizationCustomParameters

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

Custom data to use for sizing optimizations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachinePreferencesSizingOptimizationCustomParameters

Returns a new instance of VirtualMachinePreferencesSizingOptimizationCustomParameters.



5326
5327
5328
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5326

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

Instance Attribute Details

#aggregation_methodString

Optional. Type of statistical aggregation of a resource utilization data, on which to base the sizing metrics. Corresponds to the JSON property aggregationMethod

Returns:

  • (String)


5306
5307
5308
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5306

def aggregation_method
  @aggregation_method
end

#cpu_usage_percentageFixnum

Optional. Desired percentage of CPU usage. Must be in the interval 1, 100. Corresponds to the JSON property cpuUsagePercentage

Returns:

  • (Fixnum)


5312
5313
5314
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5312

def cpu_usage_percentage
  @cpu_usage_percentage
end

#memory_usage_percentageFixnum

Optional. Desired percentage of memory usage. Must be in the interval 1, 100. Corresponds to the JSON property memoryUsagePercentage

Returns:

  • (Fixnum)


5318
5319
5320
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5318

def memory_usage_percentage
  @memory_usage_percentage
end

#storage_multiplierFloat

Optional. Desired increase factor of storage, relative to currently used storage. Must be in the interval 1.0, 2.0. Corresponds to the JSON property storageMultiplier

Returns:

  • (Float)


5324
5325
5326
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5324

def storage_multiplier
  @storage_multiplier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5331
5332
5333
5334
5335
5336
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5331

def update!(**args)
  @aggregation_method = args[:aggregation_method] if args.key?(:aggregation_method)
  @cpu_usage_percentage = args[:cpu_usage_percentage] if args.key?(:cpu_usage_percentage)
  @memory_usage_percentage = args[:memory_usage_percentage] if args.key?(:memory_usage_percentage)
  @storage_multiplier = args[:storage_multiplier] if args.key?(:storage_multiplier)
end