GafaelfawrServicePortNumber#
- pydantic model gafaelfawr.models.kubernetes.GafaelfawrServicePortNumber#
Port for a service.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "GafaelfawrServicePortNumber", "description": "Port for a service.", "type": "object", "properties": { "number": { "title": "Number", "type": "integer" } }, "additionalProperties": false, "required": [ "number" ] }
- Fields:
- field number: int [Required]#
Port number.
- model_dump(**kwargs)#
Export the model as a dictionary.
Overridden to change the default of
by_alias
fromFalse
toTrue
, so that by default the exported dictionary uses camel-case.
- model_dump_json(**kwargs)#
Export the model as JSON.
Overridden to change the default of
by_alias
fromFalse
toTrue
, so that by default the exported dictionary uses camel-case.
- to_kubernetes()#
Convert to the Kubernetes API object. :rtype:
V1ServiceBackendPort
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding
ComputedFieldInfo
objects.