{
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "Desired model configuration.",
      "properties": {
        "azure": {
          "additionalProperties": false,
          "description": "Provider-specific settings for Azure AI.",
          "properties": {
            "apiVersion": {
              "description": "The version of the Azure OpenAI API to use.\nIf unset, defaults to `v1`.",
              "maxLength": 64,
              "minLength": 1,
              "type": [
                "string",
                "null"
              ]
            },
            "projectName": {
              "description": "The Foundry project name, required when `resourceType` is `Foundry`.\nUsed to construct paths: /api/projects/{projectName}/openai/v1/...",
              "maxLength": 256,
              "minLength": 1,
              "type": [
                "string",
                "null"
              ]
            },
            "resourceName": {
              "description": "The Azure resource name used to construct the endpoint host.\nFor OpenAI: {resourceName}.openai.azure.com\nFor Foundry: {resourceName}.services.ai.azure.com\nNote: when the Azure portal \"Foundry legacy\" template was used, the\ngenerated resource name may end in \"-resource\" (e.g. \"myproject-resource\");\nthat suffix is part of the resource name as the user configured it, not\npart of the hostname suffix agentgateway should append.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "resourceType": {
              "description": "The type of Azure endpoint. Determines the host suffix.",
              "enum": [
                "Foundry",
                "OpenAI"
              ],
              "type": "string"
            }
          },
          "required": [
            "resourceName",
            "resourceType"
          ],
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "projectName is required when resourceType is Foundry",
              "rule": "self.resourceType != 'Foundry' || has(self.projectName)"
            }
          ]
        },
        "baseURL": {
          "description": "BaseURL overrides the provider address and base path prefix. It must use the\nhttp or https scheme. Backend policies may override the default TLS\nconfiguration. Query parameters, fragments, and user info are not supported.",
          "format": "uri",
          "maxLength": 1024,
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "bedrock": {
          "additionalProperties": false,
          "description": "Provider-specific settings for Amazon Bedrock.",
          "properties": {
            "guardrail": {
              "additionalProperties": false,
              "description": "Guardrail policy to use for the backend. See\n\u003chttps://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html\u003e.\nIf not specified, the AWS Guardrail policy will not be used.",
              "properties": {
                "identifier": {
                  "description": "Identifier of the Guardrail policy to use for the backend.",
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "version": {
                  "description": "Version of the Guardrail policy to use for the backend.",
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "identifier",
                "version"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "region": {
              "default": "us-east-1",
              "description": "AWS region to use for the backend.\nDefaults to `us-east-1` if not specified.",
              "maxLength": 63,
              "minLength": 1,
              "pattern": "^[a-z0-9-]+$",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "custom": {
          "additionalProperties": false,
          "description": "Provider-specific settings for a custom provider.",
          "properties": {
            "backendRef": {
              "additionalProperties": false,
              "description": "Kubernetes backend that serves this provider.\n`backendRef` may target only a namespace-local Service or InferencePool.\nIf unset, host and port must be set on the parent provider.",
              "properties": {
                "group": {
                  "default": "",
                  "description": "API group of the referenced resource. For example, `gateway.networking.k8s.io`.\nWhen unspecified or empty string, core API group is inferred.",
                  "maxLength": 253,
                  "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "default": "Service",
                  "description": "Kind of the referenced resource. For example, `Service`.\nDefaults to \"Service\" when not specified.",
                  "maxLength": 63,
                  "minLength": 1,
                  "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "description": "Name of the referenced resource.",
                  "maxLength": 253,
                  "minLength": 1,
                  "type": "string"
                },
                "port": {
                  "description": "Destination port number to use for this resource.\nRequired when the referenced resource is a Kubernetes Service.",
                  "format": "int32",
                  "maximum": 65535,
                  "minimum": 1,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "name"
              ],
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "Must have port for Service reference",
                  "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                }
              ]
            },
            "formats": {
              "description": "Provider-native API formats this provider supports.",
              "items": {
                "additionalProperties": false,
                "description": "Provider-native LLM API format settings.",
                "properties": {
                  "path": {
                    "description": "Default upstream path override for this format.\nIf unset, agentgateway uses the default path for the format.",
                    "maxLength": 1024,
                    "minLength": 1,
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "type": {
                    "description": "Provider-native API format.",
                    "enum": [
                      "AnthropicTokenCount",
                      "Completions",
                      "Embeddings",
                      "Messages",
                      "Realtime",
                      "Rerank",
                      "Responses"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object",
                "x-kubernetes-validations": [
                  {
                    "message": "path must start with /",
                    "rule": "!has(self.path) || self.path.startsWith('/')"
                  }
                ]
              },
              "maxItems": 6,
              "minItems": 1,
              "type": "array",
              "x-kubernetes-list-map-keys": [
                "type"
              ],
              "x-kubernetes-list-type": "map"
            }
          },
          "required": [
            "formats"
          ],
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "custom provider backendRef may target only Service or InferencePool",
              "rule": "!has(self.backendRef) || (((!has(self.backendRef.group) || self.backendRef.group == \"\") \u0026\u0026 (!has(self.backendRef.kind) || self.backendRef.kind == 'Service')) || (has(self.backendRef.group) \u0026\u0026 self.backendRef.group == 'inference.networking.k8s.io' \u0026\u0026 has(self.backendRef.kind) \u0026\u0026 self.backendRef.kind == 'InferencePool'))"
            }
          ]
        },
        "match": {
          "additionalProperties": false,
          "description": "Conditions for selecting this model from client requests.",
          "properties": {
            "model": {
              "description": "Model name matched against client requests. It may be exact, a suffix\nwildcard such as `gpt-*`, a prefix wildcard such as `*-latest`, or `*`.\nWhen omitted, the model matches metadata.name exactly.",
              "maxLength": 1024,
              "minLength": 1,
              "type": [
                "string",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "model wildcards must be '*', a suffix like 'gpt-*', or a prefix like '*-latest'",
                  "rule": "!self.contains('*') || (self.indexOf('*') == self.lastIndexOf('*') \u0026\u0026 (self.indexOf('*') == 0 || self.indexOf('*') == size(self) - 1))"
                }
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "parentRefs": {
          "description": "Gateways and listeners to which this model attaches.",
          "items": {
            "additionalProperties": false,
            "description": "ParentReference identifies an API object (usually a Gateway) that can be considered\na parent of this resource (usually a route). There are two kinds of parent resources\nwith \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nThis API may be extended in the future to support additional kinds of parent\nresources.\n\nThe API object must be valid in the cluster; the Group and Kind must\nbe registered in the cluster for this reference to be valid.",
            "properties": {
              "group": {
                "default": "gateway.networking.k8s.io",
                "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core",
                "maxLength": 253,
                "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "default": "Gateway",
                "description": "Kind is kind of the referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.",
                "maxLength": 63,
                "minLength": 1,
                "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "description": "Name is the name of the referent.\n\nSupport: Core",
                "maxLength": 253,
                "minLength": 1,
                "type": "string"
              },
              "namespace": {
                "description": "Namespace of the referent. Defaults to the Route's local namespace. Cross-namespace references must be explicitly allowed, for example via ReferenceGrant. Support: Core",
                "maxLength": 63,
                "minLength": 1,
                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "port": {
                "description": "Port this Route targets on the parent, interpreted per parent kind (for example a Gateway listener port or Service port). Support: Extended",
                "format": "int32",
                "maximum": 65535,
                "minimum": 1,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sectionName": {
                "description": "Name of a section within the target resource, for example a Gateway Listener name or Service port name. Empty references the entire resource. Support: Core",
                "maxLength": 253,
                "minLength": 1,
                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "maxItems": 16,
          "minItems": 1,
          "type": "array"
        },
        "policies": {
          "additionalProperties": false,
          "description": "Policies applied to this concrete model.",
          "properties": {
            "auth": {
              "additionalProperties": false,
              "description": "Credentials used to authenticate requests to this model provider.",
              "properties": {
                "aws": {
                  "additionalProperties": false,
                  "description": "Explicit AWS authentication method for the model provider. When omitted,\ndefault AWS SDK credential discovery is used.",
                  "properties": {
                    "assumeRole": {
                      "additionalProperties": false,
                      "description": "AWS STS AssumeRole settings to use before signing backend requests.\nAmbient AWS credentials are used as the source credentials for STS.",
                      "properties": {
                        "roleArn": {
                          "description": "AWS IAM role ARN to assume.",
                          "minLength": 1,
                          "pattern": "^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$",
                          "type": "string"
                        },
                        "sessionName": {
                          "description": "SessionName is a custom session name (RoleSessionName) for CloudTrail and\nCost \u0026 Usage Report attribution. If unset, AWS generates a random name.",
                          "pattern": "^[\\w+=,.@-]{2,64}$",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sessionNameExpression": {
                          "description": "SessionNameExpression is a CEL expression evaluated against each request\nto produce the session name (RoleSessionName), for example `jwt.sub` or\n`request.headers[\"x-team\"]`. If the expression does not produce a valid\nsession name at request time, the request is rejected.",
                          "maxLength": 16384,
                          "minLength": 1,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tags": {
                          "description": "Session tags passed to STS AssumeRole for cost attribution in the AWS Cost\n\u0026 Usage Report, once activated. STS allows at most 50 per role session.",
                          "items": {
                            "additionalProperties": false,
                            "description": "AwsSessionTag is an AWS STS session tag passed to AssumeRole for cost\nattribution. Exactly one of value and expression must be set.",
                            "properties": {
                              "expression": {
                                "description": "CEL expression evaluated against each request to produce the tag value,\nfor example `jwt.sub` or `request.headers[\"x-app\"]`. Requests with invalid\ntag values are rejected.",
                                "maxLength": 16384,
                                "minLength": 1,
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "key": {
                                "description": "Key is the tag key.",
                                "maxLength": 128,
                                "minLength": 1,
                                "type": "string"
                              },
                              "value": {
                                "description": "Value is a static tag value.",
                                "maxLength": 256,
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "key"
                            ],
                            "type": "object",
                            "x-kubernetes-validations": [
                              {
                                "message": "exactly one of value or expression must be set",
                                "rule": "has(self.value) != has(self.expression)"
                              }
                            ]
                          },
                          "maxItems": 50,
                          "type": [
                            "array",
                            "null"
                          ],
                          "x-kubernetes-list-map-keys": [
                            "key"
                          ],
                          "x-kubernetes-list-type": "map"
                        }
                      },
                      "required": [
                        "roleArn"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-validations": [
                        {
                          "message": "at most one of the fields in [sessionName sessionNameExpression] may be set",
                          "rule": "[has(self.sessionName),has(self.sessionNameExpression)].filter(x,x==true).size() \u003c= 1"
                        }
                      ]
                    },
                    "region": {
                      "description": "AWS SigV4 signing region, for example `us-east-1`. Set this when the\ntarget AWS service is in a different region than the gateway. If unset,\ntyped AWS backends may provide this automatically; otherwise the ambient\nAWS region is used.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretRef": {
                      "additionalProperties": false,
                      "description": "Credential source for AWS credentials, defaulting to a Kubernetes `Secret`.\nThe default Secret resolver expects `accessKey`, `secretKey`, and optional\n`sessionToken` keys.",
                      "properties": {
                        "group": {
                          "description": "API group of the referenced credential; empty selects the core API group",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "kind": {
                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "description": "Name of the referenced credential",
                          "maxLength": 253,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-map-type": "atomic",
                      "x-kubernetes-validations": [
                        {
                          "message": "custom credential refs must set both group and kind",
                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                        }
                      ]
                    },
                    "serviceName": {
                      "description": "AWS SigV4 signing service name, for example\n`bedrock`, `bedrock-agentcore`, or `execute-api`). If unset, typed AWS\nbackends may provide this automatically.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "secretRef and assumeRole are mutually exclusive",
                      "rule": "!(has(self.secretRef) \u0026\u0026 has(self.assumeRole))"
                    }
                  ]
                },
                "azure": {
                  "additionalProperties": false,
                  "description": "Azure authentication method for the model provider.",
                  "properties": {
                    "managedIdentity": {
                      "additionalProperties": false,
                      "description": "Managed identity authentication settings.",
                      "properties": {
                        "clientId": {
                          "type": "string"
                        },
                        "objectId": {
                          "type": "string"
                        },
                        "resourceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "clientId",
                        "objectId",
                        "resourceId"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "secretRef": {
                      "additionalProperties": false,
                      "description": "Credential source for Azure credentials, defaulting to a Kubernetes\n`Secret`. The default Secret resolver expects `clientID`, `tenantID`, and\n`clientSecret` keys.",
                      "properties": {
                        "group": {
                          "description": "API group of the referenced credential; empty selects the core API group",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "kind": {
                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "description": "Name of the referenced credential",
                          "maxLength": 253,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-map-type": "atomic",
                      "x-kubernetes-validations": [
                        {
                          "message": "custom credential refs must set both group and kind",
                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                        }
                      ]
                    },
                    "workloadIdentity": {
                      "description": "Workload identity authentication settings. Uses the federated token and\nAzure env vars projected into the data plane pod. Recommended on AKS with\nWorkload Identity enabled.",
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "at most one of the fields in [secretRef managedIdentity workloadIdentity] may be set",
                      "rule": "[has(self.secretRef),has(self.managedIdentity),has(self.workloadIdentity)].filter(x,x==true).size() \u003c= 1"
                    }
                  ]
                },
                "credentials": {
                  "description": "Credentials is a list of additional credentials to inject on the backend\nrequest. Each entry resolves a Secret key and writes its value to the\nentry's location. `credentials` is independent of the primary\n`key`/`secretRef`/`passthrough` mechanism and may be set on its own or\nalongside it.",
                  "items": {
                    "additionalProperties": false,
                    "description": "BackendAuthCredential specifies one additional credential to inject on the\nbackend request.",
                    "properties": {
                      "location": {
                        "additionalProperties": false,
                        "description": "Where the credential is inserted on the backend request.",
                        "properties": {
                          "cookie": {
                            "additionalProperties": false,
                            "properties": {
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "header": {
                            "additionalProperties": false,
                            "properties": {
                              "name": {
                                "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                "maxLength": 256,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                "type": "string"
                              },
                              "prefix": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "queryParameter": {
                            "additionalProperties": false,
                            "properties": {
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "type": "object",
                        "x-kubernetes-validations": [
                          {
                            "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                            "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                          }
                        ]
                      },
                      "secretRef": {
                        "additionalProperties": false,
                        "description": "SecretRef references a Kubernetes Secret holding the credential value, and\noptionally overrides the key read from it. Defaults to `Authorization`,\nmatching the key convention used by the top-level `secretRef`.",
                        "properties": {
                          "group": {
                            "description": "API group of the referenced credential; empty selects the core API group",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "key": {
                            "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                            "maxLength": 253,
                            "minLength": 1,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "kind": {
                            "description": "Kind of the referenced credential; empty defaults to `Secret`",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "description": "Name of the referenced credential",
                            "maxLength": 253,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "type": "object",
                        "x-kubernetes-map-type": "atomic",
                        "x-kubernetes-validations": [
                          {
                            "message": "custom credential refs must set both group and kind",
                            "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                          }
                        ]
                      }
                    },
                    "required": [
                      "location",
                      "secretRef"
                    ],
                    "type": "object"
                  },
                  "maxItems": 8,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-type": "atomic"
                },
                "gcp": {
                  "additionalProperties": false,
                  "description": "Google authentication method for the model provider. When omitted,\ndefault Google credential discovery is used.",
                  "properties": {
                    "audience": {
                      "description": "Explicit `aud` value for the ID token. Only\nvalid with `IdToken` type. If not set, the `aud` is automatically\nderived from the backend hostname.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretRef": {
                      "additionalProperties": false,
                      "description": "Credential source for ADC-compatible Google credential JSON, defaulting to\na Kubernetes `Secret`. By default, the value is read from\n`credentials.json`; set `secretRef.key` to override it. When omitted,\nambient credentials are used.",
                      "properties": {
                        "group": {
                          "description": "API group of the referenced credential; empty selects the core API group",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "key": {
                          "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                          "maxLength": 253,
                          "minLength": 1,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "kind": {
                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "description": "Name of the referenced credential",
                          "maxLength": 253,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-map-type": "atomic",
                      "x-kubernetes-validations": [
                        {
                          "message": "custom credential refs must set both group and kind",
                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                        }
                      ]
                    },
                    "type": {
                      "description": "The type of token to generate. To authenticate to GCP services,\ngenerally an `AccessToken` is used. To authenticate to Cloud Run, an\n`IdToken` is used.",
                      "enum": [
                        "AccessToken",
                        "IdToken"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "audience is only valid with IdToken",
                      "rule": "has(self.audience) ? self.type == 'IdToken' : true"
                    }
                  ]
                },
                "key": {
                  "description": "Inline key to use as the value of the `Authorization` header. This option\nis the least secure; usage of a `Secret` is preferred.",
                  "maxLength": 2048,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location": {
                  "additionalProperties": false,
                  "description": "Where backend credentials are inserted. If omitted, credentials are\nwritten to the `Authorization` header with the `Bearer ` prefix. This\napplies to `key`, `secretRef`, and `passthrough`. Entries in\n`credentials` carry their own location.",
                  "properties": {
                    "cookie": {
                      "additionalProperties": false,
                      "properties": {
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "header": {
                      "additionalProperties": false,
                      "properties": {
                        "name": {
                          "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                          "maxLength": 256,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                          "type": "string"
                        },
                        "prefix": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "queryParameter": {
                      "additionalProperties": false,
                      "properties": {
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                      "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                    }
                  ]
                },
                "oauthTokenExchange": {
                  "additionalProperties": false,
                  "description": "OAuth 2.0 token exchange (RFC 8693) / jwt-bearer (RFC 7523)\nauthentication.",
                  "properties": {
                    "actorToken": {
                      "additionalProperties": false,
                      "description": "RFC 8693 delegation actor token. TokenExchange grant only.",
                      "properties": {
                        "mayAct": {
                          "description": "may_act claim validation mode. When omitted, may_act is not enforced.",
                          "enum": [
                            "Required"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "additionalProperties": false,
                          "description": "Where to read the actor token. Actor tokens have no default source.",
                          "properties": {
                            "cookie": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            },
                            "expression": {
                              "description": "CEL expression that extracts the credential from the request.",
                              "maxLength": 16384,
                              "minLength": 1,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "header": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                  "type": "string"
                                },
                                "prefix": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            },
                            "queryParameter": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            }
                          },
                          "type": "object",
                          "x-kubernetes-validations": [
                            {
                              "message": "exactly one of the fields in [header queryParameter cookie expression] must be set",
                              "rule": "[has(self.header),has(self.queryParameter),has(self.cookie),has(self.expression)].filter(x,x==true).size() == 1"
                            }
                          ]
                        },
                        "tokenType": {
                          "description": "OAuth token type. Empty defaults to AccessToken. Custom absolute URI values\nare supported for actor tokens.",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "source"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-validations": [
                        {
                          "message": "mayAct Required requires tokenType Jwt",
                          "rule": "!has(self.mayAct) || self.mayAct != 'Required' || (has(self.tokenType) \u0026\u0026 self.tokenType == 'Jwt')"
                        }
                      ]
                    },
                    "additionalParams": {
                      "additionalProperties": {
                        "description": "A Common Expression Language (CEL) expression.",
                        "maxLength": 16384,
                        "minLength": 1,
                        "type": "string"
                      },
                      "description": "Extra form params; values are CEL expressions over the incoming request.",
                      "maxProperties": 64,
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "audiences": {
                      "description": "Audiences sent to the token endpoint.",
                      "items": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "backendRef": {
                      "additionalProperties": false,
                      "description": "RFC 8693 token endpoint backend.",
                      "properties": {
                        "group": {
                          "default": "",
                          "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                          "maxLength": 253,
                          "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "kind": {
                          "default": "Service",
                          "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                          "maxLength": 63,
                          "minLength": 1,
                          "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "description": "Name is the name of the referent.",
                          "maxLength": 253,
                          "minLength": 1,
                          "type": "string"
                        },
                        "namespace": {
                          "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                          "maxLength": 63,
                          "minLength": 1,
                          "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "port": {
                          "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                          "format": "int32",
                          "maximum": 65535,
                          "minimum": 1,
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": "object",
                      "x-kubernetes-validations": [
                        {
                          "message": "Must have port for Service reference",
                          "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                        }
                      ]
                    },
                    "cache": {
                      "additionalProperties": false,
                      "description": "Response cache configuration.",
                      "properties": {
                        "inMemory": {
                          "additionalProperties": false,
                          "properties": {
                            "defaultTtl": {
                              "description": "TTL used when the token endpoint omits expires_in. Default 300s.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "maxEntries": {
                              "description": "Default 8192; 0 disables the cache.",
                              "format": "int32",
                              "type": [
                                "integer",
                                "null"
                              ]
                            }
                          },
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "clientAuth": {
                      "additionalProperties": false,
                      "description": "Client authentication for the token endpoint. When unset, none is sent.",
                      "properties": {
                        "clientId": {
                          "description": "Client ID sent to the token endpoint.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "method": {
                          "description": "Client authentication method. Defaults to ClientSecretBasic.",
                          "enum": [
                            "ClientSecretBasic",
                            "ClientSecretPost",
                            "PrivateKeyJwt"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "privateKeyJwt": {
                          "additionalProperties": false,
                          "description": "Client assertion settings. Required when method is PrivateKeyJwt.",
                          "properties": {
                            "alg": {
                              "description": "JWS signing algorithm. Defaults to RS256.",
                              "enum": [
                                "ES256",
                                "ES384",
                                "PS256",
                                "RS256",
                                "RS384",
                                "RS512"
                              ],
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "assertionAudience": {
                              "description": "Audience for the client assertion, typically the token endpoint URL.",
                              "minLength": 1,
                              "type": "string"
                            },
                            "certificateHeader": {
                              "description": "JWS certificate header. Required when certificateRef is set.",
                              "enum": [
                                "x5c",
                                "x5t#S256"
                              ],
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificateRef": {
                              "additionalProperties": false,
                              "description": "PEM-encoded X.509 certificate chain, leaf first, for certificateHeader. The\nleaf public key should match signingKeyRef; a mismatch only logs a warning\nbut the token endpoint will reject the assertions. Required when\ncertificateHeader is set. The key defaults to `certificate`.",
                              "properties": {
                                "group": {
                                  "description": "API group of the referenced credential; empty selects the core API group",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "key": {
                                  "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                  "maxLength": 253,
                                  "minLength": 1,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "kind": {
                                  "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Name of the referenced credential",
                                  "maxLength": 253,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ],
                              "x-kubernetes-map-type": "atomic",
                              "x-kubernetes-validations": [
                                {
                                  "message": "custom credential refs must set both group and kind",
                                  "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                }
                              ]
                            },
                            "kid": {
                              "description": "Optional JWS key ID header.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "signingKeyRef": {
                              "additionalProperties": false,
                              "description": "PEM-encoded RSA or EC private key; key defaults to `signingKey`.",
                              "properties": {
                                "group": {
                                  "description": "API group of the referenced credential; empty selects the core API group",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "key": {
                                  "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                  "maxLength": 253,
                                  "minLength": 1,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "kind": {
                                  "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Name of the referenced credential",
                                  "maxLength": 253,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": "object",
                              "x-kubernetes-map-type": "atomic",
                              "x-kubernetes-validations": [
                                {
                                  "message": "custom credential refs must set both group and kind",
                                  "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                }
                              ]
                            }
                          },
                          "required": [
                            "assertionAudience",
                            "signingKeyRef"
                          ],
                          "type": [
                            "object",
                            "null"
                          ],
                          "x-kubernetes-validations": [
                            {
                              "message": "certificateRef and certificateHeader must be set together",
                              "rule": "has(self.certificateRef) == has(self.certificateHeader)"
                            }
                          ]
                        },
                        "secretRef": {
                          "additionalProperties": false,
                          "description": "Secret providing the `clientSecret` key by default; override via\n`secretRef.key`. When omitted, client_id is sent without a secret, which\nis only valid with ClientSecretPost.",
                          "properties": {
                            "group": {
                              "description": "API group of the referenced credential; empty selects the core API group",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "key": {
                              "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                              "maxLength": 253,
                              "minLength": 1,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "kind": {
                              "description": "Kind of the referenced credential; empty defaults to `Secret`",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Name of the referenced credential",
                              "maxLength": 253,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ],
                          "x-kubernetes-map-type": "atomic",
                          "x-kubernetes-validations": [
                            {
                              "message": "custom credential refs must set both group and kind",
                              "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                            }
                          ]
                        }
                      },
                      "required": [
                        "clientId"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-validations": [
                        {
                          "message": "privateKeyJwt settings require method PrivateKeyJwt",
                          "rule": "has(self.privateKeyJwt) == (has(self.method) \u0026\u0026 self.method == 'PrivateKeyJwt')"
                        },
                        {
                          "message": "secretRef is not valid with method PrivateKeyJwt",
                          "rule": "!has(self.secretRef) || !has(self.method) || self.method != 'PrivateKeyJwt'"
                        },
                        {
                          "message": "clientAuth without secretRef requires method ClientSecretPost or PrivateKeyJwt",
                          "rule": "has(self.secretRef) || has(self.privateKeyJwt) || (has(self.method) \u0026\u0026 self.method == 'ClientSecretPost')"
                        }
                      ]
                    },
                    "grantType": {
                      "description": "RFC followed by the request. Defaults to TokenExchange (RFC 8693).",
                      "enum": [
                        "JwtBearer",
                        "TokenExchange"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "location": {
                      "additionalProperties": false,
                      "description": "Where the exchanged token is written to the backend request.\nDefaults to Authorization: Bearer.",
                      "properties": {
                        "cookie": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "maxLength": 256,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "header": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                              "maxLength": 256,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                              "type": "string"
                            },
                            "prefix": {
                              "maxLength": 256,
                              "minLength": 1,
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "queryParameter": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "maxLength": 256,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-validations": [
                        {
                          "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                          "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                        }
                      ]
                    },
                    "path": {
                      "description": "Token endpoint path; defaults to \"/\". Must start with \"/\".",
                      "pattern": "^/",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestedTokenType": {
                      "description": "RFC 8693 requested_token_type. Unlike subject/actor token types, only the\nbuilt-in values may be requested; custom URIs are not supported here.",
                      "enum": [
                        "AccessToken",
                        "Jwt",
                        "IdToken",
                        "IdJag"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "resources": {
                      "description": "Resources sent to the token endpoint.",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "scopes": {
                      "description": "Scopes sent to the token endpoint.",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "subjectToken": {
                      "additionalProperties": false,
                      "description": "Subject token / assertion source and type. Defaults to Authorization Bearer, AccessToken.\nThe token type may be a built-in value or a custom absolute URI for providers\nthat support custom token exchange profiles.",
                      "properties": {
                        "source": {
                          "additionalProperties": false,
                          "description": "Where to read the token. CEL `expression` variant is permitted.",
                          "properties": {
                            "cookie": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            },
                            "expression": {
                              "description": "CEL expression that extracts the credential from the request.",
                              "maxLength": 16384,
                              "minLength": 1,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "header": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                  "type": "string"
                                },
                                "prefix": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            },
                            "queryParameter": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": [
                                "object",
                                "null"
                              ]
                            }
                          },
                          "type": [
                            "object",
                            "null"
                          ],
                          "x-kubernetes-validations": [
                            {
                              "message": "exactly one of the fields in [header queryParameter cookie expression] must be set",
                              "rule": "[has(self.header),has(self.queryParameter),has(self.cookie),has(self.expression)].filter(x,x==true).size() == 1"
                            }
                          ]
                        },
                        "tokenType": {
                          "description": "OAuth token type. Empty defaults to AccessToken. Custom absolute URI values\nare supported for subject tokens.",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "backendRef"
                  ],
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-validations": [
                    {
                      "message": "actorToken is only valid with TokenExchange grantType",
                      "rule": "!(has(self.actorToken) \u0026\u0026 has(self.grantType) \u0026\u0026 self.grantType == 'JwtBearer')"
                    },
                    {
                      "message": "requestedTokenType is only valid with TokenExchange grantType",
                      "rule": "!(has(self.requestedTokenType) \u0026\u0026 has(self.grantType) \u0026\u0026 self.grantType == 'JwtBearer')"
                    },
                    {
                      "message": "requestedTokenType IdJag is only supported by crossAppAccess",
                      "rule": "!has(self.requestedTokenType) || self.requestedTokenType != 'IdJag'"
                    }
                  ]
                },
                "passthrough": {
                  "description": "Reuses a client token already validated by another policy. Those policies\nmay strip client credentials; passthrough adds the original token back to\nthe backend request. Without client auth policies, this has no effect.",
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "secretRef": {
                  "additionalProperties": false,
                  "description": "Credential source for the authorization value, defaulting to a Kubernetes\n`Secret`. By default, the value is read from the `Authorization` key; set\n`secretRef.key` to override it. A `Bearer ` prefix is stripped only from\nthe default `Authorization` key.",
                  "properties": {
                    "group": {
                      "description": "API group of the referenced credential; empty selects the core API group",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "key": {
                      "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                      "maxLength": 253,
                      "minLength": 1,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "description": "Kind of the referenced credential; empty defaults to `Secret`",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name of the referenced credential",
                      "maxLength": 253,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": [
                    "object",
                    "null"
                  ],
                  "x-kubernetes-map-type": "atomic",
                  "x-kubernetes-validations": [
                    {
                      "message": "custom credential refs must set both group and kind",
                      "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                    }
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "must specify credentials, or at most one of key/secretRef/passthrough/aws/azure/gcp/oauthTokenExchange (credentials may be combined with a primary auth kind)",
                  "rule": "has(self.credentials) || has(self.key) || has(self.secretRef) || has(self.passthrough) || has(self.aws) || has(self.azure) || has(self.gcp) || has(self.oauthTokenExchange)"
                },
                {
                  "message": "location may only be set for key, secretRef, or passthrough auth",
                  "rule": "has(self.location) ? has(self.key) || has(self.secretRef) || has(self.passthrough) : true"
                },
                {
                  "message": "at most one of the fields in [key secretRef passthrough aws azure gcp oauthTokenExchange] may be set",
                  "rule": "[has(self.key),has(self.secretRef),has(self.passthrough),has(self.aws),has(self.azure),has(self.gcp),has(self.oauthTokenExchange)].filter(x,x==true).size() \u003c= 1"
                }
              ]
            },
            "authorization": {
              "additionalProperties": false,
              "description": "Authorization rules that clients must satisfy to use this model.",
              "properties": {
                "action": {
                  "default": "Allow",
                  "description": "The effect of this rule when it matches.\nIf unspecified, defaults to `Allow`.\n`Require` rules are cumulative: all require rules must match.",
                  "enum": [
                    "Allow",
                    "Deny",
                    "Require"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "policy": {
                  "additionalProperties": false,
                  "description": "The authorization rule to evaluate.\n\n* `Allow`: any matching allow rule allows the request.\n* `Require`: every require rule must match for the request to be allowed.\n* `Deny`: any matching deny rule denies the request.\n\n`Deny` is not recommended because expression failures fail to deny; prefer\n`Allow` or `Require`. If used, design expressions defensively against evaluation errors.\n\nIf at least one `Allow` rule is configured, requests are denied unless at\nleast one allow rule matches.",
                  "properties": {
                    "matchExpressions": {
                      "description": "CEL expressions that must all evaluate to true for the rule to match.",
                      "items": {
                        "description": "A Common Expression Language (CEL) expression.",
                        "maxLength": 16384,
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 256,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "matchExpressions"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "policy"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "headers": {
              "additionalProperties": false,
              "description": "Request and response header changes applied to provider traffic.",
              "properties": {
                "request": {
                  "additionalProperties": false,
                  "description": "Header changes to apply before forwarding a request.",
                  "properties": {
                    "add": {
                      "description": "Add adds the given header(s) (name, value) to the request\nbefore the action. It appends to any existing values associated\nwith the header name.\n\nInput:\n  GET /foo HTTP/1.1\n  my-header: foo\n\nConfig:\n  add:\n  - name: \"my-header\"\n    value: \"bar,baz\"\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header: foo,bar,baz",
                      "items": {
                        "additionalProperties": false,
                        "description": "HTTPHeader represents an HTTP Header name and value as defined by RFC 7230.",
                        "properties": {
                          "name": {
                            "description": "Name of the HTTP header, case-insensitive",
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                            "type": "string"
                          },
                          "value": {
                            "description": "Value for the HTTP header",
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-map-keys": [
                        "name"
                      ],
                      "x-kubernetes-list-type": "map"
                    },
                    "remove": {
                      "description": "Remove the given header(s) from the HTTP request before the action. The\nvalue of Remove is a list of HTTP header names. Note that the header\nnames are case-insensitive (see\nhttps://datatracker.ietf.org/doc/html/rfc2616#section-4.2).\n\nInput:\n  GET /foo HTTP/1.1\n  my-header1: foo\n  my-header2: bar\n  my-header3: baz\n\nConfig:\n  remove: [\"my-header1\", \"my-header3\"]\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header2: bar",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "set"
                    },
                    "set": {
                      "description": "Set overwrites the request with the given header (name, value)\nbefore the action.\n\nInput:\n  GET /foo HTTP/1.1\n  my-header: foo\n\nConfig:\n  set:\n  - name: \"my-header\"\n    value: \"bar\"\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header: bar",
                      "items": {
                        "additionalProperties": false,
                        "description": "HTTPHeader represents an HTTP Header name and value as defined by RFC 7230.",
                        "properties": {
                          "name": {
                            "description": "Name of the HTTP header, case-insensitive",
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                            "type": "string"
                          },
                          "value": {
                            "description": "Value for the HTTP header",
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-map-keys": [
                        "name"
                      ],
                      "x-kubernetes-list-type": "map"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "response": {
                  "additionalProperties": false,
                  "description": "Header changes to apply before returning a response.",
                  "properties": {
                    "add": {
                      "description": "Add adds the given header(s) (name, value) to the request\nbefore the action. It appends to any existing values associated\nwith the header name.\n\nInput:\n  GET /foo HTTP/1.1\n  my-header: foo\n\nConfig:\n  add:\n  - name: \"my-header\"\n    value: \"bar,baz\"\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header: foo,bar,baz",
                      "items": {
                        "additionalProperties": false,
                        "description": "HTTPHeader represents an HTTP Header name and value as defined by RFC 7230.",
                        "properties": {
                          "name": {
                            "description": "Name of the HTTP header, case-insensitive",
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                            "type": "string"
                          },
                          "value": {
                            "description": "Value for the HTTP header",
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-map-keys": [
                        "name"
                      ],
                      "x-kubernetes-list-type": "map"
                    },
                    "remove": {
                      "description": "Remove the given header(s) from the HTTP request before the action. The\nvalue of Remove is a list of HTTP header names. Note that the header\nnames are case-insensitive (see\nhttps://datatracker.ietf.org/doc/html/rfc2616#section-4.2).\n\nInput:\n  GET /foo HTTP/1.1\n  my-header1: foo\n  my-header2: bar\n  my-header3: baz\n\nConfig:\n  remove: [\"my-header1\", \"my-header3\"]\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header2: bar",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "set"
                    },
                    "set": {
                      "description": "Set overwrites the request with the given header (name, value)\nbefore the action.\n\nInput:\n  GET /foo HTTP/1.1\n  my-header: foo\n\nConfig:\n  set:\n  - name: \"my-header\"\n    value: \"bar\"\n\nOutput:\n  GET /foo HTTP/1.1\n  my-header: bar",
                      "items": {
                        "additionalProperties": false,
                        "description": "HTTPHeader represents an HTTP Header name and value as defined by RFC 7230.",
                        "properties": {
                          "name": {
                            "description": "Name of the HTTP header, case-insensitive",
                            "maxLength": 256,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                            "type": "string"
                          },
                          "value": {
                            "description": "Value for the HTTP header",
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-map-keys": [
                        "name"
                      ],
                      "x-kubernetes-list-type": "map"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "at least one of the fields in [request response] must be set",
                  "rule": "[has(self.request),has(self.response)].filter(x,x==true).size() \u003e= 1"
                }
              ]
            },
            "health": {
              "additionalProperties": false,
              "description": "Health checking and eviction behavior for this model provider.",
              "properties": {
                "eviction": {
                  "additionalProperties": false,
                  "description": "Settings for evicting unhealthy backends.",
                  "properties": {
                    "consecutiveFailures": {
                      "description": "Number of consecutive unhealthy responses required before the backend is evicted.\nFor example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted.\nWhen both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met.\nWhen neither is set, a single unhealthy response can trigger eviction.",
                      "format": "int32",
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "duration": {
                      "default": "3s",
                      "description": "Base time a backend should be evicted after being marked unhealthy.\nSubsequent evictions use multiplicative backoff (duration * times_evicted).\nIf all endpoints are evicted, the load balancer falls back to returning evicted endpoints\nrather than failing entirely.\nIf unset, defaults to `3s`.",
                      "maxLength": 32,
                      "type": [
                        "string",
                        "null"
                      ],
                      "x-kubernetes-validations": [
                        {
                          "message": "invalid duration value",
                          "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                        },
                        {
                          "message": "evictionDuration must be at least 1 second",
                          "rule": "duration(self) \u003e= duration('1s')"
                        }
                      ]
                    },
                    "healthThreshold": {
                      "description": "EWMA health score threshold, from 0 to 100. When set, a backend is evicted\nonly if its computed health drops below this value after an unhealthy\nresponse (e.g. 50 evicts when EWMA health falls below 50%). Unlike\nconsecutiveFailures, this sliding-window average lets a single success delay\neviction. If both are set, either condition evicts; if neither, a single\nunhealthy response evicts.",
                      "format": "int32",
                      "maximum": 100,
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "restoreHealth": {
                      "description": "Health score from 0 to 100 assigned to a backend when it returns from eviction.\nFor gradual recovery, set below 100; for full recovery immediately, set 100.\nIf unset, the backend resumes with the health it had when evicted.",
                      "format": "int32",
                      "maximum": 100,
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "unhealthyCondition": {
                  "description": "CEL expression that determines whether a response indicates an unhealthy backend.\nWhen the expression evaluates to true, the backend is considered unhealthy and may be evicted.\n\nFor example, to evict on 5xx responses: `response.code \u003e= 500`.\n\nWhen unset, any 5xx response, or a connection failure, is treated as unhealthy.\nThis default lowers the backend's health score but does not trigger eviction on its own.",
                  "maxLength": 16384,
                  "minLength": 1,
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "promptGuard": {
              "additionalProperties": false,
              "description": "Guardrails for requests and responses sent to this model provider.",
              "properties": {
                "request": {
                  "description": "Prompt guards to apply to requests sent by the client.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Prompt guards to apply to requests sent by the client.",
                    "properties": {
                      "bedrockGuardrails": {
                        "additionalProperties": false,
                        "description": "AWS Bedrock Guardrails settings for prompt\nguarding.",
                        "properties": {
                          "identifier": {
                            "description": "Identifier of the Guardrail policy to use for the backend.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "policies": {
                            "additionalProperties": false,
                            "description": "Policies for communicating with AWS Bedrock Guardrails.",
                            "properties": {
                              "auth": {
                                "additionalProperties": false,
                                "description": "Settings for authenticating to AWS Bedrock Guardrails.",
                                "properties": {
                                  "aws": {
                                    "additionalProperties": false,
                                    "description": "AWS authentication method for Bedrock Guardrails. Use `aws: {}` for\ndefault AWS SDK credential discovery.",
                                    "properties": {
                                      "assumeRole": {
                                        "additionalProperties": false,
                                        "description": "AWS STS AssumeRole settings to use before signing backend requests.\nAmbient AWS credentials are used as the source credentials for STS.",
                                        "properties": {
                                          "roleArn": {
                                            "description": "AWS IAM role ARN to assume.",
                                            "minLength": 1,
                                            "pattern": "^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$",
                                            "type": "string"
                                          },
                                          "sessionName": {
                                            "description": "SessionName is a custom session name (RoleSessionName) for CloudTrail and\nCost \u0026 Usage Report attribution. If unset, AWS generates a random name.",
                                            "pattern": "^[\\w+=,.@-]{2,64}$",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "sessionNameExpression": {
                                            "description": "SessionNameExpression is a CEL expression evaluated against each request\nto produce the session name (RoleSessionName), for example `jwt.sub` or\n`request.headers[\"x-team\"]`. If the expression does not produce a valid\nsession name at request time, the request is rejected.",
                                            "maxLength": 16384,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "tags": {
                                            "description": "Session tags passed to STS AssumeRole for cost attribution in the AWS Cost\n\u0026 Usage Report, once activated. STS allows at most 50 per role session.",
                                            "items": {
                                              "additionalProperties": false,
                                              "description": "AwsSessionTag is an AWS STS session tag passed to AssumeRole for cost\nattribution. Exactly one of value and expression must be set.",
                                              "properties": {
                                                "expression": {
                                                  "description": "CEL expression evaluated against each request to produce the tag value,\nfor example `jwt.sub` or `request.headers[\"x-app\"]`. Requests with invalid\ntag values are rejected.",
                                                  "maxLength": 16384,
                                                  "minLength": 1,
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "key": {
                                                  "description": "Key is the tag key.",
                                                  "maxLength": 128,
                                                  "minLength": 1,
                                                  "type": "string"
                                                },
                                                "value": {
                                                  "description": "Value is a static tag value.",
                                                  "maxLength": 256,
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "key"
                                              ],
                                              "type": "object",
                                              "x-kubernetes-validations": [
                                                {
                                                  "message": "exactly one of value or expression must be set",
                                                  "rule": "has(self.value) != has(self.expression)"
                                                }
                                              ]
                                            },
                                            "maxItems": 50,
                                            "type": [
                                              "array",
                                              "null"
                                            ],
                                            "x-kubernetes-list-map-keys": [
                                              "key"
                                            ],
                                            "x-kubernetes-list-type": "map"
                                          }
                                        },
                                        "required": [
                                          "roleArn"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "at most one of the fields in [sessionName sessionNameExpression] may be set",
                                            "rule": "[has(self.sessionName),has(self.sessionNameExpression)].filter(x,x==true).size() \u003c= 1"
                                          }
                                        ]
                                      },
                                      "region": {
                                        "description": "AWS SigV4 signing region, for example `us-east-1`. Set this when the\ntarget AWS service is in a different region than the gateway. If unset,\ntyped AWS backends may provide this automatically; otherwise the ambient\nAWS region is used.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "secretRef": {
                                        "additionalProperties": false,
                                        "description": "Credential source for AWS credentials, defaulting to a Kubernetes `Secret`.\nThe default Secret resolver expects `accessKey`, `secretKey`, and optional\n`sessionToken` keys.",
                                        "properties": {
                                          "group": {
                                            "description": "API group of the referenced credential; empty selects the core API group",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "kind": {
                                            "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Name of the referenced credential",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-map-type": "atomic",
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "custom credential refs must set both group and kind",
                                            "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                          }
                                        ]
                                      },
                                      "serviceName": {
                                        "description": "AWS SigV4 signing service name, for example\n`bedrock`, `bedrock-agentcore`, or `execute-api`). If unset, typed AWS\nbackends may provide this automatically.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "secretRef and assumeRole are mutually exclusive",
                                        "rule": "!(has(self.secretRef) \u0026\u0026 has(self.assumeRole))"
                                      }
                                    ]
                                  },
                                  "key": {
                                    "description": "Inline API key to use as the value of the `Authorization` header.\nThis option is the least secure; usage of a `Secret` is preferred.",
                                    "maxLength": 2048,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "location": {
                                    "additionalProperties": false,
                                    "description": "Where API keys are inserted. Defaults to the `Authorization` header with\nthe `Bearer ` prefix. Applies to `key` and `secretRef`.",
                                    "properties": {
                                      "cookie": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "header": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                            "type": "string"
                                          },
                                          "prefix": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "queryParameter": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                                        "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                                      }
                                    ]
                                  },
                                  "secretRef": {
                                    "additionalProperties": false,
                                    "description": "Credential source for the API key, defaulting to a Kubernetes `Secret`.\nBy default, the value is read from the `Authorization` key; set\n`secretRef.key` to override it. A `Bearer ` prefix is stripped only from\nthe default `Authorization` key.",
                                    "properties": {
                                      "group": {
                                        "description": "API group of the referenced credential; empty selects the core API group",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "key": {
                                        "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name of the referenced credential",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-map-type": "atomic",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "custom credential refs must set both group and kind",
                                        "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                      }
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "location may only be set for key or secretRef auth",
                                    "rule": "has(self.location) ? has(self.key) || has(self.secretRef) : true"
                                  },
                                  {
                                    "message": "exactly one of the fields in [key secretRef aws] must be set",
                                    "rule": "[has(self.key),has(self.secretRef),has(self.aws)].filter(x,x==true).size() == 1"
                                  }
                                ]
                              },
                              "http": {
                                "additionalProperties": false,
                                "description": "Settings for managing HTTP requests to the backend",
                                "properties": {
                                  "requestTimeout": {
                                    "description": "Deadline for receiving a response from the backend.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "requestTimeout must be at least 1ms",
                                        "rule": "duration(self) \u003e= duration('1ms')"
                                      }
                                    ]
                                  },
                                  "version": {
                                    "description": "HTTP protocol version for backend connections. If unset, it is inferred:\n`Service` appProtocol, `HTTP2` for gRPC, the original protocol for\nplaintext HTTP, or `HTTP1` for HTTPS because clients often upgrade HTTPS\nto HTTP/2 even when the backend does not support it.",
                                    "enum": [
                                      "HTTP1",
                                      "HTTP2"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tcp": {
                                "additionalProperties": false,
                                "description": "Settings for managing TCP connections to the backend",
                                "properties": {
                                  "connectTimeout": {
                                    "description": "Deadline for establishing a connection to\nthe destination.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "connectTimeout must be at least 100ms",
                                        "rule": "duration(self) \u003e= duration('100ms')"
                                      }
                                    ]
                                  },
                                  "keepalive": {
                                    "additionalProperties": false,
                                    "description": "Settings for enabling TCP keepalives on the\nconnection.",
                                    "properties": {
                                      "interval": {
                                        "description": "Time between keepalive probes.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "interval must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      },
                                      "retries": {
                                        "description": "Maximum number of keepalive probes to send before dropping the connection.\nIf unset, this defaults to 9.",
                                        "format": "int32",
                                        "maximum": 64,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "time": {
                                        "description": "Time a connection needs to be idle before keepalive probes start being sent.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "time must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tls": {
                                "additionalProperties": false,
                                "description": "Settings for managing TLS connections to the backend\n\nWhen set, TLS is originated to the backend using the system trusted CA\ncertificates, and SNI is inferred from the destination.",
                                "properties": {
                                  "alpnProtocols": {
                                    "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                                    "items": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "caCertificateRefs": {
                                    "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                                      "properties": {
                                        "name": {
                                          "default": "",
                                          "description": "Name of the referent",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic"
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "insecureSkipVerify": {
                                    "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                                    "enum": [
                                      "All",
                                      "Hostname"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "keyExchangeGroups": {
                                    "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                                    "items": {
                                      "enum": [
                                        "P-256",
                                        "P-384",
                                        "X25519",
                                        "X25519_MLKEM768"
                                      ],
                                      "type": "string"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "mtlsCertificateRef": {
                                    "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                                      "properties": {
                                        "group": {
                                          "description": "API group of the referenced credential; empty selects the core API group",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "kind": {
                                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Name of the referenced credential",
                                          "maxLength": 253,
                                          "minLength": 1,
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic",
                                      "x-kubernetes-validations": [
                                        {
                                          "message": "custom credential refs must set both group and kind",
                                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                        }
                                      ]
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "sni": {
                                    "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                                    "maxLength": 253,
                                    "minLength": 1,
                                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "verifySubjectAltNames": {
                                    "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                                    "items": {
                                      "maxLength": 256,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                                    "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                                  },
                                  {
                                    "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                                    "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                                  },
                                  {
                                    "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                                    "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                                  }
                                ]
                              },
                              "tunnel": {
                                "additionalProperties": false,
                                "description": "Settings for managing tunnel connections to the backend, like `HTTPS_PROXY`",
                                "properties": {
                                  "backendRef": {
                                    "additionalProperties": false,
                                    "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                                    "properties": {
                                      "group": {
                                        "default": "",
                                        "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                        "maxLength": 253,
                                        "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "default": "Service",
                                        "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name is the name of the referent.",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "namespace": {
                                        "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "port": {
                                        "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                        "format": "int32",
                                        "maximum": 65535,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": "object",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "Must have port for Service reference",
                                        "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "backendRef"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-validations": [
                              {
                                "message": "at least one of the fields in [auth http tcp tls tunnel] must be set",
                                "rule": "[has(self.auth),has(self.http),has(self.tcp),has(self.tls),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
                              }
                            ]
                          },
                          "region": {
                            "description": "AWS region where the guardrail is deployed, for example\n`us-west-2`).",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "version": {
                            "description": "Version of the Guardrail policy to use for the backend.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "identifier",
                          "region",
                          "version"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "googleModelArmor": {
                        "additionalProperties": false,
                        "description": "Google Model Armor settings for prompt guarding.",
                        "properties": {
                          "location": {
                            "default": "us-central1",
                            "description": "Google Cloud location, for example `us-central1`.\nDefaults to `us-central1` if not specified.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "policies": {
                            "additionalProperties": false,
                            "description": "Policies for communicating with Google Model Armor.",
                            "properties": {
                              "auth": {
                                "additionalProperties": false,
                                "description": "Settings for authenticating to Google Model Armor.",
                                "properties": {
                                  "gcp": {
                                    "additionalProperties": false,
                                    "description": "Google authentication method for Model Armor. Use `gcp: {}` for default\nGoogle credential discovery.",
                                    "properties": {
                                      "audience": {
                                        "description": "Explicit `aud` value for the ID token. Only\nvalid with `IdToken` type. If not set, the `aud` is automatically\nderived from the backend hostname.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "secretRef": {
                                        "additionalProperties": false,
                                        "description": "Credential source for ADC-compatible Google credential JSON, defaulting to\na Kubernetes `Secret`. By default, the value is read from\n`credentials.json`; set `secretRef.key` to override it. When omitted,\nambient credentials are used.",
                                        "properties": {
                                          "group": {
                                            "description": "API group of the referenced credential; empty selects the core API group",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "key": {
                                            "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "kind": {
                                            "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Name of the referenced credential",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-map-type": "atomic",
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "custom credential refs must set both group and kind",
                                            "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                          }
                                        ]
                                      },
                                      "type": {
                                        "description": "The type of token to generate. To authenticate to GCP services,\ngenerally an `AccessToken` is used. To authenticate to Cloud Run, an\n`IdToken` is used.",
                                        "enum": [
                                          "AccessToken",
                                          "IdToken"
                                        ],
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "audience is only valid with IdToken",
                                        "rule": "has(self.audience) ? self.type == 'IdToken' : true"
                                      }
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "exactly one of the fields in [gcp] must be set",
                                    "rule": "[has(self.gcp)].filter(x,x==true).size() == 1"
                                  }
                                ]
                              },
                              "http": {
                                "additionalProperties": false,
                                "description": "Settings for managing HTTP requests to the backend",
                                "properties": {
                                  "requestTimeout": {
                                    "description": "Deadline for receiving a response from the backend.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "requestTimeout must be at least 1ms",
                                        "rule": "duration(self) \u003e= duration('1ms')"
                                      }
                                    ]
                                  },
                                  "version": {
                                    "description": "HTTP protocol version for backend connections. If unset, it is inferred:\n`Service` appProtocol, `HTTP2` for gRPC, the original protocol for\nplaintext HTTP, or `HTTP1` for HTTPS because clients often upgrade HTTPS\nto HTTP/2 even when the backend does not support it.",
                                    "enum": [
                                      "HTTP1",
                                      "HTTP2"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tcp": {
                                "additionalProperties": false,
                                "description": "Settings for managing TCP connections to the backend",
                                "properties": {
                                  "connectTimeout": {
                                    "description": "Deadline for establishing a connection to\nthe destination.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "connectTimeout must be at least 100ms",
                                        "rule": "duration(self) \u003e= duration('100ms')"
                                      }
                                    ]
                                  },
                                  "keepalive": {
                                    "additionalProperties": false,
                                    "description": "Settings for enabling TCP keepalives on the\nconnection.",
                                    "properties": {
                                      "interval": {
                                        "description": "Time between keepalive probes.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "interval must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      },
                                      "retries": {
                                        "description": "Maximum number of keepalive probes to send before dropping the connection.\nIf unset, this defaults to 9.",
                                        "format": "int32",
                                        "maximum": 64,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "time": {
                                        "description": "Time a connection needs to be idle before keepalive probes start being sent.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "time must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tls": {
                                "additionalProperties": false,
                                "description": "Settings for managing TLS connections to the backend\n\nWhen set, TLS is originated to the backend using the system trusted CA\ncertificates, and SNI is inferred from the destination.",
                                "properties": {
                                  "alpnProtocols": {
                                    "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                                    "items": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "caCertificateRefs": {
                                    "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                                      "properties": {
                                        "name": {
                                          "default": "",
                                          "description": "Name of the referent",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic"
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "insecureSkipVerify": {
                                    "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                                    "enum": [
                                      "All",
                                      "Hostname"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "keyExchangeGroups": {
                                    "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                                    "items": {
                                      "enum": [
                                        "P-256",
                                        "P-384",
                                        "X25519",
                                        "X25519_MLKEM768"
                                      ],
                                      "type": "string"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "mtlsCertificateRef": {
                                    "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                                      "properties": {
                                        "group": {
                                          "description": "API group of the referenced credential; empty selects the core API group",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "kind": {
                                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Name of the referenced credential",
                                          "maxLength": 253,
                                          "minLength": 1,
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic",
                                      "x-kubernetes-validations": [
                                        {
                                          "message": "custom credential refs must set both group and kind",
                                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                        }
                                      ]
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "sni": {
                                    "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                                    "maxLength": 253,
                                    "minLength": 1,
                                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "verifySubjectAltNames": {
                                    "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                                    "items": {
                                      "maxLength": 256,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                                    "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                                  },
                                  {
                                    "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                                    "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                                  },
                                  {
                                    "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                                    "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                                  }
                                ]
                              },
                              "tunnel": {
                                "additionalProperties": false,
                                "description": "Settings for managing tunnel connections to the backend, like `HTTPS_PROXY`",
                                "properties": {
                                  "backendRef": {
                                    "additionalProperties": false,
                                    "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                                    "properties": {
                                      "group": {
                                        "default": "",
                                        "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                        "maxLength": 253,
                                        "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "default": "Service",
                                        "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name is the name of the referent.",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "namespace": {
                                        "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "port": {
                                        "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                        "format": "int32",
                                        "maximum": 65535,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": "object",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "Must have port for Service reference",
                                        "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "backendRef"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-validations": [
                              {
                                "message": "at least one of the fields in [auth http tcp tls tunnel] must be set",
                                "rule": "[has(self.auth),has(self.http),has(self.tcp),has(self.tls),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
                              }
                            ]
                          },
                          "projectId": {
                            "description": "Google Cloud project ID.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "templateId": {
                            "description": "Template ID for Google Model Armor.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "projectId",
                          "templateId"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "openAIModeration": {
                        "additionalProperties": false,
                        "description": "Passes prompt data through the OpenAI Moderations\nendpoint.\nSee https://developers.openai.com/api/reference/resources/moderations for more information.",
                        "properties": {
                          "model": {
                            "description": "Moderation model to use. For example,\n`omni-moderation`.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "policies": {
                            "additionalProperties": false,
                            "description": "Policies for communicating with OpenAI.",
                            "properties": {
                              "auth": {
                                "additionalProperties": false,
                                "description": "Settings for authenticating to OpenAI.",
                                "properties": {
                                  "key": {
                                    "description": "Inline key to use as the value of the\n`Authorization` header. This option is the least secure; usage of a\n`Secret` is preferred.",
                                    "maxLength": 2048,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "location": {
                                    "additionalProperties": false,
                                    "description": "Where backend credentials are inserted. Defaults to the `Authorization`\nheader with the `Bearer ` prefix. Applies to `key` and `secretRef`.",
                                    "properties": {
                                      "cookie": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "header": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                            "type": "string"
                                          },
                                          "prefix": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "queryParameter": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                                        "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                                      }
                                    ]
                                  },
                                  "secretRef": {
                                    "additionalProperties": false,
                                    "description": "Credential source for the authorization value, defaulting to a Kubernetes\n`Secret`. By default, the value is read from the `Authorization` key; set\n`secretRef.key` to override it. A `Bearer ` prefix is stripped only from\nthe default `Authorization` key.",
                                    "properties": {
                                      "group": {
                                        "description": "API group of the referenced credential; empty selects the core API group",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "key": {
                                        "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name of the referenced credential",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-map-type": "atomic",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "custom credential refs must set both group and kind",
                                        "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                      }
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "exactly one of the fields in [key secretRef] must be set",
                                    "rule": "[has(self.key),has(self.secretRef)].filter(x,x==true).size() == 1"
                                  }
                                ]
                              },
                              "http": {
                                "additionalProperties": false,
                                "description": "Settings for managing HTTP requests to the backend",
                                "properties": {
                                  "requestTimeout": {
                                    "description": "Deadline for receiving a response from the backend.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "requestTimeout must be at least 1ms",
                                        "rule": "duration(self) \u003e= duration('1ms')"
                                      }
                                    ]
                                  },
                                  "version": {
                                    "description": "HTTP protocol version for backend connections. If unset, it is inferred:\n`Service` appProtocol, `HTTP2` for gRPC, the original protocol for\nplaintext HTTP, or `HTTP1` for HTTPS because clients often upgrade HTTPS\nto HTTP/2 even when the backend does not support it.",
                                    "enum": [
                                      "HTTP1",
                                      "HTTP2"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tcp": {
                                "additionalProperties": false,
                                "description": "Settings for managing TCP connections to the backend",
                                "properties": {
                                  "connectTimeout": {
                                    "description": "Deadline for establishing a connection to\nthe destination.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "connectTimeout must be at least 100ms",
                                        "rule": "duration(self) \u003e= duration('100ms')"
                                      }
                                    ]
                                  },
                                  "keepalive": {
                                    "additionalProperties": false,
                                    "description": "Settings for enabling TCP keepalives on the\nconnection.",
                                    "properties": {
                                      "interval": {
                                        "description": "Time between keepalive probes.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "interval must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      },
                                      "retries": {
                                        "description": "Maximum number of keepalive probes to send before dropping the connection.\nIf unset, this defaults to 9.",
                                        "format": "int32",
                                        "maximum": 64,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "time": {
                                        "description": "Time a connection needs to be idle before keepalive probes start being sent.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "time must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tls": {
                                "additionalProperties": false,
                                "description": "Settings for managing TLS connections to the backend\n\nWhen set, TLS is originated to the backend using the system trusted CA\ncertificates, and SNI is inferred from the destination.",
                                "properties": {
                                  "alpnProtocols": {
                                    "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                                    "items": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "caCertificateRefs": {
                                    "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                                      "properties": {
                                        "name": {
                                          "default": "",
                                          "description": "Name of the referent",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic"
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "insecureSkipVerify": {
                                    "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                                    "enum": [
                                      "All",
                                      "Hostname"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "keyExchangeGroups": {
                                    "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                                    "items": {
                                      "enum": [
                                        "P-256",
                                        "P-384",
                                        "X25519",
                                        "X25519_MLKEM768"
                                      ],
                                      "type": "string"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "mtlsCertificateRef": {
                                    "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                                      "properties": {
                                        "group": {
                                          "description": "API group of the referenced credential; empty selects the core API group",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "kind": {
                                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Name of the referenced credential",
                                          "maxLength": 253,
                                          "minLength": 1,
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic",
                                      "x-kubernetes-validations": [
                                        {
                                          "message": "custom credential refs must set both group and kind",
                                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                        }
                                      ]
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "sni": {
                                    "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                                    "maxLength": 253,
                                    "minLength": 1,
                                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "verifySubjectAltNames": {
                                    "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                                    "items": {
                                      "maxLength": 256,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                                    "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                                  },
                                  {
                                    "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                                    "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                                  },
                                  {
                                    "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                                    "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                                  }
                                ]
                              },
                              "tunnel": {
                                "additionalProperties": false,
                                "description": "Settings for managing tunnel connections to the backend, like `HTTPS_PROXY`",
                                "properties": {
                                  "backendRef": {
                                    "additionalProperties": false,
                                    "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                                    "properties": {
                                      "group": {
                                        "default": "",
                                        "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                        "maxLength": 253,
                                        "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "default": "Service",
                                        "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name is the name of the referent.",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "namespace": {
                                        "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "port": {
                                        "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                        "format": "int32",
                                        "maximum": 65535,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": "object",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "Must have port for Service reference",
                                        "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "backendRef"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-validations": [
                              {
                                "message": "at least one of the fields in [auth http tcp tls tunnel] must be set",
                                "rule": "[has(self.auth),has(self.http),has(self.tcp),has(self.tls),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
                              }
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "regex": {
                        "additionalProperties": false,
                        "description": "Regular expression (regex) matching for prompt guards and data masking.",
                        "properties": {
                          "action": {
                            "default": "Mask",
                            "description": "The action to take if a regex pattern is matched in a request or response.\nThis setting applies only to request matches. `PromptguardResponse`\nmatches are always masked by default.\nDefaults to `Mask`.",
                            "enum": [
                              "Mask",
                              "Reject"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "builtins": {
                            "description": "Built-in regex patterns to match against the request or response.\nMatches and built-ins are additive.",
                            "items": {
                              "description": "Built-in regex patterns for specific types of strings in prompts.\nFor example, if you specify `CreditCard`, any credit card numbers\nin the request or response are matched.",
                              "enum": [
                                "CaSin",
                                "CreditCard",
                                "Email",
                                "PhoneNumber",
                                "Ssn"
                              ],
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "matches": {
                            "description": "Regex patterns to match against the request or response.\nMatches and built-ins are additive.",
                            "items": {
                              "maxLength": 1024,
                              "minLength": 1,
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "response": {
                        "additionalProperties": false,
                        "description": "Custom response message to return to the client. If not specified, defaults to\n`The request was rejected due to inappropriate content`.",
                        "properties": {
                          "message": {
                            "default": "The request was rejected due to inappropriate content",
                            "description": "Custom response message to return to the client. If not specified, defaults to\n`The request was rejected due to inappropriate content`.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "statusCode": {
                            "default": 403,
                            "description": "Status code to return to the client. Defaults to 403.",
                            "format": "int32",
                            "maximum": 599,
                            "minimum": 200,
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ],
                        "x-kubernetes-validations": [
                          {
                            "message": "at least one of the fields in [message statusCode] must be set",
                            "rule": "[has(self.message),has(self.statusCode)].filter(x,x==true).size() \u003e= 1"
                          }
                        ]
                      },
                      "webhook": {
                        "additionalProperties": false,
                        "description": "Webhook that receives requests for prompt guarding.",
                        "properties": {
                          "backendRef": {
                            "additionalProperties": false,
                            "description": "Webhook server to reach.\n\nSupported types: Service and Backend.",
                            "properties": {
                              "group": {
                                "default": "",
                                "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                "maxLength": 253,
                                "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "kind": {
                                "default": "Service",
                                "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                "maxLength": 63,
                                "minLength": 1,
                                "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "name": {
                                "description": "Name is the name of the referent.",
                                "maxLength": 253,
                                "minLength": 1,
                                "type": "string"
                              },
                              "namespace": {
                                "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                "maxLength": 63,
                                "minLength": 1,
                                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "port": {
                                "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                "format": "int32",
                                "maximum": 65535,
                                "minimum": 1,
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": "object",
                            "x-kubernetes-validations": [
                              {
                                "message": "Must have port for Service reference",
                                "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                              }
                            ]
                          },
                          "failureMode": {
                            "description": "Behavior when the webhook guardrail is unavailable\nor returns an error. `FailOpen` allows the request to continue.\n`FailClosed` (default) rejects the request.",
                            "enum": [
                              "FailClosed",
                              "FailOpen"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "forwardHeaderMatches": {
                            "description": "HTTP header matches used to select the headers to forward to the webhook.\nRequest headers are used when forwarding requests and response headers\nare used when forwarding responses.\nBy default, no headers are forwarded.",
                            "items": {
                              "additionalProperties": false,
                              "description": "HTTPHeaderMatch describes how to select a HTTP route by matching HTTP request\nheaders.",
                              "properties": {
                                "name": {
                                  "description": "Name of the HTTP header to match, case-insensitive. When names are equivalent, only the first matching entry is used",
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                  "type": "string"
                                },
                                "type": {
                                  "default": "Exact",
                                  "description": "How to match against the header value: `Exact` (default) or `RegularExpression`. The regex dialect is implementation-specific",
                                  "enum": [
                                    "Exact",
                                    "RegularExpression"
                                  ],
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "Value of the HTTP header to match",
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "headers": {
                            "additionalProperties": {
                              "description": "A Common Expression Language (CEL) expression.",
                              "maxLength": 16384,
                              "minLength": 1,
                              "type": "string"
                            },
                            "description": "CEL-computed headers to include in webhook requests.",
                            "maxProperties": 64,
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "backendRef"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      }
                    },
                    "type": "object",
                    "x-kubernetes-validations": [
                      {
                        "message": "exactly one of the fields in [regex webhook openAIModeration bedrockGuardrails googleModelArmor] must be set",
                        "rule": "[has(self.regex),has(self.webhook),has(self.openAIModeration),has(self.bedrockGuardrails),has(self.googleModelArmor)].filter(x,x==true).size() == 1"
                      }
                    ]
                  },
                  "maxItems": 8,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "response": {
                  "description": "Prompt guards to apply to responses returned by the LLM provider.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Prompt guards to apply to responses returned by the LLM provider.",
                    "properties": {
                      "bedrockGuardrails": {
                        "additionalProperties": false,
                        "description": "AWS Bedrock Guardrails settings for prompt\nguarding.",
                        "properties": {
                          "identifier": {
                            "description": "Identifier of the Guardrail policy to use for the backend.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "policies": {
                            "additionalProperties": false,
                            "description": "Policies for communicating with AWS Bedrock Guardrails.",
                            "properties": {
                              "auth": {
                                "additionalProperties": false,
                                "description": "Settings for authenticating to AWS Bedrock Guardrails.",
                                "properties": {
                                  "aws": {
                                    "additionalProperties": false,
                                    "description": "AWS authentication method for Bedrock Guardrails. Use `aws: {}` for\ndefault AWS SDK credential discovery.",
                                    "properties": {
                                      "assumeRole": {
                                        "additionalProperties": false,
                                        "description": "AWS STS AssumeRole settings to use before signing backend requests.\nAmbient AWS credentials are used as the source credentials for STS.",
                                        "properties": {
                                          "roleArn": {
                                            "description": "AWS IAM role ARN to assume.",
                                            "minLength": 1,
                                            "pattern": "^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$",
                                            "type": "string"
                                          },
                                          "sessionName": {
                                            "description": "SessionName is a custom session name (RoleSessionName) for CloudTrail and\nCost \u0026 Usage Report attribution. If unset, AWS generates a random name.",
                                            "pattern": "^[\\w+=,.@-]{2,64}$",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "sessionNameExpression": {
                                            "description": "SessionNameExpression is a CEL expression evaluated against each request\nto produce the session name (RoleSessionName), for example `jwt.sub` or\n`request.headers[\"x-team\"]`. If the expression does not produce a valid\nsession name at request time, the request is rejected.",
                                            "maxLength": 16384,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "tags": {
                                            "description": "Session tags passed to STS AssumeRole for cost attribution in the AWS Cost\n\u0026 Usage Report, once activated. STS allows at most 50 per role session.",
                                            "items": {
                                              "additionalProperties": false,
                                              "description": "AwsSessionTag is an AWS STS session tag passed to AssumeRole for cost\nattribution. Exactly one of value and expression must be set.",
                                              "properties": {
                                                "expression": {
                                                  "description": "CEL expression evaluated against each request to produce the tag value,\nfor example `jwt.sub` or `request.headers[\"x-app\"]`. Requests with invalid\ntag values are rejected.",
                                                  "maxLength": 16384,
                                                  "minLength": 1,
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "key": {
                                                  "description": "Key is the tag key.",
                                                  "maxLength": 128,
                                                  "minLength": 1,
                                                  "type": "string"
                                                },
                                                "value": {
                                                  "description": "Value is a static tag value.",
                                                  "maxLength": 256,
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "key"
                                              ],
                                              "type": "object",
                                              "x-kubernetes-validations": [
                                                {
                                                  "message": "exactly one of value or expression must be set",
                                                  "rule": "has(self.value) != has(self.expression)"
                                                }
                                              ]
                                            },
                                            "maxItems": 50,
                                            "type": [
                                              "array",
                                              "null"
                                            ],
                                            "x-kubernetes-list-map-keys": [
                                              "key"
                                            ],
                                            "x-kubernetes-list-type": "map"
                                          }
                                        },
                                        "required": [
                                          "roleArn"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "at most one of the fields in [sessionName sessionNameExpression] may be set",
                                            "rule": "[has(self.sessionName),has(self.sessionNameExpression)].filter(x,x==true).size() \u003c= 1"
                                          }
                                        ]
                                      },
                                      "region": {
                                        "description": "AWS SigV4 signing region, for example `us-east-1`. Set this when the\ntarget AWS service is in a different region than the gateway. If unset,\ntyped AWS backends may provide this automatically; otherwise the ambient\nAWS region is used.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "secretRef": {
                                        "additionalProperties": false,
                                        "description": "Credential source for AWS credentials, defaulting to a Kubernetes `Secret`.\nThe default Secret resolver expects `accessKey`, `secretKey`, and optional\n`sessionToken` keys.",
                                        "properties": {
                                          "group": {
                                            "description": "API group of the referenced credential; empty selects the core API group",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "kind": {
                                            "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Name of the referenced credential",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-map-type": "atomic",
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "custom credential refs must set both group and kind",
                                            "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                          }
                                        ]
                                      },
                                      "serviceName": {
                                        "description": "AWS SigV4 signing service name, for example\n`bedrock`, `bedrock-agentcore`, or `execute-api`). If unset, typed AWS\nbackends may provide this automatically.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "secretRef and assumeRole are mutually exclusive",
                                        "rule": "!(has(self.secretRef) \u0026\u0026 has(self.assumeRole))"
                                      }
                                    ]
                                  },
                                  "key": {
                                    "description": "Inline API key to use as the value of the `Authorization` header.\nThis option is the least secure; usage of a `Secret` is preferred.",
                                    "maxLength": 2048,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "location": {
                                    "additionalProperties": false,
                                    "description": "Where API keys are inserted. Defaults to the `Authorization` header with\nthe `Bearer ` prefix. Applies to `key` and `secretRef`.",
                                    "properties": {
                                      "cookie": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "header": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "description": "Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with `:`) are not supported",
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                            "type": "string"
                                          },
                                          "prefix": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "queryParameter": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "maxLength": 256,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "exactly one of the fields in [header queryParameter cookie] must be set",
                                        "rule": "[has(self.header),has(self.queryParameter),has(self.cookie)].filter(x,x==true).size() == 1"
                                      }
                                    ]
                                  },
                                  "secretRef": {
                                    "additionalProperties": false,
                                    "description": "Credential source for the API key, defaulting to a Kubernetes `Secret`.\nBy default, the value is read from the `Authorization` key; set\n`secretRef.key` to override it. A `Bearer ` prefix is stripped only from\nthe default `Authorization` key.",
                                    "properties": {
                                      "group": {
                                        "description": "API group of the referenced credential; empty selects the core API group",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "key": {
                                        "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name of the referenced credential",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-map-type": "atomic",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "custom credential refs must set both group and kind",
                                        "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                      }
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "location may only be set for key or secretRef auth",
                                    "rule": "has(self.location) ? has(self.key) || has(self.secretRef) : true"
                                  },
                                  {
                                    "message": "exactly one of the fields in [key secretRef aws] must be set",
                                    "rule": "[has(self.key),has(self.secretRef),has(self.aws)].filter(x,x==true).size() == 1"
                                  }
                                ]
                              },
                              "http": {
                                "additionalProperties": false,
                                "description": "Settings for managing HTTP requests to the backend",
                                "properties": {
                                  "requestTimeout": {
                                    "description": "Deadline for receiving a response from the backend.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "requestTimeout must be at least 1ms",
                                        "rule": "duration(self) \u003e= duration('1ms')"
                                      }
                                    ]
                                  },
                                  "version": {
                                    "description": "HTTP protocol version for backend connections. If unset, it is inferred:\n`Service` appProtocol, `HTTP2` for gRPC, the original protocol for\nplaintext HTTP, or `HTTP1` for HTTPS because clients often upgrade HTTPS\nto HTTP/2 even when the backend does not support it.",
                                    "enum": [
                                      "HTTP1",
                                      "HTTP2"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tcp": {
                                "additionalProperties": false,
                                "description": "Settings for managing TCP connections to the backend",
                                "properties": {
                                  "connectTimeout": {
                                    "description": "Deadline for establishing a connection to\nthe destination.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "connectTimeout must be at least 100ms",
                                        "rule": "duration(self) \u003e= duration('100ms')"
                                      }
                                    ]
                                  },
                                  "keepalive": {
                                    "additionalProperties": false,
                                    "description": "Settings for enabling TCP keepalives on the\nconnection.",
                                    "properties": {
                                      "interval": {
                                        "description": "Time between keepalive probes.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "interval must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      },
                                      "retries": {
                                        "description": "Maximum number of keepalive probes to send before dropping the connection.\nIf unset, this defaults to 9.",
                                        "format": "int32",
                                        "maximum": 64,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "time": {
                                        "description": "Time a connection needs to be idle before keepalive probes start being sent.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "time must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tls": {
                                "additionalProperties": false,
                                "description": "Settings for managing TLS connections to the backend\n\nWhen set, TLS is originated to the backend using the system trusted CA\ncertificates, and SNI is inferred from the destination.",
                                "properties": {
                                  "alpnProtocols": {
                                    "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                                    "items": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "caCertificateRefs": {
                                    "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                                      "properties": {
                                        "name": {
                                          "default": "",
                                          "description": "Name of the referent",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic"
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "insecureSkipVerify": {
                                    "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                                    "enum": [
                                      "All",
                                      "Hostname"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "keyExchangeGroups": {
                                    "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                                    "items": {
                                      "enum": [
                                        "P-256",
                                        "P-384",
                                        "X25519",
                                        "X25519_MLKEM768"
                                      ],
                                      "type": "string"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "mtlsCertificateRef": {
                                    "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                                      "properties": {
                                        "group": {
                                          "description": "API group of the referenced credential; empty selects the core API group",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "kind": {
                                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Name of the referenced credential",
                                          "maxLength": 253,
                                          "minLength": 1,
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic",
                                      "x-kubernetes-validations": [
                                        {
                                          "message": "custom credential refs must set both group and kind",
                                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                        }
                                      ]
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "sni": {
                                    "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                                    "maxLength": 253,
                                    "minLength": 1,
                                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "verifySubjectAltNames": {
                                    "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                                    "items": {
                                      "maxLength": 256,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                                    "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                                  },
                                  {
                                    "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                                    "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                                  },
                                  {
                                    "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                                    "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                                  }
                                ]
                              },
                              "tunnel": {
                                "additionalProperties": false,
                                "description": "Settings for managing tunnel connections to the backend, like `HTTPS_PROXY`",
                                "properties": {
                                  "backendRef": {
                                    "additionalProperties": false,
                                    "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                                    "properties": {
                                      "group": {
                                        "default": "",
                                        "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                        "maxLength": 253,
                                        "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "default": "Service",
                                        "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name is the name of the referent.",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "namespace": {
                                        "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "port": {
                                        "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                        "format": "int32",
                                        "maximum": 65535,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": "object",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "Must have port for Service reference",
                                        "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "backendRef"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-validations": [
                              {
                                "message": "at least one of the fields in [auth http tcp tls tunnel] must be set",
                                "rule": "[has(self.auth),has(self.http),has(self.tcp),has(self.tls),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
                              }
                            ]
                          },
                          "region": {
                            "description": "AWS region where the guardrail is deployed, for example\n`us-west-2`).",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "version": {
                            "description": "Version of the Guardrail policy to use for the backend.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "identifier",
                          "region",
                          "version"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "googleModelArmor": {
                        "additionalProperties": false,
                        "description": "Google Model Armor settings for prompt guarding.",
                        "properties": {
                          "location": {
                            "default": "us-central1",
                            "description": "Google Cloud location, for example `us-central1`.\nDefaults to `us-central1` if not specified.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "policies": {
                            "additionalProperties": false,
                            "description": "Policies for communicating with Google Model Armor.",
                            "properties": {
                              "auth": {
                                "additionalProperties": false,
                                "description": "Settings for authenticating to Google Model Armor.",
                                "properties": {
                                  "gcp": {
                                    "additionalProperties": false,
                                    "description": "Google authentication method for Model Armor. Use `gcp: {}` for default\nGoogle credential discovery.",
                                    "properties": {
                                      "audience": {
                                        "description": "Explicit `aud` value for the ID token. Only\nvalid with `IdToken` type. If not set, the `aud` is automatically\nderived from the backend hostname.",
                                        "maxLength": 256,
                                        "minLength": 1,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "secretRef": {
                                        "additionalProperties": false,
                                        "description": "Credential source for ADC-compatible Google credential JSON, defaulting to\na Kubernetes `Secret`. By default, the value is read from\n`credentials.json`; set `secretRef.key` to override it. When omitted,\nambient credentials are used.",
                                        "properties": {
                                          "group": {
                                            "description": "API group of the referenced credential; empty selects the core API group",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "key": {
                                            "description": "Key in the referenced Secret. If omitted, a location-specific default is used",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "kind": {
                                            "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Name of the referenced credential",
                                            "maxLength": 253,
                                            "minLength": 1,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "x-kubernetes-map-type": "atomic",
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "custom credential refs must set both group and kind",
                                            "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                          }
                                        ]
                                      },
                                      "type": {
                                        "description": "The type of token to generate. To authenticate to GCP services,\ngenerally an `AccessToken` is used. To authenticate to Cloud Run, an\n`IdToken` is used.",
                                        "enum": [
                                          "AccessToken",
                                          "IdToken"
                                        ],
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "audience is only valid with IdToken",
                                        "rule": "has(self.audience) ? self.type == 'IdToken' : true"
                                      }
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "exactly one of the fields in [gcp] must be set",
                                    "rule": "[has(self.gcp)].filter(x,x==true).size() == 1"
                                  }
                                ]
                              },
                              "http": {
                                "additionalProperties": false,
                                "description": "Settings for managing HTTP requests to the backend",
                                "properties": {
                                  "requestTimeout": {
                                    "description": "Deadline for receiving a response from the backend.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "requestTimeout must be at least 1ms",
                                        "rule": "duration(self) \u003e= duration('1ms')"
                                      }
                                    ]
                                  },
                                  "version": {
                                    "description": "HTTP protocol version for backend connections. If unset, it is inferred:\n`Service` appProtocol, `HTTP2` for gRPC, the original protocol for\nplaintext HTTP, or `HTTP1` for HTTPS because clients often upgrade HTTPS\nto HTTP/2 even when the backend does not support it.",
                                    "enum": [
                                      "HTTP1",
                                      "HTTP2"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tcp": {
                                "additionalProperties": false,
                                "description": "Settings for managing TCP connections to the backend",
                                "properties": {
                                  "connectTimeout": {
                                    "description": "Deadline for establishing a connection to\nthe destination.",
                                    "maxLength": 32,
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "invalid duration value",
                                        "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                      },
                                      {
                                        "message": "connectTimeout must be at least 100ms",
                                        "rule": "duration(self) \u003e= duration('100ms')"
                                      }
                                    ]
                                  },
                                  "keepalive": {
                                    "additionalProperties": false,
                                    "description": "Settings for enabling TCP keepalives on the\nconnection.",
                                    "properties": {
                                      "interval": {
                                        "description": "Time between keepalive probes.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "interval must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      },
                                      "retries": {
                                        "description": "Maximum number of keepalive probes to send before dropping the connection.\nIf unset, this defaults to 9.",
                                        "format": "int32",
                                        "maximum": 64,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "time": {
                                        "description": "Time a connection needs to be idle before keepalive probes start being sent.\nIf unset, this defaults to 180s.",
                                        "maxLength": 32,
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "x-kubernetes-validations": [
                                          {
                                            "message": "invalid duration value",
                                            "rule": "matches(self, '^([0-9]{1,5}(h|m|s|ms)){1,4}$')"
                                          },
                                          {
                                            "message": "time must be at least 1 second",
                                            "rule": "duration(self) \u003e= duration('1s')"
                                          }
                                        ]
                                      }
                                    },
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "tls": {
                                "additionalProperties": false,
                                "description": "Settings for managing TLS connections to the backend\n\nWhen set, TLS is originated to the backend using the system trusted CA\ncertificates, and SNI is inferred from the destination.",
                                "properties": {
                                  "alpnProtocols": {
                                    "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                                    "items": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "caCertificateRefs": {
                                    "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                                      "properties": {
                                        "name": {
                                          "default": "",
                                          "description": "Name of the referent",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic"
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "insecureSkipVerify": {
                                    "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                                    "enum": [
                                      "All",
                                      "Hostname"
                                    ],
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "keyExchangeGroups": {
                                    "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                                    "items": {
                                      "enum": [
                                        "P-256",
                                        "P-384",
                                        "X25519",
                                        "X25519_MLKEM768"
                                      ],
                                      "type": "string"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  },
                                  "mtlsCertificateRef": {
                                    "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                                      "properties": {
                                        "group": {
                                          "description": "API group of the referenced credential; empty selects the core API group",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "kind": {
                                          "description": "Kind of the referenced credential; empty defaults to `Secret`",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Name of the referenced credential",
                                          "maxLength": 253,
                                          "minLength": 1,
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "type": "object",
                                      "x-kubernetes-map-type": "atomic",
                                      "x-kubernetes-validations": [
                                        {
                                          "message": "custom credential refs must set both group and kind",
                                          "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                                        }
                                      ]
                                    },
                                    "maxItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "sni": {
                                    "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                                    "maxLength": 253,
                                    "minLength": 1,
                                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "verifySubjectAltNames": {
                                    "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                                    "items": {
                                      "maxLength": 256,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 16,
                                    "minItems": 1,
                                    "type": [
                                      "array",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-validations": [
                                  {
                                    "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                                    "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                                  },
                                  {
                                    "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                                    "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                                  },
                                  {
                                    "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                                    "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                                  }
                                ]
                              },
                              "tunnel": {
                                "additionalProperties": false,
                                "description": "Settings for managing tunnel connections to the backend, like `HTTPS_PROXY`",
                                "properties": {
                                  "backendRef": {
                                    "additionalProperties": false,
                                    "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                                    "properties": {
                                      "group": {
                                        "default": "",
                                        "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                        "maxLength": 253,
                                        "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "kind": {
                                        "default": "Service",
                                        "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "description": "Name is the name of the referent.",
                                        "maxLength": 253,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "namespace": {
                                        "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                        "maxLength": 63,
                                        "minLength": 1,
                                        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "port": {
                                        "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                        "format": "int32",
                                        "maximum": 65535,
                                        "minimum": 1,
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "type": "object",
                                    "x-kubernetes-validations": [
                                      {
                                        "message": "Must have port for Service reference",
                                        "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "backendRef"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-validations": [
                              {
                                "message": "at least one of the fields in [auth http tcp tls tunnel] must be set",
                                "rule": "[has(self.auth),has(self.http),has(self.tcp),has(self.tls),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
                              }
                            ]
                          },
                          "projectId": {
                            "description": "Google Cloud project ID.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "templateId": {
                            "description": "Template ID for Google Model Armor.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "projectId",
                          "templateId"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "regex": {
                        "additionalProperties": false,
                        "description": "Regular expression (regex) matching for prompt guards and data masking.",
                        "properties": {
                          "action": {
                            "default": "Mask",
                            "description": "The action to take if a regex pattern is matched in a request or response.\nThis setting applies only to request matches. `PromptguardResponse`\nmatches are always masked by default.\nDefaults to `Mask`.",
                            "enum": [
                              "Mask",
                              "Reject"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "builtins": {
                            "description": "Built-in regex patterns to match against the request or response.\nMatches and built-ins are additive.",
                            "items": {
                              "description": "Built-in regex patterns for specific types of strings in prompts.\nFor example, if you specify `CreditCard`, any credit card numbers\nin the request or response are matched.",
                              "enum": [
                                "CaSin",
                                "CreditCard",
                                "Email",
                                "PhoneNumber",
                                "Ssn"
                              ],
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "matches": {
                            "description": "Regex patterns to match against the request or response.\nMatches and built-ins are additive.",
                            "items": {
                              "maxLength": 1024,
                              "minLength": 1,
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "response": {
                        "additionalProperties": false,
                        "description": "Custom response message to return to the client. If not specified, defaults to\n`The response was rejected due to inappropriate content`.",
                        "properties": {
                          "message": {
                            "default": "The request was rejected due to inappropriate content",
                            "description": "Custom response message to return to the client. If not specified, defaults to\n`The request was rejected due to inappropriate content`.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "statusCode": {
                            "default": 403,
                            "description": "Status code to return to the client. Defaults to 403.",
                            "format": "int32",
                            "maximum": 599,
                            "minimum": 200,
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ],
                        "x-kubernetes-validations": [
                          {
                            "message": "at least one of the fields in [message statusCode] must be set",
                            "rule": "[has(self.message),has(self.statusCode)].filter(x,x==true).size() \u003e= 1"
                          }
                        ]
                      },
                      "webhook": {
                        "additionalProperties": false,
                        "description": "Webhook that receives responses for prompt guarding.",
                        "properties": {
                          "backendRef": {
                            "additionalProperties": false,
                            "description": "Webhook server to reach.\n\nSupported types: Service and Backend.",
                            "properties": {
                              "group": {
                                "default": "",
                                "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                                "maxLength": 253,
                                "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "kind": {
                                "default": "Service",
                                "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                                "maxLength": 63,
                                "minLength": 1,
                                "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "name": {
                                "description": "Name is the name of the referent.",
                                "maxLength": 253,
                                "minLength": 1,
                                "type": "string"
                              },
                              "namespace": {
                                "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                                "maxLength": 63,
                                "minLength": 1,
                                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "port": {
                                "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                                "format": "int32",
                                "maximum": 65535,
                                "minimum": 1,
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": "object",
                            "x-kubernetes-validations": [
                              {
                                "message": "Must have port for Service reference",
                                "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                              }
                            ]
                          },
                          "failureMode": {
                            "description": "Behavior when the webhook guardrail is unavailable\nor returns an error. `FailOpen` allows the request to continue.\n`FailClosed` (default) rejects the request.",
                            "enum": [
                              "FailClosed",
                              "FailOpen"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "forwardHeaderMatches": {
                            "description": "HTTP header matches used to select the headers to forward to the webhook.\nRequest headers are used when forwarding requests and response headers\nare used when forwarding responses.\nBy default, no headers are forwarded.",
                            "items": {
                              "additionalProperties": false,
                              "description": "HTTPHeaderMatch describes how to select a HTTP route by matching HTTP request\nheaders.",
                              "properties": {
                                "name": {
                                  "description": "Name of the HTTP header to match, case-insensitive. When names are equivalent, only the first matching entry is used",
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9!#$%\u0026'*+\\-.^_\\x60|~]+$",
                                  "type": "string"
                                },
                                "type": {
                                  "default": "Exact",
                                  "description": "How to match against the header value: `Exact` (default) or `RegularExpression`. The regex dialect is implementation-specific",
                                  "enum": [
                                    "Exact",
                                    "RegularExpression"
                                  ],
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "Value of the HTTP header to match",
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "headers": {
                            "additionalProperties": {
                              "description": "A Common Expression Language (CEL) expression.",
                              "maxLength": 16384,
                              "minLength": 1,
                              "type": "string"
                            },
                            "description": "CEL-computed headers to include in webhook requests.",
                            "maxProperties": 64,
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "backendRef"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      }
                    },
                    "type": "object",
                    "x-kubernetes-validations": [
                      {
                        "message": "exactly one of the fields in [regex webhook bedrockGuardrails googleModelArmor] must be set",
                        "rule": "[has(self.regex),has(self.webhook),has(self.bedrockGuardrails),has(self.googleModelArmor)].filter(x,x==true).size() == 1"
                      }
                    ]
                  },
                  "maxItems": 8,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "streaming": {
                  "description": "Apply prompt guards to streaming responses and realtime websocket messages.\nDefaults to disabled to preserve streaming throughput unless explicitly enabled.",
                  "enum": [
                    "Enabled"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "at least one of the fields in [request response] must be set",
                  "rule": "[has(self.request),has(self.response)].filter(x,x==true).size() \u003e= 1"
                }
              ]
            },
            "tls": {
              "additionalProperties": false,
              "description": "TLS settings for connections to this model provider.",
              "properties": {
                "alpnProtocols": {
                  "description": "Application-Layer Protocol Negotiation (`ALPN`)\nvalue to use in the TLS handshake.\n\nIf not present, defaults to `[\"h2\", \"http/1.1\"]`.",
                  "items": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "caCertificateRefs": {
                  "description": "CA certificate `ConfigMap` to use to\nverify the server certificate.\nIf unset, the system's trusted certificates are used.",
                  "items": {
                    "additionalProperties": false,
                    "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                    "properties": {
                      "name": {
                        "default": "",
                        "description": "Name of the referent",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object",
                    "x-kubernetes-map-type": "atomic"
                  },
                  "maxItems": 1,
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-type": "atomic"
                },
                "insecureSkipVerify": {
                  "description": "Originates TLS but skips verification of the backend's certificate\nWARNING: insecure; only use if the risks are understood\n\nModes:\n* `All` disables all TLS verification\n* `Hostname` trusts the CA certificate but ignores hostname/SAN mismatches.\n  Still insecure; prefer `verifySubjectAltNames` where possible.",
                  "enum": [
                    "All",
                    "Hostname"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "keyExchangeGroups": {
                  "description": "Ordered list of key exchange groups for a TLS connection.\nFor example: `X25519_MLKEM768,X25519`.",
                  "items": {
                    "enum": [
                      "P-256",
                      "P-384",
                      "X25519",
                      "X25519_MLKEM768"
                    ],
                    "type": "string"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "mtlsCertificateRef": {
                  "description": "Enables mutual TLS to the backend using `tls.key` and `tls.crt` from the\nreferenced credential source (defaulting to a Kubernetes `Secret`). An\noptional `ca.cert`, if present, verifies the server certificate, but\n`caCertificateRefs` takes priority. If unspecified, no client certificate\nis used.",
                  "items": {
                    "additionalProperties": false,
                    "description": "References a same-namespace credential\nSet only `name` for a Kubernetes Secret",
                    "properties": {
                      "group": {
                        "description": "API group of the referenced credential; empty selects the core API group",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "kind": {
                        "description": "Kind of the referenced credential; empty defaults to `Secret`",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "description": "Name of the referenced credential",
                        "maxLength": 253,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "type": "object",
                    "x-kubernetes-map-type": "atomic",
                    "x-kubernetes-validations": [
                      {
                        "message": "custom credential refs must set both group and kind",
                        "rule": "(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) \u0026\u0026 size(self.kind) \u003e 0)"
                      }
                    ]
                  },
                  "maxItems": 1,
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-type": "atomic"
                },
                "sni": {
                  "description": "Server Name Indicator (`SNI`) to use in the TLS\nhandshake. If unset, the `SNI` is automatically set based on the\ndestination hostname.",
                  "maxLength": 253,
                  "minLength": 1,
                  "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "verifySubjectAltNames": {
                  "description": "Subject Alternative Names (`SAN`)\nto verify in the server certificate.\nIf not present, the destination hostname is automatically used.",
                  "items": {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "insecureSkipVerify All and caCertificateRefs may not be set together",
                  "rule": "has(self.insecureSkipVerify) \u0026\u0026 self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true"
                },
                {
                  "message": "insecureSkipVerify and verifySubjectAltNames may not be set together",
                  "rule": "has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true"
                },
                {
                  "message": "at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set",
                  "rule": "[has(self.verifySubjectAltNames),has(self.insecureSkipVerify)].filter(x,x==true).size() \u003c= 1"
                }
              ]
            },
            "transformations": {
              "description": "CEL transformations applied to fields in the provider request body.",
              "items": {
                "additionalProperties": false,
                "description": "Maps a request JSON field to a CEL expression.\nThe expression is evaluated against the current request body and its result\nis assigned to the configured field.",
                "properties": {
                  "expression": {
                    "description": "CEL expression used to compute the field value.",
                    "maxLength": 16384,
                    "minLength": 1,
                    "type": "string"
                  },
                  "field": {
                    "description": "Name of the field to set.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "expression",
                  "field"
                ],
                "type": "object"
              },
              "maxItems": 64,
              "minItems": 1,
              "type": [
                "array",
                "null"
              ],
              "x-kubernetes-list-map-keys": [
                "field"
              ],
              "x-kubernetes-list-type": "map"
            },
            "tunnel": {
              "additionalProperties": false,
              "description": "Proxy tunnel used to reach this model provider.",
              "properties": {
                "backendRef": {
                  "additionalProperties": false,
                  "description": "Proxy server to reach.\nSupported types: `Service` and `Backend`.",
                  "properties": {
                    "group": {
                      "default": "",
                      "description": "Group of the referent, for example `gateway.networking.k8s.io`. Empty selects the core API group",
                      "maxLength": 253,
                      "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "default": "Service",
                      "description": "Kubernetes resource kind of the referent, for example `Service`. Defaults to `Service`",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name is the name of the referent.",
                      "maxLength": 253,
                      "minLength": 1,
                      "type": "string"
                    },
                    "namespace": {
                      "description": "Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "port": {
                      "description": "Destination port number. Required when the referent is a Kubernetes `Service`",
                      "format": "int32",
                      "maximum": 65535,
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": "object",
                  "x-kubernetes-validations": [
                    {
                      "message": "Must have port for Service reference",
                      "rule": "(size(self.group) == 0 \u0026\u0026 self.kind == 'Service') ? has(self.port) : true"
                    }
                  ]
                }
              },
              "required": [
                "backendRef"
              ],
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "at least one of the fields in [auth authorization headers health promptGuard tls transformations tunnel] must be set",
              "rule": "[has(self.auth),has(self.authorization),has(self.headers),has(self.health),has(self.promptGuard),has(self.tls),has(self.transformations),has(self.tunnel)].filter(x,x==true).size() \u003e= 1"
            }
          ]
        },
        "provider": {
          "description": "Provider serving this concrete model. Provider-specific configuration is\nset by the corresponding field below when needed.",
          "enum": [
            "Anthropic",
            "Azure",
            "Baseten",
            "Bedrock",
            "Cerebras",
            "Cohere",
            "Custom",
            "Deepinfra",
            "Deepseek",
            "Fireworks",
            "Gemini",
            "Groq",
            "Huggingface",
            "Mistral",
            "Ollama",
            "OpenAI",
            "Openrouter",
            "TogetherAI",
            "VertexAI",
            "XAI"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "vertexai": {
          "additionalProperties": false,
          "description": "Provider-specific settings for Vertex AI.",
          "properties": {
            "projectId": {
              "description": "The ID of the Google Cloud Project that you use for the Vertex AI.",
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "region": {
              "default": "global",
              "description": "The location of the Google Cloud Project that you use for the Vertex AI.\nSpecial values: `global` uses the global endpoint, while `us` and `eu` use restricted\nmulti-region endpoints. Other values are treated as regional locations.\nDefaults to `global` if not specified.",
              "maxLength": 64,
              "minLength": 1,
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "projectId"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "virtualModel": {
          "additionalProperties": false,
          "description": "Request-time routing among concrete AgentgatewayModel resources.",
          "properties": {
            "conditional": {
              "additionalProperties": false,
              "description": "Ordered condition-based model selection.",
              "properties": {
                "targets": {
                  "description": "Concrete model targets evaluated in order. The first matching condition is\nselected. One final target may omit when to act as the fallback.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "model": {
                        "description": "Concrete model name selected through the referenced model. It is required\nwhen modelRef points to a wildcard match.model. When omitted, the referenced\nmodel's exact effective match.model is used.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "modelRef": {
                        "additionalProperties": false,
                        "description": "Same-namespace AgentgatewayModel resource selected by this target.",
                        "properties": {
                          "name": {
                            "default": "",
                            "description": "Name of the referent",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object",
                        "x-kubernetes-map-type": "atomic"
                      },
                      "when": {
                        "description": "CEL expression that must evaluate to true for this target to be selected.\nOmit only on the final fallback target.",
                        "maxLength": 16384,
                        "minLength": 1,
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "modelRef"
                    ],
                    "type": "object"
                  },
                  "maxItems": 64,
                  "minItems": 1,
                  "type": "array",
                  "x-kubernetes-validations": [
                    {
                      "message": "conditional targets without when must be last",
                      "rule": "self.filter(e, !has(e.when)).size() \u003c= 1 \u0026\u0026 (!self.exists(e, !has(e.when)) || !has(self[size(self) - 1].when))"
                    }
                  ]
                }
              },
              "required": [
                "targets"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "failover": {
              "additionalProperties": false,
              "description": "Priority-based model selection with failover between priority groups.",
              "properties": {
                "targets": {
                  "description": "Concrete model targets grouped by priority. Lower values are preferred.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "model": {
                        "description": "Concrete model name selected through the referenced model. It is required\nwhen modelRef points to a wildcard match.model. When omitted, the referenced\nmodel's exact effective match.model is used.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "modelRef": {
                        "additionalProperties": false,
                        "description": "Same-namespace AgentgatewayModel resource selected by this target.",
                        "properties": {
                          "name": {
                            "default": "",
                            "description": "Name of the referent",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object",
                        "x-kubernetes-map-type": "atomic"
                      },
                      "priority": {
                        "description": "Priority of this target. Lower values are preferred. Targets at the same\npriority are selected using a score that considers health and latency. The\nnext priority is used only when every target at this priority is degraded.\nConfigure policies.health on concrete target models to customize\ndegradation and eviction behavior.",
                        "format": "int32",
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "modelRef",
                      "priority"
                    ],
                    "type": "object"
                  },
                  "maxItems": 64,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "targets"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "weighted": {
              "additionalProperties": false,
              "description": "Weight-based model selection.",
              "properties": {
                "targets": {
                  "description": "Concrete model targets and their relative weights.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "model": {
                        "description": "Concrete model name selected through the referenced model. It is required\nwhen modelRef points to a wildcard match.model. When omitted, the referenced\nmodel's exact effective match.model is used.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "modelRef": {
                        "additionalProperties": false,
                        "description": "Same-namespace AgentgatewayModel resource selected by this target.",
                        "properties": {
                          "name": {
                            "default": "",
                            "description": "Name of the referent",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object",
                        "x-kubernetes-map-type": "atomic"
                      },
                      "weight": {
                        "default": 1,
                        "description": "Relative traffic weight. Defaults to 1.",
                        "format": "int32",
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "modelRef"
                    ],
                    "type": "object"
                  },
                  "maxItems": 64,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "targets"
              ],
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "exactly one of the fields in [weighted failover conditional] must be set",
              "rule": "[has(self.weighted),has(self.failover),has(self.conditional)].filter(x,x==true).size() == 1"
            }
          ]
        },
        "visibility": {
          "default": "Public",
          "description": "Controls whether clients can request this model directly. Internal models\ncan only be selected by virtual models. Defaults to Public.",
          "enum": [
            "Internal",
            "Public"
          ],
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "parentRefs"
      ],
      "type": "object",
      "x-kubernetes-validations": [
        {
          "message": "baseURL requires provider",
          "rule": "has(self.provider) || !has(self.baseURL)"
        },
        {
          "message": "policies cannot be used with virtualModel",
          "rule": "!has(self.virtualModel) || !has(self.policies)"
        },
        {
          "message": "virtual models must be public",
          "rule": "!has(self.virtualModel) || self.visibility != 'Internal'"
        },
        {
          "message": "virtual model match.model must be an exact name",
          "rule": "!has(self.virtualModel) || !has(self.match) || !has(self.match.model) || !self.match.model.contains('*')"
        },
        {
          "message": "ollama requires baseURL",
          "rule": "!has(self.provider) || self.provider != 'Ollama' || has(self.baseURL)"
        },
        {
          "message": "baseURL must be an absolute http or https URL with a host",
          "rule": "!has(self.baseURL) || (isURL(self.baseURL) \u0026\u0026 (url(self.baseURL).getScheme() == 'http' || url(self.baseURL).getScheme() == 'https') \u0026\u0026 url(self.baseURL).getHostname() != \"\")"
        },
        {
          "message": "baseURL cannot target localhost, loopback, or link-local addresses",
          "rule": "!has(self.baseURL) || !self.baseURL.matches(\"(?i)^https?://(localhost|[^/]+\\\\.localhost)(:[0-9]+)?(/|$)\")"
        },
        {
          "message": "baseURL cannot target localhost, loopback, or link-local addresses",
          "rule": "!has(self.baseURL) || !self.baseURL.matches(\"^https?://127(\\\\.[0-9]{1,3}){0,3}(:[0-9]+)?(/|$)\")"
        },
        {
          "message": "baseURL cannot target localhost, loopback, or link-local addresses",
          "rule": "!has(self.baseURL) || !self.baseURL.matches(\"^https?://169\\\\.254\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}(:[0-9]+)?(/|$)\")"
        },
        {
          "message": "baseURL cannot target localhost, loopback, or link-local addresses",
          "rule": "!has(self.baseURL) || !self.baseURL.matches(\"(?i)^https?://\\\\[(::1|fe[89ab][0-9a-f:]*)\\\\](:[0-9]+)?(/|$)\")"
        },
        {
          "message": "azure must be set if and only if provider is Azure",
          "rule": "has(self.azure) == (has(self.provider) \u0026\u0026 self.provider == 'Azure')"
        },
        {
          "message": "vertexai must be set if and only if provider is VertexAI",
          "rule": "has(self.vertexai) == (has(self.provider) \u0026\u0026 self.provider == 'VertexAI')"
        },
        {
          "message": "bedrock must be set if and only if provider is Bedrock",
          "rule": "has(self.bedrock) == (has(self.provider) \u0026\u0026 self.provider == 'Bedrock')"
        },
        {
          "message": "custom must be set if and only if provider is Custom",
          "rule": "has(self.custom) == (has(self.provider) \u0026\u0026 self.provider == 'Custom')"
        },
        {
          "message": "exactly one of the fields in [provider virtualModel] must be set",
          "rule": "[has(self.provider),has(self.virtualModel)].filter(x,x==true).size() == 1"
        }
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "Current model attachment status.",
      "properties": {
        "parents": {
          "description": "Status for each Gateway parent to which this model is attached.",
          "items": {
            "additionalProperties": false,
            "description": "RouteParentStatus describes the status of a route with respect to an\nassociated Parent.",
            "properties": {
              "conditions": {
                "description": "Conditions describes the status of the route with respect to the Gateway.\nNote that the route's availability is also subject to the Gateway's own\nstatus conditions and listener status.\n\nIf the Route's ParentRef specifies an existing Gateway that supports\nRoutes of this kind AND that Gateway's controller has sufficient access,\nthen that Gateway's controller MUST set the \"Accepted\" condition on the\nRoute, to indicate whether the route has been accepted or rejected by the\nGateway, and why.\n\nA Route MUST be considered \"Accepted\" if at least one of the Route's\nrules is implemented by the Gateway.\n\nThere are a number of cases where the \"Accepted\" condition may not be set\ndue to lack of controller visibility, that includes when:\n\n* The Route refers to a nonexistent parent.\n* The Route is of a type that the controller does not support.\n* The Route is in a namespace to which the controller does not have access.\n\n\u003cgateway:util:excludeFromCRD\u003e\n\nNotes for implementors:\n\nConditions are a listType `map`, which means that they function like a\nmap with a key of the `type` field _in the k8s apiserver_.\n\nThis means that implementations must obey some rules when updating this\nsection.\n\n* Implementations MUST perform a read-modify-write cycle on this field\n  before modifying it. That is, when modifying this field, implementations\n  must be confident they have fetched the most recent version of this field,\n  and ensure that changes they make are on that recent version.\n* Implementations MUST NOT remove or reorder Conditions that they are not\n  directly responsible for. For example, if an implementation sees a Condition\n  with type `special.io/SomeField`, it MUST NOT remove, change or update that\n  Condition.\n* Implementations MUST always _merge_ changes into Conditions of the same Type,\n  rather than creating more than one Condition of the same Type.\n* Implementations MUST always update the `observedGeneration` field of the\n  Condition to the `metadata.generation` of the Gateway at the time of update creation.\n* If the `observedGeneration` of a Condition is _greater than_ the value the\n  implementation knows about, then it MUST NOT perform the update on that Condition,\n  but must wait for a future reconciliation and status update. (The assumption is that\n  the implementation's copy of the object is stale and an update will be re-triggered\n  if relevant.)\n\n\u003c/gateway:util:excludeFromCRD\u003e",
                "items": {
                  "additionalProperties": false,
                  "description": "Condition contains details for one aspect of the current state of this API Resource.",
                  "properties": {
                    "lastTransitionTime": {
                      "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "message": {
                      "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                      "maxLength": 32768,
                      "type": "string"
                    },
                    "observedGeneration": {
                      "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                      "format": "int64",
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "reason": {
                      "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                      "maxLength": 1024,
                      "minLength": 1,
                      "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                      "type": "string"
                    },
                    "status": {
                      "description": "status of the condition, one of True, False, Unknown.",
                      "enum": [
                        "True",
                        "False",
                        "Unknown"
                      ],
                      "type": "string"
                    },
                    "type": {
                      "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                      "maxLength": 316,
                      "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "lastTransitionTime",
                    "message",
                    "reason",
                    "status",
                    "type"
                  ],
                  "type": "object"
                },
                "maxItems": 8,
                "minItems": 1,
                "type": "array",
                "x-kubernetes-list-map-keys": [
                  "type"
                ],
                "x-kubernetes-list-type": "map"
              },
              "controllerName": {
                "description": "ControllerName is a domain/path string that indicates the name of the\ncontroller that wrote this status. This corresponds with the\ncontrollerName field on GatewayClass.\n\nExample: \"example.net/gateway-controller\".\n\nThe format of this field is DOMAIN \"/\" PATH, where DOMAIN and PATH are\nvalid Kubernetes names\n(https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names).\n\nControllers MUST populate this field when writing status. Controllers should ensure that\nentries to status populated with their ControllerName are cleaned up when they are no\nlonger necessary.",
                "maxLength": 253,
                "minLength": 1,
                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\\/[A-Za-z0-9\\/\\-._~%!$\u0026'()*+,;=:]+$",
                "type": "string"
              },
              "parentRef": {
                "additionalProperties": false,
                "description": "ParentRef corresponds with a ParentRef in the spec that this\nRouteParentStatus struct describes the status of.",
                "properties": {
                  "group": {
                    "default": "gateway.networking.k8s.io",
                    "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core",
                    "maxLength": 253,
                    "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "kind": {
                    "default": "Gateway",
                    "description": "Kind is kind of the referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.",
                    "maxLength": 63,
                    "minLength": 1,
                    "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "Name is the name of the referent.\n\nSupport: Core",
                    "maxLength": 253,
                    "minLength": 1,
                    "type": "string"
                  },
                  "namespace": {
                    "description": "Namespace of the referent. Defaults to the Route's local namespace. Cross-namespace references must be explicitly allowed, for example via ReferenceGrant. Support: Core",
                    "maxLength": 63,
                    "minLength": 1,
                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "port": {
                    "description": "Port this Route targets on the parent, interpreted per parent kind (for example a Gateway listener port or Service port). Support: Extended",
                    "format": "int32",
                    "maximum": 65535,
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "sectionName": {
                    "description": "Name of a section within the target resource, for example a Gateway Listener name or Service port name. Empty references the entire resource. Support: Core",
                    "maxLength": 253,
                    "minLength": 1,
                    "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "required": [
              "conditions",
              "controllerName",
              "parentRef"
            ],
            "type": "object"
          },
          "maxItems": 16,
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}