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.
Implements
Inherited Members
Namespace: Google.Apis.ServiceControl.v1.Data
Assembly: Google.Apis.ServiceControl.v1.dll
Syntax
public class Peer : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Ip
The IP address of the peer.
Declaration
[JsonProperty("ip")]
public virtual string Ip { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
The labels associated with the peer.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Port
The network port of the peer.
Declaration
[JsonProperty("port")]
public virtual long? Port { get; set; }
Property Value
Type | Description |
---|---|
long? |
Principal
The identity of this peer. Similar to Request.auth.principal
, but relative to the peer instead of the
request. For example, the identity associated with a load balancer that forwarded the request.
Declaration
[JsonProperty("principal")]
public virtual string Principal { get; set; }
Property Value
Type | Description |
---|---|
string |
RegionCode
The CLDR country/region code associated with the above IP address. If the IP address is private, the
region_code
should reflect the physical location where this peer is running.
Declaration
[JsonProperty("regionCode")]
public virtual string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |