@soft-stech/fleet
Version:
69 lines (68 loc) • 1.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Content = 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.Content";
const schema = {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"fleet.cattle.io/v1alpha1"
]
},
"content": {
"format": "byte",
"nullable": true,
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Content"
]
},
"metadata": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#"
},
{
"type": "null"
}
]
},
"sha256sum": {
"type": "string",
"nullable": true
}
},
"required": [
"apiVersion",
"kind"
]
};
/**
* Content is used internally by Fleet and should not be used directly. It
* contains the resources from a bundle for a specific target cluster.
*/
class Content extends base_1.Model {
constructor(data) {
super({
apiVersion: Content.apiVersion,
kind: Content.kind,
...data
});
}
}
exports.Content = Content;
Content.apiVersion = "fleet.cattle.io/v1alpha1";
Content.kind = "Content";
Content.is = (0, base_1.createTypeMetaGuard)(Content);
(0, base_1.setSchema)(Content, schemaId, () => {
(0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)();
(0, validate_1.register)(schemaId, schema);
});