# Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::GkeNetworkPolicyInfo (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::GkeNetworkPolicyInfo.

For display only. Metadata associated with a GKE Network Policy.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action

    def action() -> ::String

**Returns**

- (::String) --- Possible values: ALLOW, DENY

### #action=

    def action=(value) -> ::String

**Parameter**

- **value** (::String) --- Possible values: ALLOW, DENY
**Returns**

- (::String) --- Possible values: ALLOW, DENY

### #direction

    def direction() -> ::String

**Returns**

- (::String) --- Possible values: INGRESS, EGRESS

### #direction=

    def direction=(value) -> ::String

**Parameter**

- **value** (::String) --- Possible values: INGRESS, EGRESS
**Returns**

- (::String) --- Possible values: INGRESS, EGRESS

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The name of the Network Policy.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the Network Policy.
**Returns**

- (::String) --- The name of the Network Policy.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- The URI of the Network Policy. Format for a Network Policy in a zonal cluster: `projects/<project_id>/zones/<zone>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>` Format for a Network Policy in a regional cluster: `projects/<project_id>/locations/<location>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>`

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- The URI of the Network Policy. Format for a Network Policy in a zonal cluster: `projects/<project_id>/zones/<zone>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>` Format for a Network Policy in a regional cluster: `projects/<project_id>/locations/<location>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>`
**Returns**

- (::String) --- The URI of the Network Policy. Format for a Network Policy in a zonal cluster: `projects/<project_id>/zones/<zone>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>` Format for a Network Policy in a regional cluster: `projects/<project_id>/locations/<location>/clusters/<cluster>/k8s/namespaces/<namespace>/networking.k8s.io/networkpolicies/<networkpolicy>`