2016-10-04 11:28:23 -04:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
swagger generate model -f api/swagger.yaml \
|
2019-08-02 09:58:33 -04:00
|
|
|
-t api -m types --skip-validator -C api/swagger-gen.yaml \
|
|
|
|
-n ErrorResponse \
|
|
|
|
-n GraphDriverData \
|
|
|
|
-n IdResponse \
|
|
|
|
-n ImageDeleteResponseItem \
|
|
|
|
-n ImageSummary \
|
2022-03-05 13:57:43 -05:00
|
|
|
-n Plugin \
|
|
|
|
-n PluginDevice \
|
|
|
|
-n PluginMount \
|
|
|
|
-n PluginEnv \
|
|
|
|
-n PluginInterfaceType \
|
2019-08-02 09:58:33 -04:00
|
|
|
-n Port \
|
2022-03-05 13:57:43 -05:00
|
|
|
-n ServiceUpdateResponse
|
2016-10-04 11:40:17 -04:00
|
|
|
|
2022-03-05 11:02:03 -05:00
|
|
|
swagger generate model -f api/swagger.yaml \
|
|
|
|
-t api -m types/container --skip-validator -C api/swagger-gen.yaml \
|
|
|
|
-n ContainerWaitResponse \
|
|
|
|
-n ContainerWaitExitError
|
|
|
|
|
2022-03-05 09:31:04 -05:00
|
|
|
swagger generate model -f api/swagger.yaml \
|
|
|
|
-t api -m types/volume --skip-validator -C api/swagger-gen.yaml \
|
2022-03-05 13:57:43 -05:00
|
|
|
-n Volume \
|
2022-03-05 09:14:27 -05:00
|
|
|
-n VolumeCreateOptions \
|
|
|
|
-n VolumeListResponse
|
2022-03-05 09:31:04 -05:00
|
|
|
|
2016-10-04 11:40:17 -04:00
|
|
|
swagger generate operation -f api/swagger.yaml \
|
2019-08-02 09:58:33 -04:00
|
|
|
-t api -a types -m types -C api/swagger-gen.yaml \
|
|
|
|
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
|
|
|
-n Authenticate \
|
|
|
|
-n ContainerChanges \
|
|
|
|
-n ContainerCreate \
|
|
|
|
-n ContainerTop \
|
|
|
|
-n ContainerUpdate \
|
2022-03-05 09:14:27 -05:00
|
|
|
-n ImageHistory
|