# Google Cloud Shell V1 Client - Class RemovePublicKeyRequest (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.4 Reference documentation and code samples for the Google Cloud Shell V1 Client class RemovePublicKeyRequest.

Request message for
[RemovePublicKey](https://docs.cloud.google.com/php/docs/reference/cloud-shell/latest/V1.Client.CloudShellServiceClient#_Google_Cloud_Shell_V1_Client_CloudShellServiceClient__removePublicKey__).

Generated from protobuf message `google.cloud.shell.v1.RemovePublicKeyRequest`

## Namespace

Google \\ Cloud \\ Shell \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ environment` | `string` Environment this key should be removed from, e.g. `users/me/environments/default`. |
| `↳ key` | `string` Key that should be removed from the environment. |

### getEnvironment

Environment this key should be removed from, e.g.

`users/me/environments/default`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEnvironment

Environment this key should be removed from, e.g.

`users/me/environments/default`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKey

Key that should be removed from the environment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKey

Key that should be removed from the environment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |