GcpCompute.NetworkInterface (GcpCompute v0.2.0)

Copy Markdown View Source

Parsed networkInterfaces entry — internal + external IPs flattened out.

Summary

Functions

Parse one decoded JSON network interface map.

Parse a list of decoded JSON networkInterfaces (nil-safe).

Types

t()

@type t() :: %GcpCompute.NetworkInterface{
  external_ip: String.t() | nil,
  name: String.t() | nil,
  network: String.t() | nil,
  network_ip: String.t() | nil,
  raw: map(),
  subnetwork: String.t() | nil
}

Functions

from_json(map)

@spec from_json(map()) :: t()

Parse one decoded JSON network interface map.

list(nics)

@spec list(list() | nil) :: [t()]

Parse a list of decoded JSON networkInterfaces (nil-safe).