@finos/legend-graph
Version:
Legend graph and graph manager
80 lines • 3.37 kB
JavaScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
import { createModelSchema, list, optional, primitive } from 'serializr';
export class V1_DataProductArtifactDataProduct {
path;
deploymentId;
description;
title;
static serialization = new SerializationFactory(createModelSchema(V1_DataProductArtifactDataProduct, {
path: primitive(),
deploymentId: primitive(),
description: optional(primitive()),
title: optional(primitive()),
}));
}
export class V1_DataProductArtifactResourceBuilder {
reproducible;
targetEnvironment;
script;
static serialization = new SerializationFactory(createModelSchema(V1_DataProductArtifactResourceBuilder, {
reproducible: primitive(),
targetEnvironment: primitive(),
script: primitive(),
}));
}
export class V1_DataProductArtifactAccessPointImplementation {
id;
resourceBuilder;
static serialization = new SerializationFactory(createModelSchema(V1_DataProductArtifactAccessPointImplementation, {
id: primitive(),
resourceBuilder: usingModelSchema(V1_DataProductArtifactResourceBuilder.serialization.schema),
}));
}
export class V1_DataProductArtifactAccessPointGroup {
id;
description;
accessPointImplementations = [];
static serialization = new SerializationFactory(createModelSchema(V1_DataProductArtifactAccessPointGroup, {
id: primitive(),
description: optional(primitive()),
accessPointImplementations: list(usingModelSchema(V1_DataProductArtifactAccessPointImplementation.serialization.schema)),
}));
}
export class V1_DataProductArtifactGeneration {
dataProduct;
accessPointGroups = [];
static serialization = new SerializationFactory(createModelSchema(V1_DataProductArtifactGeneration, {
dataProduct: usingModelSchema(V1_DataProductArtifactDataProduct.serialization.schema),
accessPointGroups: list(usingModelSchema(V1_DataProductArtifactAccessPointGroup.serialization.schema)),
}));
}
export class V1_DataProductDefinitionAndArtifact {
definition;
artifact;
static serialization = new SerializationFactory(createModelSchema(V1_DataProductDefinitionAndArtifact, {
definition: primitive(),
artifact: usingModelSchema(V1_DataProductArtifactGeneration.serialization.schema),
}));
}
export class V1_SandboxDataProductDeploymentResponse {
deployedDataProducts = [];
static serialization = new SerializationFactory(createModelSchema(V1_SandboxDataProductDeploymentResponse, {
deployedDataProducts: list(usingModelSchema(V1_DataProductDefinitionAndArtifact.serialization.schema)),
}));
}
//# sourceMappingURL=V1_DataProductArtifact.js.map