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.



9061
9062
9063
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9061

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)


9041
9042
9043
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9041

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)


9047
9048
9049
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9047

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)


9053
9054
9055
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9053

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)


9059
9060
9061
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9059

def storage_multiplier
  @storage_multiplier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9066
9067
9068
9069
9070
9071
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9066

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