/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists } from '../runtime'; /** * IngressTLS describes the transport layer security associated with an ingress. * @export * @interface IoK8sApiNetworkingV1IngressTLS */ export interface IoK8sApiNetworkingV1IngressTLS { /** * hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. * @type {Array} * @memberof IoK8sApiNetworkingV1IngressTLS */ hosts?: Array; /** * secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. * @type {string} * @memberof IoK8sApiNetworkingV1IngressTLS */ secretName?: string; } export function IoK8sApiNetworkingV1IngressTLSFromJSON(json: any): IoK8sApiNetworkingV1IngressTLS { return IoK8sApiNetworkingV1IngressTLSFromJSONTyped(json, false); } export function IoK8sApiNetworkingV1IngressTLSFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiNetworkingV1IngressTLS { if (json === undefined || json === null) { return json; } return { hosts: !exists(json, 'hosts') ? undefined : json['hosts'], secretName: !exists(json, 'secretName') ? undefined : json['secretName'], }; } export function IoK8sApiNetworkingV1IngressTLSToJSON( value?: IoK8sApiNetworkingV1IngressTLS | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { hosts: value.hosts, secretName: value.secretName, }; }