Google Cloud Network Management V1 Client - Class GkeNetworkPolicyInfo (2.9.1)

Reference documentation and code samples for the Google Cloud Network Management V1 Client class GkeNetworkPolicyInfo.

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

Generated from protobuf message google.cloud.networkmanagement.v1.GkeNetworkPolicyInfo

Namespace

Google \ Cloud \ NetworkManagement \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ display_name
string

The name of the Network Policy.

↳ uri
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>

↳ direction
string

Possible values: INGRESS, EGRESS

↳ action
string

Possible values: ALLOW, DENY

getDisplayName

The name of the Network Policy.

Returns
Type
Description
string

setDisplayName

The name of the Network Policy.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getUri

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
Type
Description
string

setUri

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>

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDirection

Possible values: INGRESS, EGRESS

Returns
Type
Description
string

setDirection

Possible values: INGRESS, EGRESS

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAction

Possible values: ALLOW, DENY

Returns
Type
Description
string

setAction

Possible values: ALLOW, DENY

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: