UNPKG

kubernetes-models

Version:
78 lines (77 loc) 2.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiDiscoveryV1EndpointConditions_1 = require("./IoK8sApiDiscoveryV1EndpointConditions.js"); const IoK8sApiDiscoveryV1EndpointHints_1 = require("./IoK8sApiDiscoveryV1EndpointHints.js"); const IoK8sApiCoreV1ObjectReference_1 = require("./IoK8sApiCoreV1ObjectReference.js"); const schema = { "properties": { "addresses": { "items": { "type": "string" }, "type": "array" }, "conditions": { "oneOf": [ { "$ref": "io.k8s.api.discovery.v1.EndpointConditions#" }, { "type": "null" } ] }, "deprecatedTopology": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true }, "hints": { "oneOf": [ { "$ref": "io.k8s.api.discovery.v1.EndpointHints#" }, { "type": "null" } ] }, "hostname": { "type": "string", "nullable": true }, "nodeName": { "type": "string", "nullable": true }, "targetRef": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ObjectReference#" }, { "type": "null" } ] }, "zone": { "type": "string", "nullable": true } }, "required": [ "addresses" ], "type": "object" }; function addSchema() { (0, IoK8sApiDiscoveryV1EndpointConditions_1.addSchema)(); (0, IoK8sApiDiscoveryV1EndpointHints_1.addSchema)(); (0, IoK8sApiCoreV1ObjectReference_1.addSchema)(); (0, validate_1.register)("io.k8s.api.discovery.v1.Endpoint", schema); } exports.addSchema = addSchema;