# Google Cloud Network Management V1 Client - Class InstanceInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class InstanceInfo.

For display only. Metadata associated with a Compute Engine instance.

Generated from protobuf message `google.cloud.networkmanagement.v1.InstanceInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ display_name` | `string` Name of a Compute Engine instance. |
| `↳ uri` | `string` URI of a Compute Engine instance. |
| `↳ interface` | `string` Name of the network interface of a Compute Engine instance. |
| `↳ network_uri` | `string` URI of a Compute Engine network. |
| `↳ internal_ip` | `string` Internal IP address of the network interface. |
| `↳ external_ip` | `string` External IP address of the network interface. |
| `↳ network_tags` | `string[]` Network tags configured on the instance. |
| `↳ service_account` | `string` Service account authorized for the instance. |
| `↳ psc_network_attachment_uri` | `string` URI of the PSC network attachment the NIC is attached to (if relevant). |
| `↳ running` | `bool` Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead. |
| `↳ status` | `int` The status of the instance. |

### getDisplayName

Name of a Compute Engine instance.

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

### setDisplayName

Name of a Compute Engine instance.

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

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

### getUri

URI of a Compute Engine instance.

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

### setUri

URI of a Compute Engine instance.

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

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

### getInterface

Name of the network interface of a Compute Engine instance.

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

### setInterface

Name of the network interface of a Compute Engine instance.

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

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

### getNetworkUri

URI of a Compute Engine network.

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

### setNetworkUri

URI of a Compute Engine network.

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

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

### getInternalIp

Internal IP address of the network interface.

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

### setInternalIp

Internal IP address of the network interface.

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

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

### getExternalIp

External IP address of the network interface.

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

### setExternalIp

External IP address of the network interface.

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

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

### getNetworkTags

Network tags configured on the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNetworkTags

Network tags configured on the instance.

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

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

### getServiceAccount

Service account authorized for the instance.

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

### setServiceAccount

Service account authorized for the instance.

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

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

### getPscNetworkAttachmentUri

URI of the PSC network attachment the NIC is attached to (if relevant).

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

### setPscNetworkAttachmentUri

URI of the PSC network attachment the NIC is attached to (if relevant).

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

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

### getRunning

Indicates whether the Compute Engine instance is running.

Deprecated: use the `status` field instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRunning

Indicates whether the Compute Engine instance is running.

Deprecated: use the `status` field instead.

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

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

### getStatus

The status of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Status](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.InstanceInfo.Status). |

### setStatus

The status of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Status](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.InstanceInfo.Status). |

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