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.



7410
7411
7412
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7410

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)


7390
7391
7392
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7390

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)


7396
7397
7398
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7396

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)


7402
7403
7404
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7402

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)


7408
7409
7410
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7408

def storage_multiplier
  @storage_multiplier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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