Google Cloud Policy Troubleshooter Iam V3 Client - Class Peer (0.2.5)

Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class Peer.

This message defines attributes for a node that handles a network request.

The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in principal and labels as appropriate.

Generated from protobuf message google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer

Namespace

Google \ Cloud \ PolicyTroubleshooter \ Iam \ V3 \ ConditionContext

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ip string

The IPv4 or IPv6 address of the peer.

↳ port int|string

The network port of the peer.

getIp

The IPv4 or IPv6 address of the peer.

Returns
Type Description
string

setIp

The IPv4 or IPv6 address of the peer.

Parameter
Name Description
var string
Returns
Type Description
$this

getPort

The network port of the peer.

Returns
Type Description
int|string

setPort

The network port of the peer.

Parameter
Name Description
var int|string
Returns
Type Description
$this