# Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::InstanceInfo (v2.11.0)

2.11.0 (latest) 2.10.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::InstanceInfo.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Name of a Compute Engine instance.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of a Compute Engine instance.
**Returns**

- (::String) --- Name of a Compute Engine instance.

### #external_ip

    def external_ip() -> ::String

**Returns**

- (::String) --- External IP address of the network interface.

### #external_ip=

    def external_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- External IP address of the network interface.
**Returns**

- (::String) --- External IP address of the network interface.

### #interface

    def interface() -> ::String

**Returns**

- (::String) --- Name of the network interface of a Compute Engine instance.

### #interface=

    def interface=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the network interface of a Compute Engine instance.
**Returns**

- (::String) --- Name of the network interface of a Compute Engine instance.

### #internal_ip

    def internal_ip() -> ::String

**Returns**

- (::String) --- Internal IP address of the network interface.

### #internal_ip=

    def internal_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Internal IP address of the network interface.
**Returns**

- (::String) --- Internal IP address of the network interface.

### #network_tags

    def network_tags() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Network tags configured on the instance.

### #network_tags=

    def network_tags=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Network tags configured on the instance.
**Returns**

- (::Array\<::String\>) --- Network tags configured on the instance.

### #network_uri

    def network_uri() -> ::String

**Returns**

- (::String) --- URI of a Compute Engine network.

### #network_uri=

    def network_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- URI of a Compute Engine network.
**Returns**

- (::String) --- URI of a Compute Engine network.

### #psc_network_attachment_uri

    def psc_network_attachment_uri() -> ::String

**Returns**

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

### #psc_network_attachment_uri=

    def psc_network_attachment_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- URI of the PSC network attachment the NIC is attached to (if relevant).
**Returns**

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

### #running

    def running() -> ::Boolean

**Returns**

- (::Boolean) --- Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.

### #running=

    def running=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.
**Returns**

- (::Boolean) --- Indicates whether the Compute Engine instance is running. Deprecated: use the `status` field instead.

### #service_account

    def service_account() -> ::String

**Returns**

- (::String) --- Service account authorized for the instance.

### #service_account=

    def service_account=(value) -> ::String

**Parameter**

- **value** (::String) --- Service account authorized for the instance.
**Returns**

- (::String) --- Service account authorized for the instance.

### #status

    def status() -> ::Google::Cloud::NetworkManagement::V1::InstanceInfo::Status

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::InstanceInfo::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-InstanceInfo-Status)) --- The status of the instance.

### #status=

    def status=(value) -> ::Google::Cloud::NetworkManagement::V1::InstanceInfo::Status

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::InstanceInfo::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-InstanceInfo-Status)) --- The status of the instance.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::InstanceInfo::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-InstanceInfo-Status)) --- The status of the instance.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- URI of a Compute Engine instance.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- URI of a Compute Engine instance.
**Returns**

- (::String) --- URI of a Compute Engine instance.