Compute V1 Client - Class InstancesSetNameRequest (1.10.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ current_name string

The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name.

↳ name string

The name to be applied to the instance. Needs to be RFC 1035 compliant.

getCurrentName

The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name.

Returns
TypeDescription
string

hasCurrentName

clearCurrentName

setCurrentName

The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

The name to be applied to the instance. Needs to be RFC 1035 compliant.

Returns
TypeDescription
string

hasName

clearName

setName

The name to be applied to the instance. Needs to be RFC 1035 compliant.

Parameter
NameDescription
var string
Returns
TypeDescription
$this