GafaelfawrIngressPathService#

pydantic model gafaelfawr.models.kubernetes.GafaelfawrIngressPathService#

Service that serves a given path.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "GafaelfawrIngressPathService",
   "description": "Service that serves a given path.",
   "type": "object",
   "properties": {
      "name": {
         "title": "Name",
         "type": "string"
      },
      "port": {
         "anyOf": [
            {
               "$ref": "#/$defs/GafaelfawrServicePortName"
            },
            {
               "$ref": "#/$defs/GafaelfawrServicePortNumber"
            }
         ],
         "title": "Port"
      }
   },
   "$defs": {
      "GafaelfawrServicePortName": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            }
         },
         "required": [
            "name"
         ],
         "title": "GafaelfawrServicePortName",
         "type": "object"
      },
      "GafaelfawrServicePortNumber": {
         "additionalProperties": false,
         "description": "Port for a service.",
         "properties": {
            "number": {
               "title": "Number",
               "type": "integer"
            }
         },
         "required": [
            "number"
         ],
         "title": "GafaelfawrServicePortNumber",
         "type": "object"
      }
   },
   "required": [
      "name",
      "port"
   ]
}

Fields:
field name: str [Required]#

Name of the service to which to route the request.

field port: GafaelfawrServicePortName | GafaelfawrServicePortNumber [Required]#

Port to which to route the request.

model_dump(**kwargs)#

Export the model as a dictionary.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

dict[str, Any]

model_dump_json(**kwargs)#

Export the model as JSON.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

str

to_kubernetes()#

Convert to the Kubernetes API object.

Return type:

V1IngressServiceBackend