docker-engine-ruby 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/docker_engine_ruby/models/config.rb +6 -6
  5. data/lib/docker_engine_ruby/models/config_create_params.rb +1 -11
  6. data/lib/docker_engine_ruby/models/config_list_params.rb +1 -14
  7. data/lib/docker_engine_ruby/models/config_update_params.rb +1 -7
  8. data/lib/docker_engine_ruby/models/connect_request.rb +5 -5
  9. data/lib/docker_engine_ruby/models/container.rb +61 -143
  10. data/lib/docker_engine_ruby/models/container_archive_params.rb +1 -3
  11. data/lib/docker_engine_ruby/models/container_attach_params.rb +6 -29
  12. data/lib/docker_engine_ruby/models/container_create_params.rb +3 -1701
  13. data/lib/docker_engine_ruby/models/container_delete_params.rb +3 -9
  14. data/lib/docker_engine_ruby/models/container_exec_params.rb +11 -39
  15. data/lib/docker_engine_ruby/models/container_inspect_params.rb +1 -3
  16. data/lib/docker_engine_ruby/models/container_kill_params.rb +1 -6
  17. data/lib/docker_engine_ruby/models/container_list_params.rb +4 -36
  18. data/lib/docker_engine_ruby/models/container_logs_params.rb +7 -25
  19. data/lib/docker_engine_ruby/models/container_prune_params.rb +1 -16
  20. data/lib/docker_engine_ruby/models/container_prune_response.rb +2 -5
  21. data/lib/docker_engine_ruby/models/container_rename_params.rb +1 -3
  22. data/lib/docker_engine_ruby/models/container_resize_params.rb +2 -6
  23. data/lib/docker_engine_ruby/models/container_restart_params.rb +2 -9
  24. data/lib/docker_engine_ruby/models/container_start_params.rb +1 -8
  25. data/lib/docker_engine_ruby/models/container_stats_params.rb +2 -11
  26. data/lib/docker_engine_ruby/models/container_stop_params.rb +2 -9
  27. data/lib/docker_engine_ruby/models/container_top_params.rb +1 -3
  28. data/lib/docker_engine_ruby/models/container_update_params.rb +4 -80
  29. data/lib/docker_engine_ruby/models/container_wait_params.rb +1 -11
  30. data/lib/docker_engine_ruby/models/create_request.rb +17 -121
  31. data/lib/docker_engine_ruby/models/exec_inspect_response.rb +1 -12
  32. data/lib/docker_engine_ruby/models/exec_resize_params.rb +2 -6
  33. data/lib/docker_engine_ruby/models/exec_start_params.rb +3 -9
  34. data/lib/docker_engine_ruby/models/filesystem_change.rb +3 -3
  35. data/lib/docker_engine_ruby/models/image.rb +33 -66
  36. data/lib/docker_engine_ruby/models/image_build_params.rb +25 -122
  37. data/lib/docker_engine_ruby/models/image_build_prune_params.rb +5 -32
  38. data/lib/docker_engine_ruby/models/image_build_prune_response.rb +1 -3
  39. data/lib/docker_engine_ruby/models/image_commit_params.rb +7 -21
  40. data/lib/docker_engine_ruby/models/image_delete_params.rb +3 -14
  41. data/lib/docker_engine_ruby/models/image_get_all_params.rb +2 -13
  42. data/lib/docker_engine_ruby/models/image_get_params.rb +1 -10
  43. data/lib/docker_engine_ruby/models/image_history_params.rb +1 -15
  44. data/lib/docker_engine_ruby/models/image_inspect_params.rb +1 -3
  45. data/lib/docker_engine_ruby/models/image_list_params.rb +5 -29
  46. data/lib/docker_engine_ruby/models/image_load_params.rb +2 -14
  47. data/lib/docker_engine_ruby/models/image_prune_params.rb +1 -16
  48. data/lib/docker_engine_ruby/models/image_prune_response.rb +2 -5
  49. data/lib/docker_engine_ruby/models/image_pull_params.rb +13 -60
  50. data/lib/docker_engine_ruby/models/image_push_params.rb +2 -19
  51. data/lib/docker_engine_ruby/models/image_search_params.rb +3 -16
  52. data/lib/docker_engine_ruby/models/image_search_response.rb +1 -13
  53. data/lib/docker_engine_ruby/models/image_tag_params.rb +2 -6
  54. data/lib/docker_engine_ruby/models/info.rb +24 -53
  55. data/lib/docker_engine_ruby/models/inspect.rb +5 -7
  56. data/lib/docker_engine_ruby/models/list_response.rb +0 -3
  57. data/lib/docker_engine_ruby/models/network.rb +7 -4
  58. data/lib/docker_engine_ruby/models/network_create_params.rb +11 -26
  59. data/lib/docker_engine_ruby/models/network_inspect_params.rb +2 -6
  60. data/lib/docker_engine_ruby/models/network_inspect_response.rb +219 -89
  61. data/lib/docker_engine_ruby/models/network_list_params.rb +1 -21
  62. data/lib/docker_engine_ruby/models/network_prune_params.rb +1 -16
  63. data/lib/docker_engine_ruby/models/network_prune_response.rb +1 -2
  64. data/lib/docker_engine_ruby/models/node.rb +9 -22
  65. data/lib/docker_engine_ruby/models/node_delete_params.rb +1 -3
  66. data/lib/docker_engine_ruby/models/node_list_params.rb +1 -15
  67. data/lib/docker_engine_ruby/models/node_update_params.rb +1 -7
  68. data/lib/docker_engine_ruby/models/plugin.rb +2 -24
  69. data/lib/docker_engine_ruby/models/plugin_create_params.rb +1 -8
  70. data/lib/docker_engine_ruby/models/plugin_delete_params.rb +1 -7
  71. data/lib/docker_engine_ruby/models/plugin_disable_params.rb +1 -6
  72. data/lib/docker_engine_ruby/models/plugin_enable_params.rb +1 -3
  73. data/lib/docker_engine_ruby/models/plugin_list_params.rb +1 -12
  74. data/lib/docker_engine_ruby/models/plugin_privileges_params.rb +1 -7
  75. data/lib/docker_engine_ruby/models/plugin_pull_params.rb +8 -21
  76. data/lib/docker_engine_ruby/models/plugin_set_params.rb +3 -3
  77. data/lib/docker_engine_ruby/models/plugin_upgrade_params.rb +4 -13
  78. data/lib/docker_engine_ruby/models/secret.rb +6 -6
  79. data/lib/docker_engine_ruby/models/secret_create_params.rb +1 -11
  80. data/lib/docker_engine_ruby/models/secret_list_params.rb +1 -14
  81. data/lib/docker_engine_ruby/models/secret_update_params.rb +1 -7
  82. data/lib/docker_engine_ruby/models/service.rb +18 -33
  83. data/lib/docker_engine_ruby/models/service_create_params.rb +1 -15
  84. data/lib/docker_engine_ruby/models/service_inspect_params.rb +1 -3
  85. data/lib/docker_engine_ruby/models/service_list_params.rb +2 -17
  86. data/lib/docker_engine_ruby/models/service_logs_params.rb +7 -25
  87. data/lib/docker_engine_ruby/models/service_update_params.rb +4 -34
  88. data/lib/docker_engine_ruby/models/spec.rb +25 -96
  89. data/lib/docker_engine_ruby/models/stats_response.rb +143 -68
  90. data/lib/docker_engine_ruby/models/summary.rb +12 -32
  91. data/lib/docker_engine_ruby/models/swarm.rb +6 -9
  92. data/lib/docker_engine_ruby/models/swarm_init_params.rb +7 -35
  93. data/lib/docker_engine_ruby/models/swarm_join_params.rb +5 -31
  94. data/lib/docker_engine_ruby/models/swarm_leave_params.rb +1 -7
  95. data/lib/docker_engine_ruby/models/swarm_unlock_key_response.rb +1 -2
  96. data/lib/docker_engine_ruby/models/swarm_unlock_params.rb +1 -3
  97. data/lib/docker_engine_ruby/models/swarm_update_params.rb +4 -16
  98. data/lib/docker_engine_ruby/models/system_data_usage_params.rb +43 -16
  99. data/lib/docker_engine_ruby/models/system_data_usage_response.rb +0 -19
  100. data/lib/docker_engine_ruby/models/system_events_params.rb +3 -29
  101. data/lib/docker_engine_ruby/models/system_events_response.rb +0 -3
  102. data/lib/docker_engine_ruby/models/task.rb +10 -12
  103. data/lib/docker_engine_ruby/models/task_list_params.rb +1 -16
  104. data/lib/docker_engine_ruby/models/task_logs_params.rb +7 -25
  105. data/lib/docker_engine_ruby/models/version.rb +8 -17
  106. data/lib/docker_engine_ruby/models/volume.rb +38 -194
  107. data/lib/docker_engine_ruby/models/volume_delete_params.rb +1 -3
  108. data/lib/docker_engine_ruby/models/volume_list_params.rb +1 -15
  109. data/lib/docker_engine_ruby/models/volume_prune_params.rb +1 -14
  110. data/lib/docker_engine_ruby/models/volume_prune_response.rb +2 -5
  111. data/lib/docker_engine_ruby/models/volume_update_params.rb +18 -127
  112. data/lib/docker_engine_ruby/resources/auth.rb +1 -2
  113. data/lib/docker_engine_ruby/resources/configs.rb +9 -18
  114. data/lib/docker_engine_ruby/resources/containers.rb +88 -337
  115. data/lib/docker_engine_ruby/resources/distribution.rb +2 -3
  116. data/lib/docker_engine_ruby/resources/exec.rb +11 -22
  117. data/lib/docker_engine_ruby/resources/images.rb +98 -228
  118. data/lib/docker_engine_ruby/resources/networks.rb +22 -41
  119. data/lib/docker_engine_ruby/resources/nodes.rb +7 -17
  120. data/lib/docker_engine_ruby/resources/plugins.rb +27 -74
  121. data/lib/docker_engine_ruby/resources/secrets.rb +9 -18
  122. data/lib/docker_engine_ruby/resources/services.rb +23 -52
  123. data/lib/docker_engine_ruby/resources/swarm.rb +26 -38
  124. data/lib/docker_engine_ruby/resources/system.rb +8 -49
  125. data/lib/docker_engine_ruby/resources/tasks.rb +12 -32
  126. data/lib/docker_engine_ruby/resources/volumes.rb +8 -22
  127. data/lib/docker_engine_ruby/version.rb +1 -1
  128. data/rbi/docker_engine_ruby/models/config.rbi +9 -7
  129. data/rbi/docker_engine_ruby/models/config_create_params.rbi +2 -34
  130. data/rbi/docker_engine_ruby/models/config_list_params.rbi +1 -22
  131. data/rbi/docker_engine_ruby/models/config_update_params.rbi +1 -8
  132. data/rbi/docker_engine_ruby/models/connect_request.rbi +7 -12
  133. data/rbi/docker_engine_ruby/models/container.rbi +73 -194
  134. data/rbi/docker_engine_ruby/models/container_archive_params.rbi +1 -6
  135. data/rbi/docker_engine_ruby/models/container_attach_params.rbi +0 -28
  136. data/rbi/docker_engine_ruby/models/container_create_params.rbi +1 -3250
  137. data/rbi/docker_engine_ruby/models/container_delete_params.rbi +1 -12
  138. data/rbi/docker_engine_ruby/models/container_exec_params.rbi +0 -28
  139. data/rbi/docker_engine_ruby/models/container_inspect_params.rbi +1 -6
  140. data/rbi/docker_engine_ruby/models/container_kill_params.rbi +1 -6
  141. data/rbi/docker_engine_ruby/models/container_list_params.rbi +0 -50
  142. data/rbi/docker_engine_ruby/models/container_logs_params.rbi +0 -16
  143. data/rbi/docker_engine_ruby/models/container_prune_params.rbi +1 -26
  144. data/rbi/docker_engine_ruby/models/container_prune_response.rbi +1 -8
  145. data/rbi/docker_engine_ruby/models/container_rename_params.rbi +1 -6
  146. data/rbi/docker_engine_ruby/models/container_resize_params.rbi +1 -9
  147. data/rbi/docker_engine_ruby/models/container_restart_params.rbi +1 -9
  148. data/rbi/docker_engine_ruby/models/container_start_params.rbi +1 -10
  149. data/rbi/docker_engine_ruby/models/container_stats_params.rbi +1 -13
  150. data/rbi/docker_engine_ruby/models/container_stop_params.rbi +1 -9
  151. data/rbi/docker_engine_ruby/models/container_top_params.rbi +1 -6
  152. data/rbi/docker_engine_ruby/models/container_update_params.rbi +1 -170
  153. data/rbi/docker_engine_ruby/models/container_wait_params.rbi +1 -13
  154. data/rbi/docker_engine_ruby/models/create_request.rbi +7 -139
  155. data/rbi/docker_engine_ruby/models/exec_inspect_response.rbi +0 -2
  156. data/rbi/docker_engine_ruby/models/exec_resize_params.rbi +1 -9
  157. data/rbi/docker_engine_ruby/models/exec_start_params.rbi +0 -6
  158. data/rbi/docker_engine_ruby/models/filesystem_change.rbi +10 -13
  159. data/rbi/docker_engine_ruby/models/image.rbi +48 -106
  160. data/rbi/docker_engine_ruby/models/image_build_params.rbi +0 -127
  161. data/rbi/docker_engine_ruby/models/image_build_prune_params.rbi +0 -38
  162. data/rbi/docker_engine_ruby/models/image_build_prune_response.rbi +1 -6
  163. data/rbi/docker_engine_ruby/models/image_commit_params.rbi +0 -14
  164. data/rbi/docker_engine_ruby/models/image_delete_params.rbi +0 -10
  165. data/rbi/docker_engine_ruby/models/image_get_all_params.rbi +1 -17
  166. data/rbi/docker_engine_ruby/models/image_get_params.rbi +1 -14
  167. data/rbi/docker_engine_ruby/models/image_history_params.rbi +1 -24
  168. data/rbi/docker_engine_ruby/models/image_inspect_params.rbi +1 -6
  169. data/rbi/docker_engine_ruby/models/image_list_params.rbi +0 -32
  170. data/rbi/docker_engine_ruby/models/image_load_params.rbi +1 -18
  171. data/rbi/docker_engine_ruby/models/image_prune_params.rbi +1 -26
  172. data/rbi/docker_engine_ruby/models/image_prune_response.rbi +1 -8
  173. data/rbi/docker_engine_ruby/models/image_pull_params.rbi +6 -79
  174. data/rbi/docker_engine_ruby/models/image_push_params.rbi +0 -22
  175. data/rbi/docker_engine_ruby/models/image_search_params.rbi +1 -20
  176. data/rbi/docker_engine_ruby/models/image_search_response.rbi +0 -10
  177. data/rbi/docker_engine_ruby/models/image_tag_params.rbi +1 -9
  178. data/rbi/docker_engine_ruby/models/info.rbi +29 -76
  179. data/rbi/docker_engine_ruby/models/inspect.rbi +6 -12
  180. data/rbi/docker_engine_ruby/models/network.rbi +7 -4
  181. data/rbi/docker_engine_ruby/models/network_create_params.rbi +0 -30
  182. data/rbi/docker_engine_ruby/models/network_inspect_params.rbi +1 -9
  183. data/rbi/docker_engine_ruby/models/network_inspect_response.rbi +345 -198
  184. data/rbi/docker_engine_ruby/models/network_list_params.rbi +1 -36
  185. data/rbi/docker_engine_ruby/models/network_prune_params.rbi +1 -26
  186. data/rbi/docker_engine_ruby/models/network_prune_response.rbi +1 -5
  187. data/rbi/docker_engine_ruby/models/node.rbi +11 -17
  188. data/rbi/docker_engine_ruby/models/node_delete_params.rbi +1 -6
  189. data/rbi/docker_engine_ruby/models/node_list_params.rbi +1 -24
  190. data/rbi/docker_engine_ruby/models/node_update_params.rbi +1 -8
  191. data/rbi/docker_engine_ruby/models/plugin.rbi +1 -11
  192. data/rbi/docker_engine_ruby/models/plugin_create_params.rbi +1 -9
  193. data/rbi/docker_engine_ruby/models/plugin_delete_params.rbi +1 -8
  194. data/rbi/docker_engine_ruby/models/plugin_disable_params.rbi +1 -6
  195. data/rbi/docker_engine_ruby/models/plugin_enable_params.rbi +1 -6
  196. data/rbi/docker_engine_ruby/models/plugin_list_params.rbi +1 -18
  197. data/rbi/docker_engine_ruby/models/plugin_privileges_params.rbi +1 -8
  198. data/rbi/docker_engine_ruby/models/plugin_pull_params.rbi +6 -21
  199. data/rbi/docker_engine_ruby/models/plugin_set_params.rbi +3 -6
  200. data/rbi/docker_engine_ruby/models/plugin_upgrade_params.rbi +3 -17
  201. data/rbi/docker_engine_ruby/models/secret.rbi +8 -8
  202. data/rbi/docker_engine_ruby/models/secret_create_params.rbi +2 -34
  203. data/rbi/docker_engine_ruby/models/secret_list_params.rbi +1 -22
  204. data/rbi/docker_engine_ruby/models/secret_update_params.rbi +1 -8
  205. data/rbi/docker_engine_ruby/models/service.rbi +20 -40
  206. data/rbi/docker_engine_ruby/models/service_create_params.rbi +1 -36
  207. data/rbi/docker_engine_ruby/models/service_inspect_params.rbi +1 -6
  208. data/rbi/docker_engine_ruby/models/service_list_params.rbi +1 -25
  209. data/rbi/docker_engine_ruby/models/service_logs_params.rbi +0 -16
  210. data/rbi/docker_engine_ruby/models/service_update_params.rbi +0 -50
  211. data/rbi/docker_engine_ruby/models/spec.rbi +9 -82
  212. data/rbi/docker_engine_ruby/models/stats_response.rbi +213 -141
  213. data/rbi/docker_engine_ruby/models/summary.rbi +16 -53
  214. data/rbi/docker_engine_ruby/models/swarm.rbi +8 -8
  215. data/rbi/docker_engine_ruby/models/swarm_init_params.rbi +0 -50
  216. data/rbi/docker_engine_ruby/models/swarm_join_params.rbi +0 -36
  217. data/rbi/docker_engine_ruby/models/swarm_leave_params.rbi +1 -8
  218. data/rbi/docker_engine_ruby/models/swarm_unlock_key_response.rbi +1 -5
  219. data/rbi/docker_engine_ruby/models/swarm_unlock_params.rbi +1 -6
  220. data/rbi/docker_engine_ruby/models/swarm_update_params.rbi +0 -10
  221. data/rbi/docker_engine_ruby/models/system_data_usage_params.rbi +79 -27
  222. data/rbi/docker_engine_ruby/models/system_events_params.rbi +1 -46
  223. data/rbi/docker_engine_ruby/models/task.rbi +12 -16
  224. data/rbi/docker_engine_ruby/models/task_list_params.rbi +1 -26
  225. data/rbi/docker_engine_ruby/models/task_logs_params.rbi +0 -16
  226. data/rbi/docker_engine_ruby/models/version.rbi +8 -22
  227. data/rbi/docker_engine_ruby/models/volume.rbi +25 -225
  228. data/rbi/docker_engine_ruby/models/volume_delete_params.rbi +1 -6
  229. data/rbi/docker_engine_ruby/models/volume_list_params.rbi +1 -24
  230. data/rbi/docker_engine_ruby/models/volume_prune_params.rbi +1 -22
  231. data/rbi/docker_engine_ruby/models/volume_prune_response.rbi +1 -8
  232. data/rbi/docker_engine_ruby/models/volume_update_params.rbi +7 -143
  233. data/rbi/docker_engine_ruby/resources/auth.rbi +1 -2
  234. data/rbi/docker_engine_ruby/resources/configs.rbi +8 -29
  235. data/rbi/docker_engine_ruby/resources/containers.rbi +36 -388
  236. data/rbi/docker_engine_ruby/resources/distribution.rbi +2 -6
  237. data/rbi/docker_engine_ruby/resources/exec.rbi +5 -24
  238. data/rbi/docker_engine_ruby/resources/images.rbi +72 -365
  239. data/rbi/docker_engine_ruby/resources/networks.rbi +7 -76
  240. data/rbi/docker_engine_ruby/resources/nodes.rbi +6 -30
  241. data/rbi/docker_engine_ruby/resources/plugins.rbi +22 -91
  242. data/rbi/docker_engine_ruby/resources/secrets.rbi +8 -29
  243. data/rbi/docker_engine_ruby/resources/services.rbi +12 -60
  244. data/rbi/docker_engine_ruby/resources/swarm.rbi +6 -59
  245. data/rbi/docker_engine_ruby/resources/system.rbi +11 -66
  246. data/rbi/docker_engine_ruby/resources/tasks.rbi +3 -34
  247. data/rbi/docker_engine_ruby/resources/volumes.rbi +7 -43
  248. data/sig/docker_engine_ruby/models/config.rbs +11 -9
  249. data/sig/docker_engine_ruby/models/config_create_params.rbs +3 -24
  250. data/sig/docker_engine_ruby/models/connect_request.rbs +12 -12
  251. data/sig/docker_engine_ruby/models/container.rbs +62 -62
  252. data/sig/docker_engine_ruby/models/container_create_params.rbs +1 -1321
  253. data/sig/docker_engine_ruby/models/container_update_params.rbs +0 -51
  254. data/sig/docker_engine_ruby/models/create_request.rbs +5 -5
  255. data/sig/docker_engine_ruby/models/filesystem_change.rbs +1 -1
  256. data/sig/docker_engine_ruby/models/image.rbs +51 -53
  257. data/sig/docker_engine_ruby/models/image_pull_params.rbs +5 -7
  258. data/sig/docker_engine_ruby/models/info.rbs +54 -36
  259. data/sig/docker_engine_ruby/models/inspect.rbs +12 -8
  260. data/sig/docker_engine_ruby/models/network.rbs +5 -5
  261. data/sig/docker_engine_ruby/models/network_inspect_response.rbs +179 -90
  262. data/sig/docker_engine_ruby/models/node.rbs +18 -14
  263. data/sig/docker_engine_ruby/models/plugin_pull_params.rbs +5 -9
  264. data/sig/docker_engine_ruby/models/plugin_set_params.rbs +2 -4
  265. data/sig/docker_engine_ruby/models/plugin_upgrade_params.rbs +2 -6
  266. data/sig/docker_engine_ruby/models/secret.rbs +10 -10
  267. data/sig/docker_engine_ruby/models/secret_create_params.rbs +3 -24
  268. data/sig/docker_engine_ruby/models/service.rbs +25 -25
  269. data/sig/docker_engine_ruby/models/service_create_params.rbs +1 -16
  270. data/sig/docker_engine_ruby/models/service_update_params.rbs +0 -13
  271. data/sig/docker_engine_ruby/models/spec.rbs +10 -10
  272. data/sig/docker_engine_ruby/models/stats_response.rbs +188 -74
  273. data/sig/docker_engine_ruby/models/summary.rbs +20 -16
  274. data/sig/docker_engine_ruby/models/swarm.rbs +10 -10
  275. data/sig/docker_engine_ruby/models/system_data_usage_params.rbs +25 -10
  276. data/sig/docker_engine_ruby/models/task.rbs +15 -15
  277. data/sig/docker_engine_ruby/models/version.rbs +13 -4
  278. data/sig/docker_engine_ruby/models/volume.rbs +27 -25
  279. data/sig/docker_engine_ruby/models/volume_update_params.rbs +5 -5
  280. data/sig/docker_engine_ruby/resources/configs.rbs +2 -2
  281. data/sig/docker_engine_ruby/resources/containers.rbs +1 -2
  282. data/sig/docker_engine_ruby/resources/images.rbs +3 -3
  283. data/sig/docker_engine_ruby/resources/networks.rbs +1 -1
  284. data/sig/docker_engine_ruby/resources/nodes.rbs +1 -1
  285. data/sig/docker_engine_ruby/resources/plugins.rbs +3 -3
  286. data/sig/docker_engine_ruby/resources/secrets.rbs +2 -2
  287. data/sig/docker_engine_ruby/resources/services.rbs +2 -2
  288. data/sig/docker_engine_ruby/resources/system.rbs +1 -1
  289. metadata +1 -1
@@ -20,13 +20,13 @@ module DockerEngineRuby
20
20
  # This type is only populated on Linux and omitted for Windows containers.
21
21
  #
22
22
  # @return [DockerEngineRuby::Models::StatsResponse::BlkioStats, nil]
23
- optional :blkio_stats, -> { DockerEngineRuby::StatsResponse::BlkioStats }, nil?: true
23
+ optional :blkio_stats, -> { DockerEngineRuby::StatsResponse::BlkioStats }
24
24
 
25
25
  # @!attribute cpu_stats
26
26
  # CPU related info of the container
27
27
  #
28
28
  # @return [DockerEngineRuby::Models::StatsResponse::CPUStats, nil]
29
- optional :cpu_stats, -> { DockerEngineRuby::StatsResponse::CPUStats }, nil?: true
29
+ optional :cpu_stats, -> { DockerEngineRuby::StatsResponse::CPUStats }
30
30
 
31
31
  # @!attribute memory_stats
32
32
  # Aggregates all memory stats since container inception on Linux. Windows returns
@@ -46,8 +46,10 @@ module DockerEngineRuby
46
46
  #
47
47
  # This field is omitted if the container has no networking enabled.
48
48
  #
49
- # @return [Object, nil]
50
- optional :networks, DockerEngineRuby::Internal::Type::Unknown, nil?: true
49
+ # @return [Hash{Symbol=>DockerEngineRuby::Models::StatsResponse::Network}, nil]
50
+ optional :networks,
51
+ -> { DockerEngineRuby::Internal::Type::HashOf[DockerEngineRuby::StatsResponse::Network] },
52
+ nil?: true
51
53
 
52
54
  # @!attribute num_procs
53
55
  # The number of processors on the system.
@@ -70,13 +72,13 @@ module DockerEngineRuby
70
72
  # This type is Linux-specific and omitted for Windows containers.
71
73
  #
72
74
  # @return [DockerEngineRuby::Models::StatsResponse::PidsStats, nil]
73
- optional :pids_stats, -> { DockerEngineRuby::StatsResponse::PidsStats }, nil?: true
75
+ optional :pids_stats, -> { DockerEngineRuby::StatsResponse::PidsStats }
74
76
 
75
77
  # @!attribute precpu_stats
76
78
  # CPU related info of the container
77
79
  #
78
80
  # @return [DockerEngineRuby::Models::StatsResponse::PrecpuStats, nil]
79
- optional :precpu_stats, -> { DockerEngineRuby::StatsResponse::PrecpuStats }, nil?: true
81
+ optional :precpu_stats, -> { DockerEngineRuby::StatsResponse::PrecpuStats }
80
82
 
81
83
  # @!attribute preread
82
84
  # Date and time at which this first sample was collected. This field is not
@@ -103,7 +105,7 @@ module DockerEngineRuby
103
105
  # This type is Windows-specific and omitted for Linux containers.
104
106
  #
105
107
  # @return [DockerEngineRuby::Models::StatsResponse::StorageStats, nil]
106
- optional :storage_stats, -> { DockerEngineRuby::StatsResponse::StorageStats }, nil?: true
108
+ optional :storage_stats, -> { DockerEngineRuby::StatsResponse::StorageStats }
107
109
 
108
110
  # @!method initialize(id: nil, blkio_stats: nil, cpu_stats: nil, memory_stats: nil, name: nil, networks: nil, num_procs: nil, os_type: nil, pids_stats: nil, precpu_stats: nil, preread: nil, read: nil, storage_stats: nil)
109
111
  # Some parameter documentations has been truncated, see
@@ -113,29 +115,29 @@ module DockerEngineRuby
113
115
  #
114
116
  # @param id [String, nil] ID of the container for which the stats were collected.
115
117
  #
116
- # @param blkio_stats [DockerEngineRuby::Models::StatsResponse::BlkioStats, nil] BlkioStats stores all IO service stats for data read and write.
118
+ # @param blkio_stats [DockerEngineRuby::Models::StatsResponse::BlkioStats] BlkioStats stores all IO service stats for data read and write.
117
119
  #
118
- # @param cpu_stats [DockerEngineRuby::Models::StatsResponse::CPUStats, nil] CPU related info of the container
120
+ # @param cpu_stats [DockerEngineRuby::Models::StatsResponse::CPUStats] CPU related info of the container
119
121
  #
120
122
  # @param memory_stats [DockerEngineRuby::Models::StatsResponse::MemoryStats] Aggregates all memory stats since container inception on Linux.
121
123
  #
122
124
  # @param name [String, nil] Name of the container for which the stats were collected.
123
125
  #
124
- # @param networks [Object, nil] Network statistics for the container per interface.
126
+ # @param networks [Hash{Symbol=>DockerEngineRuby::Models::StatsResponse::Network}, nil] Network statistics for the container per interface.
125
127
  #
126
128
  # @param num_procs [Integer] The number of processors on the system.
127
129
  #
128
130
  # @param os_type [String, nil] OSType is the OS of the container ("linux" or "windows") to allow
129
131
  #
130
- # @param pids_stats [DockerEngineRuby::Models::StatsResponse::PidsStats, nil] PidsStats contains Linux-specific stats of a container's process-IDs (PIDs).
132
+ # @param pids_stats [DockerEngineRuby::Models::StatsResponse::PidsStats] PidsStats contains Linux-specific stats of a container's process-IDs (PIDs).
131
133
  #
132
- # @param precpu_stats [DockerEngineRuby::Models::StatsResponse::PrecpuStats, nil] CPU related info of the container
134
+ # @param precpu_stats [DockerEngineRuby::Models::StatsResponse::PrecpuStats] CPU related info of the container
133
135
  #
134
136
  # @param preread [Time] Date and time at which this first sample was collected. This field
135
137
  #
136
138
  # @param read [Time] Date and time at which this sample was collected.
137
139
  #
138
- # @param storage_stats [DockerEngineRuby::Models::StatsResponse::StorageStats, nil] StorageStats is the disk I/O stats for read/write on Windows.
140
+ # @param storage_stats [DockerEngineRuby::Models::StatsResponse::StorageStats] StorageStats is the disk I/O stats for read/write on Windows.
139
141
 
140
142
  # @see DockerEngineRuby::Models::StatsResponse#blkio_stats
141
143
  class BlkioStats < DockerEngineRuby::Internal::Type::BaseModel
@@ -143,11 +145,10 @@ module DockerEngineRuby
143
145
  # This field is only available when using Linux containers with cgroups v1. It is
144
146
  # omitted or `null` when using cgroups v2.
145
147
  #
146
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoMergedRecursive, nil>, nil]
148
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoMergedRecursive>, nil]
147
149
  optional :io_merged_recursive,
148
150
  -> {
149
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoMergedRecursive,
150
- nil?: true]
151
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoMergedRecursive]
151
152
  },
152
153
  nil?: true
153
154
 
@@ -155,29 +156,27 @@ module DockerEngineRuby
155
156
  # This field is only available when using Linux containers with cgroups v1. It is
156
157
  # omitted or `null` when using cgroups v2.
157
158
  #
158
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoQueueRecursive, nil>, nil]
159
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoQueueRecursive>, nil]
159
160
  optional :io_queue_recursive,
160
161
  -> {
161
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoQueueRecursive,
162
- nil?: true]
162
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoQueueRecursive]
163
163
  },
164
164
  nil?: true
165
165
 
166
166
  # @!attribute io_service_bytes_recursive
167
167
  #
168
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceBytesRecursive, nil>, nil]
168
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceBytesRecursive>, nil]
169
169
  optional :io_service_bytes_recursive,
170
- -> { DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServiceBytesRecursive, nil?: true] }
170
+ -> { DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServiceBytesRecursive] }
171
171
 
172
172
  # @!attribute io_service_time_recursive
173
173
  # This field is only available when using Linux containers with cgroups v1. It is
174
174
  # omitted or `null` when using cgroups v2.
175
175
  #
176
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceTimeRecursive, nil>, nil]
176
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceTimeRecursive>, nil]
177
177
  optional :io_service_time_recursive,
178
178
  -> {
179
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServiceTimeRecursive,
180
- nil?: true]
179
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServiceTimeRecursive]
181
180
  },
182
181
  nil?: true
183
182
 
@@ -185,11 +184,10 @@ module DockerEngineRuby
185
184
  # This field is only available when using Linux containers with cgroups v1. It is
186
185
  # omitted or `null` when using cgroups v2.
187
186
  #
188
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServicedRecursive, nil>, nil]
187
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServicedRecursive>, nil]
189
188
  optional :io_serviced_recursive,
190
189
  -> {
191
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServicedRecursive,
192
- nil?: true]
190
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoServicedRecursive]
193
191
  },
194
192
  nil?: true
195
193
 
@@ -197,11 +195,10 @@ module DockerEngineRuby
197
195
  # This field is only available when using Linux containers with cgroups v1. It is
198
196
  # omitted or `null` when using cgroups v2.
199
197
  #
200
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoTimeRecursive, nil>, nil]
198
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoTimeRecursive>, nil]
201
199
  optional :io_time_recursive,
202
200
  -> {
203
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoTimeRecursive,
204
- nil?: true]
201
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoTimeRecursive]
205
202
  },
206
203
  nil?: true
207
204
 
@@ -209,11 +206,10 @@ module DockerEngineRuby
209
206
  # This field is only available when using Linux containers with cgroups v1. It is
210
207
  # omitted or `null` when using cgroups v2.
211
208
  #
212
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoWaitTimeRecursive, nil>, nil]
209
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoWaitTimeRecursive>, nil]
213
210
  optional :io_wait_time_recursive,
214
211
  -> {
215
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoWaitTimeRecursive,
216
- nil?: true]
212
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::IoWaitTimeRecursive]
217
213
  },
218
214
  nil?: true
219
215
 
@@ -221,11 +217,10 @@ module DockerEngineRuby
221
217
  # This field is only available when using Linux containers with cgroups v1. It is
222
218
  # omitted or `null` when using cgroups v2.
223
219
  #
224
- # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::SectorsRecursive, nil>, nil]
220
+ # @return [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::SectorsRecursive>, nil]
225
221
  optional :sectors_recursive,
226
222
  -> {
227
- DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::SectorsRecursive,
228
- nil?: true]
223
+ DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::StatsResponse::BlkioStats::SectorsRecursive]
229
224
  },
230
225
  nil?: true
231
226
 
@@ -241,21 +236,21 @@ module DockerEngineRuby
241
236
  #
242
237
  # This type is only populated on Linux and omitted for Windows containers.
243
238
  #
244
- # @param io_merged_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoMergedRecursive, nil>, nil] This field is only available when using Linux containers with
239
+ # @param io_merged_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoMergedRecursive>, nil] This field is only available when using Linux containers with
245
240
  #
246
- # @param io_queue_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoQueueRecursive, nil>, nil] This field is only available when using Linux containers with
241
+ # @param io_queue_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoQueueRecursive>, nil] This field is only available when using Linux containers with
247
242
  #
248
- # @param io_service_bytes_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceBytesRecursive, nil>]
243
+ # @param io_service_bytes_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceBytesRecursive>]
249
244
  #
250
- # @param io_service_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceTimeRecursive, nil>, nil] This field is only available when using Linux containers with
245
+ # @param io_service_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServiceTimeRecursive>, nil] This field is only available when using Linux containers with
251
246
  #
252
- # @param io_serviced_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServicedRecursive, nil>, nil] This field is only available when using Linux containers with
247
+ # @param io_serviced_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoServicedRecursive>, nil] This field is only available when using Linux containers with
253
248
  #
254
- # @param io_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoTimeRecursive, nil>, nil] This field is only available when using Linux containers with
249
+ # @param io_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoTimeRecursive>, nil] This field is only available when using Linux containers with
255
250
  #
256
- # @param io_wait_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoWaitTimeRecursive, nil>, nil] This field is only available when using Linux containers with
251
+ # @param io_wait_time_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::IoWaitTimeRecursive>, nil] This field is only available when using Linux containers with
257
252
  #
258
- # @param sectors_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::SectorsRecursive, nil>, nil] This field is only available when using Linux containers with
253
+ # @param sectors_recursive [Array<DockerEngineRuby::Models::StatsResponse::BlkioStats::SectorsRecursive>, nil] This field is only available when using Linux containers with
259
254
 
260
255
  class IoMergedRecursive < DockerEngineRuby::Internal::Type::BaseModel
261
256
  # @!attribute major
@@ -520,7 +515,7 @@ module DockerEngineRuby
520
515
  # All CPU stats aggregated since container inception.
521
516
  #
522
517
  # @return [DockerEngineRuby::Models::StatsResponse::CPUStats::CPUUsage, nil]
523
- optional :cpu_usage, -> { DockerEngineRuby::StatsResponse::CPUStats::CPUUsage }, nil?: true
518
+ optional :cpu_usage, -> { DockerEngineRuby::StatsResponse::CPUStats::CPUUsage }
524
519
 
525
520
  # @!attribute online_cpus
526
521
  # Number of online CPUs.
@@ -544,11 +539,7 @@ module DockerEngineRuby
544
539
  # This type is Linux-specific and omitted for Windows containers.
545
540
  #
546
541
  # @return [DockerEngineRuby::Models::StatsResponse::CPUStats::ThrottlingData, nil]
547
- optional :throttling_data,
548
- -> {
549
- DockerEngineRuby::StatsResponse::CPUStats::ThrottlingData
550
- },
551
- nil?: true
542
+ optional :throttling_data, -> { DockerEngineRuby::StatsResponse::CPUStats::ThrottlingData }
552
543
 
553
544
  # @!method initialize(cpu_usage: nil, online_cpus: nil, system_cpu_usage: nil, throttling_data: nil)
554
545
  # Some parameter documentations has been truncated, see
@@ -556,13 +547,13 @@ module DockerEngineRuby
556
547
  #
557
548
  # CPU related info of the container
558
549
  #
559
- # @param cpu_usage [DockerEngineRuby::Models::StatsResponse::CPUStats::CPUUsage, nil] All CPU stats aggregated since container inception.
550
+ # @param cpu_usage [DockerEngineRuby::Models::StatsResponse::CPUStats::CPUUsage] All CPU stats aggregated since container inception.
560
551
  #
561
552
  # @param online_cpus [Integer, nil] Number of online CPUs.
562
553
  #
563
554
  # @param system_cpu_usage [Integer, nil] System Usage.
564
555
  #
565
- # @param throttling_data [DockerEngineRuby::Models::StatsResponse::CPUStats::ThrottlingData, nil] CPU throttling stats of the container.
556
+ # @param throttling_data [DockerEngineRuby::Models::StatsResponse::CPUStats::ThrottlingData] CPU throttling stats of the container.
566
557
 
567
558
  # @see DockerEngineRuby::Models::StatsResponse::CPUStats#cpu_usage
568
559
  class CPUUsage < DockerEngineRuby::Internal::Type::BaseModel
@@ -638,10 +629,6 @@ module DockerEngineRuby
638
629
  optional :throttled_time, Integer
639
630
 
640
631
  # @!method initialize(periods: nil, throttled_periods: nil, throttled_time: nil)
641
- # Some parameter documentations has been truncated, see
642
- # {DockerEngineRuby::Models::StatsResponse::CPUStats::ThrottlingData} for more
643
- # details.
644
- #
645
632
  # CPU throttling stats of the container.
646
633
  #
647
634
  # This type is Linux-specific and omitted for Windows containers.
@@ -748,6 +735,102 @@ module DockerEngineRuby
748
735
  # @param usage [Integer, nil] Current `res_counter` usage for memory.
749
736
  end
750
737
 
738
+ class Network < DockerEngineRuby::Internal::Type::BaseModel
739
+ # @!attribute endpoint_id
740
+ # Endpoint ID. Not used on Linux.
741
+ #
742
+ # This field is Windows-specific and omitted for Linux containers.
743
+ #
744
+ # @return [String, nil]
745
+ optional :endpoint_id, String, nil?: true
746
+
747
+ # @!attribute instance_id
748
+ # Instance ID. Not used on Linux.
749
+ #
750
+ # This field is Windows-specific and omitted for Linux containers.
751
+ #
752
+ # @return [String, nil]
753
+ optional :instance_id, String, nil?: true
754
+
755
+ # @!attribute rx_bytes
756
+ # Bytes received. Windows and Linux.
757
+ #
758
+ # @return [Integer, nil]
759
+ optional :rx_bytes, Integer
760
+
761
+ # @!attribute rx_dropped
762
+ # Incoming packets dropped. Windows and Linux.
763
+ #
764
+ # @return [Integer, nil]
765
+ optional :rx_dropped, Integer
766
+
767
+ # @!attribute rx_errors
768
+ # Received errors. Not used on Windows.
769
+ #
770
+ # This field is Linux-specific and always zero for Windows containers.
771
+ #
772
+ # @return [Integer, nil]
773
+ optional :rx_errors, Integer
774
+
775
+ # @!attribute rx_packets
776
+ # Packets received. Windows and Linux.
777
+ #
778
+ # @return [Integer, nil]
779
+ optional :rx_packets, Integer
780
+
781
+ # @!attribute tx_bytes
782
+ # Bytes sent. Windows and Linux.
783
+ #
784
+ # @return [Integer, nil]
785
+ optional :tx_bytes, Integer
786
+
787
+ # @!attribute tx_dropped
788
+ # Outgoing packets dropped. Windows and Linux.
789
+ #
790
+ # @return [Integer, nil]
791
+ optional :tx_dropped, Integer
792
+
793
+ # @!attribute tx_errors
794
+ # Sent errors. Not used on Windows.
795
+ #
796
+ # This field is Linux-specific and always zero for Windows containers.
797
+ #
798
+ # @return [Integer, nil]
799
+ optional :tx_errors, Integer
800
+
801
+ # @!attribute tx_packets
802
+ # Packets sent. Windows and Linux.
803
+ #
804
+ # @return [Integer, nil]
805
+ optional :tx_packets, Integer
806
+
807
+ # @!method initialize(endpoint_id: nil, instance_id: nil, rx_bytes: nil, rx_dropped: nil, rx_errors: nil, rx_packets: nil, tx_bytes: nil, tx_dropped: nil, tx_errors: nil, tx_packets: nil)
808
+ # Some parameter documentations has been truncated, see
809
+ # {DockerEngineRuby::Models::StatsResponse::Network} for more details.
810
+ #
811
+ # Aggregates the network stats of one container
812
+ #
813
+ # @param endpoint_id [String, nil] Endpoint ID. Not used on Linux.
814
+ #
815
+ # @param instance_id [String, nil] Instance ID. Not used on Linux.
816
+ #
817
+ # @param rx_bytes [Integer] Bytes received. Windows and Linux.
818
+ #
819
+ # @param rx_dropped [Integer] Incoming packets dropped. Windows and Linux.
820
+ #
821
+ # @param rx_errors [Integer] Received errors. Not used on Windows.
822
+ #
823
+ # @param rx_packets [Integer] Packets received. Windows and Linux.
824
+ #
825
+ # @param tx_bytes [Integer] Bytes sent. Windows and Linux.
826
+ #
827
+ # @param tx_dropped [Integer] Outgoing packets dropped. Windows and Linux.
828
+ #
829
+ # @param tx_errors [Integer] Sent errors. Not used on Windows.
830
+ #
831
+ # @param tx_packets [Integer] Packets sent. Windows and Linux.
832
+ end
833
+
751
834
  # @see DockerEngineRuby::Models::StatsResponse#pids_stats
752
835
  class PidsStats < DockerEngineRuby::Internal::Type::BaseModel
753
836
  # @!attribute current
@@ -782,7 +865,7 @@ module DockerEngineRuby
782
865
  # All CPU stats aggregated since container inception.
783
866
  #
784
867
  # @return [DockerEngineRuby::Models::StatsResponse::PrecpuStats::CPUUsage, nil]
785
- optional :cpu_usage, -> { DockerEngineRuby::StatsResponse::PrecpuStats::CPUUsage }, nil?: true
868
+ optional :cpu_usage, -> { DockerEngineRuby::StatsResponse::PrecpuStats::CPUUsage }
786
869
 
787
870
  # @!attribute online_cpus
788
871
  # Number of online CPUs.
@@ -806,11 +889,7 @@ module DockerEngineRuby
806
889
  # This type is Linux-specific and omitted for Windows containers.
807
890
  #
808
891
  # @return [DockerEngineRuby::Models::StatsResponse::PrecpuStats::ThrottlingData, nil]
809
- optional :throttling_data,
810
- -> {
811
- DockerEngineRuby::StatsResponse::PrecpuStats::ThrottlingData
812
- },
813
- nil?: true
892
+ optional :throttling_data, -> { DockerEngineRuby::StatsResponse::PrecpuStats::ThrottlingData }
814
893
 
815
894
  # @!method initialize(cpu_usage: nil, online_cpus: nil, system_cpu_usage: nil, throttling_data: nil)
816
895
  # Some parameter documentations has been truncated, see
@@ -818,13 +897,13 @@ module DockerEngineRuby
818
897
  #
819
898
  # CPU related info of the container
820
899
  #
821
- # @param cpu_usage [DockerEngineRuby::Models::StatsResponse::PrecpuStats::CPUUsage, nil] All CPU stats aggregated since container inception.
900
+ # @param cpu_usage [DockerEngineRuby::Models::StatsResponse::PrecpuStats::CPUUsage] All CPU stats aggregated since container inception.
822
901
  #
823
902
  # @param online_cpus [Integer, nil] Number of online CPUs.
824
903
  #
825
904
  # @param system_cpu_usage [Integer, nil] System Usage.
826
905
  #
827
- # @param throttling_data [DockerEngineRuby::Models::StatsResponse::PrecpuStats::ThrottlingData, nil] CPU throttling stats of the container.
906
+ # @param throttling_data [DockerEngineRuby::Models::StatsResponse::PrecpuStats::ThrottlingData] CPU throttling stats of the container.
828
907
 
829
908
  # @see DockerEngineRuby::Models::StatsResponse::PrecpuStats#cpu_usage
830
909
  class CPUUsage < DockerEngineRuby::Internal::Type::BaseModel
@@ -901,10 +980,6 @@ module DockerEngineRuby
901
980
  optional :throttled_time, Integer
902
981
 
903
982
  # @!method initialize(periods: nil, throttled_periods: nil, throttled_time: nil)
904
- # Some parameter documentations has been truncated, see
905
- # {DockerEngineRuby::Models::StatsResponse::PrecpuStats::ThrottlingData} for more
906
- # details.
907
- #
908
983
  # CPU throttling stats of the container.
909
984
  #
910
985
  # This type is Linux-specific and omitted for Windows containers.
@@ -72,7 +72,8 @@ module DockerEngineRuby
72
72
  # @return [DockerEngineRuby::Models::Summary::ImageManifestDescriptor, nil]
73
73
  optional :image_manifest_descriptor,
74
74
  -> { DockerEngineRuby::Summary::ImageManifestDescriptor },
75
- api_name: :ImageManifestDescriptor
75
+ api_name: :ImageManifestDescriptor,
76
+ nil?: true
76
77
 
77
78
  # @!attribute labels
78
79
  # User-defined key/value metadata.
@@ -164,7 +165,7 @@ module DockerEngineRuby
164
165
  #
165
166
  # @param image_id [String] The ID (digest) of the image that this container was created from.
166
167
  #
167
- # @param image_manifest_descriptor [DockerEngineRuby::Models::Summary::ImageManifestDescriptor] A descriptor struct containing digest, media type, and size, as defined in
168
+ # @param image_manifest_descriptor [DockerEngineRuby::Models::Summary::ImageManifestDescriptor, nil] A descriptor struct containing digest, media type, and size, as defined in
168
169
  #
169
170
  # @param labels [Hash{Symbol=>String}] User-defined key/value metadata.
170
171
  #
@@ -187,13 +188,11 @@ module DockerEngineRuby
187
188
  # @see DockerEngineRuby::Models::Summary#health
188
189
  class Health < DockerEngineRuby::Internal::Type::BaseModel
189
190
  # @!attribute failing_streak
190
- # FailingStreak is the number of consecutive failures
191
191
  #
192
192
  # @return [Integer, nil]
193
193
  optional :failing_streak, Integer, api_name: :FailingStreak
194
194
 
195
195
  # @!attribute status
196
- # the health status of the container
197
196
  #
198
197
  # @return [Symbol, DockerEngineRuby::Models::Summary::Health::Status, nil]
199
198
  optional :status, enum: -> { DockerEngineRuby::Summary::Health::Status }, api_name: :Status
@@ -205,12 +204,9 @@ module DockerEngineRuby
205
204
  # After this attribute introduced, it includes containers with no health checks
206
205
  # configured, or containers that are not running with none
207
206
  #
208
- # @param failing_streak [Integer] FailingStreak is the number of consecutive failures
209
- #
210
- # @param status [Symbol, DockerEngineRuby::Models::Summary::Health::Status] the health status of the container
207
+ # @param failing_streak [Integer]
208
+ # @param status [Symbol, DockerEngineRuby::Models::Summary::Health::Status]
211
209
 
212
- # the health status of the container
213
- #
214
210
  # @see DockerEngineRuby::Models::Summary::Health#status
215
211
  module Status
216
212
  extend DockerEngineRuby::Internal::Type::Enum
@@ -228,7 +224,6 @@ module DockerEngineRuby
228
224
  # @see DockerEngineRuby::Models::Summary#host_config
229
225
  class HostConfig < DockerEngineRuby::Internal::Type::BaseModel
230
226
  # @!attribute annotations
231
- # Arbitrary key-value metadata attached to the container.
232
227
  #
233
228
  # @return [Hash{Symbol=>String}, nil]
234
229
  optional :annotations,
@@ -237,27 +232,17 @@ module DockerEngineRuby
237
232
  nil?: true
238
233
 
239
234
  # @!attribute network_mode
240
- # Networking mode (`host`, `none`, `container:<id>`) or name of the primary
241
- # network the container is using.
242
- #
243
- # This field is primarily for backward compatibility. The container can be
244
- # connected to multiple networks for which information can be found in the
245
- # `NetworkSettings.Networks` field, which enumerates settings per network.
246
235
  #
247
236
  # @return [String, nil]
248
237
  optional :network_mode, String, api_name: :NetworkMode
249
238
 
250
239
  # @!method initialize(annotations: nil, network_mode: nil)
251
- # Some parameter documentations has been truncated, see
252
- # {DockerEngineRuby::Models::Summary::HostConfig} for more details.
253
- #
254
240
  # Summary of host-specific runtime information of the container. This is a reduced
255
241
  # set of information in the container's "HostConfig" as available in the container
256
242
  # "inspect" response.
257
243
  #
258
- # @param annotations [Hash{Symbol=>String}, nil] Arbitrary key-value metadata attached to the container.
259
- #
260
- # @param network_mode [String] Networking mode (`host`, `none`, `container:<id>`) or name of the
244
+ # @param annotations [Hash{Symbol=>String}, nil]
245
+ # @param network_mode [String]
261
246
  end
262
247
 
263
248
  # @see DockerEngineRuby::Models::Summary#image_manifest_descriptor
@@ -300,7 +285,7 @@ module DockerEngineRuby
300
285
  # [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
301
286
  #
302
287
  # @return [DockerEngineRuby::Models::Summary::ImageManifestDescriptor::Platform, nil]
303
- optional :platform, -> { DockerEngineRuby::Summary::ImageManifestDescriptor::Platform }, nil?: true
288
+ optional :platform, -> { DockerEngineRuby::Summary::ImageManifestDescriptor::Platform }
304
289
 
305
290
  # @!attribute size
306
291
  # The size in bytes of the blob.
@@ -331,7 +316,7 @@ module DockerEngineRuby
331
316
  #
332
317
  # @param media_type [String] The media type of the object this schema refers to.
333
318
  #
334
- # @param platform [DockerEngineRuby::Models::Summary::ImageManifestDescriptor::Platform, nil] Describes the platform which the image in the manifest runs on, as defined
319
+ # @param platform [DockerEngineRuby::Models::Summary::ImageManifestDescriptor::Platform] Describes the platform which the image in the manifest runs on, as defined
335
320
  #
336
321
  # @param size [Integer] The size in bytes of the blob.
337
322
  #
@@ -513,7 +498,6 @@ module DockerEngineRuby
513
498
  # @see DockerEngineRuby::Models::Summary#network_settings
514
499
  class NetworkSettings < DockerEngineRuby::Internal::Type::BaseModel
515
500
  # @!attribute networks
516
- # Summary of network-settings for each network the container is attached to.
517
501
  #
518
502
  # @return [Hash{Symbol=>DockerEngineRuby::Models::Summary::NetworkSettings::Network}, nil]
519
503
  optional :networks,
@@ -523,12 +507,9 @@ module DockerEngineRuby
523
507
  api_name: :Networks
524
508
 
525
509
  # @!method initialize(networks: nil)
526
- # Some parameter documentations has been truncated, see
527
- # {DockerEngineRuby::Models::Summary::NetworkSettings} for more details.
528
- #
529
510
  # Summary of the container's network settings
530
511
  #
531
- # @param networks [Hash{Symbol=>DockerEngineRuby::Models::Summary::NetworkSettings::Network}] Summary of network-settings for each network the container is
512
+ # @param networks [Hash{Symbol=>DockerEngineRuby::Models::Summary::NetworkSettings::Network}]
532
513
 
533
514
  class Network < DockerEngineRuby::Internal::Type::BaseModel
534
515
  # @!attribute aliases
@@ -603,8 +584,7 @@ module DockerEngineRuby
603
584
  # @return [DockerEngineRuby::Models::Summary::NetworkSettings::Network::IpamConfig, nil]
604
585
  optional :ipam_config,
605
586
  -> { DockerEngineRuby::Summary::NetworkSettings::Network::IpamConfig },
606
- api_name: :IPAMConfig,
607
- nil?: true
587
+ api_name: :IPAMConfig
608
588
 
609
589
  # @!attribute ip_prefix_len
610
590
  # Mask length of the IPv4 address.
@@ -660,7 +640,7 @@ module DockerEngineRuby
660
640
  #
661
641
  # @param ip_address [String] IPv4 address.
662
642
  #
663
- # @param ipam_config [DockerEngineRuby::Models::Summary::NetworkSettings::Network::IpamConfig, nil] EndpointIPAMConfig represents an endpoint's IPAM configuration.
643
+ # @param ipam_config [DockerEngineRuby::Models::Summary::NetworkSettings::Network::IpamConfig] EndpointIPAMConfig represents an endpoint's IPAM configuration.
664
644
  #
665
645
  # @param ip_prefix_len [Integer] Mask length of the IPv4 address.
666
646
  #
@@ -8,8 +8,8 @@ module DockerEngineRuby
8
8
  # Date and time at which the swarm was initialised in
9
9
  # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
10
10
  #
11
- # @return [String, nil]
12
- optional :created_at, String, api_name: :CreatedAt
11
+ # @return [Time, nil]
12
+ optional :created_at, Time, api_name: :CreatedAt
13
13
 
14
14
  # @!attribute data_path_port
15
15
  # DataPathPort specifies the data path port number for data traffic. Acceptable
@@ -71,8 +71,8 @@ module DockerEngineRuby
71
71
  # Date and time at which the swarm was last updated in
72
72
  # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
73
73
  #
74
- # @return [String, nil]
75
- optional :updated_at, String, api_name: :UpdatedAt
74
+ # @return [Time, nil]
75
+ optional :updated_at, Time, api_name: :UpdatedAt
76
76
 
77
77
  # @!attribute version
78
78
  # The version number of the object such as node, service, etc. This is needed to
@@ -92,7 +92,7 @@ module DockerEngineRuby
92
92
  # Some parameter documentations has been truncated, see
93
93
  # {DockerEngineRuby::Models::SwarmAPI} for more details.
94
94
  #
95
- # @param created_at [String] Date and time at which the swarm was initialised in
95
+ # @param created_at [Time] Date and time at which the swarm was initialised in
96
96
  #
97
97
  # @param data_path_port [Integer] DataPathPort specifies the data path port number for data traffic.
98
98
  #
@@ -110,7 +110,7 @@ module DockerEngineRuby
110
110
  #
111
111
  # @param tls_info [DockerEngineRuby::Models::SwarmAPI::TlsInfo] Information about the issuer of leaf TLS certificates and the trusted root
112
112
  #
113
- # @param updated_at [String] Date and time at which the swarm was last updated in
113
+ # @param updated_at [Time] Date and time at which the swarm was last updated in
114
114
  #
115
115
  # @param version [DockerEngineRuby::Models::SwarmAPI::Version] The version number of the object such as node, service, etc. This is needed
116
116
 
@@ -129,9 +129,6 @@ module DockerEngineRuby
129
129
  optional :worker, String, api_name: :Worker
130
130
 
131
131
  # @!method initialize(manager: nil, worker: nil)
132
- # Some parameter documentations has been truncated, see
133
- # {DockerEngineRuby::Models::SwarmAPI::JoinTokens} for more details.
134
- #
135
132
  # JoinTokens contains the tokens workers and managers need to join the swarm.
136
133
  #
137
134
  # @param manager [String] The token managers can use to join the swarm.