ContainerPort class
ContainerPort represents a network port in a single container.
Constructors
-
ContainerPort({Input<
int> ? containerPort, Input<String> ? name, Input<String> ? protocol}) -
Creates a new ContainerPort.
containerPortPort 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#portnameIf specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".protocolProtocol for port. Must be "TCP". Defaults to "TCP".const -
ContainerPort.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
containerPort
→ Input<
int> ? -
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
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> ? -
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
final
-
protocol
→ Input<
String> ? -
Protocol for port. Must be "TCP". Defaults to "TCP".
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited