Compute V1 Client - Class InstanceConfig (1.5.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

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.

Generated from protobuf field optional bool enable__compute = 102135228;

Returns
TypeDescription
bool

hasEnableCompute

clearEnableCompute

setEnableCompute

Defines whether the instance should have compute enabled.

Generated from protobuf field optional bool enable__compute = 102135228;

Parameter
NameDescription
varbool
Returns
TypeDescription
$this