Files
gen/openapi/csharp.xml
2018-01-25 21:59:55 -08:00

58 lines
2.9 KiB
XML

<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.kubernetes</groupId>
<artifactId>client-csharp</artifactId>
<version>1.0-SNAPSHOT</version>
<name>client-net</name>
<url>http://kubernetes.io</url>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>generate</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<!--
Assumes 'autorest' is in your PATH
To install: 'sudo npm -g install autorest'
TODO: Containerize this.
-->
<configuration>
<executable>node</executable>
<arguments>
<argument>--max-old-space-size=8192</argument> <!-- fix oom -->
<argument>/usr/bin/autorest</argument>
<argument>--input-file=${generator.spec.path}</argument>
<argument>--csharp</argument>
<argument>--namespace=${generator.package.name}</argument>
<argument>--package-version=${generator.client.version}</argument>
<argument>--output-folder=${generator.output.path}</argument>
<argument>--version=preview</argument>
<argument>--add-credentials</argument>
<argument>--debug</argument>
<argument>--verbose</argument>
<argument>--directive={from: "swagger-document", where: "$..*[?(@.consumes[0] === \"*/*\")]", transform: "$.consumes[0] = \"application/json\""}</argument>
<argument>--directive={from: "swagger-document", where: "$..*[?(@.operationId === \"readNamespacedPodLog\")]", transform: "$.responses[\"200\"].schema = { \"type\": \"object\", \"format\": \"file\" }"}</argument>
<argument>--directive={from: "swagger-document", where: "$..*[?(@[\"x-kubernetes-action\"]=== \"proxy\")]", transform: "$.responses[\"200\"].schema = { \"type\": \"object\", \"format\": \"file\" }"}</argument>
<argument>--directive={from: "swagger-document", where: "$.definitions", transform: "$[\"intstr.IntOrString\"] = {\"properties\": { \"value\": { \"type\": \"string\" }}}"}</argument>
<argument>--directive={from: "swagger-document", where: "$.definitions", transform: "$[\"resource.Quantity\"] = {\"properties\": { \"value\": { \"type\": \"string\" }}}"}</argument>
<argument>--directive={from: "swagger-document", where: "$.definitions", transform: "$[\"v1.Patch\"] = {\"properties\": { \"content\": { \"type\": \"object\" }}}"}</argument>
<argument>--use=@microsoft.azure/autorest.csharp@preview</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>