google_api_cloud_run v0.1.0 GoogleApi.CloudRun.V1alpha1.Model.ContainerPort View Source

ContainerPort represents a network port in a single container.

Attributes

  • containerPort (integer()): Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. Defaults to nil.
  • hostIP (String.t): What host IP to bind the external port to. +optional Defaults to nil.
  • hostPort (integer()): Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. +optional Defaults to nil.
  • name (String.t): If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional Defaults to nil.
  • protocol (String.t): Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional Defaults to nil.

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.CloudRun.V1alpha1.Model.ContainerPort{
  containerPort: integer(),
  hostIP: String.t(),
  hostPort: integer(),
  name: String.t(),
  protocol: String.t()
}

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.