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

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

The user preferences relating to Compute Engine target platform.

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

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ machine_preferences Google\Cloud\MigrationCenter\V1\MachinePreferences

Preferences concerning the machine types to consider on Compute Engine.

↳ license_type int

License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.

getMachinePreferences

Preferences concerning the machine types to consider on Compute Engine.

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

hasMachinePreferences

clearMachinePreferences

setMachinePreferences

Preferences concerning the machine types to consider on Compute Engine.

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

getLicenseType

License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.

Returns
TypeDescription
int

setLicenseType

License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.

Parameter
NameDescription
var int
Returns
TypeDescription
$this