Google Cloud Migration Center V1 Client - Class VirtualMachinePreferences (0.1.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class VirtualMachinePreferences.

VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.

Generated from protobuf message google.cloud.migrationcenter.v1.VirtualMachinePreferences

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ region_preferences Google\Cloud\MigrationCenter\V1\RegionPreferences

Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.

↳ commitment_plan int

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.

↳ sizing_optimization_strategy int

Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.

↳ compute_engine_preferences Google\Cloud\MigrationCenter\V1\ComputeEnginePreferences

Compute Engine preferences concern insights and recommendations for Compute Engine target.

getRegionPreferences

Region preferences for assets using this preference set.

If you are unsure which value to set, the migration service API region is often a good value to start with.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\RegionPreferences|null

hasRegionPreferences

clearRegionPreferences

setRegionPreferences

Region preferences for assets using this preference set.

If you are unsure which value to set, the migration service API region is often a good value to start with.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\RegionPreferences
Returns
TypeDescription
$this

getCommitmentPlan

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.

Returns
TypeDescription
int

setCommitmentPlan

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSizingOptimizationStrategy

Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.

If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.

Returns
TypeDescription
int

setSizingOptimizationStrategy

Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.

If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getComputeEnginePreferences

Compute Engine preferences concern insights and recommendations for Compute Engine target.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\ComputeEnginePreferences|null

hasComputeEnginePreferences

clearComputeEnginePreferences

setComputeEnginePreferences

Compute Engine preferences concern insights and recommendations for Compute Engine target.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\ComputeEnginePreferences
Returns
TypeDescription
$this