Google Cloud Bare Metal Solution V2 Client - Class UpdateInstanceRequest (0.6.5)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class UpdateInstanceRequest.

Message requesting to updating a server.

Generated from protobuf message google.cloud.baremetalsolution.v2.UpdateInstanceRequest

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance Google\Cloud\BareMetalSolution\V2\Instance

Required. The server to update. The name field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance}

↳ update_mask Google\Protobuf\FieldMask

The list of fields to update. The currently supported fields are: labels hyperthreading_enabled os_image

getInstance

Required. The server to update.

The name field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance}

Returns
Type Description
Google\Cloud\BareMetalSolution\V2\Instance|null

hasInstance

clearInstance

setInstance

Required. The server to update.

The name field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance}

Parameter
Name Description
var Google\Cloud\BareMetalSolution\V2\Instance
Returns
Type Description
$this

getUpdateMask

The list of fields to update.

The currently supported fields are: labels hyperthreading_enabled os_image

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The list of fields to update.

The currently supported fields are: labels hyperthreading_enabled os_image

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
instance Google\Cloud\BareMetalSolution\V2\Instance

Required. The server to update.

The name field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance}

updateMask Google\Protobuf\FieldMask

The list of fields to update. The currently supported fields are: labels hyperthreading_enabled os_image

Returns
Type Description
Google\Cloud\BareMetalSolution\V2\UpdateInstanceRequest