View Source GoogleApi.ServiceControl.V1.Model.Peer (google_api_service_control v0.40.0)

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.

Attributes

  • ip (type: String.t, default: nil) - The IP address of the peer.
  • labels (type: map(), default: nil) - The labels associated with the peer.
  • port (type: String.t, default: nil) - The network port of the peer.
  • principal (type: String.t, default: nil) - 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.
  • regionCode (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ServiceControl.V1.Model.Peer{
  ip: String.t() | nil,
  labels: map() | nil,
  port: String.t() | nil,
  principal: String.t() | nil,
  regionCode: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.