# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest.

Message requesting rename of a server.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
**Returns**

- (::String) --- Required. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}

### #new_instance_id

    def new_instance_id() -> ::String

**Returns**

- (::String) --- Required. The new `id` of the instance.

### #new_instance_id=

    def new_instance_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The new `id` of the instance.
**Returns**

- (::String) --- Required. The new `id` of the instance.