google_api_service_control v0.6.0 GoogleApi.ServiceControl.V1.Model.Peer View Source

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 the `service`, `principal`, and `labels` as appropriate.

Attributes

  • ip (String.t): The IP address of the peer. Defaults to: null.
  • labels (%{optional(String.t) => String.t}): The labels associated with the peer. Defaults to: null.
  • port (String.t): The network port of the peer. Defaults to: null.
  • principal (String.t): The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the idenity associated with a load balancer that forwared the request. Defaults to: null.
  • regionCode (String.t): 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. Defaults to: null.
  • service (String.t): The canonical service name of the peer. NOTE: different systems may have different service naming schemes. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.ServiceControl.V1.Model.Peer{
  ip: any(),
  labels: map(),
  port: any(),
  principal: any(),
  regionCode: any(),
  service: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.