Class: Google::Apis::MigrationcenterV1alpha1::VmwareEnginePreferences
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::VmwareEnginePreferences
- 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
The user preferences relating to Google Cloud VMware Engine target platform.
Instance Attribute Summary collapse
-
#commitment_plan ⇒ String
Commitment plan to consider when calculating costs for virtual machine insights and recommendations.
-
#cpu_overcommit_ratio ⇒ Float
CPU overcommit ratio.
-
#memory_overcommit_ratio ⇒ Float
Memory overcommit ratio.
-
#storage_deduplication_compression_ratio ⇒ Float
The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmwareEnginePreferences
constructor
A new instance of VmwareEnginePreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmwareEnginePreferences
Returns a new instance of VmwareEnginePreferences.
7529 7530 7531 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_plan ⇒ String
Commitment plan to consider when calculating costs for virtual machine
insights and recommendations. If you are unsure which value to set, a 3 year
commitment plan is often a good value to start with.
Corresponds to the JSON property commitmentPlan
7505 7506 7507 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7505 def commitment_plan @commitment_plan end |
#cpu_overcommit_ratio ⇒ Float
CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1
increment.
Corresponds to the JSON property cpuOvercommitRatio
7511 7512 7513 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7511 def cpu_overcommit_ratio @cpu_overcommit_ratio end |
#memory_overcommit_ratio ⇒ Float
Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
Corresponds to the JSON property memoryOvercommitRatio
7516 7517 7518 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7516 def memory_overcommit_ratio @memory_overcommit_ratio end |
#storage_deduplication_compression_ratio ⇒ Float
The Deduplication and Compression ratio is based on the logical (Used Before)
space required to store data before applying deduplication and compression, in
relation to the physical (Used After) space required after applying
deduplication and compression. Specifically, the ratio is the Used Before
space divided by the Used After space. For example, if the Used Before space
is 3 GB, but the physical Used After space is 1 GB, the deduplication and
compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
Corresponds to the JSON property storageDeduplicationCompressionRatio
7527 7528 7529 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7527 def storage_deduplication_compression_ratio @storage_deduplication_compression_ratio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7534 7535 7536 7537 7538 7539 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7534 def update!(**args) @commitment_plan = args[:commitment_plan] if args.key?(:commitment_plan) @cpu_overcommit_ratio = args[:cpu_overcommit_ratio] if args.key?(:cpu_overcommit_ratio) @memory_overcommit_ratio = args[:memory_overcommit_ratio] if args.key?(:memory_overcommit_ratio) @storage_deduplication_compression_ratio = args[:storage_deduplication_compression_ratio] if args.key?(:storage_deduplication_compression_ratio) end |