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

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
NameDescription
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
TypeDescription
string

setIp

The IPv4 or IPv6 address of the peer.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPort

The network port of the peer.

Returns
TypeDescription
int|string

setPort

The network port of the peer.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this