GoogleApi.CloudRun.V1alpha1.Model.ContainerPort (google_api_cloud_run v0.42.0) View Source

ContainerPort represents a network port in a single container.

Attributes

  • containerPort (type: integer(), default: nil) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
  • hostIP (type: String.t, default: nil) - What host IP to bind the external port to. +optional
  • hostPort (type: integer(), default: nil) - 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
  • name (type: String.t, default: nil) - 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
  • protocol (type: String.t, default: nil) - Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudRun.V1alpha1.Model.ContainerPort{
  containerPort: integer(),
  hostIP: String.t(),
  hostPort: integer(),
  name: String.t(),
  protocol: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.