Compute V1 Client - Class InstanceConfig (1.19.0)

Reference documentation and code samples for the Compute V1 Client class InstanceConfig.

A set of Instance options.

Generated from protobuf message google.cloud.compute.v1.InstanceConfig

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ enable__computebool

Defines whether the instance should have compute enabled.

getEnableCompute

Defines whether the instance should have compute enabled.

Returns
TypeDescription
bool

hasEnableCompute

clearEnableCompute

setEnableCompute

Defines whether the instance should have compute enabled.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this