UNPKG

@soft-stech/fleet

Version:
95 lines (94 loc) 2.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClusterRegistration = void 0; const IoK8sApimachineryPkgApisMetaV1ObjectMeta_1 = require("@soft-stech/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"); const base_1 = require("@soft-stech/base"); const validate_1 = require("@soft-stech/validate"); const schemaId = "fleet.cattle.io.v1alpha1.ClusterRegistration"; const schema = { "type": "object", "properties": { "apiVersion": { "type": "string", "enum": [ "fleet.cattle.io/v1alpha1" ] }, "kind": { "type": "string", "enum": [ "ClusterRegistration" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "properties": { "clientID": { "nullable": true, "type": "string" }, "clientRandom": { "nullable": true, "type": "string" }, "clusterLabels": { "additionalProperties": { "type": "string" }, "nullable": true, "type": "object", "properties": {} } }, "type": "object", "nullable": true }, "status": { "properties": { "clusterName": { "nullable": true, "type": "string" }, "granted": { "type": "boolean", "nullable": true } }, "type": "object", "nullable": true } }, "required": [ "apiVersion", "kind" ] }; /** * ClusterRegistration is used internally by Fleet and should not be used directly. */ class ClusterRegistration extends base_1.Model { constructor(data) { super({ apiVersion: ClusterRegistration.apiVersion, kind: ClusterRegistration.kind, ...data }); } } exports.ClusterRegistration = ClusterRegistration; ClusterRegistration.apiVersion = "fleet.cattle.io/v1alpha1"; ClusterRegistration.kind = "ClusterRegistration"; ClusterRegistration.is = (0, base_1.createTypeMetaGuard)(ClusterRegistration); (0, base_1.setSchema)(ClusterRegistration, schemaId, () => { (0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)(); (0, validate_1.register)(schemaId, schema); });