View Source GoogleApi.Run.V1.Model.ContainerPort (google_api_run v0.30.0)

ContainerPort represents a network port in a single container.

Attributes

  • containerPort (type: integer(), default: nil) - Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port
  • name (type: String.t, default: nil) - If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
  • protocol (type: String.t, default: nil) - Protocol for port. Must be "TCP". Defaults to "TCP".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Run.V1.Model.ContainerPort{
  containerPort: integer() | nil,
  name: String.t() | nil,
  protocol: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.