Class: Google::Apis::MigrationcenterV1alpha1::SoleTenancyPreferences
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::SoleTenancyPreferences
- 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
Preferences concerning Sole Tenancy nodes and VMs.
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.
-
#host_maintenance_policy ⇒ String
Sole Tenancy nodes maintenance policy.
-
#node_types ⇒ Array<Google::Apis::MigrationcenterV1alpha1::SoleTenantNodeType>
A list of sole tenant node types.
-
#os_pricing_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::OperatingSystemPricingPreferences
Pricing options for OS images.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoleTenancyPreferences
constructor
A new instance of SoleTenancyPreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoleTenancyPreferences
Returns a new instance of SoleTenancyPreferences.
8187 8188 8189 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8187 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
8164 8165 8166 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8164 def commitment_plan @commitment_plan end |
#cpu_overcommit_ratio ⇒ Float
CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
Corresponds to the JSON property cpuOvercommitRatio
8169 8170 8171 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8169 def cpu_overcommit_ratio @cpu_overcommit_ratio end |
#host_maintenance_policy ⇒ String
Sole Tenancy nodes maintenance policy.
Corresponds to the JSON property hostMaintenancePolicy
8174 8175 8176 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8174 def host_maintenance_policy @host_maintenance_policy end |
#node_types ⇒ Array<Google::Apis::MigrationcenterV1alpha1::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
8180 8181 8182 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8180 def node_types @node_types end |
#os_pricing_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::OperatingSystemPricingPreferences
Pricing options for OS images.
Corresponds to the JSON property osPricingPreferences
8185 8186 8187 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8185 def os_pricing_preferences @os_pricing_preferences end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8192 8193 8194 8195 8196 8197 8198 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8192 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) @os_pricing_preferences = args[:os_pricing_preferences] if args.key?(:os_pricing_preferences) end |