Class: Google::Apis::MigrationcenterV1::SoleTenancyPreferences

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

Preferences concerning Sole Tenancy nodes and VMs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SoleTenancyPreferences

Returns a new instance of SoleTenancyPreferences.



4696
4697
4698
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4696

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

Instance Attribute Details

#commitment_planString

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

Returns:

  • (String)


4678
4679
4680
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4678

def commitment_plan
  @commitment_plan
end

#cpu_overcommit_ratioFloat

CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive. Corresponds to the JSON property cpuOvercommitRatio

Returns:

  • (Float)


4683
4684
4685
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4683

def cpu_overcommit_ratio
  @cpu_overcommit_ratio
end

#host_maintenance_policyString

Sole Tenancy nodes maintenance policy. Corresponds to the JSON property hostMaintenancePolicy

Returns:

  • (String)


4688
4689
4690
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4688

def host_maintenance_policy
  @host_maintenance_policy
end

#node_typesArray<Google::Apis::MigrationcenterV1::SoleTenantNodeType>

A list of sole tenant node types. An empty list means that all possible node types will be considered. Corresponds to the JSON property nodeTypes



4694
4695
4696
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4694

def node_types
  @node_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4701
4702
4703
4704
4705
4706
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4701

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)
  @host_maintenance_policy = args[:host_maintenance_policy] if args.key?(:host_maintenance_policy)
  @node_types = args[:node_types] if args.key?(:node_types)
end