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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\BareMetalSolution\V2\Instance
Returns
TypeDescription
$this

getUpdateMask

The list of fields to update.

The currently supported fields are: labels hyperthreading_enabled os_image

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The list of fields to update.

The currently supported fields are: labels hyperthreading_enabled os_image

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\BareMetalSolution\V2\UpdateInstanceRequest