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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data | array Optional. Data for populating the Message object. |
↳ _instance_type | string Defines the type of technology used by the instance. Check the InstanceType enum for the list of possible values. |
↳ enable__compute | bool Defines whether the instance should have compute enabled. |
getInstanceType
Defines the type of technology used by the instance.
Check the InstanceType enum for the list of possible values.
Returns | |
---|---|
Type | Description |
string |
hasInstanceType
clearInstanceType
setInstanceType
Defines the type of technology used by the instance.
Check the InstanceType enum for the list of possible values.
Parameter | |
---|---|
Name | Description |
var | string |
Returns | |
---|---|
Type | Description |
$this |
getEnableCompute
Defines whether the instance should have compute enabled.
Returns | |
---|---|
Type | Description |
bool |
hasEnableCompute
clearEnableCompute
setEnableCompute
Defines whether the instance should have compute enabled.
Parameter | |
---|---|
Name | Description |
var | bool |
Returns | |
---|---|
Type | Description |
$this |