ServiceTypePatch#

pydantic model phalanx.models.kubernetes.ServiceTypePatch#

A model to validate a patch to assign an type to a Service.

Parameters:

data (Any)

Show JSON schema
{
   "title": "ServiceTypePatch",
   "description": "A model to validate a patch to assign an type  to a Service.",
   "type": "object",
   "properties": {
      "spec": {
         "$ref": "#/$defs/ServiceTypeSpecPatch"
      }
   },
   "$defs": {
      "ServiceType": {
         "description": "Valid values for the spec.type field of a Service.",
         "enum": [
            "ClusterIP",
            "LoadBalancer"
         ],
         "title": "ServiceType",
         "type": "string"
      },
      "ServiceTypeSpecPatch": {
         "description": "A patch to a Service spec containing an IP address.",
         "properties": {
            "type": {
               "$ref": "#/$defs/ServiceType"
            }
         },
         "required": [
            "type"
         ],
         "title": "ServiceTypeSpecPatch",
         "type": "object"
      }
   },
   "required": [
      "spec"
   ]
}

Fields:
field spec: ServiceTypeSpecPatch [Required]#

The spec containing the IP addess to patch.