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.



7432
7433
7434
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7432

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)


7412
7413
7414
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7412

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)


7418
7419
7420
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7418

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)


7424
7425
7426
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7424

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)


7430
7431
7432
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7430

def storage_multiplier
  @storage_multiplier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7437
7438
7439
7440
7441
7442
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7437

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