Skip to content

Commit

Permalink
autogen(openapi): Regenerate swagger spec and internal client
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 8, 2021
1 parent 883a84f commit 756f19f
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ require (
github.com/sawadashota/encrypta v0.0.2
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.0.0
github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 // indirect
github.com/stretchr/testify v1.6.1
github.com/tidwall/gjson v1.6.7
github.com/toqueteos/webbrowser v1.2.0
Expand Down
3 changes: 3 additions & 0 deletions internal/httpclient/models/plugin_config_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

214 changes: 214 additions & 0 deletions internal/httpclient/models/volume.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,10 @@
"Types"
],
"properties": {
"ProtocolScheme": {
"description": "Protocol to use for clients connecting to the plugin.",
"type": "string"
},
"Socket": {
"description": "socket",
"type": "string"
Expand Down Expand Up @@ -2416,6 +2420,62 @@
"type": "string"
}
},
"Volume": {
"description": "Volume volume",
"type": "object",
"required": [
"Driver",
"Labels",
"Mountpoint",
"Name",
"Options",
"Scope"
],
"properties": {
"CreatedAt": {
"description": "Date/Time the volume was created.",
"type": "string"
},
"Driver": {
"description": "Name of the volume driver used by the volume.",
"type": "string"
},
"Labels": {
"description": "User-defined key/value metadata.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"Mountpoint": {
"description": "Mount path of the volume on the host.",
"type": "string"
},
"Name": {
"description": "Name of the volume.",
"type": "string"
},
"Options": {
"description": "The driver specific options used when creating the volume.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"Scope": {
"description": "The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.",
"type": "string"
},
"Status": {
"description": "Low-level details about the volume, provided by the volume driver.\nDetails are returned as a map with key/value pairs:\n`{\"key\":\"value\",\"key2\":\"value2\"}`.\n\nThe `Status` field is optional, and is omitted if the volume driver\ndoes not support this feature.",
"type": "object",
"additionalProperties": true
},
"UsageData": {
"$ref": "#/definitions/VolumeUsageData"
}
}
},
"VolumeUsageData": {
"description": "VolumeUsageData Usage details about the volume. This information is used by the\n`GET /system/df` endpoint, and omitted in other endpoints.",
"type": "object",
Expand Down

0 comments on commit 756f19f

Please sign in to comment.