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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
The name to be applied to the instance. Needs to be RFC 1035 compliant.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasName
clearName
setName
The name to be applied to the instance. Needs to be RFC 1035 compliant.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|