use of com.google.api.codegen.configgen.transformer.DiscoConfigTransformer in project toolkit by googleapis.
the class DiscoConfigGeneratorApi method generateConfig.
private Map<String, Doc> generateConfig(String outputPath) {
Document document = setupDocument();
ViewModel viewModel = new DiscoConfigTransformer().generateConfig(new DiscoApiModel(document, ""), outputPath);
Doc generatedConfig = new CommonSnippetSetRunner(new CommonRenderingUtil()).generate(viewModel);
return ImmutableMap.of(outputPath, generatedConfig);
}
Aggregations