2016-10-04 15:28:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
swagger generate model -f api/swagger.yaml \
|
2019-08-02 13:58:33 +00: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 18:57:43 +00:00
|
|
|
-n Plugin \
|
|
|
|
-n PluginDevice \
|
|
|
|
-n PluginMount \
|
|
|
|
-n PluginEnv \
|
|
|
|
-n PluginInterfaceType \
|
2019-08-02 13:58:33 +00:00
|
|
|
-n Port \
|
2022-03-05 18:57:43 +00:00
|
|
|
-n ServiceUpdateResponse
|
2016-10-04 15:40:17 +00:00
|
|
|
|
2022-03-05 16:02:03 +00:00
|
|
|
swagger generate model -f api/swagger.yaml \
|
|
|
|
-t api -m types/container --skip-validator -C api/swagger-gen.yaml \
|
2022-03-05 22:52:30 +00:00
|
|
|
-n ContainerCreateResponse \
|
2022-03-05 16:02:03 +00:00
|
|
|
-n ContainerWaitResponse \
|
2023-04-16 07:40:24 +00:00
|
|
|
-n ContainerWaitExitError \
|
|
|
|
-n ChangeType \
|
|
|
|
-n FilesystemChange
|
2022-03-05 16:02:03 +00:00
|
|
|
|
2022-03-05 14:31:04 +00:00
|
|
|
swagger generate model -f api/swagger.yaml \
|
|
|
|
-t api -m types/volume --skip-validator -C api/swagger-gen.yaml \
|
2022-03-05 18:57:43 +00:00
|
|
|
-n Volume \
|
2022-03-05 14:14:27 +00:00
|
|
|
-n VolumeCreateOptions \
|
|
|
|
-n VolumeListResponse
|
2022-03-05 14:31:04 +00:00
|
|
|
|
2016-10-04 15:40:17 +00:00
|
|
|
swagger generate operation -f api/swagger.yaml \
|
2019-08-02 13:58:33 +00:00
|
|
|
-t api -a types -m types -C api/swagger-gen.yaml \
|
|
|
|
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
|
|
|
-n Authenticate \
|
|
|
|
-n ContainerTop \
|
|
|
|
-n ContainerUpdate \
|
2022-03-05 14:14:27 +00:00
|
|
|
-n ImageHistory
|