GafaelfawrIngressTLS#

pydantic model gafaelfawr.models.kubernetes.GafaelfawrIngressTLS#

A TLS certificate rule for an ingress.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "GafaelfawrIngressTLS",
   "description": "A TLS certificate rule for an ingress.",
   "type": "object",
   "properties": {
      "hosts": {
         "items": {
            "type": "string"
         },
         "title": "Hosts",
         "type": "array"
      },
      "secretName": {
         "title": "Secretname",
         "type": "string"
      }
   },
   "required": [
      "hosts",
      "secretName"
   ]
}

Fields:
field hosts: list[str] [Required]#

The hosts to which this certificate applies.

These should match the host parameters to the path rules.

field secretName: str [Required] (name 'secret_name')#

The name of the secret containing the TLS certificate.

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. :rtype: V1IngressTLS

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.